dear-inventory-ruby 0.1.1
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 +7 -0
- data/CHANGELOG.md +11 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +128 -0
- data/Rakefile +10 -0
- data/dear-inventory-ruby.gemspec +45 -0
- data/docs/Address.md +33 -0
- data/docs/Contact.md +33 -0
- data/docs/CurrencyCode.md +16 -0
- data/docs/Customer.md +77 -0
- data/docs/CustomerApi.md +78 -0
- data/docs/Customers.md +21 -0
- data/docs/Error.md +19 -0
- data/git_push.sh +58 -0
- data/lib/dear-inventory-ruby.rb +46 -0
- data/lib/dear-inventory-ruby/api/customer_api.rb +94 -0
- data/lib/dear-inventory-ruby/api_client.rb +402 -0
- data/lib/dear-inventory-ruby/api_error.rb +57 -0
- data/lib/dear-inventory-ruby/configuration.rb +250 -0
- data/lib/dear-inventory-ruby/models/address.rb +398 -0
- data/lib/dear-inventory-ruby/models/contact.rb +381 -0
- data/lib/dear-inventory-ruby/models/currency_code.rb +196 -0
- data/lib/dear-inventory-ruby/models/customer.rb +574 -0
- data/lib/dear-inventory-ruby/models/customers.rb +229 -0
- data/lib/dear-inventory-ruby/models/error.rb +217 -0
- data/lib/dear-inventory-ruby/version.rb +15 -0
- data/spec/api/customer_api_spec.rb +51 -0
- data/spec/api_client_spec.rb +188 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/address_spec.rb +93 -0
- data/spec/models/contact_spec.rb +89 -0
- data/spec/models/currency_code_spec.rb +35 -0
- data/spec/models/customer_spec.rb +225 -0
- data/spec/models/customers_spec.rb +53 -0
- data/spec/models/error_spec.rb +47 -0
- data/spec/spec_helper.rb +111 -0
- metadata +148 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: a44b14881b836e8b6c9dd55627777699765e816d39999829bef66d1a6385d664
|
|
4
|
+
data.tar.gz: b6175ffac46149678b765cffe9a1357899f8f5c41748d45f0e87b8dc07bd53f2
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 629106b4fcf79ebb4f73751263c80cedc4d9c1f1420b8ba518155906f58aff7a7bc9a2380e1bc06c894e8973a7b06d1cfa1eb803ede4e14af647c3f2ca1a94b4
|
|
7
|
+
data.tar.gz: 42b29532f4ca4d246dd5bcbcb0e274aa0f3a8fe6ba1100db9914dbb906a9f03e714d1662a6a0fc7179684db33a681991b4d289e09187e0f6bc7029775d72da3c
|
data/CHANGELOG.md
ADDED
data/CODE_OF_CONDUCT.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
|
10
|
+
orientation.
|
|
11
|
+
|
|
12
|
+
## Our Standards
|
|
13
|
+
|
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
|
15
|
+
include:
|
|
16
|
+
|
|
17
|
+
* Using welcoming and inclusive language
|
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
|
19
|
+
* Gracefully accepting constructive criticism
|
|
20
|
+
* Focusing on what is best for the community
|
|
21
|
+
* Showing empathy towards other community members
|
|
22
|
+
|
|
23
|
+
Examples of unacceptable behavior by participants include:
|
|
24
|
+
|
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
+
advances
|
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
+
* Public or private harassment
|
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
|
30
|
+
address, without explicit permission
|
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
+
professional setting
|
|
33
|
+
|
|
34
|
+
## Our Responsibilities
|
|
35
|
+
|
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
+
response to any instances of unacceptable behavior.
|
|
39
|
+
|
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
+
threatening, offensive, or harmful.
|
|
45
|
+
|
|
46
|
+
## Scope
|
|
47
|
+
|
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
+
when an individual is representing the project or its community. Examples of
|
|
50
|
+
representing a project or community include using an official project e-mail
|
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
|
53
|
+
further defined and clarified by project maintainers.
|
|
54
|
+
|
|
55
|
+
## Enforcement
|
|
56
|
+
|
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
+
reported by contacting the project team at nnhansg@gmail.com. All
|
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
|
63
|
+
|
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
+
members of the project's leadership.
|
|
67
|
+
|
|
68
|
+
## Attribution
|
|
69
|
+
|
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
|
72
|
+
|
|
73
|
+
[homepage]: http://contributor-covenant.org
|
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Nathan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# dear-inventory-ruby
|
|
2
|
+
|
|
3
|
+
DearInventoryRuby - the Ruby gem for the DEAR Inventory API
|
|
4
|
+
|
|
5
|
+
This specifing endpoints for DEAR Inventory API
|
|
6
|
+
|
|
7
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
|
+
|
|
9
|
+
- API version: 2.0.0
|
|
10
|
+
- Package version: 0.1.1
|
|
11
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
|
+
For more information, please visit [https://www.nnhan.me](https://www.nnhan.me)
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
### Build a gem
|
|
17
|
+
|
|
18
|
+
To build the Ruby code into a gem:
|
|
19
|
+
|
|
20
|
+
```shell
|
|
21
|
+
gem build dear-inventory-ruby.gemspec
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Then either install the gem locally:
|
|
25
|
+
|
|
26
|
+
```shell
|
|
27
|
+
gem install ./dear-inventory-ruby-0.1.1.gem
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
(for development, run `gem install --dev ./dear-inventory-ruby-0.1.1.gem` to install the development dependencies)
|
|
31
|
+
|
|
32
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
33
|
+
|
|
34
|
+
Finally add this to the Gemfile:
|
|
35
|
+
|
|
36
|
+
gem 'dear-inventory-ruby', '~> 0.1.1'
|
|
37
|
+
|
|
38
|
+
### Install from Git
|
|
39
|
+
|
|
40
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
|
41
|
+
|
|
42
|
+
gem 'dear-inventory-ruby', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
|
43
|
+
|
|
44
|
+
### Include the Ruby code directly
|
|
45
|
+
|
|
46
|
+
Include the Ruby code directly using `-I` as follows:
|
|
47
|
+
|
|
48
|
+
```shell
|
|
49
|
+
ruby -Ilib script.rb
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Getting Started
|
|
53
|
+
|
|
54
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
|
55
|
+
|
|
56
|
+
```ruby
|
|
57
|
+
# Load the gem
|
|
58
|
+
require 'dear-inventory-ruby'
|
|
59
|
+
|
|
60
|
+
# Setup authorization
|
|
61
|
+
DearInventoryRuby.configure do |config|
|
|
62
|
+
# Configure API key authorization: accountID
|
|
63
|
+
config.api_key['api_auth_accountid'] = 'YOUR API KEY'
|
|
64
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
65
|
+
#config.api_key_prefix['api_auth_accountid'] = 'Bearer'
|
|
66
|
+
|
|
67
|
+
# Configure API key authorization: appKey
|
|
68
|
+
config.api_key['api_auth_applicationkey'] = 'YOUR API KEY'
|
|
69
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
70
|
+
#config.api_key_prefix['api_auth_applicationkey'] = 'Bearer'
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
api_instance = DearInventoryRuby::CustomerApi.new
|
|
74
|
+
opts = {
|
|
75
|
+
page: '1', # String | Default is 1
|
|
76
|
+
limit: '100', # String | Default is 100
|
|
77
|
+
id: 'id_example', # String | Default is null
|
|
78
|
+
name: 'name_example', # String | Default is null
|
|
79
|
+
modified_since: 'modified_since_example', # String | Default is null
|
|
80
|
+
include_deprecated: 'false' # String | Default is false
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
begin
|
|
84
|
+
#Allows you to retrieve the customers
|
|
85
|
+
result = api_instance.get_customers(opts)
|
|
86
|
+
p result
|
|
87
|
+
rescue DearInventoryRuby::ApiError => e
|
|
88
|
+
puts "Exception when calling CustomerApi->get_customers: #{e}"
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Documentation for API Endpoints
|
|
94
|
+
|
|
95
|
+
All URIs are relative to *https://inventory.dearsystems.com/ExternalApi/v2*
|
|
96
|
+
|
|
97
|
+
Class | Method | HTTP request | Description
|
|
98
|
+
------------ | ------------- | ------------- | -------------
|
|
99
|
+
*DearInventoryRuby::CustomerApi* | [**get_customers**](docs/CustomerApi.md#get_customers) | **GET** /customer | Allows you to retrieve the customers
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## Documentation for Models
|
|
103
|
+
|
|
104
|
+
- [DearInventoryRuby::Address](docs/Address.md)
|
|
105
|
+
- [DearInventoryRuby::Contact](docs/Contact.md)
|
|
106
|
+
- [DearInventoryRuby::CurrencyCode](docs/CurrencyCode.md)
|
|
107
|
+
- [DearInventoryRuby::Customer](docs/Customer.md)
|
|
108
|
+
- [DearInventoryRuby::Customers](docs/Customers.md)
|
|
109
|
+
- [DearInventoryRuby::Error](docs/Error.md)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
## Documentation for Authorization
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
### accountID
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
- **Type**: API key
|
|
119
|
+
- **API key parameter name**: api_auth_accountid
|
|
120
|
+
- **Location**: HTTP header
|
|
121
|
+
|
|
122
|
+
### appKey
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
- **Type**: API key
|
|
126
|
+
- **API key parameter name**: api_auth_applicationkey
|
|
127
|
+
- **Location**: HTTP header
|
|
128
|
+
|
data/Rakefile
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
=begin
|
|
4
|
+
#DEAR Inventory API
|
|
5
|
+
|
|
6
|
+
#This specifing endpoints for DEAR Inventory API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Contact: nnhansg@gmail.com
|
|
10
|
+
Generated by: https://openapi-generator.tech
|
|
11
|
+
OpenAPI Generator version: 4.2.3
|
|
12
|
+
|
|
13
|
+
=end
|
|
14
|
+
|
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
|
16
|
+
require "dear-inventory-ruby/version"
|
|
17
|
+
|
|
18
|
+
Gem::Specification.new do |s|
|
|
19
|
+
s.name = "dear-inventory-ruby"
|
|
20
|
+
s.version = DearInventoryRuby::VERSION
|
|
21
|
+
s.platform = Gem::Platform::RUBY
|
|
22
|
+
s.authors = ["Nhan Nguyen"]
|
|
23
|
+
s.email = ["nnhansg@gmail.com"]
|
|
24
|
+
s.homepage = "https://inventory.dearsystems.com"
|
|
25
|
+
s.summary = "DEAR Inventory Ruby SDK generated from DEAR-OpenAPI Spec 3.0 for https://inventory.dearsystems.com"
|
|
26
|
+
s.description = "DEAR Inventory Ruby SDK generated from DEAR-OpenAPI Spec 3.0 for https://inventory.dearsystems.com"
|
|
27
|
+
s.license = 'MIT'
|
|
28
|
+
|
|
29
|
+
s.metadata['homepage_uri'] = s.homepage
|
|
30
|
+
s.metadata['source_code_uri'] = "https://github.com/nnhansg/dear-ruby"
|
|
31
|
+
s.metadata['changelog_uri'] = "https://github.com/nnhansg/dear-ruby/blob/master/CHANGELOG.md"
|
|
32
|
+
s.metadata['bug_tracker_uri'] = "https://github.com/nnhansg/dear-ruby/issues"
|
|
33
|
+
|
|
34
|
+
s.required_ruby_version = ">= 1.9"
|
|
35
|
+
|
|
36
|
+
s.add_runtime_dependency 'faraday', '>= 0.14.0'
|
|
37
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
|
38
|
+
|
|
39
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
|
40
|
+
|
|
41
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
|
42
|
+
s.test_files = `find spec/*`.split("\n")
|
|
43
|
+
s.executables = []
|
|
44
|
+
s.require_paths = ["lib"]
|
|
45
|
+
end
|
data/docs/Address.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# DearInventoryRuby::Address
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
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
|
+
**post_code** | **String** | Zip / PostCode | [optional]
|
|
13
|
+
**country** | **String** | Country name | [optional]
|
|
14
|
+
**type** | **String** | Address Type. Should be one of the following values: `Billing`, `Business` or `Shipping`. | [optional]
|
|
15
|
+
**default_for_type** | **Boolean** | Points that Address 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::Address.new(id: null,
|
|
23
|
+
line1: null,
|
|
24
|
+
line2: null,
|
|
25
|
+
city: null,
|
|
26
|
+
state: null,
|
|
27
|
+
post_code: null,
|
|
28
|
+
country: null,
|
|
29
|
+
type: null,
|
|
30
|
+
default_for_type: null)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
|
data/docs/Contact.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# DearInventoryRuby::Contact
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**id** | **String** | If passed in PUT method, entry will be searched by id, found entry will be updated, otherwise created | [optional]
|
|
8
|
+
**name** | **String** | Name of Contact | [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
|
+
**default** | **Boolean** | Points that Contact is used as default. `false` as default. | [optional] [default to false]
|
|
15
|
+
**include_in_email** | **Boolean** | Points that Contact is included in Email. `false` as default. | [optional] [default to false]
|
|
16
|
+
|
|
17
|
+
## Code Sample
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'DearInventoryRuby'
|
|
21
|
+
|
|
22
|
+
instance = DearInventoryRuby::Contact.new(id: null,
|
|
23
|
+
name: null,
|
|
24
|
+
phone: null,
|
|
25
|
+
fax: null,
|
|
26
|
+
email: null,
|
|
27
|
+
website: null,
|
|
28
|
+
comment: null,
|
|
29
|
+
default: null,
|
|
30
|
+
include_in_email: null)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# DearInventoryRuby::CurrencyCode
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
|
|
8
|
+
## Code Sample
|
|
9
|
+
|
|
10
|
+
```ruby
|
|
11
|
+
require 'DearInventoryRuby'
|
|
12
|
+
|
|
13
|
+
instance = DearInventoryRuby::CurrencyCode.new()
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
|
data/docs/Customer.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# DearInventoryRuby::Customer
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**id** | **String** | Unique Customer ID | [optional]
|
|
8
|
+
**name** | **String** | Name of Customer | [optional]
|
|
9
|
+
**status** | **String** | Points that Customer is Active. Available values are Active and Deprecated. Required for POST | [optional]
|
|
10
|
+
**currency** | [**CurrencyCode**](CurrencyCode.md) | | [optional]
|
|
11
|
+
**payment_term** | **String** | Payment term | [optional]
|
|
12
|
+
**account_receivable** | **String** | Account receivable code of Customer | [optional]
|
|
13
|
+
**revenue_account** | **String** | Sale account code of Customer | [optional]
|
|
14
|
+
**tax_rule** | **String** | Tax rule name | [optional]
|
|
15
|
+
**price_tier** | **String** | Price tier | [optional]
|
|
16
|
+
**carrier** | **String** | Carrier name | [optional]
|
|
17
|
+
**sales_representative** | **String** | Sales representative | [optional]
|
|
18
|
+
**location** | **String** | Location | [optional]
|
|
19
|
+
**discount** | **Float** | Discount must be between 0% and 100% | [optional]
|
|
20
|
+
**comments** | **String** | Comments | [optional]
|
|
21
|
+
**tax_number** | **String** | Tax number | [optional]
|
|
22
|
+
**credit_limit** | **Float** | Credit limit | [optional]
|
|
23
|
+
**tags** | **String** | Tags string | [optional]
|
|
24
|
+
**attribute_set** | **String** | AttributeSet name | [optional]
|
|
25
|
+
**additional_attribute1** | **String** | Additional attribute 1 value | [optional]
|
|
26
|
+
**additional_attribute2** | **String** | Additional attribute 2 value | [optional]
|
|
27
|
+
**additional_attribute3** | **String** | Additional attribute 3 value | [optional]
|
|
28
|
+
**additional_attribute4** | **String** | Additional attribute 4 value | [optional]
|
|
29
|
+
**additional_attribute5** | **String** | Additional attribute 5 value | [optional]
|
|
30
|
+
**additional_attribute6** | **String** | Additional attribute 6 value | [optional]
|
|
31
|
+
**additional_attribute7** | **String** | Additional attribute 7 value | [optional]
|
|
32
|
+
**additional_attribute8** | **String** | Additional attribute 8 value | [optional]
|
|
33
|
+
**additional_attribute9** | **String** | Additional attribute 9 value | [optional]
|
|
34
|
+
**additional_attribute10** | **String** | Additional attribute 10 value | [optional]
|
|
35
|
+
**last_modified_on** | **String** | Date of last modification | [optional]
|
|
36
|
+
**addresses** | [**Array<Address>**](Address.md) | List of addresses | [optional]
|
|
37
|
+
**contacts** | [**Array<Contact>**](Contact.md) | List of contacts | [optional]
|
|
38
|
+
|
|
39
|
+
## Code Sample
|
|
40
|
+
|
|
41
|
+
```ruby
|
|
42
|
+
require 'DearInventoryRuby'
|
|
43
|
+
|
|
44
|
+
instance = DearInventoryRuby::Customer.new(id: null,
|
|
45
|
+
name: null,
|
|
46
|
+
status: null,
|
|
47
|
+
currency: null,
|
|
48
|
+
payment_term: null,
|
|
49
|
+
account_receivable: null,
|
|
50
|
+
revenue_account: null,
|
|
51
|
+
tax_rule: null,
|
|
52
|
+
price_tier: null,
|
|
53
|
+
carrier: null,
|
|
54
|
+
sales_representative: null,
|
|
55
|
+
location: null,
|
|
56
|
+
discount: null,
|
|
57
|
+
comments: null,
|
|
58
|
+
tax_number: null,
|
|
59
|
+
credit_limit: null,
|
|
60
|
+
tags: null,
|
|
61
|
+
attribute_set: null,
|
|
62
|
+
additional_attribute1: null,
|
|
63
|
+
additional_attribute2: null,
|
|
64
|
+
additional_attribute3: null,
|
|
65
|
+
additional_attribute4: null,
|
|
66
|
+
additional_attribute5: null,
|
|
67
|
+
additional_attribute6: null,
|
|
68
|
+
additional_attribute7: null,
|
|
69
|
+
additional_attribute8: null,
|
|
70
|
+
additional_attribute9: null,
|
|
71
|
+
additional_attribute10: null,
|
|
72
|
+
last_modified_on: null,
|
|
73
|
+
addresses: null,
|
|
74
|
+
contacts: null)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
|