diff --git a/Gemfile.lock b/Gemfile.lock index 8dde2721..53563a88 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - xero-ruby (18.0.0) + xero-ruby (18.1.0) faraday (>= 2.0, < 3.0) json (~> 2.1, >= 2.1.0) json-jwt (~> 1.16, >= 1.16.3) diff --git a/docs/accounting/AccountingApi.md b/docs/accounting/AccountingApi.md index 3770ac3d..5df082ed 100644 --- a/docs/accounting/AccountingApi.md +++ b/docs/accounting/AccountingApi.md @@ -2074,7 +2074,9 @@ opts = { unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts - idempotency_key: 'KEY_VALUE' # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. + idempotency_key: 'KEY_VALUE', # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. + + allow_backorders: true # Boolean | Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative } begin @@ -2096,6 +2098,7 @@ Name | Type | Description | Notes **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false] **unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] **idempotency_key** | **String**| This allows you to safely retry requests without the risk of duplicate processing. 128 character max. | [optional] + **allow_backorders** | **Boolean**| Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative | [optional] ### Return type @@ -5905,7 +5908,9 @@ opts = { unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts - page_size: 100 # Integer | Number of records to retrieve per page + page_size: 100, # Integer | Number of records to retrieve per page + + references: ['"Ref1", "Ref2"'] # Array | Filter by a comma-separated list of References } begin @@ -5929,6 +5934,7 @@ Name | Type | Description | Notes **page** | **Integer**| Up to 100 bank transactions will be returned in a single API call with line items details | [optional] **unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] **page_size** | **Integer**| Number of records to retrieve per page | [optional] + **references** | [**Array<String>**](String.md)| Filter by a comma-separated list of References | [optional] ### Return type @@ -10808,13 +10814,15 @@ opts = { order: 'Reference ASC', # String | Order by an any element - page: 1, # Integer | e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment + page: 1, # Integer | e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each prepayment unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts page_size: 100, # Integer | Number of records to retrieve per page - invoice_numbers: ['"INV-001", "INV-002"'] # Array | Filter by a comma-separated list of InvoiceNumbers + invoice_numbers: ['"INV-001", "INV-002"'], # Array | Filter by a comma-separated list of InvoiceNumbers + + references: ['"Ref1", "Ref2"'] # Array | Filter by a comma-separated list of References } begin @@ -10835,10 +10843,11 @@ Name | Type | Description | Notes **if_modified_since** | **DateTime**| Only records created or modified since this timestamp will be returned | [optional] **where** | **String**| Filter by an any element | [optional] **order** | **String**| Order by an any element | [optional] - **page** | **Integer**| e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment | [optional] + **page** | **Integer**| e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each prepayment | [optional] **unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] **page_size** | **Integer**| Number of records to retrieve per page | [optional] **invoice_numbers** | [**Array<String>**](String.md)| Filter by a comma-separated list of InvoiceNumbers | [optional] + **references** | [**Array<String>**](String.md)| Filter by a comma-separated list of References | [optional] ### Return type @@ -14799,7 +14808,9 @@ invoices = {"Invoices":[{"Reference":"May the force be with you","InvoiceID":"00 opts = { unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts - idempotency_key: 'KEY_VALUE' # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. + idempotency_key: 'KEY_VALUE', # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. + + allow_backorders: true # Boolean | Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative } begin @@ -14821,6 +14832,7 @@ Name | Type | Description | Notes **invoices** | [**Invoices**](Invoices.md)| | **unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] **idempotency_key** | **String**| This allows you to safely retry requests without the risk of duplicate processing. 128 character max. | [optional] + **allow_backorders** | **Boolean**| Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative | [optional] ### Return type @@ -15458,7 +15470,9 @@ opts = { unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts - idempotency_key: 'KEY_VALUE' # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. + idempotency_key: 'KEY_VALUE', # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. + + allow_backorders: true # Boolean | Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative } begin @@ -15480,6 +15494,7 @@ Name | Type | Description | Notes **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false] **unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] **idempotency_key** | **String**| This allows you to safely retry requests without the risk of duplicate processing. 128 character max. | [optional] + **allow_backorders** | **Boolean**| Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative | [optional] ### Return type diff --git a/docs/accounting/Item.md b/docs/accounting/Item.md index c04f06fc..92b54553 100644 --- a/docs/accounting/Item.md +++ b/docs/accounting/Item.md @@ -15,7 +15,9 @@ Name | Type | Description | Notes **sales_details** | [**Purchase**](Purchase.md) | | [optional] **is_tracked_as_inventory** | **Boolean** | True for items that are tracked as inventory. An item will be tracked as inventory if the InventoryAssetAccountCode and COGSAccountCode are set. | [optional] **total_cost_pool** | **BigDecimal** | The value of the item on hand. Calculated using average cost accounting. | [optional] -**quantity_on_hand** | **BigDecimal** | The quantity of the item on hand | [optional] +**quantity_on_hand** | **BigDecimal** | The quantity of the item on hand. This will be 0 if `QuantityOnBackOrder` is greater than 0. | [optional] +**quantity_available** | **Float** | The quantity of the item available. This is equal to `QuantityOnHand` - `QuantityOnBackOrder`. This value will be negative if `QuantityOnBackOrder` is greater than 0. | [optional] +**quantity_on_back_order** | **Float** | The quantity of the item on backorder. This will be 0 if `QuantityOnHand` is greater than 0. | [optional] **updated_date_utc** | **DateTime** | Last modified date in UTC format | [optional] **item_id** | **String** | The Xero identifier for an Item | [optional] **status_attribute_string** | **String** | Status of object | [optional] @@ -38,6 +40,8 @@ instance = XeroRuby::Accounting::Item.new(code: null, is_tracked_as_inventory: null, total_cost_pool: null, quantity_on_hand: null, + quantity_available: null, + quantity_on_back_order: null, updated_date_utc: /Date(1573755038314)/, item_id: null, status_attribute_string: null, diff --git a/docs/accounting/index.html b/docs/accounting/index.html index fa051bd4..69a51549 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -3519,10 +3519,22 @@ }, "QuantityOnHand" : { "type" : "number", - "description" : "The quantity of the item on hand", + "description" : "The quantity of the item on hand. This will be 0 if `QuantityOnBackOrder` is greater than 0.", "format" : "double", "x-is-money" : true }, + "QuantityAvailable" : { + "type" : "number", + "description" : "The quantity of the item available. This is equal to `QuantityOnHand` - `QuantityOnBackOrder`. This value will be negative if `QuantityOnBackOrder` is greater than 0.", + "format" : "double", + "readOnly" : true + }, + "QuantityOnBackOrder" : { + "type" : "number", + "description" : "The quantity of the item on backorder. This will be 0 if `QuantityOnHand` is greater than 0.", + "format" : "double", + "readOnly" : true + }, "UpdatedDateUTC" : { "type" : "string", "description" : "Last modified date in UTC format", @@ -6494,7 +6506,7 @@