dear-inventory-ruby 0.2.9 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/README.md +14 -4
- data/docs/Bin.md +19 -0
- data/docs/Carrier.md +19 -0
- data/docs/Carriers.md +21 -0
- data/docs/InventoryApi.md +192 -4
- data/docs/Location.md +51 -0
- data/docs/Locations.md +21 -0
- data/docs/MeContact.md +33 -0
- data/docs/MeContacts.md +21 -0
- data/lib/dear-inventory-ruby/api/inventory_api.rb +193 -4
- data/lib/dear-inventory-ruby/models/account.rb +0 -76
- 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/contact.rb +0 -94
- data/lib/dear-inventory-ruby/models/customer.rb +0 -34
- 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/payment_term.rb +0 -19
- data/lib/dear-inventory-ruby/models/supplier_customer_address.rb +0 -75
- data/lib/dear-inventory-ruby/models/tax_component.rb +0 -19
- 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
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 784c9c2d581cdb49797edb13ad15f7cc1a26a1854a9134db021894879df9cac8
|
4
|
+
data.tar.gz: 518147a06737463f51381764479b67c44b60496baf44c142570b7f3683471773
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 665d6760d0dcddb08b86f42ea176416c42dbf1590ef7e711a2afb5839d226480e89f2cde0800e94eed05711042e90bec8b5ba37e12ba4909f92da26de540a916
|
7
|
+
data.tar.gz: 4099384656dc34f0142301986378a053666790682cb19236f42cdc8b9d8761489331397602ffbfbfeeff764d9c099a5a160cf9d308187cca6aa399052b563209
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,21 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [0.2.11] - 2024-02-21
|
6
|
+
|
7
|
+
- Add the new endpoints
|
8
|
+
+ GET `/me/contacts`
|
9
|
+
+ GET `/ref/carrier`
|
10
|
+
+ GET `/ref/location`
|
11
|
+
|
12
|
+
## [0.2.10.1] - 2024-02-06
|
13
|
+
|
14
|
+
- Update gem version
|
15
|
+
|
16
|
+
## [0.2.10] - 2024-02-06
|
17
|
+
|
18
|
+
- Remove the validations related to `maxlength`
|
19
|
+
|
5
20
|
## [0.2.9] - 2023-05-30
|
6
21
|
|
7
22
|
- Add `Attachments` property to responses of the 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.
|
10
|
+
- Package version: 0.2.11
|
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.
|
27
|
+
gem install ./dear-inventory-ruby-0.2.11.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./dear-inventory-ruby-0.2.
|
30
|
+
(for development, run `gem install --dev ./dear-inventory-ruby-0.2.11.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.
|
36
|
+
gem 'dear-inventory-ruby', '~> 0.2.11'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -107,8 +107,11 @@ Class | Method | HTTP request | Description
|
|
107
107
|
*DearInventoryRuby::InventoryApi* | [**delete_sale_payment**](docs/InventoryApi.md#delete_sale_payment) | **DELETE** /sale/payment | Allows you to delete a sale payment
|
108
108
|
*DearInventoryRuby::InventoryApi* | [**delete_webhook**](docs/InventoryApi.md#delete_webhook) | **DELETE** /webhooks | Allows you to delete a webhook
|
109
109
|
*DearInventoryRuby::InventoryApi* | [**get_accounts**](docs/InventoryApi.md#get_accounts) | **GET** /ref/account | Allows you to retrieve the Chart of Accounts
|
110
|
+
*DearInventoryRuby::InventoryApi* | [**get_carriers**](docs/InventoryApi.md#get_carriers) | **GET** /ref/carrier | Allows you to retrieve the carriers
|
110
111
|
*DearInventoryRuby::InventoryApi* | [**get_customers**](docs/InventoryApi.md#get_customers) | **GET** /customer | Allows you to retrieve the customers
|
112
|
+
*DearInventoryRuby::InventoryApi* | [**get_locations**](docs/InventoryApi.md#get_locations) | **GET** /ref/location | Allows you to retrieve the locations
|
111
113
|
*DearInventoryRuby::InventoryApi* | [**get_me**](docs/InventoryApi.md#get_me) | **GET** /me | Allows you to retrieve your information
|
114
|
+
*DearInventoryRuby::InventoryApi* | [**get_me_contacts**](docs/InventoryApi.md#get_me_contacts) | **GET** /me/contacts | Allows you to retrieve the me contacts (Sales Representatives)
|
112
115
|
*DearInventoryRuby::InventoryApi* | [**get_payment_terms**](docs/InventoryApi.md#get_payment_terms) | **GET** /ref/paymentterm | Allows you to retrieve the payment terms
|
113
116
|
*DearInventoryRuby::InventoryApi* | [**get_price_tiers**](docs/InventoryApi.md#get_price_tiers) | **GET** /ref/priceTier | Allows you to retrieve the Price Tiers
|
114
117
|
*DearInventoryRuby::InventoryApi* | [**get_sale**](docs/InventoryApi.md#get_sale) | **GET** /sale | Allows you to retrieve the Sale
|
@@ -134,12 +137,19 @@ Class | Method | HTTP request | Description
|
|
134
137
|
- [DearInventoryRuby::Address](docs/Address.md)
|
135
138
|
- [DearInventoryRuby::AttachmentLine](docs/AttachmentLine.md)
|
136
139
|
- [DearInventoryRuby::AuthorizationType](docs/AuthorizationType.md)
|
140
|
+
- [DearInventoryRuby::Bin](docs/Bin.md)
|
141
|
+
- [DearInventoryRuby::Carrier](docs/Carrier.md)
|
142
|
+
- [DearInventoryRuby::Carriers](docs/Carriers.md)
|
137
143
|
- [DearInventoryRuby::Contact](docs/Contact.md)
|
138
144
|
- [DearInventoryRuby::Customer](docs/Customer.md)
|
139
145
|
- [DearInventoryRuby::Customers](docs/Customers.md)
|
140
146
|
- [DearInventoryRuby::Error](docs/Error.md)
|
141
147
|
- [DearInventoryRuby::ExternalHeader](docs/ExternalHeader.md)
|
148
|
+
- [DearInventoryRuby::Location](docs/Location.md)
|
149
|
+
- [DearInventoryRuby::Locations](docs/Locations.md)
|
142
150
|
- [DearInventoryRuby::Me](docs/Me.md)
|
151
|
+
- [DearInventoryRuby::MeContact](docs/MeContact.md)
|
152
|
+
- [DearInventoryRuby::MeContacts](docs/MeContacts.md)
|
143
153
|
- [DearInventoryRuby::PaymentTerm](docs/PaymentTerm.md)
|
144
154
|
- [DearInventoryRuby::PaymentTerms](docs/PaymentTerms.md)
|
145
155
|
- [DearInventoryRuby::PriceTier](docs/PriceTier.md)
|
data/docs/Bin.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# DearInventoryRuby::Bin
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**id** | **String** | Unique ID | [optional]
|
8
|
+
**name** | **String** | Name of `Bin` | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'DearInventoryRuby'
|
14
|
+
|
15
|
+
instance = DearInventoryRuby::Bin.new(id: nil,
|
16
|
+
name: nil)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
data/docs/Carrier.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# DearInventoryRuby::Carrier
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**carrier_id** | **String** | Unique `Carrier` ID | [optional]
|
8
|
+
**description** | **String** | Name of `Carrier` | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'DearInventoryRuby'
|
14
|
+
|
15
|
+
instance = DearInventoryRuby::Carrier.new(carrier_id: nil,
|
16
|
+
description: nil)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
data/docs/Carriers.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# DearInventoryRuby::Carriers
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**total** | **Float** | Total | [optional]
|
8
|
+
**page** | **Float** | Page | [optional]
|
9
|
+
**carrier_list** | [**Array<Carrier>**](Carrier.md) | Array of Carriers | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'DearInventoryRuby'
|
15
|
+
|
16
|
+
instance = DearInventoryRuby::Carriers.new(total: nil,
|
17
|
+
page: nil,
|
18
|
+
carrier_list: nil)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
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
|
@@ -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:
|
993
|
-
include_product_prices:
|
1060
|
+
include_deprecated: false, # Boolean | Default is false
|
1061
|
+
include_product_prices: false # Boolean | Default is false
|
994
1062
|
}
|
995
1063
|
|
996
1064
|
begin
|
@@ -1013,8 +1081,8 @@ Name | Type | Description | Notes
|
|
1013
1081
|
**name** | **String**| Default is nil | [optional]
|
1014
1082
|
**contact_filter** | **String**| Default is nil | [optional]
|
1015
1083
|
**modified_since** | **String**| Default is nil | [optional]
|
1016
|
-
**include_deprecated** | **
|
1017
|
-
**include_product_prices** | **
|
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)
|
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/MeContact.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# DearInventoryRuby::MeContact
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**contact_id** | **String** | Unique `MeContact` ID | [optional]
|
8
|
+
**name** | **String** | Name of `MeContact` | [optional]
|
9
|
+
**phone** | **String** | Phone | [optional]
|
10
|
+
**fax** | **String** | Fax | [optional]
|
11
|
+
**email** | **String** | Email | [optional]
|
12
|
+
**website** | **String** | Website | [optional]
|
13
|
+
**comment** | **String** | Comment | [optional]
|
14
|
+
**type** | **String** | `MeContact` Type. Should be one of the following values: `Billing`, `Business`, `Sale`, `Shipping` or `Employee` | [optional]
|
15
|
+
**default_for_type** | **Boolean** | Points that `MeContact` is used as default for chosen `Type`. `False` as default. | [optional] [default to false]
|
16
|
+
|
17
|
+
## Code Sample
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'DearInventoryRuby'
|
21
|
+
|
22
|
+
instance = DearInventoryRuby::MeContact.new(contact_id: nil,
|
23
|
+
name: nil,
|
24
|
+
phone: nil,
|
25
|
+
fax: nil,
|
26
|
+
email: nil,
|
27
|
+
website: nil,
|
28
|
+
comment: nil,
|
29
|
+
type: nil,
|
30
|
+
default_for_type: nil)
|
31
|
+
```
|
32
|
+
|
33
|
+
|
data/docs/MeContacts.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# DearInventoryRuby::MeContacts
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**total** | **Float** | Total | [optional]
|
8
|
+
**page** | **Float** | Page | [optional]
|
9
|
+
**me_contacts_list** | [**Array<MeContact>**](MeContact.md) | Array of MeContacts | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'DearInventoryRuby'
|
15
|
+
|
16
|
+
instance = DearInventoryRuby::MeContacts.new(total: nil,
|
17
|
+
page: nil,
|
18
|
+
me_contacts_list: nil)
|
19
|
+
```
|
20
|
+
|
21
|
+
|