dear-inventory-ruby 0.2.4 → 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: cc16b0247ee5118afeefc165b65960ac156aa18e08646de3c076b06f3225d091
4
- data.tar.gz: fd18222be798f9d38536629e2ffa62dd70d98a8de5e34e6f3ceaf1aff9b91345
3
+ metadata.gz: 51c48b4739e560045deac028714486d1db23d4f3424c59798638e8f0f935e425
4
+ data.tar.gz: 4cd9898b7d3202d14cc6488eb3cf7be1c09d6965a5f49d5ceac56172c4477ee5
5
5
  SHA512:
6
- metadata.gz: 315173b6af1c0d160e46d9462e6d9ddf10a7a23a6fa5200ec4761d28b02602ac24fcffc1080a9a3b0c8ef1cd1b348f05ac1ad1197dcef97a5c67d60ebfd6a6ba
7
- data.tar.gz: 0fada5827551de17542f6f3a36f492183447a3abc6fce2d501554aa8070ef96f8f9223156b98a5d8fbe50ae51252cb10576a89f92cb0185f00564d47e9e14e12
6
+ metadata.gz: f288879bd2f68534b6fe69afeafd8c8884ff9f4bcef34723147bfdf92541663bf6c788cfdde49558053bf8affa7faa0b697f9cd463324552e182a927b7d19175
7
+ data.tar.gz: ec3eee176bc1a6b496e05cdcfc84c658f43ae7070b236f91a20c2fd48b058486b4b10a77d5cdda8d6d0feefb76a8c74d39319790b77843e1cf91058d28325b36
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
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
+
5
9
  ## [0.2.4] - 2022-04-12
6
10
 
