dear-inventory-ruby 0.2.2 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9154483cff09f52ccea1190aad3f720ecb126ebb9432e5ac24245da56070d4b4
4
- data.tar.gz: 00b191ff3026645a0891f3c6e00bcd2bdfe8224a806962186b6f04fe0da91422
3
+ metadata.gz: 51c48b4739e560045deac028714486d1db23d4f3424c59798638e8f0f935e425
4
+ data.tar.gz: 4cd9898b7d3202d14cc6488eb3cf7be1c09d6965a5f49d5ceac56172c4477ee5
5
5
  SHA512:
6
- metadata.gz: 4b7cbcadbbc3fc0c3965621b0ec03db7b2a737986cbb5b64149ff97b5b45fc06c5303d43b3f769609ace79e913b600d3a6d5ef346598703dfcbfe36202b55eff
7
- data.tar.gz: 115a13db7743709a4756a97444a832e62ee37863b4f87c9507fe806548b9789dde4d3ffa829b3324fb669dbf8b54afa3e7046bd1968aad6c27c02c7f4810eddc
6
+ metadata.gz: f288879bd2f68534b6fe69afeafd8c8884ff9f4bcef34723147bfdf92541663bf6c788cfdde49558053bf8affa7faa0b697f9cd463324552e182a927b7d19175
7
+ data.tar.gz: ec3eee176bc1a6b496e05cdcfc84c658f43ae7070b236f91a20c2fd48b058486b4b10a77d5cdda8d6d0feefb76a8c74d39319790b77843e1cf91058d28325b36
data/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.2.5] - 2022-05-26
6
+
7
+ - Add the new endpoint GET `/saleList`
8
+
9
+ ## [0.2.4] - 2022-04-12
10
+
11
+ - Add the new endpoint GET `/sale`
12
+
13
+ ## [0.2.3] - 2021-10-15
14
+
15
+ - Update `POST` response of the endpoint `/webhooks`
16
+ - Add some enums `AuthorizationType`, `WebhookType`
17
+
18
+ ## [0.2.2] - 2021-10-15
19
+
20
+ - Update `POST` of the endpoint `/webhooks`
21
+
5
22
  ## [0.2.1] - 2021-10-15
6
23
 
7
24
  - Update param `TaskID` for `DELETE` of the endpoint `/sale/invoice`
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.2
10
+ - Package version: 0.2.5
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.2.gem
27
+ gem install ./dear-inventory-ruby-0.2.5.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./dear-inventory-ruby-0.2.2.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./dear-inventory-ruby-0.2.5.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.2'
36
+ gem 'dear-inventory-ruby', '~> 0.2.5'
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
@@ -130,6 +132,7 @@ Class | Method | HTTP request | Description
130
132
  - [DearInventoryRuby::Account](docs/Account.md)
131
133
  - [DearInventoryRuby::Accounts](docs/Accounts.md)
132
134
  - [DearInventoryRuby::Address](docs/Address.md)
135
+ - [DearInventoryRuby::AuthorizationType](docs/AuthorizationType.md)
133
136
  - [DearInventoryRuby::Contact](docs/Contact.md)
134
137
  - [DearInventoryRuby::Customer](docs/Customer.md)
135
138
  - [DearInventoryRuby::Customers](docs/Customers.md)
@@ -140,6 +143,7 @@ Class | Method | HTTP request | Description
140
143
  - [DearInventoryRuby::PaymentTerms](docs/PaymentTerms.md)
141
144
  - [DearInventoryRuby::PriceTier](docs/PriceTier.md)
142
145
  - [DearInventoryRuby::PriceTiers](docs/PriceTiers.md)
146
+ - [DearInventoryRuby::Sale](docs/Sale.md)
143
147
  - [DearInventoryRuby::SaleAdditionalCharge](docs/SaleAdditionalCharge.md)
144
148
  - [DearInventoryRuby::SaleInvoice](docs/SaleInvoice.md)
145
149
  - [DearInventoryRuby::SaleInvoiceAdditionalCharge](docs/SaleInvoiceAdditionalCharge.md)
@@ -147,6 +151,8 @@ Class | Method | HTTP request | Description
147
151
  - [DearInventoryRuby::SaleInvoiceLine](docs/SaleInvoiceLine.md)
148
152
  - [DearInventoryRuby::SaleInvoicePost](docs/SaleInvoicePost.md)
149
153
  - [DearInventoryRuby::SaleInvoices](docs/SaleInvoices.md)
