dear-inventory-ruby 0.1.10 → 0.1.15

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: c201f6b324bf74ee44d1049342dd858cd6db92262aa2a98471e78a8db6b4bcbf
4
- data.tar.gz: 304fc570a210489e24c1574d40f71d1975961e66dab65aa42807d0909a62730d
3
+ metadata.gz: 1520077f652087124545b720ac13cd528fdf40dc9985ce8b8acc5fe3ffaef322
4
+ data.tar.gz: c5887cbe8fb6152b86a25a3c754940d52e905d7c8934a9b713ab46628983860d
5
5
  SHA512:
6
- metadata.gz: dd7c10e2e6c7a5fafd8288cd1cd59ea7548229a978f5076df85e505e53c4e13f2af24ded11100c1e5ce8b4b6fe1ecbd8ac7f79ee242af27fefa39abddf3758ea
7
- data.tar.gz: 3c4d88bddd1cf9fc255a71c35ce15857abd3f49e297747c96ccecd31ed65f44061c2dd18700a967b7f0cc7d921c006c4655538f42ffd3c1a8597f3ace5f6363b
6
+ metadata.gz: 6ed901fecd45e0eef5651040a5f5a6a1b5c7deaa8599f72afba5a64d24824525a3648bde1d41b6926311a3841693026ff3e03f5a4625cb39e9fdbd2b3dfdf6a4
7
+ data.tar.gz: 5dfa595e9d4c8a869e7ac7d496bf42e8e41ddde652d81ca63b3d3010413794cef202ea62738a6575fbaecfa88861aa4d53305a73ce71030480b15c3da09df4a5
data/CHANGELOG.md CHANGED
@@ -2,6 +2,28 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.1.15] - 2021-02-22
6
+
7
+ - Add new endpoint GET `/sale/invoice` and some related models.
8
+
9
+ ## [0.1.14] - 2021-05-01
10
+
11
+ - Remove validation `Currency` for `Customer` and `Me` models.
12
+
13
+ ## [0.1.13] - 2020-10-28
14
+
15
+ - Update `PriceTiersList` to `PriceTiers`.
16
+
17
+ ## [0.1.12] - 2020-10-28
18
+
19
+ - Add new endpoint and model: `PriceTier`
20
+ - Endpoint GET `PriceTiers`
21
+
22
+ ## [0.1.11] - 2020-09-21
23
+
24
+ - Update limit of Comments in Customer model.
25
+ - Remove required conditions of Address Type in Customer Address model.
26
+
5
27
  ## [0.1.10] - 2020-09-04
6
28
 
