Skip to content

Commit

Permalink
Merge pull request #350 from XeroAPI/new_gen
Browse files Browse the repository at this point in the history
4.1.5
  • Loading branch information
SerKnight authored Feb 4, 2020
2 parents 802c1e7 + 98e2823 commit a2dd97c
Show file tree
Hide file tree
Showing 11 changed files with 112 additions and 108 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Change Log
---------
## "version": "4.1.5"

## "version": "4.1.3"
* Relaxes required types for certain objects & parameters

## "version": "4.1.4"

* Adds Quotes CRUD 🥳
* Remove a duplicate Enum
* Improved docs for `unitdp`
* Fix filters and where clause where we expect an array. Serializes to api as a comma sep. string
* Fix bug form 4.1.3 that was serializing all Array[any] when we just wanted Array[strings]

## "version": "4.1.2"

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xero-node",
"version": "4.1.4",
"version": "4.1.5",
"description": "Xero NodeJS OAuth 2.0 client for xero-node",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
182 changes: 91 additions & 91 deletions src/gen/api/accountingApi.ts

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/gen/model/accounting/invoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ export class Invoice {
/**
* See Invoice Types
*/
'type': Invoice.TypeEnum;
'contact': Contact;
'type'?: Invoice.TypeEnum;
'contact'?: Contact;
/**
* See LineItems
*/
'lineItems': Array<LineItem>;
'lineItems'?: Array<LineItem>;
/**
* Date invoice was issued – YYYY-MM-DD. If the Date element is not specified it will default to the current date based on the timezone setting of the organisation
*/
Expand Down
2 changes: 1 addition & 1 deletion src/gen/model/accounting/item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class Item {
/**
* The inventory asset account for the item. The account must be of type INVENTORY. The COGSAccountCode in PurchaseDetails is also required to create a tracked item
*/
'inventoryAssetAccountCode': string;
'inventoryAssetAccountCode'?: string;
/**
* The name of the item (max length = 50)
*/
Expand Down
2 changes: 1 addition & 1 deletion src/gen/model/accounting/lineItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class LineItem {
*/
'discountAmount'?: number;
/**
* The Xero identifier for a Repeating Invoicee.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9
* The Xero identifier for a Repeating Invoice
*/
'repeatingInvoiceID'?: string;

Expand Down
4 changes: 2 additions & 2 deletions src/gen/model/accounting/linkedTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class LinkedTransaction {
/**
* The line item identifier from the source transaction.
*/
'sourceLineItemID': string;
'sourceLineItemID'?: string;
/**
* Filter by the combination of ContactID and Status. Get all the linked transactions that have been assigned to a particular customer and have a particular status e.g. GET /LinkedTransactions?ContactID=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED.
*/
Expand All @@ -34,7 +34,7 @@ export class LinkedTransaction {
*/
'targetLineItemID'?: string;
/**
* The Xero identifier for an Linked Transaction e.g. /LinkedTransactions/297c2dc5-cc47-4afd-8ec8-74990b8761e9
* The Xero identifier for an Linked Transaction e.g./LinkedTransactions/297c2dc5-cc47-4afd-8ec8-74990b8761e9
*/
'linkedTransactionID'?: string;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/gen/model/accounting/manualJournal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class ManualJournal {
/**
* See JournalLines
*/
'journalLines': Array<ManualJournalLine>;
'journalLines'?: Array<ManualJournalLine>;
/**
* Date journal was posted – YYYY-MM-DD
*/
Expand Down
4 changes: 2 additions & 2 deletions src/gen/model/accounting/purchaseOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import { LineItem } from './lineItem';
import { ValidationError } from './validationError';

export class PurchaseOrder {
'contact': Contact;
'contact'?: Contact;
/**
* See LineItems
*/
'lineItems': Array<LineItem>;
'lineItems'?: Array<LineItem>;
/**
* Date purchase order was issued – YYYY-MM-DD. If the Date element is not specified then it will default to the current date based on the timezone setting of the organisation
*/
Expand Down
2 changes: 1 addition & 1 deletion src/gen/model/accounting/quote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class Quote {
'terms'?: string;
'contact': Contact;
/**
* The LineItems collection can contain any number of individual LineItem sub-elements. At minimum, a description is required to create a complete quote.
* See LineItems
*/
'lineItems': Array<LineItem>;
/**
Expand Down
8 changes: 4 additions & 4 deletions src/gen/model/accounting/receipt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ export class Receipt {
/**
* Date of receipt – YYYY-MM-DD
*/
'date': string;
'contact': Contact;
'lineItems': Array<LineItem>;
'user': User;
'date'?: string;
'contact'?: Contact;
'lineItems'?: Array<LineItem>;
'user'?: User;
/**
* Additional reference number
*/
Expand Down

0 comments on commit a2dd97c

Please sign in to comment.