dear-inventory-ruby 0.2.10.1 → 0.2.12

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.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/README.md +14 -4
  4. data/docs/Account.md +15 -15
  5. data/docs/Accounts.md +3 -3
  6. data/docs/Address.md +8 -8
  7. data/docs/AttachmentLine.md +5 -5
  8. data/docs/Bin.md +19 -0
  9. data/docs/Carrier.md +19 -0
  10. data/docs/Carriers.md +21 -0
  11. data/docs/Contact.md +9 -9
  12. data/docs/Customer.md +31 -31
  13. data/docs/Customers.md +3 -3
  14. data/docs/Error.md +2 -2
  15. data/docs/ExternalHeader.md +2 -2
  16. data/docs/InventoryApi.md +252 -64
  17. data/docs/Location.md +51 -0
  18. data/docs/Locations.md +21 -0
  19. data/docs/Me.md +7 -7
  20. data/docs/MeContact.md +33 -0
  21. data/docs/MeContacts.md +21 -0
  22. data/docs/PaymentTerm.md +4 -4
  23. data/docs/PaymentTerms.md +3 -3
  24. data/docs/PriceTier.md +2 -2
  25. data/docs/PriceTiers.md +1 -1
  26. data/docs/Sale.md +43 -43
  27. data/docs/SaleAdditionalCharge.md +8 -8
  28. data/docs/SaleInvoice.md +17 -17
  29. data/docs/SaleInvoiceAdditionalCharge.md +9 -9
  30. data/docs/SaleInvoiceDelete.md +1 -1
  31. data/docs/SaleInvoiceLine.md +12 -12
  32. data/docs/SaleInvoicePartial.md +12 -12
  33. data/docs/SaleInvoicePost.md +12 -12
  34. data/docs/SaleInvoices.md +2 -2
  35. data/docs/SaleItem.md +31 -31
  36. data/docs/SaleList.md +3 -3
  37. data/docs/SaleOrder.md +9 -9
  38. data/docs/SaleOrderLine.md +13 -13
  39. data/docs/SalePayment.md +14 -14
  40. data/docs/SalePaymentLine.md +7 -7
  41. data/docs/SaleQuote.md +8 -8
  42. data/docs/SaleQuoteLine.md +11 -11
  43. data/docs/ShippingAddress.md +11 -11
  44. data/docs/Success.md +1 -1
  45. data/docs/SupplierCustomerAddress.md +9 -9
  46. data/docs/Tax.md +5 -5
  47. data/docs/TaxComponent.md +3 -3
  48. data/docs/Taxes.md +3 -3
  49. data/docs/Webhook.md +10 -10
  50. data/docs/Webhooks.md +1 -1
  51. data/lib/dear-inventory-ruby/api/inventory_api.rb +193 -4
  52. data/lib/dear-inventory-ruby/models/bin.rb +217 -0
  53. data/lib/dear-inventory-ruby/models/carrier.rb +217 -0
  54. data/lib/dear-inventory-ruby/models/carriers.rb +229 -0
  55. data/lib/dear-inventory-ruby/models/location.rb +391 -0
  56. data/lib/dear-inventory-ruby/models/locations.rb +229 -0
  57. data/lib/dear-inventory-ruby/models/me_contact.rb +289 -0
  58. data/lib/dear-inventory-ruby/models/me_contacts.rb +229 -0
  59. data/lib/dear-inventory-ruby/models/supplier_customer_address.rb +7 -7
  60. data/lib/dear-inventory-ruby/version.rb +1 -1
  61. data/lib/dear-inventory-ruby.rb +7 -0
  62. data/spec/.DS_Store +0 -0
  63. data/spec/api/inventory_api_spec.rb +41 -2
  64. data/spec/models/bin_spec.rb +47 -0
  65. data/spec/models/carrier_spec.rb +47 -0
  66. data/spec/models/carriers_spec.rb +53 -0
  67. data/spec/models/location_spec.rb +143 -0
  68. data/spec/models/locations_spec.rb +53 -0
  69. data/spec/models/me_contact_spec.rb +89 -0
  70. data/spec/models/me_contacts_spec.rb +53 -0
  71. data/spec/models/supplier_customer_address_spec.rb +1 -1
  72. metadata +31 -7