7
11
  - Add the new endpoint GET `/sale`
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.4
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.4.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.4.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.4'
36
+ gem 'dear-inventory-ruby', '~> 0.2.5'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -113,6 +113,7 @@ Class | Method | HTTP request | Description
113
113
  *DearInventoryRuby::InventoryApi* | [**get_price_tiers**](docs/InventoryApi.md#get_price_tiers) | **GET** /ref/priceTier | Allows you to retrieve the Price Tiers
114
114
  *DearInventoryRuby::InventoryApi* | [**get_sale**](docs/InventoryApi.md#get_sale) | **GET** /sale | Allows you to retrieve the Sale
115
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
116
117
  *DearInventoryRuby::InventoryApi* | [**get_sale_order**](docs/InventoryApi.md#get_sale_order) | **GET** /sale/order | Allows you to retrieve the Sale Order
117
118
  *DearInventoryRuby::InventoryApi* | [**get_sale_payment**](docs/InventoryApi.md#get_sale_payment) | **GET** /sale/payment | Allows you to retrieve the Sale Payments
118
119
  *DearInventoryRuby::InventoryApi* | [**get_sale_quote**](docs/InventoryApi.md#get_sale_quote) | **GET** /sale/quote | Allows you to retrieve the Sale Quote
@@ -150,6 +151,8 @@ Class | Method | HTTP request | Description
150
151
  - [DearInventoryRuby::SaleInvoiceLine](docs/SaleInvoiceLine.md)
151
152
  - [DearInventoryRuby::SaleInvoicePost](docs/SaleInvoicePost.md)
152
153
  - [DearInventoryRuby::SaleInvoices](docs/SaleInvoices.md)
154
+ - [DearInventoryRuby::SaleItem](docs/SaleItem.md)
155
+ - [DearInventoryRuby::SaleList](docs/SaleList.md)
153
156
  - [DearInventoryRuby::SaleOrder](docs/SaleOrder.md)
154
157
  - [DearInventoryRuby::SaleOrderLine](docs/SaleOrderLine.md)
155
158
  - [DearInventoryRuby::SalePayment](docs/SalePayment.md)
data/docs/InventoryApi.md CHANGED
@@ -25,6 +25,7 @@ Method | HTTP request | Description
25
25
  [**get_price_tiers**](InventoryApi.md#get_price_tiers) | **GET** /ref/priceTier | Allows you to retrieve the Price Tiers
26
26
  [**get_sale**](InventoryApi.md#get_sale) | **GET** /sale | Allows you to retrieve the Sale
27
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
28
29
  [**get_sale_order**](InventoryApi.md#get_sale_order) | **GET** /sale/order | Allows you to retrieve the Sale Order
29
30
  [**get_sale_payment**](InventoryApi.md#get_sale_payment) | **GET** /sale/payment | Allows you to retrieve the Sale Payments
30
31
  [**get_sale_quote**](InventoryApi.md#get_sale_quote) | **GET** /sale/quote | Allows you to retrieve the Sale Quote
@@ -1330,6 +1331,97 @@ Name | Type | Description | Notes
1330
1331
  - **Accept**: application/json
1331
1332
 
1332
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
+
1333
1425
  ## get_sale_order
1334
1426
 
1335
1427
  > SaleOrder get_sale_order(opts)
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
+
@@ -1351,6 +1351,111 @@ module DearInventoryRuby
1351
1351
  return data, status_code, headers
1352
1352
  end
1353
1353
 
1354
+ # Allows you to retrieve the Sales based on conditions
1355
+ # @param [Hash] opts the optional parameters
1356
+ # @option opts [String] :page Default is 1 (default to '1')
1357
+ # @option opts [String] :limit Default is 100 (default to '100')
1358
+ # @option opts [String] :search Only return sales with search value contained in one of these fields: OrderNumber, Status, Customer, invoiceNumber, CustomerReference, CreditNoteNumber
1359
+ # @option opts [DateTime] :created_since Only return sales created after specified date. Date must follow ISO 8601 format.
1360
+ # @option opts [DateTime] :updated_since Only return sales changed after specified date. Date must follow ISO 8601 format.
1361
+ # @option opts [DateTime] :ship_by Only return sales with Ship By date on or before specified date, with not authorised Shipment. Date must follow ISO 8601 format.
1362
+ # @option opts [String] :quote_status Only return sales with specified quote status
1363
+ # @option opts [String] :order_status Only return sales with specified order status
1364
+ # @option opts [String] :combined_pick_status Only return sales with specified CombinedPickingStatus
1365
+ # @option opts [String] :combined_pack_status Only return sales with specified CombinedPackingStatus
1366
+ # @option opts [String] :combined_shipping_status Only return sales with specified CombinedShippingStatus
1367
+ # @option opts [String] :combined_invoice_status Only return sales with specified CombinedInvoiceStatus
1368
+ # @option opts [String] :credit_note_status Only return sales with specified credit note status
1369
+ # @option opts [String] :external_id Only return sales with specified External ID
1370
+ # @option opts [String] :status Default is nil
1371
+ # @option opts [Boolean] :ready_for_shipping Only return sales with 'Authorised' pack and not 'Authorised' shipping
1372
+ # @option opts [String] :order_location_id Only return sales with specified Order Location ID
1373
+ # @return [SaleList]
1374
+ def get_sale_list(opts = {})
1375
+ data, _status_code, _headers = get_sale_list_with_http_info(opts)
1376
+ data
1377
+ end
1378
+
1379
+ # Allows you to retrieve the Sales based on conditions
1380
+ # @param [Hash] opts the optional parameters
1381
+ # @option opts [String] :page Default is 1
1382
+ # @option opts [String] :limit Default is 100
1383
+ # @option opts [String] :search Only return sales with search value contained in one of these fields: OrderNumber, Status, Customer, invoiceNumber, CustomerReference, CreditNoteNumber
1384
+ # @option opts [DateTime] :created_since Only return sales created after specified date. Date must follow ISO 8601 format.
1385
+ # @option opts [DateTime] :updated_since Only return sales changed after specified date. Date must follow ISO 8601 format.
1386
+ # @option opts [DateTime] :ship_by Only return sales with Ship By date on or before specified date, with not authorised Shipment. Date must follow ISO 8601 format.
1387
+ # @option opts [String] :quote_status Only return sales with specified quote status
1388
+ # @option opts [String] :order_status Only return sales with specified order status
1389
+ # @option opts [String] :combined_pick_status Only return sales with specified CombinedPickingStatus
1390
+ # @option opts [String] :combined_pack_status Only return sales with specified CombinedPackingStatus
1391
+ # @option opts [String] :combined_shipping_status Only return sales with specified CombinedShippingStatus
1392
+ # @option opts [String] :combined_invoice_status Only return sales with specified CombinedInvoiceStatus
1393
+ # @option opts [String] :credit_note_status Only return sales with specified credit note status
1394
+ # @option opts [String] :external_id Only return sales with specified External ID
1395
+ # @option opts [String] :status Default is nil
1396
+ # @option opts [Boolean] :ready_for_shipping Only return sales with 'Authorised' pack and not 'Authorised' shipping
1397
+ # @option opts [String] :order_location_id Only return sales with specified Order Location ID
1398
+ # @return [Array<(SaleList, Integer, Hash)>] SaleList data, response status code and response headers
1399
+ def get_sale_list_with_http_info(opts = {})
1400
+ if @api_client.config.debugging
1401
+ @api_client.config.logger.debug 'Calling API: InventoryApi.get_sale_list ...'
1402
+ end
1403
+ # resource path
1404
+ local_var_path = '/saleList'
1405
+
1406
+ # query parameters
1407
+ query_params = opts[:query_params] || {}
1408
+ query_params[:'Page'] = opts[:'page'] if !opts[:'page'].nil?
1409
+ query_params[:'Limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1410
+ query_params[:'Search'] = opts[:'search'] if !opts[:'search'].nil?
1411
+ query_params[:'CreatedSince'] = opts[:'created_since'] if !opts[:'created_since'].nil?
1412
+ query_params[:'UpdatedSince'] = opts[:'updated_since'] if !opts[:'updated_since'].nil?
1413
+ query_params[:'ShipBy'] = opts[:'ship_by'] if !opts[:'ship_by'].nil?
1414
+ query_params[:'QuoteStatus'] = opts[:'quote_status'] if !opts[:'quote_status'].nil?
1415
+ query_params[:'OrderStatus'] = opts[:'order_status'] if !opts[:'order_status'].nil?
1416
+ query_params[:'CombinedPickStatus'] = opts[:'combined_pick_status'] if !opts[:'combined_pick_status'].nil?
1417
+ query_params[:'CombinedPackStatus'] = opts[:'combined_pack_status'] if !opts[:'combined_pack_status'].nil?
1418
+ query_params[:'CombinedShippingStatus'] = opts[:'combined_shipping_status'] if !opts[:'combined_shipping_status'].nil?
1419
+ query_params[:'CombinedInvoiceStatus'] = opts[:'combined_invoice_status'] if !opts[:'combined_invoice_status'].nil?
1420
+ query_params[:'CreditNoteStatus'] = opts[:'credit_note_status'] if !opts[:'credit_note_status'].nil?
1421
+ query_params[:'ExternalID'] = opts[:'external_id'] if !opts[:'external_id'].nil?
1422
+ query_params[:'Status'] = opts[:'status'] if !opts[:'status'].nil?
1423
+ query_params[:'ReadyForShipping'] = opts[:'ready_for_shipping'] if !opts[:'ready_for_shipping'].nil?
1424
+ query_params[:'OrderLocationID'] = opts[:'order_location_id'] if !opts[:'order_location_id'].nil?
1425
+
1426
+ # header parameters
1427
+ header_params = opts[:header_params] || {}
1428
+ # HTTP header 'Accept' (if needed)
1429
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1430
+
1431
+ # form parameters
1432
+ form_params = opts[:form_params] || {}
1433
+
1434
+ # http body (model)
1435
+ post_body = opts[:body]
1436
+
1437
+ # return_type
1438
+ return_type = opts[:return_type] || 'SaleList'
1439
+
1440
+ # auth_names
1441
+ auth_names = opts[:auth_names] || ['accountID', 'appKey']
1442
+
1443
+ new_options = opts.merge(
1444
+ :header_params => header_params,
1445
+ :query_params => query_params,
1446
+ :form_params => form_params,
1447
+ :body => post_body,
1448
+ :auth_names => auth_names,
1449
+ :return_type => return_type
1450
+ )
1451
+
1452
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1453
+ if @api_client.config.debugging
1454
+ @api_client.config.logger.debug "API called: InventoryApi#get_sale_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1455
+ end
1456
+ return data, status_code, headers
1457
+ end
1458
+
1354
1459
  # Allows you to retrieve the Sale Order
1355
1460
  # @param [Hash] opts the optional parameters
1356
1461
  # @option opts [String] :sale_id Unique DEAR Sale ID