dear-inventory-ruby 0.2.3 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6548443c3a747000b4d565792f143837bb32cc147974ed0ac2e96bb29fe86f40
4
- data.tar.gz: a74524ffba3f733f9a84b18e7bc20e8117bcb436e19ad5ac7e3c8a72faf8d6e3
3
+ metadata.gz: 665772a1eec52c5945c0e6106d4d169e9b310a2046d1974d67f18f4044d779af
4
+ data.tar.gz: 914df67acb8c2358a21af9ecbf1aafd575cfa2ea01b17f4b3468ddab1489bd38
5
5
  SHA512:
6
- metadata.gz: b1b01d683d52ad6fc9005104f3c11d7fcdd323b7da96b94cb3e0a2e541ade53428a723c1101f44bc03bc3d12bd03710aadd21d9d42e2b901914be56d29fba371
7
- data.tar.gz: 1f4f254e6262b20ba9375b97e6b6ec78a84b47cd6ee875b6f0df4292089ec9c3f841e5f23a6d7fd48435879ac0cb9ebe6ae15f392e32be2d24884ed2e2ba1e5d
6
+ metadata.gz: 6ac843e11c132abf8137314fa384f9fe68c1e3fb18db81b115a08a8a06681fa77d349e7e392e35717043b31a6915c3854938faff85df2c8d90654a04b8ff5244
7
+ data.tar.gz: 5a14e0e4c109c10847ec9996ee656427021d46abe4dd1bad6e4708fe91e15078d775881dea00b561cdc1b0059b775bd737f3b0342c526c9d03ae39b8c40f3c59
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.2.6] - 2022-07-14
6
+
7
+ - Update final totals of each invoice for the endpoint GET `/sale`
8
+
9
+ ## [0.2.5] - 2022-05-26
10
+
11
+ - Add the new endpoint GET `/saleList`
12
+
13
+ ## [0.2.4] - 2022-04-12
14
+
15
+ - Add the new endpoint GET `/sale`
16
+
5
17
  ## [0.2.3] - 2021-10-15
6
18
 
7
19
  - Update `POST` response of the endpoint `/webhooks`
data/README.md CHANGED
@@ -7,7 +7,7 @@ This specifing endpoints for DEAR Inventory API
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 0.2.3
10
+ - Package version: 0.2.6
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://www.nhansg.com](https://www.nhansg.com)
13
13
 