data/docs/InventoryApi.md CHANGED
@@ -19,8 +19,11 @@ Method | HTTP request | Description
19
19
  [**delete_sale_payment**](InventoryApi.md#delete_sale_payment) | **DELETE** /sale/payment | Allows you to delete a sale payment
20
20
  [**delete_webhook**](InventoryApi.md#delete_webhook) | **DELETE** /webhooks | Allows you to delete a webhook
21
21
  [**get_accounts**](InventoryApi.md#get_accounts) | **GET** /ref/account | Allows you to retrieve the Chart of Accounts
22
+ [**get_carriers**](InventoryApi.md#get_carriers) | **GET** /ref/carrier | Allows you to retrieve the carriers
22
23
  [**get_customers**](InventoryApi.md#get_customers) | **GET** /customer | Allows you to retrieve the customers
24
+ [**get_locations**](InventoryApi.md#get_locations) | **GET** /ref/location | Allows you to retrieve the locations
23
25
  [**get_me**](InventoryApi.md#get_me) | **GET** /me | Allows you to retrieve your information
26
+ [**get_me_contacts**](InventoryApi.md#get_me_contacts) | **GET** /me/contacts | Allows you to retrieve the me contacts (Sales Representatives)
24
27
  [**get_payment_terms**](InventoryApi.md#get_payment_terms) | **GET** /ref/paymentterm | Allows you to retrieve the payment terms
25
28
  [**get_price_tiers**](InventoryApi.md#get_price_tiers) | **GET** /ref/priceTier | Allows you to retrieve the Price Tiers
26
29
  [**get_sale**](InventoryApi.md#get_sale) | **GET** /sale | Allows you to retrieve the Sale
@@ -84,7 +87,7 @@ end
84
87
 
85
88
  Name | Type | Description | Notes
86
89
  ------------- | ------------- | ------------- | -------------
87
- **account** | [**Account**](Account.md)| an Account object with properties to create |
90
+ **account** | [**Account**](Account.md)| an Account object with properties to create |
88
91
  **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
89
92
 
90
93
  ### Return type
@@ -145,7 +148,7 @@ end
145
148
 
146
149
  Name | Type | Description | Notes
147
150
  ------------- | ------------- | ------------- | -------------
148
- **customer** | [**Customer**](Customer.md)| a customer object with properties to create |
151
+ **customer** | [**Customer**](Customer.md)| a customer object with properties to create |
149
152
  **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
150
153
 
151
154
  ### Return type
@@ -206,7 +209,7 @@ end
206
209
 
207
210
  Name | Type | Description | Notes
208
211
  ------------- | ------------- | ------------- | -------------
209
- **payment_term** | [**PaymentTerm**](PaymentTerm.md)| a payment term object with properties to create |
212
+ **payment_term** | [**PaymentTerm**](PaymentTerm.md)| a payment term object with properties to create |
210
213
  **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
211
214
 
212
215
  ### Return type
@@ -267,7 +270,7 @@ end
267
270
 
268
271
  Name | Type | Description | Notes
269
272
  ------------- | ------------- | ------------- | -------------
270
- **sale_invoice_post** | [**SaleInvoicePost**](SaleInvoicePost.md)| a Sale Invoice object with properties to create |
273
+ **sale_invoice_post** | [**SaleInvoicePost**](SaleInvoicePost.md)| a Sale Invoice object with properties to create |
271
274
  **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
272
275
 
273
276
  ### Return type
@@ -328,7 +331,7 @@ end
328
331
 
329
332
  Name | Type | Description | Notes
330
333
  ------------- | ------------- | ------------- | -------------
331
- **sale_order** | [**SaleOrder**](SaleOrder.md)| a Sale Order object with properties to create |
334
+ **sale_order** | [**SaleOrder**](SaleOrder.md)| a Sale Order object with properties to create |
332
335
  **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
333
336
 
334
337
  ### Return type
@@ -389,7 +392,7 @@ end
389
392
 
390
393
  Name | Type | Description | Notes
391
394
  ------------- | ------------- | ------------- | -------------
392
- **sale_payment** | [**SalePayment**](SalePayment.md)| a Sale Payment object with properties to create |
395
+ **sale_payment** | [**SalePayment**](SalePayment.md)| a Sale Payment object with properties to create |
393
396
  **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
394
397
 
395
398
  ### Return type
@@ -450,7 +453,7 @@ end
450
453
 
451
454
  Name | Type | Description | Notes
452
455
  ------------- | ------------- | ------------- | -------------
453
- **sale_quote** | [**SaleQuote**](SaleQuote.md)| a Sale Quote object with properties to create |
456
+ **sale_quote** | [**SaleQuote**](SaleQuote.md)| a Sale Quote object with properties to create |
454
457
  **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
455
458
 
456
459
  ### Return type
@@ -511,7 +514,7 @@ end
511
514
 
512
515
  Name | Type | Description | Notes
513
516
  ------------- | ------------- | ------------- | -------------
514
- **tax** | [**Tax**](Tax.md)| a tax object with properties to create |
517
+ **tax** | [**Tax**](Tax.md)| a tax object with properties to create |
515
518
  **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
516
519
 
517
520
  ### Return type
@@ -572,7 +575,7 @@ end
572
575
 
573
576
  Name | Type | Description | Notes
574
577
  ------------- | ------------- | ------------- | -------------
575
- **webhook** | [**Webhook**](Webhook.md)| a webhook object with properties to create |
578
+ **webhook** | [**Webhook**](Webhook.md)| a webhook object with properties to create |
576
579
  **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
577
580
 
578
581
  ### Return type
@@ -632,7 +635,7 @@ end
632
635
 
633
636
  Name | Type | Description | Notes
634
637
  ------------- | ------------- | ------------- | -------------
635
- **code** | **String**| Default is nil | [optional]
638
+ **code** | **String**| Default is nil | [optional]
636
639
 
637
640
  ### Return type
638
641
 
@@ -691,7 +694,7 @@ end
691
694
 
692
695
  Name | Type | Description | Notes
693
696
  ------------- | ------------- | ------------- | -------------
694
- **id** | **String**| Default is nil | [optional]
697
+ **id** | **String**| Default is nil | [optional]
695
698
 
696
699
  ### Return type
697
700
 
@@ -751,7 +754,7 @@ end
751
754
 
752
755
  Name | Type | Description | Notes
753
756
  ------------- | ------------- | ------------- | -------------
754
- **task_id** | **String**| ID of Sale task to Void or Undo | [optional]
757
+ **task_id** | **String**| ID of Sale task to Void or Undo | [optional]
755
758
  **void** | **Boolean**| Default is false | [optional] [default to false]
756
759
 
757
760
  ### Return type
@@ -811,7 +814,7 @@ end
811
814
 
812
815
  Name | Type | Description | Notes
813
816
  ------------- | ------------- | ------------- | -------------
814
- **id** | **String**| Default is nil | [optional]
817
+ **id** | **String**| Default is nil | [optional]
815
818
 
816
819
  ### Return type
817
820
 
@@ -870,7 +873,7 @@ end
870
873
 
871
874
  Name | Type | Description | Notes
872
875
  ------------- | ------------- | ------------- | -------------
873
- **id** | **String**| Default is nil | [optional]
876
+ **id** | **String**| Default is nil | [optional]
874
877
 
875
878
  ### Return type
876
879
 
@@ -937,11 +940,11 @@ Name | Type | Description | Notes
937
940
  ------------- | ------------- | ------------- | -------------
938
941
  **page** | **String**| Default is 1 | [optional] [default to '1']
939
942
  **limit** | **String**| Default is 100 | [optional] [default to '100']
940
- **code** | **String**| Default is nil | [optional]
941
- **name** | **String**| Default is nil | [optional]
942
- **_class** | **String**| Default is nil | [optional]
943
- **type** | **String**| Default is nil | [optional]
944
- **status** | **String**| Default is nil | [optional]
943
+ **code** | **String**| Default is nil | [optional]
944
+ **name** | **String**| Default is nil | [optional]
945
+ **_class** | **String**| Default is nil | [optional]
946
+ **type** | **String**| Default is nil | [optional]
947
+ **status** | **String**| Default is nil | [optional]
945
948
 
946
949
  ### Return type
947
950
 
@@ -957,6 +960,71 @@ Name | Type | Description | Notes
957
960
  - **Accept**: application/json
958
961
 
959
962
 
963
+ ## get_carriers
964
+
965
+ > Carriers get_carriers(opts)
966
+
967
+ Allows you to retrieve the carriers
968
+
969
+ ### Example
970
+
971
+ ```ruby
972
+ # load the gem
973
+ require 'dear-inventory-ruby'
974
+ # setup authorization
975
+ DearInventoryRuby.configure do |config|
976
+ # Configure API key authorization: accountID
977
+ config.api_key['api-auth-accountid'] = 'YOUR API KEY'
978
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
979
+ #config.api_key_prefix['api-auth-accountid'] = 'Bearer'
980
+
981
+ # Configure API key authorization: appKey
982
+ config.api_key['api-auth-applicationkey'] = 'YOUR API KEY'
983
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
984
+ #config.api_key_prefix['api-auth-applicationkey'] = 'Bearer'
985
+ end
986
+
987
+ api_instance = DearInventoryRuby::InventoryApi.new
988
+ opts = {
989
+ page: '1', # String | Default is 1
990
+ limit: '100', # String | Default is 100
991
+ carrier_id: 'carrier_id_example', # String | Only return Carrier with the specific CarrierID
992
+ description: 'description_example' # String | Only return Carriers that start with the specific Description
993
+ }
994
+
995
+ begin
996
+ #Allows you to retrieve the carriers
997
+ result = api_instance.get_carriers(opts)
998
+ p result
999
+ rescue DearInventoryRuby::ApiError => e
1000
+ puts "Exception when calling InventoryApi->get_carriers: #{e}"
1001
+ end
1002
+ ```
1003
+
1004
+ ### Parameters
1005
+
1006
+
1007
+ Name | Type | Description | Notes
1008
+ ------------- | ------------- | ------------- | -------------
1009
+ **page** | **String**| Default is 1 | [optional] [default to '1']
1010
+ **limit** | **String**| Default is 100 | [optional] [default to '100']
1011
+ **carrier_id** | **String**| Only return Carrier with the specific CarrierID | [optional]
1012
+ **description** | **String**| Only return Carriers that start with the specific Description | [optional]
1013
+
1014
+ ### Return type
1015
+
1016
+ [**Carriers**](Carriers.md)
1017
+
1018
+ ### Authorization
1019
+
1020
+ [accountID](../README.md#accountID), [appKey](../README.md#appKey)
1021
+
1022
+ ### HTTP request headers
1023
+
1024
+ - **Content-Type**: Not defined
1025
+ - **Accept**: application/json
1026
+
1027
+
960
1028
  ## get_customers
961
1029
 
962
1030
  > Customers get_customers(opts)
@@ -989,8 +1057,8 @@ opts = {
989
1057
  name: 'name_example', # String | Default is nil
990
1058
  contact_filter: 'contact_filter_example', # String | Default is nil
991
1059
  modified_since: 'modified_since_example', # String | Default is nil
992
- include_deprecated: 'false', # String | Default is false
993
- include_product_prices: 'false' # String | Default is false
1060
+ include_deprecated: false, # Boolean | Default is false
1061
+ include_product_prices: false # Boolean | Default is false
994
1062
  }
995
1063
 
996
1064
  begin
@@ -1009,12 +1077,12 @@ Name | Type | Description | Notes
1009
1077
  ------------- | ------------- | ------------- | -------------
1010
1078
  **page** | **String**| Default is 1 | [optional] [default to '1']
1011
1079
  **limit** | **String**| Default is 100 | [optional] [default to '100']
1012
- **id** | **String**| Default is nil | [optional]
1013
- **name** | **String**| Default is nil | [optional]
1014
- **contact_filter** | **String**| Default is nil | [optional]
1015
- **modified_since** | **String**| Default is nil | [optional]
1016
- **include_deprecated** | **String**| Default is false | [optional] [default to 'false']
1017
- **include_product_prices** | **String**| Default is false | [optional] [default to 'false']
1080
+ **id** | **String**| Default is nil | [optional]
1081
+ **name** | **String**| Default is nil | [optional]
1082
+ **contact_filter** | **String**| Default is nil | [optional]
1083
+ **modified_since** | **String**| Default is nil | [optional]
1084
+ **include_deprecated** | **Boolean**| Default is false | [optional] [default to false]
1085
+ **include_product_prices** | **Boolean**| Default is false | [optional] [default to false]
1018
1086
 
1019
1087
  ### Return type
1020
1088
 
@@ -1030,6 +1098,73 @@ Name | Type | Description | Notes
1030
1098
  - **Accept**: application/json
1031
1099
 
1032
1100
 
1101
+ ## get_locations
1102
+
1103
+ > Locations get_locations(opts)
1104
+
1105
+ Allows you to retrieve the locations
1106
+
1107
+ ### Example
1108
+
1109
+ ```ruby
1110
+ # load the gem
1111
+ require 'dear-inventory-ruby'
1112
+ # setup authorization
1113
+ DearInventoryRuby.configure do |config|
1114
+ # Configure API key authorization: accountID
1115
+ config.api_key['api-auth-accountid'] = 'YOUR API KEY'
1116
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1117
+ #config.api_key_prefix['api-auth-accountid'] = 'Bearer'
1118
+
1119
+ # Configure API key authorization: appKey
1120
+ config.api_key['api-auth-applicationkey'] = 'YOUR API KEY'
1121
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1122
+ #config.api_key_prefix['api-auth-applicationkey'] = 'Bearer'
1123
+ end
1124
+
1125
+ api_instance = DearInventoryRuby::InventoryApi.new
1126
+ opts = {
1127
+ page: '1', # String | Default is 1
1128
+ limit: '100', # String | Default is 100
1129
+ id: 'id_example', # String | Default is nil
1130
+ deprecated: false, # Boolean | Default is false
1131
+ name: 'name_example' # String | Default is nil
1132
+ }
1133
+
1134
+ begin
1135
+ #Allows you to retrieve the locations
1136
+ result = api_instance.get_locations(opts)
1137
+ p result
1138
+ rescue DearInventoryRuby::ApiError => e
1139
+ puts "Exception when calling InventoryApi->get_locations: #{e}"
1140
+ end
1141
+ ```
1142
+
1143
+ ### Parameters
1144
+
1145
+
1146
+ Name | Type | Description | Notes
1147
+ ------------- | ------------- | ------------- | -------------
1148
+ **page** | **String**| Default is 1 | [optional] [default to '1']
1149
+ **limit** | **String**| Default is 100 | [optional] [default to '100']
1150
+ **id** | **String**| Default is nil | [optional]
1151
+ **deprecated** | **Boolean**| Default is false | [optional] [default to false]
1152
+ **name** | **String**| Default is nil | [optional]
1153
+
1154
+ ### Return type
1155
+
1156
+ [**Locations**](Locations.md)
1157
+
1158
+ ### Authorization
1159
+
1160
+ [accountID](../README.md#accountID), [appKey](../README.md#appKey)
1161
+
1162
+ ### HTTP request headers
1163
+
1164
+ - **Content-Type**: Not defined
1165
+ - **Accept**: application/json
1166
+
1167
+
1033
1168
  ## get_me
1034
1169
 
1035
1170
  > Me get_me
@@ -1083,6 +1218,59 @@ This endpoint does not need any parameter.
1083
1218
  - **Accept**: application/json
1084
1219
 
1085
1220
 
1221
+ ## get_me_contacts
1222
+
1223
+ > MeContacts get_me_contacts
1224
+
1225
+ Allows you to retrieve the me contacts (Sales Representatives)
1226
+
1227
+ ### Example
1228
+
1229
+ ```ruby
1230
+ # load the gem
1231
+ require 'dear-inventory-ruby'
1232
+ # setup authorization
1233
+ DearInventoryRuby.configure do |config|
1234
+ # Configure API key authorization: accountID
1235
+ config.api_key['api-auth-accountid'] = 'YOUR API KEY'
1236
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1237
+ #config.api_key_prefix['api-auth-accountid'] = 'Bearer'
1238
+
1239
+ # Configure API key authorization: appKey
1240
+ config.api_key['api-auth-applicationkey'] = 'YOUR API KEY'
1241
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1242
+ #config.api_key_prefix['api-auth-applicationkey'] = 'Bearer'
1243
+ end
1244
+
1245
+ api_instance = DearInventoryRuby::InventoryApi.new
1246
+
1247
+ begin
1248
+ #Allows you to retrieve the me contacts (Sales Representatives)
1249
+ result = api_instance.get_me_contacts
1250
+ p result
1251
+ rescue DearInventoryRuby::ApiError => e
1252
+ puts "Exception when calling InventoryApi->get_me_contacts: #{e}"
1253
+ end
1254
+ ```
1255
+
1256
+ ### Parameters
1257
+
1258
+ This endpoint does not need any parameter.
1259
+
1260
+ ### Return type
1261
+
1262
+ [**MeContacts**](MeContacts.md)
1263
+
1264
+ ### Authorization
1265
+
1266
+ [accountID](../README.md#accountID), [appKey](../README.md#appKey)
1267
+
1268
+ ### HTTP request headers
1269
+
1270
+ - **Content-Type**: Not defined
1271
+ - **Accept**: application/json
1272
+
1273
+
1086
1274
  ## get_payment_terms
1087
1275
 
1088
1276
  > PaymentTerms get_payment_terms(opts)
@@ -1134,11 +1322,11 @@ Name | Type | Description | Notes
1134
1322
  ------------- | ------------- | ------------- | -------------
1135
1323
  **page** | **String**| Default is 1 | [optional] [default to '1']
1136
1324
  **limit** | **String**| Default is 100 | [optional] [default to '100']
1137
- **id** | **String**| Default is nil | [optional]
1138
- **name** | **String**| Default is nil | [optional]
1139
- **method** | **String**| Default is nil | [optional]
1140
- **is_active** | **Boolean**| Default is nil | [optional]
1141
- **is_default** | **Boolean**| Default is nil | [optional]
1325
+ **id** | **String**| Default is nil | [optional]
1326
+ **name** | **String**| Default is nil | [optional]
1327
+ **method** | **String**| Default is nil | [optional]
1328
+ **is_active** | **Boolean**| Default is nil | [optional]
1329
+ **is_default** | **Boolean**| Default is nil | [optional]
1142
1330
 
1143
1331
  ### Return type
1144
1332
 
@@ -1253,7 +1441,7 @@ end
1253
1441
 
1254
1442
  Name | Type | Description | Notes
1255
1443
  ------------- | ------------- | ------------- | -------------
1256
- **id** | **String**| Default is nil | [optional]
1444
+ **id** | **String**| Default is nil | [optional]
1257
1445
  **combine_additional_charges** | **Boolean**| Show additional charges in 'Lines' array | [optional] [default to false]
1258
1446
  **hide_inventory_movements** | **Boolean**| Hide inventory movements (Default = false) | [optional] [default to false]
1259
1447
  **include_transactions** | **Boolean**| Show related transactions (Default = false) | [optional] [default to false]
@@ -1317,7 +1505,7 @@ end
1317
1505
 
1318
1506
  Name | Type | Description | Notes
1319
1507
  ------------- | ------------- | ------------- | -------------
1320
- **sale_id** | **String**| Unique DEAR Sale ID | [optional]
1508
+ **sale_id** | **String**| Unique DEAR Sale ID | [optional]
1321
1509
  **combine_additional_charges** | **Boolean**| Show additional charges in 'Lines' array | [optional] [default to false]
1322
1510
  **include_product_info** | **Boolean**| Show all used products in additional array | [optional] [default to false]
1323
1511
 
@@ -1396,21 +1584,21 @@ Name | Type | Description | Notes
1396
1584
  ------------- | ------------- | ------------- | -------------
1397
1585
  **page** | **String**| Default is 1 | [optional] [default to '1']
1398
1586
  **limit** | **String**| Default is 100 | [optional] [default to '100']
1399
- **search** | **String**| Only return sales with search value contained in one of these fields: OrderNumber, Status, Customer, invoiceNumber, CustomerReference, CreditNoteNumber | [optional]
1400
- **created_since** | **DateTime**| Only return sales created after specified date. Date must follow ISO 8601 format. | [optional]
1401
- **updated_since** | **DateTime**| Only return sales changed after specified date. Date must follow ISO 8601 format. | [optional]
1402
- **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]
1403
- **quote_status** | **String**| Only return sales with specified quote status | [optional]
1404
- **order_status** | **String**| Only return sales with specified order status | [optional]
1405
- **combined_pick_status** | **String**| Only return sales with specified CombinedPickingStatus | [optional]
1406
- **combined_pack_status** | **String**| Only return sales with specified CombinedPackingStatus | [optional]
1407
- **combined_shipping_status** | **String**| Only return sales with specified CombinedShippingStatus | [optional]
1408
- **combined_invoice_status** | **String**| Only return sales with specified CombinedInvoiceStatus | [optional]
1409
- **credit_note_status** | **String**| Only return sales with specified credit note status | [optional]
1410
- **external_id** | **String**| Only return sales with specified External ID | [optional]
1411
- **status** | **String**| Default is nil | [optional]
1412
- **ready_for_shipping** | **Boolean**| Only return sales with 'Authorised' pack and not 'Authorised' shipping | [optional]
1413
- **order_location_id** | **String**| Only return sales with specified Order Location ID | [optional]
1587
+ **search** | **String**| Only return sales with search value contained in one of these fields: OrderNumber, Status, Customer, invoiceNumber, CustomerReference, CreditNoteNumber | [optional]
1588
+ **created_since** | **DateTime**| Only return sales created after specified date. Date must follow ISO 8601 format. | [optional]
1589
+ **updated_since** | **DateTime**| Only return sales changed after specified date. Date must follow ISO 8601 format. | [optional]
1590
+ **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]
1591
+ **quote_status** | **String**| Only return sales with specified quote status | [optional]
1592
+ **order_status** | **String**| Only return sales with specified order status | [optional]
1593
+ **combined_pick_status** | **String**| Only return sales with specified CombinedPickingStatus | [optional]
1594
+ **combined_pack_status** | **String**| Only return sales with specified CombinedPackingStatus | [optional]
1595
+ **combined_shipping_status** | **String**| Only return sales with specified CombinedShippingStatus | [optional]
1596
+ **combined_invoice_status** | **String**| Only return sales with specified CombinedInvoiceStatus | [optional]
1597
+ **credit_note_status** | **String**| Only return sales with specified credit note status | [optional]
1598
+ **external_id** | **String**| Only return sales with specified External ID | [optional]
1599
+ **status** | **String**| Default is nil | [optional]
1600
+ **ready_for_shipping** | **Boolean**| Only return sales with 'Authorised' pack and not 'Authorised' shipping | [optional]
1601
+ **order_location_id** | **String**| Only return sales with specified Order Location ID | [optional]
1414
1602
 
1415
1603
  ### Return type
1416
1604
 
@@ -1471,7 +1659,7 @@ end
1471
1659
 
1472
1660
  Name | Type | Description | Notes
1473
1661
  ------------- | ------------- | ------------- | -------------
1474
- **sale_id** | **String**| Unique DEAR Sale ID | [optional]
1662
+ **sale_id** | **String**| Unique DEAR Sale ID | [optional]
1475
1663
  **combine_additional_charges** | **Boolean**| Show additional charges in 'Lines' array | [optional] [default to false]
1476
1664
  **include_product_info** | **Boolean**| Show all used products in additional array | [optional] [default to false]
1477
1665
 
@@ -1532,7 +1720,7 @@ end
1532
1720
 
1533
1721
  Name | Type | Description | Notes
1534
1722
  ------------- | ------------- | ------------- | -------------
1535
- **sale_id** | **String**| Unique DEAR Sale ID | [optional]
1723
+ **sale_id** | **String**| Unique DEAR Sale ID | [optional]
1536
1724
 
1537
1725
  ### Return type
1538
1726
 
@@ -1593,7 +1781,7 @@ end
1593
1781
 
1594
1782
  Name | Type | Description | Notes
1595
1783
  ------------- | ------------- | ------------- | -------------
1596
- **sale_id** | **String**| Unique DEAR Sale ID | [optional]
1784
+ **sale_id** | **String**| Unique DEAR Sale ID | [optional]
1597
1785
  **combine_additional_charges** | **Boolean**| Show additional charges in 'Lines' array | [optional] [default to false]
1598
1786
  **include_product_info** | **Boolean**| Show all used products in additional array | [optional] [default to false]
1599
1787
 
@@ -1663,12 +1851,12 @@ Name | Type | Description | Notes
1663
1851
  ------------- | ------------- | ------------- | -------------
1664
1852
  **page** | **String**| Default is 1 | [optional] [default to '1']
1665
1853
  **limit** | **String**| Default is 100 | [optional] [default to '100']
1666
- **id** | **String**| Default is nil | [optional]
1667
- **name** | **String**| Default is nil | [optional]
1668
- **is_active** | **Boolean**| Default is nil | [optional]
1669
- **is_tax_for_sale** | **Boolean**| Default is nil | [optional]
1670
- **is_tax_for_purchase** | **Boolean**| Default is nil | [optional]
1671
- **account** | **String**| Default is nil | [optional]
1854
+ **id** | **String**| Default is nil | [optional]
1855
+ **name** | **String**| Default is nil | [optional]
1856
+ **is_active** | **Boolean**| Default is nil | [optional]
1857
+ **is_tax_for_sale** | **Boolean**| Default is nil | [optional]
1858
+ **is_tax_for_purchase** | **Boolean**| Default is nil | [optional]
1859
+ **account** | **String**| Default is nil | [optional]
1672
1860
 
1673
1861
  ### Return type
1674
1862
 
@@ -1781,7 +1969,7 @@ end
1781
1969
 
1782
1970
  Name | Type | Description | Notes
1783
1971
  ------------- | ------------- | ------------- | -------------
1784
- **account** | [**Account**](Account.md)| an Account object with properties to update |
1972
+ **account** | [**Account**](Account.md)| an Account object with properties to update |
1785
1973
  **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
1786
1974
 
1787
1975
  ### Return type
@@ -1842,7 +2030,7 @@ end
1842
2030
 
1843
2031
  Name | Type | Description | Notes
1844
2032
  ------------- | ------------- | ------------- | -------------
1845
- **customer** | [**Customer**](Customer.md)| a customer object with properties to update |
2033
+ **customer** | [**Customer**](Customer.md)| a customer object with properties to update |
1846
2034
  **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
1847
2035
 
1848
2036
  ### Return type
@@ -1903,7 +2091,7 @@ end
1903
2091
 
1904
2092
  Name | Type | Description | Notes
1905
2093
  ------------- | ------------- | ------------- | -------------
1906
- **payment_term** | [**PaymentTerm**](PaymentTerm.md)| a payment term object with properties to update |
2094
+ **payment_term** | [**PaymentTerm**](PaymentTerm.md)| a payment term object with properties to update |
1907
2095
  **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
1908
2096
 
1909
2097
  ### Return type
@@ -1964,7 +2152,7 @@ end
1964
2152
 
1965
2153
  Name | Type | Description | Notes
1966
2154
  ------------- | ------------- | ------------- | -------------
1967
- **sale_payment** | [**SalePayment**](SalePayment.md)| a sale payment object with properties to update |
2155
+ **sale_payment** | [**SalePayment**](SalePayment.md)| a sale payment object with properties to update |
1968
2156
  **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
1969
2157
 
1970
2158
  ### Return type
@@ -2025,7 +2213,7 @@ end
2025
2213
 
2026
2214
  Name | Type | Description | Notes
2027
2215
  ------------- | ------------- | ------------- | -------------
2028
- **tax** | [**Tax**](Tax.md)| a tax object with properties to update |
2216
+ **tax** | [**Tax**](Tax.md)| a tax object with properties to update |
2029
2217
  **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
2030
2218
 
2031
2219
  ### Return type
@@ -2086,7 +2274,7 @@ end
2086
2274
 
2087
2275
  Name | Type | Description | Notes
2088
2276
  ------------- | ------------- | ------------- | -------------
2089
- **webhook** | [**Webhook**](Webhook.md)| a webhook object with properties to update |
2277
+ **webhook** | [**Webhook**](Webhook.md)| a webhook object with properties to update |
2090
2278
  **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
2091
2279
 
2092
2280
  ### Return type
data/docs/Location.md ADDED
@@ -0,0 +1,51 @@
1
+ # DearInventoryRuby::Location
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | Required for `PUT` and `DELETE`, Ignored for `POST` operations | [optional]
8
+ **name** | **String** | Location name | [optional]
9
+ **is_default** | **Boolean** | Points that location is used as default | [optional] [default to false]
10
+ **deprecated** | **Boolean** | Points that location is deprecated | [optional] [default to false]
11
+ **bins** | [**Array<Bin>**](Bin.md) | Array (ID, Name) with related Bins | [optional]
12
+ **fixed_assets_location** | **Boolean** | Points that location is used as Fixed Asset | [optional] [default to false]
13
+ **parent_id** | **String** | Parent ID (used for Bins) | [optional]
14
+ **reference_count** | **Integer** | Reference linked to current location | [optional]
15
+ **address_line1** | **String** | Address line | [optional]
16
+ **address_line2** | **String** | Address line second | [optional]
17
+ **address_city_suburb** | **String** | City suburb | [optional]
18
+ **address_state_province** | **String** | State province | [optional]
19
+ **address_zip_post_code** | **String** | Zip post code | [optional]
20
+ **address_country** | **String** | Country | [optional]
21
+ **pick_zones** | **String** | Pick zones | [optional]
22
+ **is_shopfloor** | **Boolean** | Points that location is shopfloor | [optional] [default to false]
23
+ **is_co_man** | **Boolean** | Points that location is location of co-manufacturer | [optional] [default to false]
24
+ **is_staging** | **Boolean** | Points that location is staging. It is used only for Bins | [optional] [default to false]
25
+
26
+ ## Code Sample
27
+
28
+ ```ruby
29
+ require 'DearInventoryRuby'
30
+
31
+ instance = DearInventoryRuby::Location.new(id: nil,
32
+ name: nil,
33
+ is_default: nil,
34
+ deprecated: nil,
35
+ bins: nil,
36
+ fixed_assets_location: nil,
37
+ parent_id: nil,
38
+ reference_count: nil,
39
+ address_line1: nil,
40
+ address_line2: nil,
41
+ address_city_suburb: nil,
42
+ address_state_province: nil,
43
+ address_zip_post_code: nil,
44
+ address_country: nil,
45
+ pick_zones: nil,
46
+ is_shopfloor: nil,
47
+ is_co_man: nil,
48
+ is_staging: nil)
49
+ ```
50
+
51
+
data/docs/Locations.md ADDED
@@ -0,0 +1,21 @@
1
+ # DearInventoryRuby::Locations
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **total** | **Float** | Total | [optional]
8
+ **page** | **Float** | Page | [optional]
9
+ **location_list** | [**Array<Location>**](Location.md) | Array of Locations | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'DearInventoryRuby'
15
+
16
+ instance = DearInventoryRuby::Locations.new(total: nil,
17
+ page: nil,
18
+ location_list: nil)
19
+ ```
20
+
21
+
data/docs/Me.md CHANGED
@@ -4,13 +4,13 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **company** | **String** | Your company name | [optional]
8
- **currency** | **String** | Your company base currency | [optional]
9
- **time_zone** | **String** | Time Zone where your company located | [optional]
10
- **default_weight_units** | **String** | Unit of measure for unit weight | [optional]
11
- **default_dimensions_units** | **String** | Unit of measure for unit length/width/height | [optional]
12
- **lock_date** | **Date** | Financial settings option. Indicates date period start from what you can change transactional data. Formatted in Tenant date format | [optional]
13
- **opening_balance_date** | **Date** | Date of opening balances in the system. Formatted in Tenant date format | [optional]
7
+ **company** | **String** | Your company name | [optional]
8
+ **currency** | **String** | Your company base currency | [optional]
9
+ **time_zone** | **String** | Time Zone where your company located | [optional]
10
+ **default_weight_units** | **String** | Unit of measure for unit weight | [optional]
11
+ **default_dimensions_units** | **String** | Unit of measure for unit length/width/height | [optional]
12
+ **lock_date** | **Date** | Financial settings option. Indicates date period start from what you can change transactional data. Formatted in Tenant date format | [optional]
13
+ **opening_balance_date** | **Date** | Date of opening balances in the system. Formatted in Tenant date format | [optional]
14
14
 
15
15
  ## Code Sample
16
16