ultracart_api 3.6.5 → 3.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/PaymentsConfigurationAmazon.md +1 -1
- data/docs/PaymentsConfigurationSezzle.md +0 -1
- data/lib/ultracart_api/models/payments_configuration_amazon.rb +45 -11
- data/lib/ultracart_api/models/payments_configuration_sezzle.rb +1 -13
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30214a0b96948d4198748e2fd467580f71b5d91530e1c84f0e32f15c008dd5ff
|
4
|
+
data.tar.gz: 910ff7b816d0be9f8254e4121849a883eec72005c4c16e884d14222c61139788
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52d7e2251f0d8f2f10e920969f9a96b4da491e1c1f3fcd1598fb50e8b3e101b7e684e5172e2105badae9fff2b587ee4993fc2a343c8c403789928817b5b650d6
|
7
|
+
data.tar.gz: 5ffbf72608fa96bd3a5394418ab636c292aaffa4ea42695e6f555b485c21e48e7a30d26e36e91eaaa1828008f87c20085966ee968246838a4050c3c09dfc968e
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 3.6.
|
10
|
+
- Package version: 3.6.6
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-3.6.
|
27
|
+
gem install ./ultracart_api-3.6.6.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.6.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.6.6.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'ultracart_api', '~> 3.6.
|
35
|
+
gem 'ultracart_api', '~> 3.6.6'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1118,6 +1118,7 @@ Not every change is committed to every SDK.
|
|
1118
1118
|
|
1119
1119
|
| Version | Date | Comments |
|
1120
1120
|
| --: | :-: | --- |
|
1121
|
+
| 3.6.6 | 08/26/2021 | configuration api - more field changes for UI |
|
1121
1122
|
| 3.6.5 | 08/25/2021 | configuration api - removed some internal fields from sdk |
|
1122
1123
|
| 3.6.4 | 08/24/2021 | configuration api - new payment method named insurance |
|
1123
1124
|
| 3.6.1 | 08/23/2021 | configuration api - enum problems, also added order.item.tracking_number to support line item tracking numbers |
|
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
|
|
8
8
|
**accounting_code** | **String** | Optional accounting code for use with Quickbooks integrations | [optional]
|
9
9
|
**amazon_merchant_id** | **String** | Amazon merchant ID | [optional]
|
10
10
|
**deposit_to_account** | **String** | Optional deposit to account field for use with Quickbooks integrations | [optional]
|
11
|
+
**environment** | **String** | Environment | [optional]
|
11
12
|
**restrictions** | [**PaymentsConfigurationRestrictions**](PaymentsConfigurationRestrictions.md) | | [optional]
|
12
|
-
**sandbox** | **BOOLEAN** | True if transactions should run against the Amazon sandbox. Useful for testing not configurations | [optional]
|
13
13
|
**secret_access_key** | **String** | Amazon secret access key | [optional]
|
14
14
|
|
15
15
|
|
@@ -8,7 +8,6 @@ Name | Type | Description | Notes
|
|
8
8
|
**business_id** | **String** | Business ID | [optional]
|
9
9
|
**deposit_to_account** | **String** | Optional Quickbooks Deposit to Account value | [optional]
|
10
10
|
**environment** | **String** | Sezzle environment | [optional]
|
11
|
-
**environments** | **Array<String>** | List of environments possible | [optional]
|
12
11
|
**private_api_key** | **String** | Private API key | [optional]
|
13
12
|
**public_api_key** | **String** | Public API key | [optional]
|
14
13
|
**restrictions** | [**PaymentsConfigurationRestrictions**](PaymentsConfigurationRestrictions.md) | | [optional]
|
@@ -29,14 +29,36 @@ module UltracartClient
|
|
29
29
|
# Optional deposit to account field for use with Quickbooks integrations
|
30
30
|
attr_accessor :deposit_to_account
|
31
31
|
|
32
|
-
|
32
|
+
# Environment
|
33
|
+
attr_accessor :environment
|
33
34
|
|
34
|
-
|
35
|
-
attr_accessor :sandbox
|
35
|
+
attr_accessor :restrictions
|
36
36
|
|
37
37
|
# Amazon secret access key
|
38
38
|
attr_accessor :secret_access_key
|
39
39
|
|
40
|
+
class EnumAttributeValidator
|
41
|
+
attr_reader :datatype
|
42
|
+
attr_reader :allowable_values
|
43
|
+
|
44
|
+
def initialize(datatype, allowable_values)
|
45
|
+
@allowable_values = allowable_values.map do |value|
|
46
|
+
case datatype.to_s
|
47
|
+
when /Integer/i
|
48
|
+
value.to_i
|
49
|
+
when /Float/i
|
50
|
+
value.to_f
|
51
|
+
else
|
52
|
+
value
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def valid?(value)
|
58
|
+
!value || allowable_values.include?(value)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
40
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
63
|
def self.attribute_map
|
42
64
|
{
|
@@ -45,8 +67,8 @@ module UltracartClient
|
|
45
67
|
:'accounting_code' => :'accounting_code',
|
46
68
|
:'amazon_merchant_id' => :'amazon_merchant_id',
|
47
69
|
:'deposit_to_account' => :'deposit_to_account',
|
70
|
+
:'environment' => :'environment',
|
48
71
|
:'restrictions' => :'restrictions',
|
49
|
-
:'sandbox' => :'sandbox',
|
50
72
|
:'secret_access_key' => :'secret_access_key'
|
51
73
|
}
|
52
74
|
end
|
@@ -59,8 +81,8 @@ module UltracartClient
|
|
59
81
|
:'accounting_code' => :'String',
|
60
82
|
:'amazon_merchant_id' => :'String',
|
61
83
|
:'deposit_to_account' => :'String',
|
84
|
+
:'environment' => :'String',
|
62
85
|
:'restrictions' => :'PaymentsConfigurationRestrictions',
|
63
|
-
:'sandbox' => :'BOOLEAN',
|
64
86
|
:'secret_access_key' => :'String'
|
65
87
|
}
|
66
88
|
end
|
@@ -93,12 +115,12 @@ module UltracartClient
|
|
93
115
|
self.deposit_to_account = attributes[:'deposit_to_account']
|
94
116
|
end
|
95
117
|
|
96
|
-
if attributes.has_key?(:'
|
97
|
-
self.
|
118
|
+
if attributes.has_key?(:'environment')
|
119
|
+
self.environment = attributes[:'environment']
|
98
120
|
end
|
99
121
|
|
100
|
-
if attributes.has_key?(:'
|
101
|
-
self.
|
122
|
+
if attributes.has_key?(:'restrictions')
|
123
|
+
self.restrictions = attributes[:'restrictions']
|
102
124
|
end
|
103
125
|
|
104
126
|
if attributes.has_key?(:'secret_access_key')
|
@@ -116,9 +138,21 @@ module UltracartClient
|
|
116
138
|
# Check to see if the all the properties in the model are valid
|
117
139
|
# @return true if the model is valid
|
118
140
|
def valid?
|
141
|
+
environment_validator = EnumAttributeValidator.new('String', ['Live', 'Sandbox'])
|
142
|
+
return false unless environment_validator.valid?(@environment)
|
119
143
|
true
|
120
144
|
end
|
121
145
|
|
146
|
+
# Custom attribute writer method checking allowed values (enum).
|
147
|
+
# @param [Object] environment Object to be assigned
|
148
|
+
def environment=(environment)
|
149
|
+
validator = EnumAttributeValidator.new('String', ['Live', 'Sandbox'])
|
150
|
+
unless validator.valid?(environment)
|
151
|
+
fail ArgumentError, 'invalid value for "environment", must be one of #{validator.allowable_values}.'
|
152
|
+
end
|
153
|
+
@environment = environment
|
154
|
+
end
|
155
|
+
|
122
156
|
# Checks equality by comparing each attribute.
|
123
157
|
# @param [Object] Object to be compared
|
124
158
|
def ==(o)
|
@@ -129,8 +163,8 @@ module UltracartClient
|
|
129
163
|
accounting_code == o.accounting_code &&
|
130
164
|
amazon_merchant_id == o.amazon_merchant_id &&
|
131
165
|
deposit_to_account == o.deposit_to_account &&
|
166
|
+
environment == o.environment &&
|
132
167
|
restrictions == o.restrictions &&
|
133
|
-
sandbox == o.sandbox &&
|
134
168
|
secret_access_key == o.secret_access_key
|
135
169
|
end
|
136
170
|
|
@@ -143,7 +177,7 @@ module UltracartClient
|
|
143
177
|
# Calculates hash code according to all attributes.
|
144
178
|
# @return [Fixnum] Hash code
|
145
179
|
def hash
|
146
|
-
[accept_amazon, access_key_id, accounting_code, amazon_merchant_id, deposit_to_account,
|
180
|
+
[accept_amazon, access_key_id, accounting_code, amazon_merchant_id, deposit_to_account, environment, restrictions, secret_access_key].hash
|
147
181
|
end
|
148
182
|
|
149
183
|
# Builds the object from hash
|
@@ -29,9 +29,6 @@ module UltracartClient
|
|
29
29
|
# Sezzle environment
|
30
30
|
attr_accessor :environment
|
31
31
|
|
32
|
-
# List of environments possible
|
33
|
-
attr_accessor :environments
|
34
|
-
|
35
32
|
# Private API key
|
36
33
|
attr_accessor :private_api_key
|
37
34
|
|
@@ -70,7 +67,6 @@ module UltracartClient
|
|
70
67
|
:'business_id' => :'business_id',
|
71
68
|
:'deposit_to_account' => :'deposit_to_account',
|
72
69
|
:'environment' => :'environment',
|
73
|
-
:'environments' => :'environments',
|
74
70
|
:'private_api_key' => :'private_api_key',
|
75
71
|
:'public_api_key' => :'public_api_key',
|
76
72
|
:'restrictions' => :'restrictions'
|
@@ -85,7 +81,6 @@ module UltracartClient
|
|
85
81
|
:'business_id' => :'String',
|
86
82
|
:'deposit_to_account' => :'String',
|
87
83
|
:'environment' => :'String',
|
88
|
-
:'environments' => :'Array<String>',
|
89
84
|
:'private_api_key' => :'String',
|
90
85
|
:'public_api_key' => :'String',
|
91
86
|
:'restrictions' => :'PaymentsConfigurationRestrictions'
|
@@ -120,12 +115,6 @@ module UltracartClient
|
|
120
115
|
self.environment = attributes[:'environment']
|
121
116
|
end
|
122
117
|
|
123
|
-
if attributes.has_key?(:'environments')
|
124
|
-
if (value = attributes[:'environments']).is_a?(Array)
|
125
|
-
self.environments = value
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
118
|
if attributes.has_key?(:'private_api_key')
|
130
119
|
self.private_api_key = attributes[:'private_api_key']
|
131
120
|
end
|
@@ -174,7 +163,6 @@ module UltracartClient
|
|
174
163
|
business_id == o.business_id &&
|
175
164
|
deposit_to_account == o.deposit_to_account &&
|
176
165
|
environment == o.environment &&
|
177
|
-
environments == o.environments &&
|
178
166
|
private_api_key == o.private_api_key &&
|
179
167
|
public_api_key == o.public_api_key &&
|
180
168
|
restrictions == o.restrictions
|
@@ -189,7 +177,7 @@ module UltracartClient
|
|
189
177
|
# Calculates hash code according to all attributes.
|
190
178
|
# @return [Fixnum] Hash code
|
191
179
|
def hash
|
192
|
-
[accept_sezzle, accounting_code, business_id, deposit_to_account, environment,
|
180
|
+
[accept_sezzle, accounting_code, business_id, deposit_to_account, environment, private_api_key, public_api_key, restrictions].hash
|
193
181
|
end
|
194
182
|
|
195
183
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ultracart_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|