@@ -24,16 +24,16 @@ gem build dear-inventory-ruby.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./dear-inventory-ruby-0.2.3.gem
27
+ gem install ./dear-inventory-ruby-0.2.6.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./dear-inventory-ruby-0.2.3.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./dear-inventory-ruby-0.2.6.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'dear-inventory-ruby', '~> 0.2.3'
36
+ gem 'dear-inventory-ruby', '~> 0.2.6'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -111,7 +111,9 @@ Class | Method | HTTP request | Description
111
111
  *DearInventoryRuby::InventoryApi* | [**get_me**](docs/InventoryApi.md#get_me) | **GET** /me | Allows you to retrieve your information
112
112
  *DearInventoryRuby::InventoryApi* | [**get_payment_terms**](docs/InventoryApi.md#get_payment_terms) | **GET** /ref/paymentterm | Allows you to retrieve the payment terms
113
113
  *DearInventoryRuby::InventoryApi* | [**get_price_tiers**](docs/InventoryApi.md#get_price_tiers) | **GET** /ref/priceTier | Allows you to retrieve the Price Tiers
114
+ *DearInventoryRuby::InventoryApi* | [**get_sale**](docs/InventoryApi.md#get_sale) | **GET** /sale | Allows you to retrieve the Sale
114
115
  *DearInventoryRuby::InventoryApi* | [**get_sale_invoices**](docs/InventoryApi.md#get_sale_invoices) | **GET** /sale/invoice | Allows you to retrieve the sale invoices
116
+ *DearInventoryRuby::InventoryApi* | [**get_sale_list**](docs/InventoryApi.md#get_sale_list) | **GET** /saleList | Allows you to retrieve the Sales based on conditions
115
117
  *DearInventoryRuby::InventoryApi* | [**get_sale_order**](docs/InventoryApi.md#get_sale_order) | **GET** /sale/order | Allows you to retrieve the Sale Order
116
118
  *DearInventoryRuby::InventoryApi* | [**get_sale_payment**](docs/InventoryApi.md#get_sale_payment) | **GET** /sale/payment | Allows you to retrieve the Sale Payments
117
119
  *DearInventoryRuby::InventoryApi* | [**get_sale_quote**](docs/InventoryApi.md#get_sale_quote) | **GET** /sale/quote | Allows you to retrieve the Sale Quote
@@ -141,16 +143,21 @@ Class | Method | HTTP request | Description
141
143
  - [DearInventoryRuby::PaymentTerms](docs/PaymentTerms.md)
142
144
  - [DearInventoryRuby::PriceTier](docs/PriceTier.md)
143
145
  - [DearInventoryRuby::PriceTiers](docs/PriceTiers.md)
146
+ - [DearInventoryRuby::Sale](docs/Sale.md)
144
147
  - [DearInventoryRuby::SaleAdditionalCharge](docs/SaleAdditionalCharge.md)
145
148
  - [DearInventoryRuby::SaleInvoice](docs/SaleInvoice.md)
146
149
  - [DearInventoryRuby::SaleInvoiceAdditionalCharge](docs/SaleInvoiceAdditionalCharge.md)
147
150
  - [DearInventoryRuby::SaleInvoiceDelete](docs/SaleInvoiceDelete.md)
148
151
  - [DearInventoryRuby::SaleInvoiceLine](docs/SaleInvoiceLine.md)
152
+ - [DearInventoryRuby::SaleInvoicePartial](docs/SaleInvoicePartial.md)
149
153
  - [DearInventoryRuby::SaleInvoicePost](docs/SaleInvoicePost.md)
150
154
  - [DearInventoryRuby::SaleInvoices](docs/SaleInvoices.md)
155
+ - [DearInventoryRuby::SaleItem](docs/SaleItem.md)
156
+ - [DearInventoryRuby::SaleList](docs/SaleList.md)
151
157
  - [DearInventoryRuby::SaleOrder](docs/SaleOrder.md)
152
158
  - [DearInventoryRuby::SaleOrderLine](docs/SaleOrderLine.md)
153
159
  - [DearInventoryRuby::SalePayment](docs/SalePayment.md)
160
+ - [DearInventoryRuby::SalePaymentLine](docs/SalePaymentLine.md)
154
161
  - [DearInventoryRuby::SaleQuote](docs/SaleQuote.md)
155
162
  - [DearInventoryRuby::SaleQuoteLine](docs/SaleQuoteLine.md)
156
163
  - [DearInventoryRuby::ShippingAddress](docs/ShippingAddress.md)
data/docs/InventoryApi.md CHANGED
@@ -23,7 +23,9 @@ Method | HTTP request | Description
23
23
  [**get_me**](InventoryApi.md#get_me) | **GET** /me | Allows you to retrieve your information
24
24
  [**get_payment_terms**](InventoryApi.md#get_payment_terms) | **GET** /ref/paymentterm | Allows you to retrieve the payment terms
25
25
  [**get_price_tiers**](InventoryApi.md#get_price_tiers) | **GET** /ref/priceTier | Allows you to retrieve the Price Tiers
26
+ [**get_sale**](InventoryApi.md#get_sale) | **GET** /sale | Allows you to retrieve the Sale
26
27
  [**get_sale_invoices**](InventoryApi.md#get_sale_invoices) | **GET** /sale/invoice | Allows you to retrieve the sale invoices
28
+ [**get_sale_list**](InventoryApi.md#get_sale_list) | **GET** /saleList | Allows you to retrieve the Sales based on conditions
27
29
  [**get_sale_order**](InventoryApi.md#get_sale_order) | **GET** /sale/order | Allows you to retrieve the Sale Order
28
30
  [**get_sale_payment**](InventoryApi.md#get_sale_payment) | **GET** /sale/payment | Allows you to retrieve the Sale Payments
29
31
  [**get_sale_quote**](InventoryApi.md#get_sale_quote) | **GET** /sale/quote | Allows you to retrieve the Sale Quote
@@ -1201,6 +1203,71 @@ This endpoint does not need any parameter.
1201
1203
  - **Accept**: application/json
1202
1204
 
1203
1205
 
1206
+ ## get_sale
1207
+
1208
+ > Sale get_sale(opts)
1209
+
1210
+ Allows you to retrieve the Sale
1211
+
1212
+ ### Example
1213
+
1214
+ ```ruby
1215
+ # load the gem
1216
+ require 'dear-inventory-ruby'
1217
+ # setup authorization
1218
+ DearInventoryRuby.configure do |config|
1219
+ # Configure API key authorization: accountID
1220
+ config.api_key['api-auth-accountid'] = 'YOUR API KEY'
1221
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1222
+ #config.api_key_prefix['api-auth-accountid'] = 'Bearer'
1223
+
1224
+ # Configure API key authorization: appKey
1225
+ config.api_key['api-auth-applicationkey'] = 'YOUR API KEY'
1226
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1227
+ #config.api_key_prefix['api-auth-applicationkey'] = 'Bearer'
1228
+ end
1229
+
1230
+ api_instance = DearInventoryRuby::InventoryApi.new
1231
+ opts = {
1232
+ id: 'id_example', # String | Default is nil
1233
+ combine_additional_charges: false, # Boolean | Show additional charges in 'Lines' array
1234
+ hide_inventory_movements: false, # Boolean | Hide inventory movements (Default = false)
1235
+ include_transactions: false # Boolean | Show related transactions (Default = false)
1236
+ }
1237
+
1238
+ begin
1239
+ #Allows you to retrieve the Sale
1240
+ result = api_instance.get_sale(opts)
1241
+ p result
1242
+ rescue DearInventoryRuby::ApiError => e
1243
+ puts "Exception when calling InventoryApi->get_sale: #{e}"
1244
+ end
1245
+ ```
1246
+
1247
+ ### Parameters
1248
+
1249
+
1250
+ Name | Type | Description | Notes
1251
+ ------------- | ------------- | ------------- | -------------
1252
+ **id** | **String**| Default is nil | [optional]
1253
+ **combine_additional_charges** | **Boolean**| Show additional charges in 'Lines' array | [optional] [default to false]
1254
+ **hide_inventory_movements** | **Boolean**| Hide inventory movements (Default = false) | [optional] [default to false]
1255
+ **include_transactions** | **Boolean**| Show related transactions (Default = false) | [optional] [default to false]
1256
+
1257
+ ### Return type
1258
+
1259
+ [**Sale**](Sale.md)
1260
+
1261
+ ### Authorization
1262
+
1263
+ [accountID](../README.md#accountID), [appKey](../README.md#appKey)
1264
+
1265
+ ### HTTP request headers
1266
+
1267
+ - **Content-Type**: Not defined
1268
+ - **Accept**: application/json
1269
+
1270
+
1204
1271
  ## get_sale_invoices
1205
1272
 
1206
1273
  > SaleInvoices get_sale_invoices(opts)
@@ -1264,6 +1331,97 @@ Name | Type | Description | Notes
1264
1331
  - **Accept**: application/json
1265
1332
 
1266
1333
 
1334
+ ## get_sale_list
1335
+
1336
+ > SaleList get_sale_list(opts)
1337
+
1338
+ Allows you to retrieve the Sales based on conditions
1339
+
1340
+ ### Example
1341
+
1342
+ ```ruby
1343
+ # load the gem
1344
+ require 'dear-inventory-ruby'
1345
+ # setup authorization
1346
+ DearInventoryRuby.configure do |config|
1347
+ # Configure API key authorization: accountID
1348
+ config.api_key['api-auth-accountid'] = 'YOUR API KEY'
1349
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1350
+ #config.api_key_prefix['api-auth-accountid'] = 'Bearer'
1351
+
1352
+ # Configure API key authorization: appKey
1353
+ config.api_key['api-auth-applicationkey'] = 'YOUR API KEY'
1354
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1355
+ #config.api_key_prefix['api-auth-applicationkey'] = 'Bearer'
1356
+ end
1357
+
1358
+ api_instance = DearInventoryRuby::InventoryApi.new
1359
+ opts = {
1360
+ page: '1', # String | Default is 1
1361
+ limit: '100', # String | Default is 100
1362
+ search: 'search_example', # String | Only return sales with search value contained in one of these fields: OrderNumber, Status, Customer, invoiceNumber, CustomerReference, CreditNoteNumber
1363
+ created_since: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Only return sales created after specified date. Date must follow ISO 8601 format.
1364
+ updated_since: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Only return sales changed after specified date. Date must follow ISO 8601 format.
1365
+ ship_by: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Only return sales with Ship By date on or before specified date, with not authorised Shipment. Date must follow ISO 8601 format.
1366
+ quote_status: 'quote_status_example', # String | Only return sales with specified quote status
1367
+ order_status: 'order_status_example', # String | Only return sales with specified order status
1368
+ combined_pick_status: 'combined_pick_status_example', # String | Only return sales with specified CombinedPickingStatus
1369
+ combined_pack_status: 'combined_pack_status_example', # String | Only return sales with specified CombinedPackingStatus
1370
+ combined_shipping_status: 'combined_shipping_status_example', # String | Only return sales with specified CombinedShippingStatus
1371
+ combined_invoice_status: 'combined_invoice_status_example', # String | Only return sales with specified CombinedInvoiceStatus
1372
+ credit_note_status: 'credit_note_status_example', # String | Only return sales with specified credit note status
1373
+ external_id: 'external_id_example', # String | Only return sales with specified External ID
1374
+ status: 'status_example', # String | Default is nil
1375
+ ready_for_shipping: true, # Boolean | Only return sales with 'Authorised' pack and not 'Authorised' shipping
1376
+ order_location_id: 'order_location_id_example' # String | Only return sales with specified Order Location ID
1377
+ }
1378
+
1379
+ begin
1380
+ #Allows you to retrieve the Sales based on conditions
1381
+ result = api_instance.get_sale_list(opts)
1382
+ p result
1383
+ rescue DearInventoryRuby::ApiError => e
1384
+ puts "Exception when calling InventoryApi->get_sale_list: #{e}"
1385
+ end
1386
+ ```
1387
+
1388
+ ### Parameters
1389
+
1390
+
1391
+ Name | Type | Description | Notes
1392
+ ------------- | ------------- | ------------- | -------------
1393
+ **page** | **String**| Default is 1 | [optional] [default to '1']
1394
+ **limit** | **String**| Default is 100 | [optional] [default to '100']
1395
+ **search** | **String**| Only return sales with search value contained in one of these fields: OrderNumber, Status, Customer, invoiceNumber, CustomerReference, CreditNoteNumber | [optional]
1396
+ **created_since** | **DateTime**| Only return sales created after specified date. Date must follow ISO 8601 format. | [optional]
1397
+ **updated_since** | **DateTime**| Only return sales changed after specified date. Date must follow ISO 8601 format. | [optional]
1398
+ **ship_by** | **DateTime**| Only return sales with Ship By date on or before specified date, with not authorised Shipment. Date must follow ISO 8601 format. | [optional]
1399
+ **quote_status** | **String**| Only return sales with specified quote status | [optional]
1400
+ **order_status** | **String**| Only return sales with specified order status | [optional]
1401
+ **combined_pick_status** | **String**| Only return sales with specified CombinedPickingStatus | [optional]
1402
+ **combined_pack_status** | **String**| Only return sales with specified CombinedPackingStatus | [optional]
1403
+ **combined_shipping_status** | **String**| Only return sales with specified CombinedShippingStatus | [optional]
1404
+ **combined_invoice_status** | **String**| Only return sales with specified CombinedInvoiceStatus | [optional]
1405
+ **credit_note_status** | **String**| Only return sales with specified credit note status | [optional]
1406
+ **external_id** | **String**| Only return sales with specified External ID | [optional]
1407
+ **status** | **String**| Default is nil | [optional]
1408
+ **ready_for_shipping** | **Boolean**| Only return sales with 'Authorised' pack and not 'Authorised' shipping | [optional]
1409
+ **order_location_id** | **String**| Only return sales with specified Order Location ID | [optional]
1410
+
1411
+ ### Return type
1412
+
1413
+ [**SaleList**](SaleList.md)
1414
+
1415
+ ### Authorization
1416
+
1417
+ [accountID](../README.md#accountID), [appKey](../README.md#appKey)
1418
+
1419
+ ### HTTP request headers
1420
+
1421
+ - **Content-Type**: Not defined
1422
+ - **Accept**: application/json
1423
+
1424
+
1267
1425
  ## get_sale_order
1268
1426
 
1269
1427
  > SaleOrder get_sale_order(opts)
data/docs/Sale.md ADDED
@@ -0,0 +1,99 @@
1
+ # DearInventoryRuby::Sale
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | Unique DEAR Sale ID. Required for PUT | [optional]
8
+ **customer** | **String** | Customer name | [optional]
9
+ **customer_id** | **String** | Customer identifier | [optional]
10
+ **contact** | **String** | Customer Contact name | [optional]
11
+ **phone** | **String** | Customer Contact phone | [optional]
12
+ **email** | **String** | Customer Contact email | [optional]
13
+ **default_account** | **String** | Account code used by default for invoice lines when no revenue account is defined on Product. By default it is equal to Customer Sale account | [optional]
14
+ **skip_quote** | **Boolean** | True if there is no quote in the sale | [optional]
15
+ **billing_address** | [**Address**](Address.md) | | [optional]
16
+ **shipping_address** | [**ShippingAddress**](ShippingAddress.md) | | [optional]
17
+ **shipping_notes** | **String** | Shipping Notes | [optional]
18
+ **base_currency** | **String** | 3 character currency code of Base Currency defined in General Settings on the moment when Sale was created. | [optional]
19
+ **customer_currency** | **String** | 3 character currency code of customer Currency defined in Customer card at the moment when customer is selected for the Sale. | [optional]
20
+ **tax_rule** | **String** | Default Tax Rule name selected for Sale | [optional]
21
+ **tax_calculation** | **String** | Inclusive or Exclusive | [optional]
22
+ **terms** | **String** | Payment terms name | [optional]
23
+ **price_tier** | **String** | Price Tier name selected for Sale | [optional]
24
+ **ship_by** | **Date** | Date when shipment is due | [optional]
25
+ **location** | **String** | Default location to pick stock from | [optional]
26
+ **sale_order_date** | **Date** | Date when task was created | [optional]
27
+ **last_modified_on** | **Date** | UTC Time | [optional]
28
+ **note** | **String** | Custom Sale note | [optional]
29
+ **customer_reference** | **String** | Reference number used by customer to identify this sale. Could be a purchase order number generated by customer. | [optional]
30
+ **cogs_amount** | **Float** | COGS amount in base currency | [optional]
31
+ **status** | **String** | Sale Status, see possible values | [optional]
32
+ **combined_picking_status** | **String** | Pick status. Possible Values are VOIDED, NOT AVAILABLE, PICKED, PICKING , NOT PICKED , PARTIALLY PICKED | [optional]
33
+ **combined_packing_status** | **String** | Pack status. Possible Values are VOIDED, NOT AVAILABLE, PACKED, PACKING, NOT PACKED, PARTIALLY PACKED | [optional]
34
+ **combined_shipping_status** | **String** | Ship status. Possible Values are VOIDED, NOT AVAILABLE, SHIPPED, SHIPPING , NOT SHIPPED , PARTIALLY SHIPPED | [optional]
35
+ **ful_filment_status** | **String** | Fulfilment status. Possible Values are FULFILLED, PARTIALLY FULFILLED, NOT AVAILABLE, NOT FULFILLED, VOIDED | [optional]
36
+ **combined_invoice_status** | **String** | Invoice status. Possible Values are INVOICED, INVOICED / CREDITED, NOT AVAILABLE, NOT INVOICED, PARTIALLY INVOICED, PARTIALLY INVOICED / CREDITED | [optional]
37
+ **combined_payment_status** | **String** | Payment status. Possible Values are NOT REFUNDED, PREPAID, PARTIALLY PAID, UNPAID, PAID, VOIDED | [optional]
38
+ **combined_tracking_numbers** | **String** | Tracking Numbers | [optional]
39
+ **carrier** | **String** | Name of Carrier/shipping method | [optional]
40
+ **currency_rate** | **Float** | Conversion Rate expressed as number of Base currency units for one Customer currency unit | [optional]
41
+ **sales_representative** | **String** | Sales representative name | [optional]
42
+ **type** | **String** | Type of sale Simple Sale or Advanced Sale, Service Sale | [optional]
43
+ **source_channel** | **String** | Source of the sale. read-only field | [optional]
44
+ **external_id** | **String** | Custom field that is only available in API and allows to set arbitrary value for the sale for later search and any custom logic | [optional]
45
+ **service_only** | **String** | true when it is service-only sale | [optional]
46
+ **quote** | [**SaleQuote**](SaleQuote.md) | | [optional]
47
+ **order** | [**SaleOrder**](SaleOrder.md) | | [optional]
48
+ **invoices** | [**Array<SaleInvoice>**](SaleInvoice.md) | Sale Invoices | [optional]
49
+
50
+ ## Code Sample
51
+
52
+ ```ruby
53
+ require 'DearInventoryRuby'
54
+
55
+ instance = DearInventoryRuby::Sale.new(id: nil,
56
+ customer: nil,
57
+ customer_id: nil,
58
+ contact: nil,
59
+ phone: nil,
60
+ email: nil,
61
+ default_account: nil,
62
+ skip_quote: nil,
63
+ billing_address: nil,
64
+ shipping_address: nil,
65
+ shipping_notes: nil,
66
+ base_currency: nil,
67
+ customer_currency: nil,
68
+ tax_rule: nil,
69
+ tax_calculation: nil,
70
+ terms: nil,
71
+ price_tier: nil,
72
+ ship_by: nil,
73
+ location: nil,
74
+ sale_order_date: nil,
75
+ last_modified_on: nil,
76
+ note: nil,
77
+ customer_reference: nil,
78
+ cogs_amount: nil,
79
+ status: nil,
80
+ combined_picking_status: nil,
81
+ combined_packing_status: nil,
82
+ combined_shipping_status: nil,
83
+ ful_filment_status: nil,
84
+ combined_invoice_status: nil,
85
+ combined_payment_status: nil,
86
+ combined_tracking_numbers: nil,
87
+ carrier: nil,
88
+ currency_rate: nil,
89
+ sales_representative: nil,
90
+ type: nil,
91
+ source_channel: nil,
92
+ external_id: nil,
93
+ service_only: nil,
94
+ quote: nil,
95
+ order: nil,
96
+ invoices: nil)
97
+ ```
98
+
99
+
data/docs/SaleInvoice.md CHANGED
@@ -5,7 +5,6 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **task_id** | **String** | Identifier of sale Invoice task |
8
- **combine_additional_charges** | **Boolean** | If `true` then `additional charges` lines displayed in `Lines` array | [default to false]
9
8
  **invoice_number** | **String** | Invoice Number (auto-generated) | [optional]
10
9
  **memo** | **String** | Additional information for Invoice. | [optional]
11
10
  **status** | **String** | Invoice status. Possible Values are values. For POST available values are DRAFT, AUTHORISED |
@@ -17,6 +16,11 @@ Name | Type | Description | Notes
17
16
  **linked_fulfillment_number** | **Integer** | Number of Fulfilment linked to this invoice | [optional]
18
17
  **lines** | [**Array<SaleInvoiceLine>**](SaleInvoiceLine.md) | | [optional]
19
18
  **additional_charges** | [**Array<SaleInvoiceAdditionalCharge>**](SaleInvoiceAdditionalCharge.md) | | [optional]
19
+ **payments** | [**Array<SalePaymentLine>**](SalePaymentLine.md) | | [optional]
20
+ **total_before_tax** | **Float** | Decimal with up to 4 decimal places. Sum of Invoice lines and additional charges without taxes. | [optional]
21
+ **tax** | **Float** | Decimal with up to 4 decimal places. Sum of Invoice lines and additional charges taxes. | [optional]
22
+ **total** | **Float** | Decimal with up to 4 decimal places. Sum of Invoice lines and additional charges with taxes. | [optional]
23
+ **paid** | **Float** | Decimal with up to 4 decimal places. Sum of payments. | [optional]
20
24
 
21
25
  ## Code Sample
22
26
 
@@ -24,7 +28,6 @@ Name | Type | Description | Notes
24
28
  require 'DearInventoryRuby'
25
29
 
26
30
  instance = DearInventoryRuby::SaleInvoice.new(task_id: nil,
27
- combine_additional_charges: nil,
28
31
  invoice_number: nil,
29
32
  memo: nil,
30
33
  status: nil,
@@ -35,7 +38,12 @@ instance = DearInventoryRuby::SaleInvoice.new(task_id: nil,
35
38
  billing_address_line2: nil,
36
39
  linked_fulfillment_number: nil,
37
40
  lines: nil,
38
- additional_charges: nil)
41
+ additional_charges: nil,
42
+ payments: nil,
43
+ total_before_tax: nil,
44
+ tax: nil,
45
+ total: nil,
46
+ paid: nil)
39
47
  ```
40
48
 
41
49
 
@@ -0,0 +1,41 @@
1
+ # DearInventoryRuby::SaleInvoicePartial
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **task_id** | **String** | Identifier of sale Invoice task |
8
+ **combine_additional_charges** | **Boolean** | If `true` then `additional charges` lines displayed in `Lines` array | [optional] [default to false]
9
+ **invoice_number** | **String** | Invoice Number (auto-generated) | [optional]
10
+ **memo** | **String** | Additional information for Invoice. | [optional]
11
+ **status** | **String** | Invoice status. Possible Values are values. For POST available values are DRAFT, AUTHORISED |
12
+ **invoice_date** | **String** | Invoice Date. |
13
+ **invoice_due_date** | **String** | Invoice Due Date. |
14
+ **currency_conversion_rate** | **Float** | Decimal with up to 4 decimal places | [optional]
15
+ **billing_address_line1** | **String** | Billing Address Line 1 | [optional]
16
+ **billing_address_line2** | **String** | Billing Address Line 2 | [optional]
17
+ **linked_fulfillment_number** | **Integer** | Number of Fulfilment linked to this invoice | [optional]
18
+ **lines** | [**Array<SaleInvoiceLine>**](SaleInvoiceLine.md) | | [optional]
19
+ **additional_charges** | [**Array<SaleInvoiceAdditionalCharge>**](SaleInvoiceAdditionalCharge.md) | | [optional]
20
+
21
+ ## Code Sample
22
+
23
+ ```ruby
24
+ require 'DearInventoryRuby'
25
+
26
+ instance = DearInventoryRuby::SaleInvoicePartial.new(task_id: nil,
27
+ combine_additional_charges: nil,
28
+ invoice_number: nil,
29
+ memo: nil,
30
+ status: nil,
31
+ invoice_date: nil,
32
+ invoice_due_date: nil,
33
+ currency_conversion_rate: nil,
34
+ billing_address_line1: nil,
35
+ billing_address_line2: nil,
36
+ linked_fulfillment_number: nil,
37
+ lines: nil,
38
+ additional_charges: nil)
39
+ ```
40
+
41
+
data/docs/SaleInvoices.md CHANGED
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **sale_id** | **String** | Unique DEAR Sale ID |
8
- **invoices** | [**Array<SaleInvoice>**](SaleInvoice.md) | Array of Invoices | [optional]
8
+ **invoices** | [**Array<SaleInvoicePartial>**](SaleInvoicePartial.md) | Array of Invoices | [optional]
9
9
 
10
10
  ## Code Sample
11
11
 
data/docs/SaleItem.md ADDED
@@ -0,0 +1,77 @@
1
+ # DearInventoryRuby::SaleItem
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **sale_id** | **String** | Unique DEAR Sale identifier | [optional]
8
+ **order_number** | **String** | Sale Order number generated by DEAR | [optional]
9
+ **status** | **String** | Current sale status. Possible values are values | [optional]
10
+ **order_date** | **Date** | Date when Sale Order was created | [optional]
11
+ **invoice_date** | **Date** | Date when Invoice was issued | [optional]
12
+ **customer** | **String** | Name of the customer | [optional]
13
+ **customer_id** | **String** | Customer Identifier | [optional]
14
+ **invoice_number** | **String** | Invoice number generated by DEAR | [optional]
15
+ **customer_reference** | **String** | Optional Customer Reference (typically customer Purchase order number) supplied by the customer for the sale | [optional]
16
+ **invoice_amount** | **Float** | Total Invoice amount minus total Credit note amount in customer currency | [optional]
17
+ **paid_amount** | **Float** | Total Paid amount minus Refunded amount in customer currency | [optional]
18
+ **invoice_due_date** | **Date** | Date when invoice is due according to selected payment terms | [optional]
19
+ **ship_by** | **Date** | Date when shipment is due | [optional]
20
+ **base_currency** | **String** | 3 digit Base currency code (as configured in General Settings) | [optional]
21
+ **customer_currency** | **String** | 3 digit Customer currency code | [optional]
22
+ **credit_note_number** | **String** | Credit note number generated by DEAR. Is empty unless credit note is created | [optional]
23
+ **updated** | **Date** | Date when the sale was last created/updated last time | [optional]
24
+ **quote_status** | **String** | Sale Quote status. Possible Values are values | [optional]
25
+ **order_status** | **String** | Sale Order status. Possible Values are values | [optional]
26
+ **combined_picking_status** | **String** | Pick status. Possible Values are VOIDED, NOT AVAILABLE, PICKED, PICKING , NOT PICKED , PARTIALLY PICKED | [optional]
27
+ **combined_packing_status** | **String** | Pack status. Possible Values are VOIDED, NOT AVAILABLE, PACKED, PACKING, NOT PACKED, PARTIALLY PACKED | [optional]
28
+ **combined_shipping_status** | **String** | Ship status. Possible Values are VOIDED, NOT AVAILABLE, SHIPPED, SHIPPING , NOT SHIPPED , PARTIALLY SHIPPED | [optional]
29
+ **ful_filment_status** | **String** | Fulfilment status. Possible Values are FULFILLED, PARTIALLY FULFILLED, NOT AVAILABLE, NOT FULFILLED, VOIDED | [optional]
30
+ **combined_invoice_status** | **String** | Invoice status. Possible Values are VOIDED, DRAFT, AUTHORISED, NOT AVAILABLE, PAID | [optional]
31
+ **credit_note_status** | **String** | Credit Note status. Possible Values are VOIDED, DRAFT, AUTHORISED, NOT AVAILABLE | [optional]
32
+ **combined_payment_status** | **String** | Payment status. Possible Values are NOT REFUNDED, PREPAID, PARTIALLY PAID, UNPAID, PAID, VOIDED | [optional]
33
+ **type** | **String** | Type of Sale. Possible Values are Simple Sale, Advanced Sale , Service Sale | [optional]
34
+ **combined_tracking_numbers** | **String** | Tracking Numbers | [optional]
35
+ **source_channel** | **String** | Source of the sale. read-only field | [optional]
36
+ **external_id** | **String** | Custom field that is only available in API and allows to set arbitrary value for the sale for later search and any custom logic | [optional]
37
+ **order_location_id** | **String** | Sale Order Location ID | [optional]
38
+
39
+ ## Code Sample
40
+
41
+ ```ruby
42
+ require 'DearInventoryRuby'
43
+
44
+ instance = DearInventoryRuby::SaleItem.new(sale_id: nil,
45
+ order_number: nil,
46
+ status: nil,
47
+ order_date: nil,
48
+ invoice_date: nil,
49
+ customer: nil,
50
+ customer_id: nil,
51
+ invoice_number: nil,
52
+ customer_reference: nil,
53
+ invoice_amount: nil,
54
+ paid_amount: nil,
55
+ invoice_due_date: nil,
56
+ ship_by: nil,
57
+ base_currency: nil,
58
+ customer_currency: nil,
59
+ credit_note_number: nil,
60
+ updated: nil,
61
+ quote_status: nil,
62
+ order_status: nil,
63
+ combined_picking_status: nil,
64
+ combined_packing_status: nil,
65
+ combined_shipping_status: nil,
66
+ ful_filment_status: nil,
67
+ combined_invoice_status: nil,
68
+ credit_note_status: nil,
69
+ combined_payment_status: nil,
70
+ type: nil,
71
+ combined_tracking_numbers: nil,
72
+ source_channel: nil,
73
+ external_id: nil,
74
+ order_location_id: nil)
75
+ ```
76
+
77
+
data/docs/SaleList.md ADDED
@@ -0,0 +1,21 @@
1
+ # DearInventoryRuby::SaleList
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **total** | **Float** | Total | [optional]
8
+ **page** | **Float** | Page | [optional]
9
+ **sale_list** | [**Array<SaleItem>**](SaleItem.md) | Array of SaleItem | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'DearInventoryRuby'
15
+
16
+ instance = DearInventoryRuby::SaleList.new(total: nil,
17
+ page: nil,
18
+ sale_list: nil)
19
+ ```
20
+
21
+
@@ -0,0 +1,29 @@
1
+ # DearInventoryRuby::SalePaymentLine
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | Identifier of payment. | [optional]
8
+ **reference** | **String** | Payment reference number. | [optional]
9
+ **amount** | **Float** | Decimal with up to 2 decimal places. Payment amount in customer currency. | [optional]
10
+ **date_paid** | **Date** | Date when payment has been made. | [optional]
11
+ **account** | **String** | Account Code of the bank/payment account from Chart of accounts. | [optional]
12
+ **currency_rate** | **Float** | Decimal with up to 4 decimal places. Currency Conversion rate expressed as number of Base currency units for one Customer currency unit. | [optional]
13
+ **date_created** | **Date** | Date of creation payment record. | [optional]
14
+
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'DearInventoryRuby'
19
+
20
+ instance = DearInventoryRuby::SalePaymentLine.new(id: nil,
21
+ reference: nil,
22
+ amount: nil,
23
+ date_paid: nil,
24
+ account: nil,
25
+ currency_rate: nil,
26
+ date_created: nil)
27
+ ```
28
+
29
+