7
29
  - Add some fields to Contact and Customer models.
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.1.10
10
+ - Package version: 0.1.15
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://www.nnhan.me](https://www.nnhan.me)
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.1.10.gem
27
+ gem install ./dear-inventory-ruby-0.1.15.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./dear-inventory-ruby-0.1.10.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./dear-inventory-ruby-0.1.15.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.1.10'
36
+ gem 'dear-inventory-ruby', '~> 0.1.15'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -102,6 +102,8 @@ Class | Method | HTTP request | Description
102
102
  *DearInventoryRuby::InventoryApi* | [**get_customers**](docs/InventoryApi.md#get_customers) | **GET** /customer | Allows you to retrieve the customers
103
103
  *DearInventoryRuby::InventoryApi* | [**get_me**](docs/InventoryApi.md#get_me) | **GET** /me | Allows you to retrieve your information
104
104
  *DearInventoryRuby::InventoryApi* | [**get_payment_terms**](docs/InventoryApi.md#get_payment_terms) | **GET** /ref/paymentterm | Allows you to retrieve the payment terms
105
+ *DearInventoryRuby::InventoryApi* | [**get_price_tiers**](docs/InventoryApi.md#get_price_tiers) | **GET** /ref/priceTier | Allows you to retrieve the Price Tiers
106
+ *DearInventoryRuby::InventoryApi* | [**get_sale_invoices**](docs/InventoryApi.md#get_sale_invoices) | **GET** /sale/invoice | Allows you to retrieve the sale invoices
105
107
  *DearInventoryRuby::InventoryApi* | [**get_taxes**](docs/InventoryApi.md#get_taxes) | **GET** /ref/tax | Allows you to retrieve the taxes
106
108
  *DearInventoryRuby::InventoryApi* | [**update_account**](docs/InventoryApi.md#update_account) | **PUT** /ref/account | Allows you to update an Account
107
109
  *DearInventoryRuby::InventoryApi* | [**update_customer**](docs/InventoryApi.md#update_customer) | **PUT** /customer | Allows you to update a customer
@@ -123,6 +125,12 @@ Class | Method | HTTP request | Description
123
125
  - [DearInventoryRuby::Me](docs/Me.md)
124
126
  - [DearInventoryRuby::PaymentTerm](docs/PaymentTerm.md)
125
127
  - [DearInventoryRuby::PaymentTerms](docs/PaymentTerms.md)
128
+ - [DearInventoryRuby::PriceTier](docs/PriceTier.md)
129
+ - [DearInventoryRuby::PriceTiers](docs/PriceTiers.md)
130
+ - [DearInventoryRuby::SaleInvoice](docs/SaleInvoice.md)
131
+ - [DearInventoryRuby::SaleInvoiceAdditionalCharge](docs/SaleInvoiceAdditionalCharge.md)
132
+ - [DearInventoryRuby::SaleInvoiceLine](docs/SaleInvoiceLine.md)
133
+ - [DearInventoryRuby::SaleInvoices](docs/SaleInvoices.md)
126
134
  - [DearInventoryRuby::Success](docs/Success.md)
127
135
  - [DearInventoryRuby::Tax](docs/Tax.md)
128
136
  - [DearInventoryRuby::TaxComponent](docs/TaxComponent.md)
data/docs/Customer.md CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **id** | **String** | Unique Customer ID | [optional]
8
8
  **name** | **String** | Name of Customer |
9
9
  **status** | **String** | Points that Customer is Active. Available values are Active and Deprecated. Required for POST |
10
- **currency** | [**CurrencyCode**](CurrencyCode.md) | |
10
+ **currency** | **String** | Currency code of Customer |
11
11
  **payment_term** | **String** | Payment term |
12
12
  **account_receivable** | **String** | Account receivable code of Customer |
13
13
  **revenue_account** | **String** | Sale account code of Customer |
data/docs/InventoryApi.md CHANGED
@@ -14,6 +14,8 @@ Method | HTTP request | Description
14
14
  [**get_customers**](InventoryApi.md#get_customers) | **GET** /customer | Allows you to retrieve the customers
15
15
  [**get_me**](InventoryApi.md#get_me) | **GET** /me | Allows you to retrieve your information
16
16
  [**get_payment_terms**](InventoryApi.md#get_payment_terms) | **GET** /ref/paymentterm | Allows you to retrieve the payment terms
17
+ [**get_price_tiers**](InventoryApi.md#get_price_tiers) | **GET** /ref/priceTier | Allows you to retrieve the Price Tiers
18
+ [**get_sale_invoices**](InventoryApi.md#get_sale_invoices) | **GET** /sale/invoice | Allows you to retrieve the sale invoices
17
19
  [**get_taxes**](InventoryApi.md#get_taxes) | **GET** /ref/tax | Allows you to retrieve the taxes
18
20
  [**update_account**](InventoryApi.md#update_account) | **PUT** /ref/account | Allows you to update an Account
19
21
  [**update_customer**](InventoryApi.md#update_customer) | **PUT** /customer | Allows you to update a customer
@@ -646,6 +648,122 @@ Name | Type | Description | Notes
646
648
  - **Accept**: application/json
647
649
 
648
650
 
651
+ ## get_price_tiers
652
+
653
+ > PriceTiers get_price_tiers
654
+
655
+ Allows you to retrieve the Price Tiers
656
+
657
+ ### Example
658
+
659
+ ```ruby
660
+ # load the gem
661
+ require 'dear-inventory-ruby'
662
+ # setup authorization
663
+ DearInventoryRuby.configure do |config|
664
+ # Configure API key authorization: accountID
665
+ config.api_key['api-auth-accountid'] = 'YOUR API KEY'
666
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
667
+ #config.api_key_prefix['api-auth-accountid'] = 'Bearer'
668
+
669
+ # Configure API key authorization: appKey
670
+ config.api_key['api-auth-applicationkey'] = 'YOUR API KEY'
671
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
672
+ #config.api_key_prefix['api-auth-applicationkey'] = 'Bearer'
673
+ end
674
+
675
+ api_instance = DearInventoryRuby::InventoryApi.new
676
+
677
+ begin
678
+ #Allows you to retrieve the Price Tiers
679
+ result = api_instance.get_price_tiers
680
+ p result
681
+ rescue DearInventoryRuby::ApiError => e
682
+ puts "Exception when calling InventoryApi->get_price_tiers: #{e}"
683
+ end
684
+ ```
685
+
686
+ ### Parameters
687
+
688
+ This endpoint does not need any parameter.
689
+
690
+ ### Return type
691
+
692
+ [**PriceTiers**](PriceTiers.md)
693
+
694
+ ### Authorization
695
+
696
+ [accountID](../README.md#accountID), [appKey](../README.md#appKey)
697
+
698
+ ### HTTP request headers
699
+
700
+ - **Content-Type**: Not defined
701
+ - **Accept**: application/json
702
+
703
+
704
+ ## get_sale_invoices
705
+
706
+ > SaleInvoices get_sale_invoices(opts)
707
+
708
+ Allows you to retrieve the sale invoices
709
+
710
+ ### Example
711
+
712
+ ```ruby
713
+ # load the gem
714
+ require 'dear-inventory-ruby'
715
+ # setup authorization
716
+ DearInventoryRuby.configure do |config|
717
+ # Configure API key authorization: accountID
718
+ config.api_key['api-auth-accountid'] = 'YOUR API KEY'
719
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
720
+ #config.api_key_prefix['api-auth-accountid'] = 'Bearer'
721
+
722
+ # Configure API key authorization: appKey
723
+ config.api_key['api-auth-applicationkey'] = 'YOUR API KEY'
724
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
725
+ #config.api_key_prefix['api-auth-applicationkey'] = 'Bearer'
726
+ end
727
+
728
+ api_instance = DearInventoryRuby::InventoryApi.new
729
+ opts = {
730
+ sale_id: 'sale_id_example', # String | Unique DEAR Sale ID
731
+ combine_additional_charges: false, # Boolean | Show additional charges in 'Lines' array
732
+ include_product_info: false # Boolean | Show all used products in additional array
733
+ }
734
+
735
+ begin
736
+ #Allows you to retrieve the sale invoices
737
+ result = api_instance.get_sale_invoices(opts)
738
+ p result
739
+ rescue DearInventoryRuby::ApiError => e
740
+ puts "Exception when calling InventoryApi->get_sale_invoices: #{e}"
741
+ end
742
+ ```
743
+
744
+ ### Parameters
745
+
746
+
747
+ Name | Type | Description | Notes
748
+ ------------- | ------------- | ------------- | -------------
749
+ **sale_id** | **String**| Unique DEAR Sale ID | [optional]
750
+ **combine_additional_charges** | **Boolean**| Show additional charges in 'Lines' array | [optional] [default to false]
751
+ **include_product_info** | **Boolean**| Show all used products in additional array | [optional] [default to false]
752
+
753
+ ### Return type
754
+
755
+ [**SaleInvoices**](SaleInvoices.md)
756
+
757
+ ### Authorization
758
+
759
+ [accountID](../README.md#accountID), [appKey](../README.md#appKey)
760
+
761
+ ### HTTP request headers
762
+
763
+ - **Content-Type**: Not defined
764
+ - **Accept**: application/json
765
+
766
+
649
767
  ## get_taxes
650
768
 
651
769
  > Taxes get_taxes(opts)
data/docs/Me.md CHANGED
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **company** | **String** | Your company name | [optional]
8
- **currency** | [**CurrencyCode**](CurrencyCode.md) | | [optional]
8
+ **currency** | **String** | Your company base currency | [optional]
9
9
  **time_zone** | **String** | Time Zone where your company located | [optional]
10
10
  **default_weight_units** | [**WeightUnit**](WeightUnit.md) | | [optional]
11
11
  **default_dimensions_units** | [**DimensionsUnit**](DimensionsUnit.md) | | [optional]
data/docs/PriceTier.md ADDED
@@ -0,0 +1,19 @@
1
+ # DearInventoryRuby::PriceTier
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **code** | **Integer** | Code number of Price Tier | [optional]
8
+ **name** | **String** | Price Tier name | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'DearInventoryRuby'
14
+
15
+ instance = DearInventoryRuby::PriceTier.new(code: nil,
16
+ name: nil)
17
+ ```
18
+
19
+
@@ -0,0 +1,17 @@
1
+ # DearInventoryRuby::PriceTiers
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **price_tiers** | [**Array<PriceTier>**](PriceTier.md) | Array of PriceTiers | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'DearInventoryRuby'
13
+
14
+ instance = DearInventoryRuby::PriceTiers.new(price_tiers: nil)
15
+ ```
16
+
17
+
@@ -0,0 +1,41 @@
1
+ # DearInventoryRuby::SaleInvoice
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **task_id** | **String** | Identifier of sale Invoice task |
8
+ **combine_additional_charges** | **Boolean** | if true then additional charges lines displayed in Lines array | [default to false]
9
+ **invoice_number** | **String** | Invoice Number (auto-generated) | [optional]
10
+ **memo** | **String** | Additional information for Invoice. | [optional]
11
+ **status** | **String** | Invoice status. Possible Values are values. For POST available values are DRAFT, AUTHORISED |
12
+ **invoice_date** | **String** | Invoice Date. |
13
+ **invoice_due_date** | **String** | Invoice Due Date. |
14
+ **currency_conversion_rate** | **Float** | Decimal with up to 4 decimal places | [optional]
15
+ **billing_address_line1** | **String** | Billing Address Line 1 | [optional]
16
+ **billing_address_line2** | **String** | Billing Address Line 2 | [optional]
17
+ **linked_fulfillment_number** | **Integer** | Number of Fulfilment linked to this invoice | [optional]
18
+ **lines** | [**Array<SaleInvoiceLine>**](SaleInvoiceLine.md) | | [optional]
19
+ **additional_charges** | [**Array<SaleInvoiceAdditionalCharge>**](SaleInvoiceAdditionalCharge.md) | | [optional]
20
+
21
+ ## Code Sample
22
+
23
+ ```ruby
24
+ require 'DearInventoryRuby'
25
+
26
+ instance = DearInventoryRuby::SaleInvoice.new(task_id: nil,
27
+ combine_additional_charges: nil,
28
+ invoice_number: nil,
29
+ memo: nil,
30
+ status: nil,
31
+ invoice_date: nil,
32
+ invoice_due_date: nil,
33
+ currency_conversion_rate: nil,
34
+ billing_address_line1: nil,
35
+ billing_address_line2: nil,
36
+ linked_fulfillment_number: nil,
37
+ lines: nil,
38
+ additional_charges: nil)
39
+ ```
40
+
41
+
@@ -0,0 +1,33 @@
1
+ # DearInventoryRuby::SaleInvoiceAdditionalCharge
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **description** | **String** | Name of Service Product referenced by this Line |
8
+ **quantity** | **Float** | Product or service quantity. Minimal value is 1. |
9
+ **price** | **Float** | Price per unit in Customer currency |
10
+ **discount** | **Float** | Discount. Value between 0 and 100. For free items discount is 100. Default value is 0 | [optional]
11
+ **tax** | **Float** | Tax |
12
+ **total** | **Float** | Line Total.For validation | [optional]
13
+ **tax_rule** | **Float** | Line Tax Rule name. |
14
+ **account** | **Float** | Revenue account |
15
+ **comment** | **Float** | Comment | [optional]
16
+
17
+ ## Code Sample
18
+
19
+ ```ruby
20
+ require 'DearInventoryRuby'
21
+
22
+ instance = DearInventoryRuby::SaleInvoiceAdditionalCharge.new(description: nil,
23
+ quantity: nil,
24
+ price: nil,
25
+ discount: nil,
26
+ tax: nil,
27
+ total: nil,
28
+ tax_rule: nil,
29
+ account: nil,
30
+ comment: nil)
31
+ ```
32
+
33
+
@@ -0,0 +1,39 @@
1
+ # DearInventoryRuby::SaleInvoiceLine
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **product_id** | **String** | Product identifier referenced by this Line. Required If CombineAdditionalCharges param exist for this endpoint and it have values = false |
8
+ **sku** | **String** | Product SKU referenced by this Line. Required If CombineAdditionalCharges param exist for this endpoint and it have values = false |
9
+ **name** | **String** | Product Name referenced by this Line |
10
+ **quantity** | **Float** | Product or service quantity. Minimal value is 1. |
11
+ **price** | **Float** | Price per unit in Customer currency |
12
+ **discount** | **Float** | Discount. Value between 0 and 100. For free items discount is 100. Default value is 0 | [optional]
13
+ **tax** | **Float** | Tax | [optional]
14
+ **total** | **Float** | Line Total. For validation | [optional]
15
+ **average_cost** | **Float** | Average product cost | [optional]
16
+ **tax_rule** | **String** | Line Tax Rule name. | [optional]
17
+ **account** | **String** | Revenue account | [optional]
18
+ **comment** | **String** | Comment for this line | [optional]
19
+
20
+ ## Code Sample
21
+
22
+ ```ruby
23
+ require 'DearInventoryRuby'
24
+
25
+ instance = DearInventoryRuby::SaleInvoiceLine.new(product_id: nil,
26
+ sku: nil,
27
+ name: nil,
28
+ quantity: nil,
29
+ price: nil,
30
+ discount: nil,
31
+ tax: nil,
32
+ total: nil,
33
+ average_cost: nil,
34
+ tax_rule: nil,
35
+ account: nil,
36
+ comment: nil)
37
+ ```
38
+
39
+
@@ -0,0 +1,19 @@
1
+ # DearInventoryRuby::SaleInvoices
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **sale_id** | **String** | Unique DEAR Sale ID |
8
+ **invoices** | [**Array<SaleInvoice>**](SaleInvoice.md) | Array of Invoices | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'DearInventoryRuby'
14
+
15
+ instance = DearInventoryRuby::SaleInvoices.new(sale_id: nil,
16
+ invoices: nil)
17
+ ```
18
+
19
+
@@ -29,6 +29,12 @@ require 'dear-inventory-ruby/models/error'
29
29
  require 'dear-inventory-ruby/models/me'
30
30
  require 'dear-inventory-ruby/models/payment_term'
31
31
  require 'dear-inventory-ruby/models/payment_terms'
32
+ require 'dear-inventory-ruby/models/price_tier'
33
+ require 'dear-inventory-ruby/models/price_tiers'
34
+ require 'dear-inventory-ruby/models/sale_invoice'
35
+ require 'dear-inventory-ruby/models/sale_invoice_additional_charge'
36
+ require 'dear-inventory-ruby/models/sale_invoice_line'
37
+ require 'dear-inventory-ruby/models/sale_invoices'
32
38
  require 'dear-inventory-ruby/models/success'
33
39
  require 'dear-inventory-ruby/models/tax'
34
40
  require 'dear-inventory-ruby/models/tax_component'
@@ -666,6 +666,123 @@ module DearInventoryRuby
666
666
  return data, status_code, headers
667
667
  end
668
668
 
669
+ # Allows you to retrieve the Price Tiers
670
+ # @param [Hash] opts the optional parameters
671
+ # @return [PriceTiers]
672
+ def get_price_tiers(opts = {})
673
+ data, _status_code, _headers = get_price_tiers_with_http_info(opts)
674
+ data
675
+ end
676
+
677
+ # Allows you to retrieve the Price Tiers
678
+ # @param [Hash] opts the optional parameters
679
+ # @return [Array<(PriceTiers, Integer, Hash)>] PriceTiers data, response status code and response headers
680
+ def get_price_tiers_with_http_info(opts = {})
681
+ if @api_client.config.debugging
682
+ @api_client.config.logger.debug 'Calling API: InventoryApi.get_price_tiers ...'
683
+ end
684
+ # resource path
685
+ local_var_path = '/ref/priceTier'
686
+
687
+ # query parameters
688
+ query_params = opts[:query_params] || {}
689
+
690
+ # header parameters
691
+ header_params = opts[:header_params] || {}
692
+ # HTTP header 'Accept' (if needed)
693
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
694
+
695
+ # form parameters
696
+ form_params = opts[:form_params] || {}
697
+
698
+ # http body (model)
699
+ post_body = opts[:body]
700
+
701
+ # return_type
702
+ return_type = opts[:return_type] || 'PriceTiers'
703
+
704
+ # auth_names
705
+ auth_names = opts[:auth_names] || ['accountID', 'appKey']
706
+
707
+ new_options = opts.merge(
708
+ :header_params => header_params,
709
+ :query_params => query_params,
710
+ :form_params => form_params,
711
+ :body => post_body,
712
+ :auth_names => auth_names,
713
+ :return_type => return_type
714
+ )
715
+
716
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
717
+ if @api_client.config.debugging
718
+ @api_client.config.logger.debug "API called: InventoryApi#get_price_tiers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
719
+ end
720
+ return data, status_code, headers
721
+ end
722
+
723
+ # Allows you to retrieve the sale invoices
724
+ # @param [Hash] opts the optional parameters
725
+ # @option opts [String] :sale_id Unique DEAR Sale ID
726
+ # @option opts [Boolean] :combine_additional_charges Show additional charges in &#39;Lines&#39; array (default to false)
727
+ # @option opts [Boolean] :include_product_info Show all used products in additional array (default to false)
728
+ # @return [SaleInvoices]
729
+ def get_sale_invoices(opts = {})
730
+ data, _status_code, _headers = get_sale_invoices_with_http_info(opts)
731
+ data
732
+ end
733
+
734
+ # Allows you to retrieve the sale invoices
735
+ # @param [Hash] opts the optional parameters
736
+ # @option opts [String] :sale_id Unique DEAR Sale ID
737
+ # @option opts [Boolean] :combine_additional_charges Show additional charges in &#39;Lines&#39; array
738
+ # @option opts [Boolean] :include_product_info Show all used products in additional array
739
+ # @return [Array<(SaleInvoices, Integer, Hash)>] SaleInvoices data, response status code and response headers
740
+ def get_sale_invoices_with_http_info(opts = {})
741
+ if @api_client.config.debugging
742
+ @api_client.config.logger.debug 'Calling API: InventoryApi.get_sale_invoices ...'
743
+ end
744
+ # resource path
745
+ local_var_path = '/sale/invoice'
746
+
747
+ # query parameters
748
+ query_params = opts[:query_params] || {}
749
+ query_params[:'SaleID'] = opts[:'sale_id'] if !opts[:'sale_id'].nil?
750
+ query_params[:'CombineAdditionalCharges'] = opts[:'combine_additional_charges'] if !opts[:'combine_additional_charges'].nil?
751
+ query_params[:'IncludeProductInfo'] = opts[:'include_product_info'] if !opts[:'include_product_info'].nil?
752
+
753
+ # header parameters
754
+ header_params = opts[:header_params] || {}
755
+ # HTTP header 'Accept' (if needed)
756
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
757
+
758
+ # form parameters
759
+ form_params = opts[:form_params] || {}
760
+
761
+ # http body (model)
762
+ post_body = opts[:body]
763
+
764
+ # return_type
765
+ return_type = opts[:return_type] || 'SaleInvoices'
766
+
767
+ # auth_names
768
+ auth_names = opts[:auth_names] || ['accountID', 'appKey']
769
+
770
+ new_options = opts.merge(
771
+ :header_params => header_params,
772
+ :query_params => query_params,
773
+ :form_params => form_params,
774
+ :body => post_body,
775
+ :auth_names => auth_names,
776
+ :return_type => return_type
777
+ )
778
+
779
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
780
+ if @api_client.config.debugging
781
+ @api_client.config.logger.debug "API called: InventoryApi#get_sale_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
782
+ end
783
+ return data, status_code, headers
784
+ end
785
+
669
786
  # Allows you to retrieve the taxes
670
787
  # @param [Hash] opts the optional parameters
671
788
  # @option opts [String] :page Default is 1 (default to '1')