ultracart_api 3.6.7 → 3.6.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -4
- data/docs/CouponQuery.md +1 -0
- data/docs/CustomerEditorValues.md +1 -0
- data/lib/ultracart_api/models/coupon_query.rb +11 -1
- data/lib/ultracart_api/models/customer_editor_values.rb +13 -1
- data/lib/ultracart_api/models/order_payment.rb +2 -2
- data/lib/ultracart_api/models/order_query.rb +2 -2
- 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: e744aa1fbf031672fe7959ded85dbf8054e149a227e326f1c17614e3a1929e98
|
4
|
+
data.tar.gz: 0deab178700b03839ae623fdbef1f8d65a4b057ed947e94f7884237b4f469861
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 804835170e10ce2b81432dbfa2f387c0d4310d52c635a5e5d6eee48187f7461c153818ff272b5bec0e17c731a23a8d3d02ea61171519d628da8b89f4917892ea
|
7
|
+
data.tar.gz: c57c62f5609c3b1be6a85e315c73f6db08ce7895e8159c3fbaf180768b37bbcf53499850cb066c7f6669a69b37b0720d090da349323a37220c265c2c56386625
|
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.11
|
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.11.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.11.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.11'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1118,6 +1118,10 @@ Not every change is committed to every SDK.
|
|
1118
1118
|
|
1119
1119
|
| Version | Date | Comments |
|
1120
1120
|
| --: | :-: | --- |
|
1121
|
+
| 3.6.11 | 09/13/2021 | fix for CouponApi, broke due to inadvertent parameter inclusion |
|
1122
|
+
| 3.6.10 | 09/09/2021 | added constants for Google Shopping payment method (still in development) |
|
1123
|
+
| 3.6.9 | 09/07/2021 | customer profile editor values have new list of state optional countries |
|
1124
|
+
| 3.6.8 | 08/31/2021 | coupon query field to allow merchant code and description to be searched |
|
1121
1125
|
| 3.6.7 | 08/27/2021 | customer profile affiliate information now contains affiliate first and last name |
|
1122
1126
|
| 3.6.6 | 08/26/2021 | configuration api - more field changes for UI |
|
1123
1127
|
| 3.6.5 | 08/25/2021 | configuration api - removed some internal fields from sdk |
|
data/docs/CouponQuery.md
CHANGED
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
10
10
|
**expiration_dts_begin** | **String** | Expiration date begin | [optional]
|
11
11
|
**expiration_dts_end** | **String** | Expiration date begin | [optional]
|
12
12
|
**merchant_code** | **String** | Merchant code is a unique character string for this coupon. | [optional]
|
13
|
+
**merchant_code_or_description** | **String** | Merchant code description used for searching | [optional]
|
13
14
|
**start_dts_begin** | **String** | Start date begin | [optional]
|
14
15
|
**start_dts_end** | **String** | Start date end | [optional]
|
15
16
|
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
10
10
|
**countries** | [**Array<Country>**](Country.md) | countries | [optional]
|
11
11
|
**qb_classes** | **Array<String>** | qb_classes | [optional]
|
12
12
|
**sales_rep_codes** | **Array<String>** | sales_rep_codes | [optional]
|
13
|
+
**state_optional_countries** | [**Array<Country>**](Country.md) | state_optional_countries | [optional]
|
13
14
|
**terms** | **Array<String>** | terms | [optional]
|
14
15
|
|
15
16
|
|
@@ -35,6 +35,9 @@ module UltracartClient
|
|
35
35
|
# Merchant code is a unique character string for this coupon.
|
36
36
|
attr_accessor :merchant_code
|
37
37
|
|
38
|
+
# Merchant code description used for searching
|
39
|
+
attr_accessor :merchant_code_or_description
|
40
|
+
|
38
41
|
# Start date begin
|
39
42
|
attr_accessor :start_dts_begin
|
40
43
|
|
@@ -51,6 +54,7 @@ module UltracartClient
|
|
51
54
|
:'expiration_dts_begin' => :'expiration_dts_begin',
|
52
55
|
:'expiration_dts_end' => :'expiration_dts_end',
|
53
56
|
:'merchant_code' => :'merchant_code',
|
57
|
+
:'merchant_code_or_description' => :'merchant_code_or_description',
|
54
58
|
:'start_dts_begin' => :'start_dts_begin',
|
55
59
|
:'start_dts_end' => :'start_dts_end'
|
56
60
|
}
|
@@ -66,6 +70,7 @@ module UltracartClient
|
|
66
70
|
:'expiration_dts_begin' => :'String',
|
67
71
|
:'expiration_dts_end' => :'String',
|
68
72
|
:'merchant_code' => :'String',
|
73
|
+
:'merchant_code_or_description' => :'String',
|
69
74
|
:'start_dts_begin' => :'String',
|
70
75
|
:'start_dts_end' => :'String'
|
71
76
|
}
|
@@ -107,6 +112,10 @@ module UltracartClient
|
|
107
112
|
self.merchant_code = attributes[:'merchant_code']
|
108
113
|
end
|
109
114
|
|
115
|
+
if attributes.has_key?(:'merchant_code_or_description')
|
116
|
+
self.merchant_code_or_description = attributes[:'merchant_code_or_description']
|
117
|
+
end
|
118
|
+
|
110
119
|
if attributes.has_key?(:'start_dts_begin')
|
111
120
|
self.start_dts_begin = attributes[:'start_dts_begin']
|
112
121
|
end
|
@@ -141,6 +150,7 @@ module UltracartClient
|
|
141
150
|
expiration_dts_begin == o.expiration_dts_begin &&
|
142
151
|
expiration_dts_end == o.expiration_dts_end &&
|
143
152
|
merchant_code == o.merchant_code &&
|
153
|
+
merchant_code_or_description == o.merchant_code_or_description &&
|
144
154
|
start_dts_begin == o.start_dts_begin &&
|
145
155
|
start_dts_end == o.start_dts_end
|
146
156
|
end
|
@@ -154,7 +164,7 @@ module UltracartClient
|
|
154
164
|
# Calculates hash code according to all attributes.
|
155
165
|
# @return [Fixnum] Hash code
|
156
166
|
def hash
|
157
|
-
[affiliate_oid, coupon_type, description, exclude_expired, expiration_dts_begin, expiration_dts_end, merchant_code, start_dts_begin, start_dts_end].hash
|
167
|
+
[affiliate_oid, coupon_type, description, exclude_expired, expiration_dts_begin, expiration_dts_end, merchant_code, merchant_code_or_description, start_dts_begin, start_dts_end].hash
|
158
168
|
end
|
159
169
|
|
160
170
|
# Builds the object from hash
|
@@ -35,6 +35,9 @@ module UltracartClient
|
|
35
35
|
# sales_rep_codes
|
36
36
|
attr_accessor :sales_rep_codes
|
37
37
|
|
38
|
+
# state_optional_countries
|
39
|
+
attr_accessor :state_optional_countries
|
40
|
+
|
38
41
|
# terms
|
39
42
|
attr_accessor :terms
|
40
43
|
|
@@ -48,6 +51,7 @@ module UltracartClient
|
|
48
51
|
:'countries' => :'countries',
|
49
52
|
:'qb_classes' => :'qb_classes',
|
50
53
|
:'sales_rep_codes' => :'sales_rep_codes',
|
54
|
+
:'state_optional_countries' => :'state_optional_countries',
|
51
55
|
:'terms' => :'terms'
|
52
56
|
}
|
53
57
|
end
|
@@ -62,6 +66,7 @@ module UltracartClient
|
|
62
66
|
:'countries' => :'Array<Country>',
|
63
67
|
:'qb_classes' => :'Array<String>',
|
64
68
|
:'sales_rep_codes' => :'Array<String>',
|
69
|
+
:'state_optional_countries' => :'Array<Country>',
|
65
70
|
:'terms' => :'Array<String>'
|
66
71
|
}
|
67
72
|
end
|
@@ -116,6 +121,12 @@ module UltracartClient
|
|
116
121
|
end
|
117
122
|
end
|
118
123
|
|
124
|
+
if attributes.has_key?(:'state_optional_countries')
|
125
|
+
if (value = attributes[:'state_optional_countries']).is_a?(Array)
|
126
|
+
self.state_optional_countries = value
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
119
130
|
if attributes.has_key?(:'terms')
|
120
131
|
if (value = attributes[:'terms']).is_a?(Array)
|
121
132
|
self.terms = value
|
@@ -148,6 +159,7 @@ module UltracartClient
|
|
148
159
|
countries == o.countries &&
|
149
160
|
qb_classes == o.qb_classes &&
|
150
161
|
sales_rep_codes == o.sales_rep_codes &&
|
162
|
+
state_optional_countries == o.state_optional_countries &&
|
151
163
|
terms == o.terms
|
152
164
|
end
|
153
165
|
|
@@ -160,7 +172,7 @@ module UltracartClient
|
|
160
172
|
# Calculates hash code according to all attributes.
|
161
173
|
# @return [Fixnum] Hash code
|
162
174
|
def hash
|
163
|
-
[affiliates, card_exp_months, card_exp_years, card_types, countries, qb_classes, sales_rep_codes, terms].hash
|
175
|
+
[affiliates, card_exp_months, card_exp_years, card_types, countries, qb_classes, sales_rep_codes, state_optional_countries, terms].hash
|
164
176
|
end
|
165
177
|
|
166
178
|
# Builds the object from hash
|
@@ -225,7 +225,7 @@ module UltracartClient
|
|
225
225
|
# Check to see if the all the properties in the model are valid
|
226
226
|
# @return true if the model is valid
|
227
227
|
def valid?
|
228
|
-
payment_method_validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eBay', 'eCheck', 'Insurance', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer', 'Walmart'])
|
228
|
+
payment_method_validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eBay', 'eCheck', 'Google Shopping', 'Insurance', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer', 'Walmart'])
|
229
229
|
return false unless payment_method_validator.valid?(@payment_method)
|
230
230
|
payment_status_validator = EnumAttributeValidator.new('String', ['Unprocessed', 'Authorized', 'Capture Failed', 'Processed', 'Declined', 'Voided', 'Refunded', 'Skipped'])
|
231
231
|
return false unless payment_status_validator.valid?(@payment_status)
|
@@ -235,7 +235,7 @@ module UltracartClient
|
|
235
235
|
# Custom attribute writer method checking allowed values (enum).
|
236
236
|
# @param [Object] payment_method Object to be assigned
|
237
237
|
def payment_method=(payment_method)
|
238
|
-
validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eBay', 'eCheck', 'Insurance', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer', 'Walmart'])
|
238
|
+
validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eBay', 'eCheck', 'Google Shopping', 'Insurance', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer', 'Walmart'])
|
239
239
|
unless validator.valid?(payment_method)
|
240
240
|
fail ArgumentError, 'invalid value for "payment_method", must be one of #{validator.allowable_values}.'
|
241
241
|
end
|
@@ -475,7 +475,7 @@ module UltracartClient
|
|
475
475
|
return false if !@email.nil? && @email.to_s.length > 100
|
476
476
|
return false if !@first_name.nil? && @first_name.to_s.length > 30
|
477
477
|
return false if !@last_name.nil? && @last_name.to_s.length > 30
|
478
|
-
payment_method_validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eCheck', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer'])
|
478
|
+
payment_method_validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eCheck', 'Google Shopping', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer'])
|
479
479
|
return false unless payment_method_validator.valid?(@payment_method)
|
480
480
|
return false if !@phone.nil? && @phone.to_s.length > 25
|
481
481
|
return false if !@postal_code.nil? && @postal_code.to_s.length > 20
|
@@ -568,7 +568,7 @@ module UltracartClient
|
|
568
568
|
# Custom attribute writer method checking allowed values (enum).
|
569
569
|
# @param [Object] payment_method Object to be assigned
|
570
570
|
def payment_method=(payment_method)
|
571
|
-
validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eCheck', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer'])
|
571
|
+
validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eCheck', 'Google Shopping', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer'])
|
572
572
|
unless validator.valid?(payment_method)
|
573
573
|
fail ArgumentError, 'invalid value for "payment_method", must be one of #{validator.allowable_values}.'
|
574
574
|
end
|
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.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|