Skip to content

Commit

Permalink
Add ManualJournalLine class
Browse files Browse the repository at this point in the history
  • Loading branch information
SidneyAllen committed Jan 14, 2019
1 parent 7ce6457 commit 0d4548a
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 2 deletions.
48 changes: 47 additions & 1 deletion spec/v3/Xero_accounting_2.0.0_swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -10351,7 +10351,7 @@
"description" : "See JournalLines",
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/JournalLine"
"$ref" : "#/components/schemas/ManualJournalLine"
}
},
"Date" : {
Expand Down Expand Up @@ -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 <TrackingCategory> 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" : {
Expand Down
37 changes: 36 additions & 1 deletion spec/v3/Xero_accounting_2.0.0_swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <TrackingCategory> 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:
Expand Down

0 comments on commit 0d4548a

Please sign in to comment.