Skip to content

Commit bf93833

Browse files
Merge pull request #306 from XeroAPI/new-finance-endpoint-and-minor-changes
generates Xero-Java-4.15.0 from OAS 2.19.2
2 parents 329c5e9 + 036ee26 commit bf93833

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+4749
-73
lines changed

docs/v4/accounting/index.html

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3533,6 +3533,9 @@
35333533
"format" : "double",
35343534
"x-is-money" : true
35353535
},
3536+
"Item" : {
3537+
"$ref" : "#/components/schemas/LineItemItem"
3538+
},
35363539
"LineAmount" : {
35373540
"type" : "number",
35383541
"description" : "If you wish to omit either of the <Quantity> or <UnitAmount> you can provide a LineAmount and Xero will calculate the missing amount for you. The line amount reflects the discounted price if a DiscountRate has been used . i.e LineAmount = Quantity * Unit Amount * ((100 – DiscountRate)/100)",
@@ -3569,6 +3572,27 @@
35693572
"externalDocs" : {
35703573
"url" : "https://developer.xero.com/documentation/api/invoices#post"
35713574
}
3575+
};
3576+
defs["LineItemItem"] = {
3577+
"title" : "",
3578+
"properties" : {
3579+
"Code" : {
3580+
"maxLength" : 30,
3581+
"type" : "string",
3582+
"description" : "User defined item code (max length = 30)"
3583+
},
3584+
"Name" : {
3585+
"maxLength" : 50,
3586+
"type" : "string",
3587+
"description" : "The name of the item (max length = 50)"
3588+
},
3589+
"ItemID" : {
3590+
"type" : "string",
3591+
"description" : "The Xero identifier for an Item",
3592+
"format" : "uuid"
3593+
}
3594+
},
3595+
"description" : ""
35723596
};
35733597
defs["LineItemTracking"] = {
35743598
"title" : "",
@@ -5980,7 +6004,7 @@
59806004
<nav id="scrollingNav">
59816005
<ul class="sidenav nav nav-list">
59826006
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
5983-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>4.14.0</li>
6007+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>4.15.0</li>
59846008
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
59856009
<li data-group="Accounting" data-name="createAccount" class="">
59866010
<a href="#api-Accounting-createAccount">createAccount</a>

docs/v4/appstore/index.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -876,8 +876,8 @@
876876
},
877877
"status" : {
878878
"type" : "string",
879-
"description" : "Status of the plan. Available statuses are ACTIVE,\nPENDING_ACTIVATION.\n",
880-
"enum" : [ "ACTIVE", "PENDING_ACTIVATION" ]
879+
"description" : "Status of the plan. Available statuses are ACTIVE, CANCELED, and\nPENDING_ACTIVATION.\n",
880+
"enum" : [ "ACTIVE", "CANCELED", "PENDING_ACTIVATION" ]
881881
},
882882
"subscriptionItems" : {
883883
"type" : "array",
@@ -1000,7 +1000,8 @@
10001000
},
10011001
"status" : {
10021002
"type" : "string",
1003-
"description" : "Status of the subscription. Available statuses are ACTIVE, CANCELED, and PAST_DUE."
1003+
"description" : "Status of the subscription. Available statuses are ACTIVE, CANCELED, and PAST_DUE.",
1004+
"enum" : [ "ACTIVE", "CANCELED", "PAST_DUE" ]
10041005
},
10051006
"testMode" : {
10061007
"type" : "boolean",
@@ -1011,7 +1012,7 @@
10111012
};
10121013
defs["SubscriptionItem"] = {
10131014
"title" : "",
1014-
"required" : [ "id", "price", "product", "startDate" ],
1015+
"required" : [ "id", "price", "product", "startDate", "status" ],
10151016
"type" : "object",
10161017
"properties" : {
10171018
"endDate" : {
@@ -1035,6 +1036,11 @@
10351036
"description" : "Date the subscription started, or will start. Note: this could be in\nthe future for downgrades or reduced number of seats that haven't taken effect yet.\n",
10361037
"format" : "date-time"
10371038
},
1039+
"status" : {
1040+
"type" : "string",
1041+
"description" : "Status of the subscription item. Available statuses are ACTIVE, CANCELED, and\nPENDING_ACTIVATION.\n",
1042+
"enum" : [ "ACTIVE", "CANCELED", "PENDING_ACTIVATION" ]
1043+
},
10381044
"testMode" : {
10391045
"type" : "boolean",
10401046
"description" : "If the subscription is a test subscription"
@@ -1123,7 +1129,7 @@
11231129
<nav id="scrollingNav">
11241130
<ul class="sidenav nav nav-list">
11251131
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
1126-
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>4.14.0</li>
1132+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>4.15.0</li>
11271133
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
11281134
<li data-group="AppStore" data-name="getSubscription" class="">
11291135
<a href="#api-AppStore-getSubscription">getSubscription</a>

docs/v4/assets/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@
13871387
<nav id="scrollingNav">
13881388
<ul class="sidenav nav nav-list">
13891389
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
1390-
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>4.14.0</li>
1390+
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>4.15.0</li>
13911391
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
13921392
<li data-group="Asset" data-name="createAsset" class="">
13931393
<a href="#api-Asset-createAsset">createAsset</a>

docs/v4/files/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,13 +1006,13 @@
10061006
"title" : "",
10071007
"type" : "string",
10081008
"description" : "The Object Group that the object is in. These roughly correlate to the endpoints that can be used to retrieve the object via the core accounting API.",
1009-
"enum" : [ "Account", "BankTransaction", "Contact", "CreditNote", "Invoice", "Item", "ManualJournal", "Overpayment", "Payment", "Prepayment", "Receipt" ]
1009+
"enum" : [ "Account", "BankTransaction", "Contact", "CreditNote", "Invoice", "Item", "ManualJournal", "Overpayment", "Payment", "Prepayment", "Quote", "Receipt" ]
10101010
};
10111011
defs["ObjectType"] = {
10121012
"title" : "",
10131013
"type" : "string",
10141014
"description" : "The Object Type",
1015-
"enum" : [ "Unknown", "Accpay", "AccPayCredit", "AccPayPayment", "AccRec", "AccRecCredit", "AccRecPayment", "Adjustment", "ApCreditPayment", "ApOverPayment", "ApOverPaymentPayment", "ApOverPaymentSourcePayment", "ApPrepayment", "ApPrepaymentPayment", "ApPrepaymentSourcePayment", "ArCreditPayment", "ArOverPayment", "ArOverpaymentPayment", "ArOverpaymentSourcePayment", "ArPrepayment", "ArPrepaymentPayment", "ArPrepaymentSourcePayment", "CashPaid", "CashRec", "ExpPayment", "ManJournal", "PurchaseOrder", "Receipt", "Transfer", "Account", "Contact", "Business", "Employee", "Person", "User", "Org", "FixedAsset", "PayRun", "PriceListItem", "Bank", "Current", "Equity", "Expense", "Fixed", "Liability", "Prepayment", "Revenue", "Sales", "Overheads", "Depreciatn", "OtherIncome", "DirectCosts", "Currliab", "Termliab", "NonCurrent" ]
1015+
"enum" : [ "Unknown", "Accpay", "AccPayCredit", "AccPayPayment", "AccRec", "AccRecCredit", "AccRecPayment", "Adjustment", "ApCreditPayment", "ApOverPayment", "ApOverPaymentPayment", "ApOverPaymentSourcePayment", "ApPrepayment", "ApPrepaymentPayment", "ApPrepaymentSourcePayment", "ArCreditPayment", "ArOverPayment", "ArOverpaymentPayment", "ArOverpaymentSourcePayment", "ArPrepayment", "ArPrepaymentPayment", "ArPrepaymentSourcePayment", "CashPaid", "CashRec", "ExpPayment", "ManJournal", "PurchaseOrder", "Receipt", "Transfer", "Account", "Contact", "Business", "Employee", "Person", "User", "Org", "FixedAsset", "PayRun", "PriceListItem", "Bank", "Current", "Equity", "Expense", "Fixed", "Liability", "Prepayment", "Revenue", "Sales", "Overheads", "Depreciatn", "OtherIncome", "DirectCosts", "Currliab", "Termliab", "NonCurrent", "SalesQuote" ]
10161016
};
10171017
defs["UploadObject"] = {
10181018
"title" : "",
@@ -1151,7 +1151,7 @@
11511151
<nav id="scrollingNav">
11521152
<ul class="sidenav nav nav-list">
11531153
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
1154-
<li class="nav-header" data-group="Files"><strong>VSN: </strong>4.14.0</li>
1154+
<li class="nav-header" data-group="Files"><strong>VSN: </strong>4.15.0</li>
11551155
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
11561156
<li data-group="Files" data-name="createFileAssociation" class="">
11571157
<a href="#api-Files-createFileAssociation">createFileAssociation</a>

0 commit comments

Comments
 (0)