154
+ - [DearInventoryRuby::SaleItem](docs/SaleItem.md)
155
+ - [DearInventoryRuby::SaleList](docs/SaleList.md)
150
156
  - [DearInventoryRuby::SaleOrder](docs/SaleOrder.md)
151
157
  - [DearInventoryRuby::SaleOrderLine](docs/SaleOrderLine.md)
152
158
  - [DearInventoryRuby::SalePayment](docs/SalePayment.md)
@@ -159,6 +165,7 @@ Class | Method | HTTP request | Description
159
165
  - [DearInventoryRuby::TaxComponent](docs/TaxComponent.md)
160
166
  - [DearInventoryRuby::Taxes](docs/Taxes.md)
161
167
  - [DearInventoryRuby::Webhook](docs/Webhook.md)
168
+ - [DearInventoryRuby::WebhookType](docs/WebhookType.md)
162
169
  - [DearInventoryRuby::Webhooks](docs/Webhooks.md)
163
170
 
164
171
 
@@ -0,0 +1,16 @@
1
+ # DearInventoryRuby::AuthorizationType
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'DearInventoryRuby'
12
+
13
+ instance = DearInventoryRuby::AuthorizationType.new()
14
+ ```
15
+
16
+
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
@@ -528,7 +530,7 @@ Name | Type | Description | Notes
528
530
 
529
531
  ## create_webhook
530
532
 
531
- > Webhooks create_webhook(webhook, opts)
533
+ > Webhook create_webhook(webhook, opts)
532
534
 
533
535
  Allows you to create a Webhook
534
536
 
@@ -575,7 +577,7 @@ Name | Type | Description | Notes
575
577
 
576
578
  ### Return type
577
579
 
578
- [**Webhooks**](Webhooks.md)
580
+ [**Webhook**](Webhook.md)
579
581
 
580
582
  ### Authorization
581
583
 
@@ -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)
@@ -1882,7 +2040,7 @@ Name | Type | Description | Notes
1882
2040
 
1883
2041
  ## update_webhook
1884
2042
 
1885
- > Webhooks update_webhook(webhook, opts)
2043
+ > Webhook update_webhook(webhook, opts)
1886
2044
 
1887
2045
  Allows you to update a webhook
1888
2046
 
@@ -1905,7 +2063,7 @@ DearInventoryRuby.configure do |config|
1905
2063
  end
1906
2064
 
1907
2065
  api_instance = DearInventoryRuby::InventoryApi.new
1908
- webhook = { "ID": "1cf8cb83-bf39-494b-87f9-1252b684d6d5", "Type": "Sale/OrderAuthorised", "Name": "Sale order has been authorised", "IsActive": true, "ExternalURL": "https://hookb.in/Zn8950P7", "ExternalAuthorizationType": "basicauth", "ExternalUserName": "Hello", "ExternalPassword": "123", "ExternalBearerToken": null, "ExternalHeaders": [ { "Key": "Key", "Value": "123" }, { "Key": "6", "Value": "0" }, { "Key": "New Key", "Value": "New Value" } ] } # Webhook | a webhook object with properties to update
2066
+ webhook = { "ID": "1cf8cb83-bf39-494b-87f9-1252b684d6d5", "Type": "Sale/OrderAuthorised", "Name": "Sale order has been authorised", "IsActive": true, "ExternalURL": "https://hookb.in/Zn8950P7", "ExternalAuthorizationType": "basicauth", "ExternalUserName": "Hello", "ExternalPassword": "123", "ExternalBearerToken": nil, "ExternalHeaders": [ { "Key": "Key", "Value": "123" }, { "Key": "6", "Value": "0" }, { "Key": "New Key", "Value": "New Value" } ] } # Webhook | a webhook object with properties to update
1909
2067
  opts = {
1910
2068
  summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors
1911
2069
  }
@@ -1929,7 +2087,7 @@ Name | Type | Description | Notes
1929
2087
 
1930
2088
  ### Return type
1931
2089
 
1932
- [**Webhooks**](Webhooks.md)
2090
+ [**Webhook**](Webhook.md)
1933
2091
 
1934
2092
  ### Authorization
1935
2093
 
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/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,16 @@
1
+ # DearInventoryRuby::WebhookType
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'DearInventoryRuby'
12
+
13
+ instance = DearInventoryRuby::WebhookType.new()
14
+ ```
15
+
16
+