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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/README.md +14 -4
- data/docs/Account.md +15 -15
- data/docs/Accounts.md +3 -3
- data/docs/Address.md +8 -8
- data/docs/AttachmentLine.md +5 -5
- data/docs/Bin.md +19 -0
- data/docs/Carrier.md +19 -0
- data/docs/Carriers.md +21 -0
- data/docs/Contact.md +9 -9
- data/docs/Customer.md +31 -31
- data/docs/Customers.md +3 -3
- data/docs/Error.md +2 -2
- data/docs/ExternalHeader.md +2 -2
- data/docs/InventoryApi.md +252 -64
- data/docs/Location.md +51 -0
- data/docs/Locations.md +21 -0
- data/docs/Me.md +7 -7
- data/docs/MeContact.md +33 -0
- data/docs/MeContacts.md +21 -0
- data/docs/PaymentTerm.md +4 -4
- data/docs/PaymentTerms.md +3 -3
- data/docs/PriceTier.md +2 -2
- data/docs/PriceTiers.md +1 -1
- data/docs/Sale.md +43 -43
- data/docs/SaleAdditionalCharge.md +8 -8
- data/docs/SaleInvoice.md +17 -17
- data/docs/SaleInvoiceAdditionalCharge.md +9 -9
- data/docs/SaleInvoiceDelete.md +1 -1
- data/docs/SaleInvoiceLine.md +12 -12
- data/docs/SaleInvoicePartial.md +12 -12
- data/docs/SaleInvoicePost.md +12 -12
- data/docs/SaleInvoices.md +2 -2
- data/docs/SaleItem.md +31 -31
- data/docs/SaleList.md +3 -3
- data/docs/SaleOrder.md +9 -9
- data/docs/SaleOrderLine.md +13 -13
- data/docs/SalePayment.md +14 -14
- data/docs/SalePaymentLine.md +7 -7
- data/docs/SaleQuote.md +8 -8
- data/docs/SaleQuoteLine.md +11 -11
- data/docs/ShippingAddress.md +11 -11
- data/docs/Success.md +1 -1
- data/docs/SupplierCustomerAddress.md +9 -9
- data/docs/Tax.md +5 -5
- data/docs/TaxComponent.md +3 -3
- data/docs/Taxes.md +3 -3
- data/docs/Webhook.md +10 -10
- data/docs/Webhooks.md +1 -1
- data/lib/dear-inventory-ruby/api/inventory_api.rb +193 -4
- data/lib/dear-inventory-ruby/models/bin.rb +217 -0
- data/lib/dear-inventory-ruby/models/carrier.rb +217 -0
- data/lib/dear-inventory-ruby/models/carriers.rb +229 -0
- data/lib/dear-inventory-ruby/models/location.rb +391 -0
- data/lib/dear-inventory-ruby/models/locations.rb +229 -0
- data/lib/dear-inventory-ruby/models/me_contact.rb +289 -0
- data/lib/dear-inventory-ruby/models/me_contacts.rb +229 -0
- data/lib/dear-inventory-ruby/models/supplier_customer_address.rb +7 -7
- data/lib/dear-inventory-ruby/version.rb +1 -1
- data/lib/dear-inventory-ruby.rb +7 -0
- data/spec/.DS_Store +0 -0
- data/spec/api/inventory_api_spec.rb +41 -2
- data/spec/models/bin_spec.rb +47 -0
- data/spec/models/carrier_spec.rb +47 -0
- data/spec/models/carriers_spec.rb +53 -0
- data/spec/models/location_spec.rb +143 -0
- data/spec/models/locations_spec.rb +53 -0
- data/spec/models/me_contact_spec.rb +89 -0
- data/spec/models/me_contacts_spec.rb +53 -0
- data/spec/models/supplier_customer_address_spec.rb +1 -1
- metadata +31 -7
data/docs/SalePaymentLine.md
CHANGED
@@ -4,13 +4,13 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**id** | **String** | Identifier of payment. | [optional]
|
8
|
-
**reference** | **String** | Payment reference number. | [optional]
|
9
|
-
**amount** | **Float** | Decimal with up to 2 decimal places. Payment amount in customer currency. | [optional]
|
10
|
-
**date_paid** | **Date** | Date when payment has been made. | [optional]
|
11
|
-
**account** | **String** | Account Code of the bank/payment account from Chart of accounts. | [optional]
|
12
|
-
**currency_rate** | **Float** | Decimal with up to 4 decimal places. Currency Conversion rate expressed as number of Base currency units for one Customer currency unit. | [optional]
|
13
|
-
**date_created** | **Date** | Date of creation payment record. | [optional]
|
7
|
+
**id** | **String** | Identifier of payment. | [optional]
|
8
|
+
**reference** | **String** | Payment reference number. | [optional]
|
9
|
+
**amount** | **Float** | Decimal with up to 2 decimal places. Payment amount in customer currency. | [optional]
|
10
|
+
**date_paid** | **Date** | Date when payment has been made. | [optional]
|
11
|
+
**account** | **String** | Account Code of the bank/payment account from Chart of accounts. | [optional]
|
12
|
+
**currency_rate** | **Float** | Decimal with up to 4 decimal places. Currency Conversion rate expressed as number of Base currency units for one Customer currency unit. | [optional]
|
13
|
+
**date_created** | **Date** | Date of creation payment record. | [optional]
|
14
14
|
|
15
15
|
## Code Sample
|
16
16
|
|
data/docs/SaleQuote.md
CHANGED
@@ -4,15 +4,15 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**sale_id** | **String** | Unique DEAR Sale ID |
|
7
|
+
**sale_id** | **String** | Unique DEAR Sale ID |
|
8
8
|
**combine_additional_charges** | **Boolean** | If `true` then `additional charges` lines displayed in `Lines` array | [default to false]
|
9
|
-
**memo** | **String** | Additional information for Quote. |
|
10
|
-
**status** | **String** | Quote Status. Possible Values are values. For POST only `DRAFT` and `AUTHORISED` values accepted |
|
11
|
-
**lines** | [**Array<SaleQuoteLine>**](SaleQuoteLine.md) | | [optional]
|
12
|
-
**additional_charges** | [**Array<SaleAdditionalCharge>**](SaleAdditionalCharge.md) | | [optional]
|
13
|
-
**total_before_tax** | **Float** | Decimal with up to 4 decimal places. Sum of quote lines and additional charges without taxes. Not required for POST. |
|
14
|
-
**tax** | **Float** | Decimal with up to 4 decimal places. Sum of quote lines and additional charges taxes. Not required for POST. |
|
15
|
-
**total** | **Float** | Decimal with up to 4 decimal places. Sum of quote lines and additional charges with taxes. Not required for POST. |
|
9
|
+
**memo** | **String** | Additional information for Quote. |
|
10
|
+
**status** | **String** | Quote Status. Possible Values are values. For POST only `DRAFT` and `AUTHORISED` values accepted |
|
11
|
+
**lines** | [**Array<SaleQuoteLine>**](SaleQuoteLine.md) | | [optional]
|
12
|
+
**additional_charges** | [**Array<SaleAdditionalCharge>**](SaleAdditionalCharge.md) | | [optional]
|
13
|
+
**total_before_tax** | **Float** | Decimal with up to 4 decimal places. Sum of quote lines and additional charges without taxes. Not required for POST. |
|
14
|
+
**tax** | **Float** | Decimal with up to 4 decimal places. Sum of quote lines and additional charges taxes. Not required for POST. |
|
15
|
+
**total** | **Float** | Decimal with up to 4 decimal places. Sum of quote lines and additional charges with taxes. Not required for POST. |
|
16
16
|
|
17
17
|
## Code Sample
|
18
18
|
|
data/docs/SaleQuoteLine.md
CHANGED
@@ -4,17 +4,17 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**product_id** | **String** | Product identifier referenced by this Line. Required If CombineAdditionalCharges param exist for this endpoint and it have values = false | [optional]
|
8
|
-
**sku** | **String** | Product SKU referenced by this Line. Required If CombineAdditionalCharges param exist for this endpoint and it have values = false | [optional]
|
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
|
-
**average_cost** | **Float** | Average product cost | [optional]
|
15
|
-
**tax_rule** | **String** | Line Tax Rule name. | [optional]
|
16
|
-
**comment** | **String** | Comment for this line | [optional]
|
17
|
-
**total** | **Float** | Line Total. For validation | [optional]
|
7
|
+
**product_id** | **String** | Product identifier referenced by this Line. Required If CombineAdditionalCharges param exist for this endpoint and it have values = false | [optional]
|
8
|
+
**sku** | **String** | Product SKU referenced by this Line. Required If CombineAdditionalCharges param exist for this endpoint and it have values = false | [optional]
|
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
|
+
**average_cost** | **Float** | Average product cost | [optional]
|
15
|
+
**tax_rule** | **String** | Line Tax Rule name. | [optional]
|
16
|
+
**comment** | **String** | Comment for this line | [optional]
|
17
|
+
**total** | **Float** | Line Total. For validation | [optional]
|
18
18
|
|
19
19
|
## Code Sample
|
20
20
|
|
data/docs/ShippingAddress.md
CHANGED
@@ -4,17 +4,17 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**display_address_line1** | **String** | Address Line 1 as displayed on Sale form. = Line1 + Line2 | [optional]
|
8
|
-
**display_address_line2** | **String** | Address Line 2 as displayed on Sale form. = City + State/Region + Zip/Postcode + Country | [optional]
|
9
|
-
**line1** | **String** | Address Line 1 |
|
10
|
-
**line2** | **String** | Address Line 2 | [optional]
|
11
|
-
**city** | **String** | City | [optional]
|
12
|
-
**state** | **String** | State | [optional]
|
13
|
-
**post_code** | **String** | Post code | [optional]
|
14
|
-
**country** | **String** | Country |
|
15
|
-
**company** | **String** | Company Name | [optional]
|
16
|
-
**contact** | **String** | Contact | [optional]
|
17
|
-
**ship_to_other** | **Boolean** | If false and Customer's address matching Line 1 not found, than new customer shipping address will be created. | [optional]
|
7
|
+
**display_address_line1** | **String** | Address Line 1 as displayed on Sale form. = Line1 + Line2 | [optional]
|
8
|
+
**display_address_line2** | **String** | Address Line 2 as displayed on Sale form. = City + State/Region + Zip/Postcode + Country | [optional]
|
9
|
+
**line1** | **String** | Address Line 1 |
|
10
|
+
**line2** | **String** | Address Line 2 | [optional]
|
11
|
+
**city** | **String** | City | [optional]
|
12
|
+
**state** | **String** | State | [optional]
|
13
|
+
**post_code** | **String** | Post code | [optional]
|
14
|
+
**country** | **String** | Country |
|
15
|
+
**company** | **String** | Company Name | [optional]
|
16
|
+
**contact** | **String** | Contact | [optional]
|
17
|
+
**ship_to_other** | **Boolean** | If false and Customer's address matching Line 1 not found, than new customer shipping address will be created. | [optional]
|
18
18
|
|
19
19
|
## Code Sample
|
20
20
|
|
data/docs/Success.md
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**id** | **String** | If passed in PUT method, entry will be searched by id, found entry will be updated, otherwise created | [optional]
|
8
|
-
**line1** | **String** | Address Line 1 | [optional]
|
9
|
-
**line2** | **String** | Address Line 2 | [optional]
|
10
|
-
**city** | **String** | City / Suburb | [optional]
|
11
|
-
**state** | **String** | State / Province | [optional]
|
12
|
-
**
|
13
|
-
**country** | **String** | Country name |
|
14
|
-
**type** | **String** | Address Type. Should be one of the following values: `Billing`, `Business` or `Shipping`. |
|
7
|
+
**id** | **String** | If passed in PUT method, entry will be searched by id, found entry will be updated, otherwise created | [optional]
|
8
|
+
**line1** | **String** | Address Line 1 | [optional]
|
9
|
+
**line2** | **String** | Address Line 2 | [optional]
|
10
|
+
**city** | **String** | City / Suburb | [optional]
|
11
|
+
**state** | **String** | State / Province | [optional]
|
12
|
+
**postcode** | **String** | Zip / PostCode | [optional]
|
13
|
+
**country** | **String** | Country name |
|
14
|
+
**type** | **String** | Address Type. Should be one of the following values: `Billing`, `Business` or `Shipping`. |
|
15
15
|
**default_for_type** | **Boolean** | Points that Address is used as default for chosen Type. `false` as default. | [optional] [default to false]
|
16
16
|
|
17
17
|
## Code Sample
|
@@ -24,7 +24,7 @@ instance = DearInventoryRuby::SupplierCustomerAddress.new(id: nil,
|
|
24
24
|
line2: nil,
|
25
25
|
city: nil,
|
26
26
|
state: nil,
|
27
|
-
|
27
|
+
postcode: nil,
|
28
28
|
country: nil,
|
29
29
|
type: nil,
|
30
30
|
default_for_type: nil)
|
data/docs/Tax.md
CHANGED
@@ -4,15 +4,15 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**id** | **String** | Unique ID | [optional]
|
8
|
-
**name** | **String** | Tax Name |
|
9
|
-
**account** | **String** | ChartOfAccount Code with Class == `LIABILITY` && Status == `ACTIVE` |
|
7
|
+
**id** | **String** | Unique ID | [optional]
|
8
|
+
**name** | **String** | Tax Name |
|
9
|
+
**account** | **String** | ChartOfAccount Code with Class == `LIABILITY` && Status == `ACTIVE` |
|
10
10
|
**is_active** | **Boolean** | Points that tax is Active | [default to true]
|
11
11
|
**tax_inclusive** | **Boolean** | Points that tax is Inclusive | [default to true]
|
12
|
-
**tax_percent** | **Float** | Tax percentage, should be between 0 and 100. Read-only | [optional]
|
12
|
+
**tax_percent** | **Float** | Tax percentage, should be between 0 and 100. Read-only | [optional]
|
13
13
|
**is_tax_for_sale** | **Boolean** | Points that tax is used for Sale | [optional] [default to true]
|
14
14
|
**is_tax_for_purchase** | **Boolean** | Points that tax is used for Purchase | [optional] [default to true]
|
15
|
-
**components** | [**Array<TaxComponent>**](TaxComponent.md) | List of Tax Components | [optional]
|
15
|
+
**components** | [**Array<TaxComponent>**](TaxComponent.md) | List of Tax Components | [optional]
|
16
16
|
|
17
17
|
## Code Sample
|
18
18
|
|
data/docs/TaxComponent.md
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**name** | **String** | Name of product. Read-only. |
|
7
|
+
**name** | **String** | Name of product. Read-only. |
|
8
8
|
**percent** | **Float** | Cost. Required if product type is `Service`. Default value = 0. | [default to 0]
|
9
|
-
**account_code** | **String** | ChartOfAccount Code with Class == `LIABILITY` && Status == `ACTIVE` |
|
10
|
-
**component_order** | **Integer** | The order of sequence taxes components. |
|
9
|
+
**account_code** | **String** | ChartOfAccount Code with Class == `LIABILITY` && Status == `ACTIVE` |
|
10
|
+
**component_order** | **Integer** | The order of sequence taxes components. |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
data/docs/Taxes.md
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**total** | **String** | Total | [optional]
|
8
|
-
**page** | **String** | Page | [optional]
|
9
|
-
**tax_rule_list** | [**Array<Tax>**](Tax.md) | Array of Taxes | [optional]
|
7
|
+
**total** | **String** | Total | [optional]
|
8
|
+
**page** | **String** | Page | [optional]
|
9
|
+
**tax_rule_list** | [**Array<Tax>**](Tax.md) | Array of Taxes | [optional]
|
10
10
|
|
11
11
|
## Code Sample
|
12
12
|
|
data/docs/Webhook.md
CHANGED
@@ -4,16 +4,16 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**id** | **String** | Unique ID. Required for PUT | [optional]
|
8
|
-
**type** | **String** | Webhook Type. Available values are values |
|
9
|
-
**name** | **String** | Webhook Friendly Name. Read-only. | [optional]
|
10
|
-
**is_active** | **Boolean** | Is webhook active. |
|
11
|
-
**external_url** | **String** | Callback url. |
|
12
|
-
**external_authorization_type** | **String** | Authorisation type. Available values are `noauth`, `basicauth` and `bearerauth` |
|
13
|
-
**external_user_name** | **String** | User name. Required if `ExternalAuthorizationType` is `basicauth` | [optional]
|
14
|
-
**external_password** | **String** | Password. Required if `ExternalAuthorizationType` is `basicauth` | [optional]
|
15
|
-
**external_bearer_token** | **String** | Bearer token. Required if `ExternalAuthorizationType` is `bearerauth` | [optional]
|
16
|
-
**external_headers** | [**Array<ExternalHeader>**](ExternalHeader.md) | Additional headers. | [optional]
|
7
|
+
**id** | **String** | Unique ID. Required for PUT | [optional]
|
8
|
+
**type** | **String** | Webhook Type. Available values are values |
|
9
|
+
**name** | **String** | Webhook Friendly Name. Read-only. | [optional]
|
10
|
+
**is_active** | **Boolean** | Is webhook active. |
|
11
|
+
**external_url** | **String** | Callback url. |
|
12
|
+
**external_authorization_type** | **String** | Authorisation type. Available values are `noauth`, `basicauth` and `bearerauth` |
|
13
|
+
**external_user_name** | **String** | User name. Required if `ExternalAuthorizationType` is `basicauth` | [optional]
|
14
|
+
**external_password** | **String** | Password. Required if `ExternalAuthorizationType` is `basicauth` | [optional]
|
15
|
+
**external_bearer_token** | **String** | Bearer token. Required if `ExternalAuthorizationType` is `bearerauth` | [optional]
|
16
|
+
**external_headers** | [**Array<ExternalHeader>**](ExternalHeader.md) | Additional headers. | [optional]
|
17
17
|
|
18
18
|
## Code Sample
|
19
19
|
|
data/docs/Webhooks.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**webhooks** | [**Array<Webhook>**](Webhook.md) | Array of Webhooks | [optional]
|
7
|
+
**webhooks** | [**Array<Webhook>**](Webhook.md) | Array of Webhooks | [optional]
|
8
8
|
|
9
9
|
## Code Sample
|
10
10
|
|
@@ -967,6 +967,72 @@ module DearInventoryRuby
|
|
967
967
|
return data, status_code, headers
|
968
968
|
end
|
969
969
|
|
970
|
+
# Allows you to retrieve the carriers
|
971
|
+
# @param [Hash] opts the optional parameters
|
972
|
+
# @option opts [String] :page Default is 1 (default to '1')
|
973
|
+
# @option opts [String] :limit Default is 100 (default to '100')
|
974
|
+
# @option opts [String] :carrier_id Only return Carrier with the specific CarrierID
|
975
|
+
# @option opts [String] :description Only return Carriers that start with the specific Description
|
976
|
+
# @return [Carriers]
|
977
|
+
def get_carriers(opts = {})
|
978
|
+
data, _status_code, _headers = get_carriers_with_http_info(opts)
|
979
|
+
data
|
980
|
+
end
|
981
|
+
|
982
|
+
# Allows you to retrieve the carriers
|
983
|
+
# @param [Hash] opts the optional parameters
|
984
|
+
# @option opts [String] :page Default is 1
|
985
|
+
# @option opts [String] :limit Default is 100
|
986
|
+
# @option opts [String] :carrier_id Only return Carrier with the specific CarrierID
|
987
|
+
# @option opts [String] :description Only return Carriers that start with the specific Description
|
988
|
+
# @return [Array<(Carriers, Integer, Hash)>] Carriers data, response status code and response headers
|
989
|
+
def get_carriers_with_http_info(opts = {})
|
990
|
+
if @api_client.config.debugging
|
991
|
+
@api_client.config.logger.debug 'Calling API: InventoryApi.get_carriers ...'
|
992
|
+
end
|
993
|
+
# resource path
|
994
|
+
local_var_path = '/ref/carrier'
|
995
|
+
|
996
|
+
# query parameters
|
997
|
+
query_params = opts[:query_params] || {}
|
998
|
+
query_params[:'Page'] = opts[:'page'] if !opts[:'page'].nil?
|
999
|
+
query_params[:'Limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1000
|
+
query_params[:'CarrierID'] = opts[:'carrier_id'] if !opts[:'carrier_id'].nil?
|
1001
|
+
query_params[:'Description'] = opts[:'description'] if !opts[:'description'].nil?
|
1002
|
+
|
1003
|
+
# header parameters
|
1004
|
+
header_params = opts[:header_params] || {}
|
1005
|
+
# HTTP header 'Accept' (if needed)
|
1006
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1007
|
+
|
1008
|
+
# form parameters
|
1009
|
+
form_params = opts[:form_params] || {}
|
1010
|
+
|
1011
|
+
# http body (model)
|
1012
|
+
post_body = opts[:body]
|
1013
|
+
|
1014
|
+
# return_type
|
1015
|
+
return_type = opts[:return_type] || 'Carriers'
|
1016
|
+
|
1017
|
+
# auth_names
|
1018
|
+
auth_names = opts[:auth_names] || ['accountID', 'appKey']
|
1019
|
+
|
1020
|
+
new_options = opts.merge(
|
1021
|
+
:header_params => header_params,
|
1022
|
+
:query_params => query_params,
|
1023
|
+
:form_params => form_params,
|
1024
|
+
:body => post_body,
|
1025
|
+
:auth_names => auth_names,
|
1026
|
+
:return_type => return_type
|
1027
|
+
)
|
1028
|
+
|
1029
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1030
|
+
if @api_client.config.debugging
|
1031
|
+
@api_client.config.logger.debug "API called: InventoryApi#get_carriers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1032
|
+
end
|
1033
|
+
return data, status_code, headers
|
1034
|
+
end
|
1035
|
+
|
970
1036
|
# Allows you to retrieve the customers
|
971
1037
|
# @param [Hash] opts the optional parameters
|
972
1038
|
# @option opts [String] :page Default is 1 (default to '1')
|
@@ -975,8 +1041,8 @@ module DearInventoryRuby
|
|
975
1041
|
# @option opts [String] :name Default is nil
|
976
1042
|
# @option opts [String] :contact_filter Default is nil
|
977
1043
|
# @option opts [String] :modified_since Default is nil
|
978
|
-
# @option opts [
|
979
|
-
# @option opts [
|
1044
|
+
# @option opts [Boolean] :include_deprecated Default is false (default to false)
|
1045
|
+
# @option opts [Boolean] :include_product_prices Default is false (default to false)
|
980
1046
|
# @return [Customers]
|
981
1047
|
def get_customers(opts = {})
|
982
1048
|
data, _status_code, _headers = get_customers_with_http_info(opts)
|
@@ -991,8 +1057,8 @@ module DearInventoryRuby
|
|
991
1057
|
# @option opts [String] :name Default is nil
|
992
1058
|
# @option opts [String] :contact_filter Default is nil
|
993
1059
|
# @option opts [String] :modified_since Default is nil
|
994
|
-
# @option opts [
|
995
|
-
# @option opts [
|
1060
|
+
# @option opts [Boolean] :include_deprecated Default is false
|
1061
|
+
# @option opts [Boolean] :include_product_prices Default is false
|
996
1062
|
# @return [Array<(Customers, Integer, Hash)>] Customers data, response status code and response headers
|
997
1063
|
def get_customers_with_http_info(opts = {})
|
998
1064
|
if @api_client.config.debugging
|
@@ -1045,6 +1111,75 @@ module DearInventoryRuby
|
|
1045
1111
|
return data, status_code, headers
|
1046
1112
|
end
|
1047
1113
|
|
1114
|
+
# Allows you to retrieve the locations
|
1115
|
+
# @param [Hash] opts the optional parameters
|
1116
|
+
# @option opts [String] :page Default is 1 (default to '1')
|
1117
|
+
# @option opts [String] :limit Default is 100 (default to '100')
|
1118
|
+
# @option opts [String] :id Default is nil
|
1119
|
+
# @option opts [Boolean] :deprecated Default is false (default to false)
|
1120
|
+
# @option opts [String] :name Default is nil
|
1121
|
+
# @return [Locations]
|
1122
|
+
def get_locations(opts = {})
|
1123
|
+
data, _status_code, _headers = get_locations_with_http_info(opts)
|
1124
|
+
data
|
1125
|
+
end
|
1126
|
+
|
1127
|
+
# Allows you to retrieve the locations
|
1128
|
+
# @param [Hash] opts the optional parameters
|
1129
|
+
# @option opts [String] :page Default is 1
|
1130
|
+
# @option opts [String] :limit Default is 100
|
1131
|
+
# @option opts [String] :id Default is nil
|
1132
|
+
# @option opts [Boolean] :deprecated Default is false
|
1133
|
+
# @option opts [String] :name Default is nil
|
1134
|
+
# @return [Array<(Locations, Integer, Hash)>] Locations data, response status code and response headers
|
1135
|
+
def get_locations_with_http_info(opts = {})
|
1136
|
+
if @api_client.config.debugging
|
1137
|
+
@api_client.config.logger.debug 'Calling API: InventoryApi.get_locations ...'
|
1138
|
+
end
|
1139
|
+
# resource path
|
1140
|
+
local_var_path = '/ref/location'
|
1141
|
+
|
1142
|
+
# query parameters
|
1143
|
+
query_params = opts[:query_params] || {}
|
1144
|
+
query_params[:'Page'] = opts[:'page'] if !opts[:'page'].nil?
|
1145
|
+
query_params[:'Limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1146
|
+
query_params[:'ID'] = opts[:'id'] if !opts[:'id'].nil?
|
1147
|
+
query_params[:'Deprecated'] = opts[:'deprecated'] if !opts[:'deprecated'].nil?
|
1148
|
+
query_params[:'Name'] = opts[:'name'] if !opts[:'name'].nil?
|
1149
|
+
|
1150
|
+
# header parameters
|
1151
|
+
header_params = opts[:header_params] || {}
|
1152
|
+
# HTTP header 'Accept' (if needed)
|
1153
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1154
|
+
|
1155
|
+
# form parameters
|
1156
|
+
form_params = opts[:form_params] || {}
|
1157
|
+
|
1158
|
+
# http body (model)
|
1159
|
+
post_body = opts[:body]
|
1160
|
+
|
1161
|
+
# return_type
|
1162
|
+
return_type = opts[:return_type] || 'Locations'
|
1163
|
+
|
1164
|
+
# auth_names
|
1165
|
+
auth_names = opts[:auth_names] || ['accountID', 'appKey']
|
1166
|
+
|
1167
|
+
new_options = opts.merge(
|
1168
|
+
:header_params => header_params,
|
1169
|
+
:query_params => query_params,
|
1170
|
+
:form_params => form_params,
|
1171
|
+
:body => post_body,
|
1172
|
+
:auth_names => auth_names,
|
1173
|
+
:return_type => return_type
|
1174
|
+
)
|
1175
|
+
|
1176
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1177
|
+
if @api_client.config.debugging
|
1178
|
+
@api_client.config.logger.debug "API called: InventoryApi#get_locations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1179
|
+
end
|
1180
|
+
return data, status_code, headers
|
1181
|
+
end
|
1182
|
+
|
1048
1183
|
# Allows you to retrieve your information
|
1049
1184
|
# @param [Hash] opts the optional parameters
|
1050
1185
|
# @return [Me]
|
@@ -1099,6 +1234,60 @@ module DearInventoryRuby
|
|
1099
1234
|
return data, status_code, headers
|
1100
1235
|
end
|
1101
1236
|
|
1237
|
+
# Allows you to retrieve the me contacts (Sales Representatives)
|
1238
|
+
# @param [Hash] opts the optional parameters
|
1239
|
+
# @return [MeContacts]
|
1240
|
+
def get_me_contacts(opts = {})
|
1241
|
+
data, _status_code, _headers = get_me_contacts_with_http_info(opts)
|
1242
|
+
data
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
# Allows you to retrieve the me contacts (Sales Representatives)
|
1246
|
+
# @param [Hash] opts the optional parameters
|
1247
|
+
# @return [Array<(MeContacts, Integer, Hash)>] MeContacts data, response status code and response headers
|
1248
|
+
def get_me_contacts_with_http_info(opts = {})
|
1249
|
+
if @api_client.config.debugging
|
1250
|
+
@api_client.config.logger.debug 'Calling API: InventoryApi.get_me_contacts ...'
|
1251
|
+
end
|
1252
|
+
# resource path
|
1253
|
+
local_var_path = '/me/contacts'
|
1254
|
+
|
1255
|
+
# query parameters
|
1256
|
+
query_params = opts[:query_params] || {}
|
1257
|
+
|
1258
|
+
# header parameters
|
1259
|
+
header_params = opts[:header_params] || {}
|
1260
|
+
# HTTP header 'Accept' (if needed)
|
1261
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1262
|
+
|
1263
|
+
# form parameters
|
1264
|
+
form_params = opts[:form_params] || {}
|
1265
|
+
|
1266
|
+
# http body (model)
|
1267
|
+
post_body = opts[:body]
|
1268
|
+
|
1269
|
+
# return_type
|
1270
|
+
return_type = opts[:return_type] || 'MeContacts'
|
1271
|
+
|
1272
|
+
# auth_names
|
1273
|
+
auth_names = opts[:auth_names] || ['accountID', 'appKey']
|
1274
|
+
|
1275
|
+
new_options = opts.merge(
|
1276
|
+
:header_params => header_params,
|
1277
|
+
:query_params => query_params,
|
1278
|
+
:form_params => form_params,
|
1279
|
+
:body => post_body,
|
1280
|
+
:auth_names => auth_names,
|
1281
|
+
:return_type => return_type
|
1282
|
+
)
|
1283
|
+
|
1284
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1285
|
+
if @api_client.config.debugging
|
1286
|
+
@api_client.config.logger.debug "API called: InventoryApi#get_me_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1287
|
+
end
|
1288
|
+
return data, status_code, headers
|
1289
|
+
end
|
1290
|
+
|
1102
1291
|
# Allows you to retrieve the payment terms
|
1103
1292
|
# @param [Hash] opts the optional parameters
|
1104
1293
|
# @option opts [String] :page Default is 1 (default to '1')
|