From 0d4548a9862d072b57be9fe7a967040dc6f01e6b Mon Sep 17 00:00:00 2001 From: SidneyAllen Date: Mon, 14 Jan 2019 10:16:07 -0800 Subject: [PATCH] Add ManualJournalLine class --- spec/v3/Xero_accounting_2.0.0_swagger.json | 48 +++++++++++++++++++++- spec/v3/Xero_accounting_2.0.0_swagger.yaml | 37 ++++++++++++++++- 2 files changed, 83 insertions(+), 2 deletions(-) diff --git a/spec/v3/Xero_accounting_2.0.0_swagger.json b/spec/v3/Xero_accounting_2.0.0_swagger.json index 9ce43c800..7ffc05387 100644 --- a/spec/v3/Xero_accounting_2.0.0_swagger.json +++ b/spec/v3/Xero_accounting_2.0.0_swagger.json @@ -10351,7 +10351,7 @@ "description" : "See JournalLines", "type" : "array", "items" : { - "$ref" : "#/components/schemas/JournalLine" + "$ref" : "#/components/schemas/ManualJournalLine" } }, "Date" : { @@ -10395,6 +10395,52 @@ "required" : [ "Narration", "JournalLines" ], "type" : "object" }, + "ManualJournalLine" : { + "externalDocs" : { + "url" : "http://developer.xero.com/documentation/api/manual-journals/" + }, + "properties" : { + "LineAmount" : { + "description" : "total for line. Debits are positive, credits are negative value", + "type" : "number", + "format" : "float", + "example" : -2569.0 + }, + "AccountCode" : { + "description" : "See Accounts", + "type" : "string", + "example" : 720 + }, + "Description" : { + "description" : "Description for journal line", + "type" : "string", + "example" : "Coded incorrectly Office Equipment should be Computer Equipment" + }, + "TaxType" : { + "$ref" : "#/components/schemas/TaxType" + }, + "Tracking" : { + "description" : "Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 elements.", + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/TrackingCategory" + } + }, + "TaxAmount" : { + "description" : "The calculated tax amount based on the TaxType and LineAmount", + "readOnly" : true, + "type" : "number", + "format" : "float", + "example" : 0.0 + }, + "IsBlank" : { + "description" : "is the line blank", + "type" : "boolean", + "example" : false + } + }, + "type" : "object" + }, "Organisations" : { "type" : "object", "properties" : { diff --git a/spec/v3/Xero_accounting_2.0.0_swagger.yaml b/spec/v3/Xero_accounting_2.0.0_swagger.yaml index 189362edf..0fa52e1dc 100644 --- a/spec/v3/Xero_accounting_2.0.0_swagger.yaml +++ b/spec/v3/Xero_accounting_2.0.0_swagger.yaml @@ -7703,7 +7703,7 @@ components: description: See JournalLines type: array items: - $ref: '#/components/schemas/JournalLine' + $ref: '#/components/schemas/ManualJournalLine' Date: description: Date journal was posted – YYYY-MM-DD type: string @@ -7742,6 +7742,41 @@ components: - Narration - JournalLines type: object + ManualJournalLine: + externalDocs: + url: 'http://developer.xero.com/documentation/api/manual-journals/' + properties: + LineAmount: + description: 'total for line. Debits are positive, credits are negative value' + type: number + format: float + example: -2569.00 + AccountCode: + description: See Accounts + type: string + example: 720 + Description: + description: Description for journal line + type: string + example: Coded incorrectly Office Equipment should be Computer Equipment + TaxType: + $ref: '#/components/schemas/TaxType' + Tracking: + description: Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 elements. + type: array + items: + $ref: '#/components/schemas/TrackingCategory' + TaxAmount: + description: The calculated tax amount based on the TaxType and LineAmount + readOnly: true + type: number + format: float + example: 0.00 + IsBlank: + description: is the line blank + type: boolean + example: false + type: object Organisations: type: object properties: