ultracart_api 3.10.165 → 3.10.166

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e356c6b6d5cca18c2446d11738ddb8261f01cafec6dc402bf730754eff97636
4
- data.tar.gz: 5d8739254538f67793bdf0a705a61a544cb802f8e3e7f61294a8b3e1cf6c8769
3
+ metadata.gz: 325b3fb7ef2598216a534880dac8d783c7c5a6b8eeb2f25886fd1c6fb447c7cb
4
+ data.tar.gz: 8c259818b2b70168168d6f90da133eef0aa8d682e8e8bd63405c47742da39837
5
5
  SHA512:
6
- metadata.gz: 7eb7757469f28d0f0c6dc6edcf86f4bd991fdfbf188c4ebe3341dd4bbf0139c14411d8d41d14868a23716788bf9a3734d6b591933b7e87f87469742b0d446fa9
7
- data.tar.gz: 367f1f9800e19b7829b1ef19f1112a1750504090c4fe04ff403d4b748dd642a66cdb2143c03eb270f632ba94532a6cb6be00424382a5d63e8313937467613130
6
+ metadata.gz: 6ee3a17478aaff15e4f2d9574321de97f24bb443748154ec6dc0b90067913154f6001ecb7f3b960ece1da797f81e2efe8484d9c9ab16dbcd3bf0dee925d0296c
7
+ data.tar.gz: 60be9ae2c63cd31ac96d2301c69c0ec3e0ca9b66aff84fe9326347acf7252601df9ee7c0e3928c342ecb7058414b973cc168fe77ca801bae7460deb4568ea054
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.10.165
10
+ - Package version: 3.10.166
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.10.165.gem
27
+ gem install ./ultracart_api-3.10.166.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.165.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.166.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.10.165'
35
+ gem 'ultracart_api', '~> 3.10.166'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -593,6 +593,7 @@ Class | Method | HTTP request | Description
593
593
  - [UltracartClient::CartPaymentAmazon](docs/CartPaymentAmazon.md)
594
594
  - [UltracartClient::CartPaymentCheck](docs/CartPaymentCheck.md)
595
595
  - [UltracartClient::CartPaymentCreditCard](docs/CartPaymentCreditCard.md)
596
+ - [UltracartClient::CartPaymentHealthBenefitCard](docs/CartPaymentHealthBenefitCard.md)
596
597
  - [UltracartClient::CartPaymentPurchaseOrder](docs/CartPaymentPurchaseOrder.md)
597
598
  - [UltracartClient::CartProfileLoginRequest](docs/CartProfileLoginRequest.md)
598
599
  - [UltracartClient::CartProfileLoginResponse](docs/CartProfileLoginResponse.md)
@@ -1113,6 +1114,7 @@ Class | Method | HTTP request | Description
1113
1114
  - [UltracartClient::OrderPaymentCreditCardDualVaulted](docs/OrderPaymentCreditCardDualVaulted.md)
1114
1115
  - [UltracartClient::OrderPaymentCreditCardDualVaultedProperty](docs/OrderPaymentCreditCardDualVaultedProperty.md)
1115
1116
  - [UltracartClient::OrderPaymentECheck](docs/OrderPaymentECheck.md)
1117
+ - [UltracartClient::OrderPaymentHealthBenefitCard](docs/OrderPaymentHealthBenefitCard.md)
1116
1118
  - [UltracartClient::OrderPaymentInsurance](docs/OrderPaymentInsurance.md)
1117
1119
  - [UltracartClient::OrderPaymentPurchaseOrder](docs/OrderPaymentPurchaseOrder.md)
1118
1120
  - [UltracartClient::OrderPaymentTransaction](docs/OrderPaymentTransaction.md)
@@ -1386,6 +1388,7 @@ Not every change is committed to every SDK.
1386
1388
 
1387
1389
  | Version | Date | Comments |
1388
1390
  | --: | :-: | --- |
1391
+ | 3.10.166 | 10/27/2023 | workflow task object model refinement |
1389
1392
  | 3.10.165 | 10/23/2023 | workflow tasks api |
1390
1393
  | 3.10.164 | 10/23/2023 | workflow tasks api |
1391
1394
  | 3.10.163 | 10/16/2023 | CartSettingsPaymentCreditCard - add collect_credit_card_verification_number_minimum |
data/docs/CartPayment.md CHANGED
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **amazon** | [**CartPaymentAmazon**](CartPaymentAmazon.md) | | [optional]
8
8
  **check** | [**CartPaymentCheck**](CartPaymentCheck.md) | | [optional]
9
9
  **credit_card** | [**CartPaymentCreditCard**](CartPaymentCreditCard.md) | | [optional]
10
+ **health_benefit_card** | [**CartPaymentHealthBenefitCard**](CartPaymentHealthBenefitCard.md) | | [optional]
10
11
  **payment_method** | **String** | Payment method | [optional]
11
12
  **purchase_order** | [**CartPaymentPurchaseOrder**](CartPaymentPurchaseOrder.md) | | [optional]
12
13
  **rtg_code** | **String** | Rotating transaction gateway code | [optional]
@@ -0,0 +1,13 @@
1
+ # UltracartClient::CartPaymentHealthBenefitCard
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **health_benefit_card_expiration_month** | **Integer** | Health benefit expiration month (1-12) | [optional]
7
+ **health_benefit_card_expiration_year** | **Integer** | Health benefit card expiration year (four digit year) | [optional]
8
+ **health_benefit_card_number** | **String** | Health benefit card number (masked to the last 4) | [optional]
9
+ **health_benefit_card_number_token** | **String** | Hosted field token for the card number | [optional]
10
+ **health_benefit_card_verification_number** | **String** | Health benefit card verification number (masked) | [optional]
11
+ **health_benefit_card_verification_number_token** | **String** | Hosted field token for the health benefit card verification number | [optional]
12
+
13
+
data/docs/OrderPayment.md CHANGED
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  **check** | [**OrderPaymentCheck**](OrderPaymentCheck.md) | | [optional]
7
7
  **credit_card** | [**OrderPaymentCreditCard**](OrderPaymentCreditCard.md) | | [optional]
8
8
  **echeck** | [**OrderPaymentECheck**](OrderPaymentECheck.md) | | [optional]
9
+ **health_benefit_card** | [**OrderPaymentHealthBenefitCard**](OrderPaymentHealthBenefitCard.md) | | [optional]
9
10
  **hold_for_fraud_review** | **BOOLEAN** | True if order has been held for fraud review | [optional]
10
11
  **insurance** | [**OrderPaymentInsurance**](OrderPaymentInsurance.md) | | [optional]
11
12
  **payment_dts** | **String** | Date/time that the payment was successfully processed, for new orders, this field is only considered if channel_partner.skip_payment_processing is true | [optional]
@@ -0,0 +1,13 @@
1
+ # UltracartClient::OrderPaymentHealthBenefitCard
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **health_benefit_card_expiration_month** | **Integer** | Health benefit card expiration month (1-12) | [optional]
7
+ **health_benefit_card_expiration_year** | **Integer** | Health benefit card expiration year (Four digit year) | [optional]
8
+ **health_benefit_card_number** | **String** | Health benefit card number (masked to last 4) | [optional]
9
+ **health_benefit_card_number_token** | **String** | Health benefit card number token from hosted fields used to update the health benefit card number | [optional]
10
+ **health_benefit_card_number_truncated** | **BOOLEAN** | True if the health benefit card has been truncated | [optional]
11
+ **health_benefit_card_verification_number_token** | **String** | Health benefit card verification number token from hosted fields, only for import/insert of new orders, completely ignored for updates, and always null/empty for queries | [optional]
12
+
13
+
@@ -9,7 +9,8 @@ Name | Type | Description | Notes
9
9
  **created_by** | [**WorkflowUser**](WorkflowUser.md) | | [optional]
10
10
  **created_dts_begin** | **String** | Date/time that the workflow task was created | [optional]
11
11
  **created_dts_end** | **String** | Date/time that the workflow task was created | [optional]
12
- **delay_until_dts** | **String** | Date/time that the workflow task should delay until | [optional]
12
+ **delay_until_dts_begin** | **String** | Date/time that the workflow task should delay until | [optional]
13
+ **delay_until_dts_end** | **String** | Date/time that the workflow task should delay until | [optional]
13
14
  **due_dts_begin** | **String** | Date/time that the workflow task is due | [optional]
14
15
  **due_dts_end** | **String** | Date/time that the workflow task is due | [optional]
15
16
  **last_update_dts_begin** | **String** | Date/time that the workflow task was last updated | [optional]
@@ -22,6 +22,8 @@ module UltracartClient
22
22
 
23
23
  attr_accessor :credit_card
24
24
 
25
+ attr_accessor :health_benefit_card
26
+
25
27
  # Payment method
26
28
  attr_accessor :payment_method
27
29
 
@@ -37,6 +39,7 @@ module UltracartClient
37
39
  :'amazon' => :'amazon',
38
40
  :'check' => :'check',
39
41
  :'credit_card' => :'credit_card',
42
+ :'health_benefit_card' => :'health_benefit_card',
40
43
  :'payment_method' => :'payment_method',
41
44
  :'purchase_order' => :'purchase_order',
42
45
  :'rtg_code' => :'rtg_code'
@@ -50,6 +53,7 @@ module UltracartClient
50
53
  :'amazon' => :'CartPaymentAmazon',
51
54
  :'check' => :'CartPaymentCheck',
52
55
  :'credit_card' => :'CartPaymentCreditCard',
56
+ :'health_benefit_card' => :'CartPaymentHealthBenefitCard',
53
57
  :'payment_method' => :'String',
54
58
  :'purchase_order' => :'CartPaymentPurchaseOrder',
55
59
  :'rtg_code' => :'String'
@@ -80,6 +84,10 @@ module UltracartClient
80
84
  self.credit_card = attributes[:'credit_card']
81
85
  end
82
86
 
87
+ if attributes.has_key?(:'health_benefit_card')
88
+ self.health_benefit_card = attributes[:'health_benefit_card']
89
+ end
90
+
83
91
  if attributes.has_key?(:'payment_method')
84
92
  self.payment_method = attributes[:'payment_method']
85
93
  end
@@ -115,6 +123,7 @@ module UltracartClient
115
123
  amazon == o.amazon &&
116
124
  check == o.check &&
117
125
  credit_card == o.credit_card &&
126
+ health_benefit_card == o.health_benefit_card &&
118
127
  payment_method == o.payment_method &&
119
128
  purchase_order == o.purchase_order &&
120
129
  rtg_code == o.rtg_code
@@ -129,7 +138,7 @@ module UltracartClient
129
138
  # Calculates hash code according to all attributes.
130
139
  # @return [Fixnum] Hash code
131
140
  def hash
132
- [affirm, amazon, check, credit_card, payment_method, purchase_order, rtg_code].hash
141
+ [affirm, amazon, check, credit_card, health_benefit_card, payment_method, purchase_order, rtg_code].hash
133
142
  end
134
143
 
135
144
  # Builds the object from hash
@@ -0,0 +1,235 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class CartPaymentHealthBenefitCard
17
+ # Health benefit expiration month (1-12)
18
+ attr_accessor :health_benefit_card_expiration_month
19
+
20
+ # Health benefit card expiration year (four digit year)
21
+ attr_accessor :health_benefit_card_expiration_year
22
+
23
+ # Health benefit card number (masked to the last 4)
24
+ attr_accessor :health_benefit_card_number
25
+
26
+ # Hosted field token for the card number
27
+ attr_accessor :health_benefit_card_number_token
28
+
29
+ # Health benefit card verification number (masked)
30
+ attr_accessor :health_benefit_card_verification_number
31
+
32
+ # Hosted field token for the health benefit card verification number
33
+ attr_accessor :health_benefit_card_verification_number_token
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'health_benefit_card_expiration_month' => :'health_benefit_card_expiration_month',
39
+ :'health_benefit_card_expiration_year' => :'health_benefit_card_expiration_year',
40
+ :'health_benefit_card_number' => :'health_benefit_card_number',
41
+ :'health_benefit_card_number_token' => :'health_benefit_card_number_token',
42
+ :'health_benefit_card_verification_number' => :'health_benefit_card_verification_number',
43
+ :'health_benefit_card_verification_number_token' => :'health_benefit_card_verification_number_token'
44
+ }
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.swagger_types
49
+ {
50
+ :'health_benefit_card_expiration_month' => :'Integer',
51
+ :'health_benefit_card_expiration_year' => :'Integer',
52
+ :'health_benefit_card_number' => :'String',
53
+ :'health_benefit_card_number_token' => :'String',
54
+ :'health_benefit_card_verification_number' => :'String',
55
+ :'health_benefit_card_verification_number_token' => :'String'
56
+ }
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ return unless attributes.is_a?(Hash)
63
+
64
+ # convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
66
+
67
+ if attributes.has_key?(:'health_benefit_card_expiration_month')
68
+ self.health_benefit_card_expiration_month = attributes[:'health_benefit_card_expiration_month']
69
+ end
70
+
71
+ if attributes.has_key?(:'health_benefit_card_expiration_year')
72
+ self.health_benefit_card_expiration_year = attributes[:'health_benefit_card_expiration_year']
73
+ end
74
+
75
+ if attributes.has_key?(:'health_benefit_card_number')
76
+ self.health_benefit_card_number = attributes[:'health_benefit_card_number']
77
+ end
78
+
79
+ if attributes.has_key?(:'health_benefit_card_number_token')
80
+ self.health_benefit_card_number_token = attributes[:'health_benefit_card_number_token']
81
+ end
82
+
83
+ if attributes.has_key?(:'health_benefit_card_verification_number')
84
+ self.health_benefit_card_verification_number = attributes[:'health_benefit_card_verification_number']
85
+ end
86
+
87
+ if attributes.has_key?(:'health_benefit_card_verification_number_token')
88
+ self.health_benefit_card_verification_number_token = attributes[:'health_benefit_card_verification_number_token']
89
+ end
90
+ end
91
+
92
+ # Show invalid properties with the reasons. Usually used together with valid?
93
+ # @return Array for valid properties with the reasons
94
+ def list_invalid_properties
95
+ invalid_properties = Array.new
96
+ invalid_properties
97
+ end
98
+
99
+ # Check to see if the all the properties in the model are valid
100
+ # @return true if the model is valid
101
+ def valid?
102
+ true
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ health_benefit_card_expiration_month == o.health_benefit_card_expiration_month &&
111
+ health_benefit_card_expiration_year == o.health_benefit_card_expiration_year &&
112
+ health_benefit_card_number == o.health_benefit_card_number &&
113
+ health_benefit_card_number_token == o.health_benefit_card_number_token &&
114
+ health_benefit_card_verification_number == o.health_benefit_card_verification_number &&
115
+ health_benefit_card_verification_number_token == o.health_benefit_card_verification_number_token
116
+ end
117
+
118
+ # @see the `==` method
119
+ # @param [Object] Object to be compared
120
+ def eql?(o)
121
+ self == o
122
+ end
123
+
124
+ # Calculates hash code according to all attributes.
125
+ # @return [Fixnum] Hash code
126
+ def hash
127
+ [health_benefit_card_expiration_month, health_benefit_card_expiration_year, health_benefit_card_number, health_benefit_card_number_token, health_benefit_card_verification_number, health_benefit_card_verification_number_token].hash
128
+ end
129
+
130
+ # Builds the object from hash
131
+ # @param [Hash] attributes Model attributes in the form of hash
132
+ # @return [Object] Returns the model itself
133
+ def build_from_hash(attributes)
134
+ return nil unless attributes.is_a?(Hash)
135
+ self.class.swagger_types.each_pair do |key, type|
136
+ if type =~ /\AArray<(.*)>/i
137
+ # check to ensure the input is an array given that the attribute
138
+ # is documented as an array but the input is not
139
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
140
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
141
+ end
142
+ elsif !attributes[self.class.attribute_map[key]].nil?
143
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
144
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
145
+ end
146
+
147
+ self
148
+ end
149
+
150
+ # Deserializes the data based on type
151
+ # @param string type Data type
152
+ # @param string value Value to be deserialized
153
+ # @return [Object] Deserialized data
154
+ def _deserialize(type, value)
155
+ case type.to_sym
156
+ when :DateTime
157
+ DateTime.parse(value)
158
+ when :Date
159
+ Date.parse(value)
160
+ when :String
161
+ value.to_s
162
+ when :Integer
163
+ value.to_i
164
+ when :Float
165
+ value.to_f
166
+ when :BOOLEAN
167
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
168
+ true
169
+ else
170
+ false
171
+ end
172
+ when :Object
173
+ # generic object (usually a Hash), return directly
174
+ value
175
+ when /\AArray<(?<inner_type>.+)>\z/
176
+ inner_type = Regexp.last_match[:inner_type]
177
+ value.map { |v| _deserialize(inner_type, v) }
178
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
179
+ k_type = Regexp.last_match[:k_type]
180
+ v_type = Regexp.last_match[:v_type]
181
+ {}.tap do |hash|
182
+ value.each do |k, v|
183
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
184
+ end
185
+ end
186
+ else # model
187
+ temp_model = UltracartClient.const_get(type).new
188
+ temp_model.build_from_hash(value)
189
+ end
190
+ end
191
+
192
+ # Returns the string representation of the object
193
+ # @return [String] String presentation of the object
194
+ def to_s
195
+ to_hash.to_s
196
+ end
197
+
198
+ # to_body is an alias to to_hash (backward compatibility)
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_body
201
+ to_hash
202
+ end
203
+
204
+ # Returns the object in the form of hash
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_hash
207
+ hash = {}
208
+ self.class.attribute_map.each_pair do |attr, param|
209
+ value = self.send(attr)
210
+ next if value.nil?
211
+ hash[param] = _to_hash(value)
212
+ end
213
+ hash
214
+ end
215
+
216
+ # Outputs non-array value in the form of hash
217
+ # For object, use to_hash. Otherwise, just return the value
218
+ # @param [Object] value Any valid value
219
+ # @return [Hash] Returns the value in the form of hash
220
+ def _to_hash(value)
221
+ if value.is_a?(Array)
222
+ value.compact.map { |v| _to_hash(v) }
223
+ elsif value.is_a?(Hash)
224
+ {}.tap do |hash|
225
+ value.each { |k, v| hash[k] = _to_hash(v) }
226
+ end
227
+ elsif value.respond_to? :to_hash
228
+ value.to_hash
229
+ else
230
+ value
231
+ end
232
+ end
233
+
234
+ end
235
+ end
@@ -20,6 +20,8 @@ module UltracartClient
20
20
 
21
21
  attr_accessor :echeck
22
22
 
23
+ attr_accessor :health_benefit_card
24
+
23
25
  # True if order has been held for fraud review
24
26
  attr_accessor :hold_for_fraud_review
25
27
 
@@ -90,6 +92,7 @@ module UltracartClient
90
92
  :'check' => :'check',
91
93
  :'credit_card' => :'credit_card',
92
94
  :'echeck' => :'echeck',
95
+ :'health_benefit_card' => :'health_benefit_card',
93
96
  :'hold_for_fraud_review' => :'hold_for_fraud_review',
94
97
  :'insurance' => :'insurance',
95
98
  :'payment_dts' => :'payment_dts',
@@ -114,6 +117,7 @@ module UltracartClient
114
117
  :'check' => :'OrderPaymentCheck',
115
118
  :'credit_card' => :'OrderPaymentCreditCard',
116
119
  :'echeck' => :'OrderPaymentECheck',
120
+ :'health_benefit_card' => :'OrderPaymentHealthBenefitCard',
117
121
  :'hold_for_fraud_review' => :'BOOLEAN',
118
122
  :'insurance' => :'OrderPaymentInsurance',
119
123
  :'payment_dts' => :'String',
@@ -152,6 +156,10 @@ module UltracartClient
152
156
  self.echeck = attributes[:'echeck']
153
157
  end
154
158
 
159
+ if attributes.has_key?(:'health_benefit_card')
160
+ self.health_benefit_card = attributes[:'health_benefit_card']
161
+ end
162
+
155
163
  if attributes.has_key?(:'hold_for_fraud_review')
156
164
  self.hold_for_fraud_review = attributes[:'hold_for_fraud_review']
157
165
  end
@@ -225,7 +233,7 @@ module UltracartClient
225
233
  # Check to see if the all the properties in the model are valid
226
234
  # @return true if the model is valid
227
235
  def valid?
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', 'Shop.com', 'Sezzle', 'Venmo', 'Apple Pay', 'Google Pay'])
236
+ 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', 'Shop.com', 'Sezzle', 'Venmo', 'Apple Pay', 'Google Pay', 'Health Benefit Card'])
229
237
  return false unless payment_method_validator.valid?(@payment_method)
230
238
  payment_status_validator = EnumAttributeValidator.new('String', ['Unprocessed', 'Authorized', 'Capture Failed', 'Processed', 'Declined', 'Voided', 'Refunded', 'Skipped'])
231
239
  return false unless payment_status_validator.valid?(@payment_status)
@@ -235,7 +243,7 @@ module UltracartClient
235
243
  # Custom attribute writer method checking allowed values (enum).
236
244
  # @param [Object] payment_method Object to be assigned
237
245
  def payment_method=(payment_method)
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', 'Shop.com', 'Sezzle', 'Venmo', 'Apple Pay', 'Google Pay'])
246
+ 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', 'Shop.com', 'Sezzle', 'Venmo', 'Apple Pay', 'Google Pay', 'Health Benefit Card'])
239
247
  unless validator.valid?(payment_method)
240
248
  fail ArgumentError, 'invalid value for "payment_method", must be one of #{validator.allowable_values}.'
241
249
  end
@@ -260,6 +268,7 @@ module UltracartClient
260
268
  check == o.check &&
261
269
  credit_card == o.credit_card &&
262
270
  echeck == o.echeck &&
271
+ health_benefit_card == o.health_benefit_card &&
263
272
  hold_for_fraud_review == o.hold_for_fraud_review &&
264
273
  insurance == o.insurance &&
265
274
  payment_dts == o.payment_dts &&
@@ -286,7 +295,7 @@ module UltracartClient
286
295
  # Calculates hash code according to all attributes.
287
296
  # @return [Fixnum] Hash code
288
297
  def hash
289
- [check, credit_card, echeck, hold_for_fraud_review, insurance, payment_dts, payment_method, payment_method_accounting_code, payment_method_deposit_to_account, payment_status, purchase_order, rotating_transaction_gateway_code, surcharge, surcharge_accounting_code, surcharge_transaction_fee, surcharge_transaction_percentage, test_order, transactions].hash
298
+ [check, credit_card, echeck, health_benefit_card, hold_for_fraud_review, insurance, payment_dts, payment_method, payment_method_accounting_code, payment_method_deposit_to_account, payment_status, purchase_order, rotating_transaction_gateway_code, surcharge, surcharge_accounting_code, surcharge_transaction_fee, surcharge_transaction_percentage, test_order, transactions].hash
290
299
  end
291
300
 
292
301
  # Builds the object from hash
@@ -0,0 +1,235 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class OrderPaymentHealthBenefitCard
17
+ # Health benefit card expiration month (1-12)
18
+ attr_accessor :health_benefit_card_expiration_month
19
+
20
+ # Health benefit card expiration year (Four digit year)
21
+ attr_accessor :health_benefit_card_expiration_year
22
+
23
+ # Health benefit card number (masked to last 4)
24
+ attr_accessor :health_benefit_card_number
25
+
26
+ # Health benefit card number token from hosted fields used to update the health benefit card number
27
+ attr_accessor :health_benefit_card_number_token
28
+
29
+ # True if the health benefit card has been truncated
30
+ attr_accessor :health_benefit_card_number_truncated
31
+
32
+ # Health benefit card verification number token from hosted fields, only for import/insert of new orders, completely ignored for updates, and always null/empty for queries
33
+ attr_accessor :health_benefit_card_verification_number_token
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'health_benefit_card_expiration_month' => :'health_benefit_card_expiration_month',
39
+ :'health_benefit_card_expiration_year' => :'health_benefit_card_expiration_year',
40
+ :'health_benefit_card_number' => :'health_benefit_card_number',
41
+ :'health_benefit_card_number_token' => :'health_benefit_card_number_token',
42
+ :'health_benefit_card_number_truncated' => :'health_benefit_card_number_truncated',
43
+ :'health_benefit_card_verification_number_token' => :'health_benefit_card_verification_number_token'
44
+ }
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.swagger_types
49
+ {
50
+ :'health_benefit_card_expiration_month' => :'Integer',
51
+ :'health_benefit_card_expiration_year' => :'Integer',
52
+ :'health_benefit_card_number' => :'String',
53
+ :'health_benefit_card_number_token' => :'String',
54
+ :'health_benefit_card_number_truncated' => :'BOOLEAN',
55
+ :'health_benefit_card_verification_number_token' => :'String'
56
+ }
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ return unless attributes.is_a?(Hash)
63
+
64
+ # convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
66
+
67
+ if attributes.has_key?(:'health_benefit_card_expiration_month')
68
+ self.health_benefit_card_expiration_month = attributes[:'health_benefit_card_expiration_month']
69
+ end
70
+
71
+ if attributes.has_key?(:'health_benefit_card_expiration_year')
72
+ self.health_benefit_card_expiration_year = attributes[:'health_benefit_card_expiration_year']
73
+ end
74
+
75
+ if attributes.has_key?(:'health_benefit_card_number')
76
+ self.health_benefit_card_number = attributes[:'health_benefit_card_number']
77
+ end
78
+
79
+ if attributes.has_key?(:'health_benefit_card_number_token')
80
+ self.health_benefit_card_number_token = attributes[:'health_benefit_card_number_token']
81
+ end
82
+
83
+ if attributes.has_key?(:'health_benefit_card_number_truncated')
84
+ self.health_benefit_card_number_truncated = attributes[:'health_benefit_card_number_truncated']
85
+ end
86
+
87
+ if attributes.has_key?(:'health_benefit_card_verification_number_token')
88
+ self.health_benefit_card_verification_number_token = attributes[:'health_benefit_card_verification_number_token']
89
+ end
90
+ end
91
+
92
+ # Show invalid properties with the reasons. Usually used together with valid?
93
+ # @return Array for valid properties with the reasons
94
+ def list_invalid_properties
95
+ invalid_properties = Array.new
96
+ invalid_properties
97
+ end
98
+
99
+ # Check to see if the all the properties in the model are valid
100
+ # @return true if the model is valid
101
+ def valid?
102
+ true
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ health_benefit_card_expiration_month == o.health_benefit_card_expiration_month &&
111
+ health_benefit_card_expiration_year == o.health_benefit_card_expiration_year &&
112
+ health_benefit_card_number == o.health_benefit_card_number &&
113
+ health_benefit_card_number_token == o.health_benefit_card_number_token &&
114
+ health_benefit_card_number_truncated == o.health_benefit_card_number_truncated &&
115
+ health_benefit_card_verification_number_token == o.health_benefit_card_verification_number_token
116
+ end
117
+
118
+ # @see the `==` method
119
+ # @param [Object] Object to be compared
120
+ def eql?(o)
121
+ self == o
122
+ end
123
+
124
+ # Calculates hash code according to all attributes.
125
+ # @return [Fixnum] Hash code
126
+ def hash
127
+ [health_benefit_card_expiration_month, health_benefit_card_expiration_year, health_benefit_card_number, health_benefit_card_number_token, health_benefit_card_number_truncated, health_benefit_card_verification_number_token].hash
128
+ end
129
+
130
+ # Builds the object from hash
131
+ # @param [Hash] attributes Model attributes in the form of hash
132
+ # @return [Object] Returns the model itself
133
+ def build_from_hash(attributes)
134
+ return nil unless attributes.is_a?(Hash)
135
+ self.class.swagger_types.each_pair do |key, type|
136
+ if type =~ /\AArray<(.*)>/i
137
+ # check to ensure the input is an array given that the attribute
138
+ # is documented as an array but the input is not
139
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
140
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
141
+ end
142
+ elsif !attributes[self.class.attribute_map[key]].nil?
143
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
144
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
145
+ end
146
+
147
+ self
148
+ end
149
+
150
+ # Deserializes the data based on type
151
+ # @param string type Data type
152
+ # @param string value Value to be deserialized
153
+ # @return [Object] Deserialized data
154
+ def _deserialize(type, value)
155
+ case type.to_sym
156
+ when :DateTime
157
+ DateTime.parse(value)
158
+ when :Date
159
+ Date.parse(value)
160
+ when :String
161
+ value.to_s
162
+ when :Integer
163
+ value.to_i
164
+ when :Float
165
+ value.to_f
166
+ when :BOOLEAN
167
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
168
+ true
169
+ else
170
+ false
171
+ end
172
+ when :Object
173
+ # generic object (usually a Hash), return directly
174
+ value
175
+ when /\AArray<(?<inner_type>.+)>\z/
176
+ inner_type = Regexp.last_match[:inner_type]
177
+ value.map { |v| _deserialize(inner_type, v) }
178
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
179
+ k_type = Regexp.last_match[:k_type]
180
+ v_type = Regexp.last_match[:v_type]
181
+ {}.tap do |hash|
182
+ value.each do |k, v|
183
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
184
+ end
185
+ end
186
+ else # model
187
+ temp_model = UltracartClient.const_get(type).new
188
+ temp_model.build_from_hash(value)
189
+ end
190
+ end
191
+
192
+ # Returns the string representation of the object
193
+ # @return [String] String presentation of the object
194
+ def to_s
195
+ to_hash.to_s
196
+ end
197
+
198
+ # to_body is an alias to to_hash (backward compatibility)
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_body
201
+ to_hash
202
+ end
203
+
204
+ # Returns the object in the form of hash
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_hash
207
+ hash = {}
208
+ self.class.attribute_map.each_pair do |attr, param|
209
+ value = self.send(attr)
210
+ next if value.nil?
211
+ hash[param] = _to_hash(value)
212
+ end
213
+ hash
214
+ end
215
+
216
+ # Outputs non-array value in the form of hash
217
+ # For object, use to_hash. Otherwise, just return the value
218
+ # @param [Object] value Any valid value
219
+ # @return [Hash] Returns the value in the form of hash
220
+ def _to_hash(value)
221
+ if value.is_a?(Array)
222
+ value.compact.map { |v| _to_hash(v) }
223
+ elsif value.is_a?(Hash)
224
+ {}.tap do |hash|
225
+ value.each { |k, v| hash[k] = _to_hash(v) }
226
+ end
227
+ elsif value.respond_to? :to_hash
228
+ value.to_hash
229
+ else
230
+ value
231
+ end
232
+ end
233
+
234
+ end
235
+ end
@@ -32,7 +32,10 @@ module UltracartClient
32
32
  attr_accessor :created_dts_end
33
33
 
34
34
  # Date/time that the workflow task should delay until
35
- attr_accessor :delay_until_dts
35
+ attr_accessor :delay_until_dts_begin
36
+
37
+ # Date/time that the workflow task should delay until
38
+ attr_accessor :delay_until_dts_end
36
39
 
37
40
  # Date/time that the workflow task is due
38
41
  attr_accessor :due_dts_begin
@@ -92,7 +95,8 @@ module UltracartClient
92
95
  :'created_by' => :'created_by',
93
96
  :'created_dts_begin' => :'created_dts_begin',
94
97
  :'created_dts_end' => :'created_dts_end',
95
- :'delay_until_dts' => :'delay_until_dts',
98
+ :'delay_until_dts_begin' => :'delay_until_dts_begin',
99
+ :'delay_until_dts_end' => :'delay_until_dts_end',
96
100
  :'due_dts_begin' => :'due_dts_begin',
97
101
  :'due_dts_end' => :'due_dts_end',
98
102
  :'last_update_dts_begin' => :'last_update_dts_begin',
@@ -114,7 +118,8 @@ module UltracartClient
114
118
  :'created_by' => :'WorkflowUser',
115
119
  :'created_dts_begin' => :'String',
116
120
  :'created_dts_end' => :'String',
117
- :'delay_until_dts' => :'String',
121
+ :'delay_until_dts_begin' => :'String',
122
+ :'delay_until_dts_end' => :'String',
118
123
  :'due_dts_begin' => :'String',
119
124
  :'due_dts_end' => :'String',
120
125
  :'last_update_dts_begin' => :'String',
@@ -159,8 +164,12 @@ module UltracartClient
159
164
  self.created_dts_end = attributes[:'created_dts_end']
160
165
  end
161
166
 
162
- if attributes.has_key?(:'delay_until_dts')
163
- self.delay_until_dts = attributes[:'delay_until_dts']
167
+ if attributes.has_key?(:'delay_until_dts_begin')
168
+ self.delay_until_dts_begin = attributes[:'delay_until_dts_begin']
169
+ end
170
+
171
+ if attributes.has_key?(:'delay_until_dts_end')
172
+ self.delay_until_dts_end = attributes[:'delay_until_dts_end']
164
173
  end
165
174
 
166
175
  if attributes.has_key?(:'due_dts_begin')
@@ -260,7 +269,8 @@ module UltracartClient
260
269
  created_by == o.created_by &&
261
270
  created_dts_begin == o.created_dts_begin &&
262
271
  created_dts_end == o.created_dts_end &&
263
- delay_until_dts == o.delay_until_dts &&
272
+ delay_until_dts_begin == o.delay_until_dts_begin &&
273
+ delay_until_dts_end == o.delay_until_dts_end &&
264
274
  due_dts_begin == o.due_dts_begin &&
265
275
  due_dts_end == o.due_dts_end &&
266
276
  last_update_dts_begin == o.last_update_dts_begin &&
@@ -281,7 +291,7 @@ module UltracartClient
281
291
  # Calculates hash code according to all attributes.
282
292
  # @return [Fixnum] Hash code
283
293
  def hash
284
- [assigned_to_group_id, assigned_to_me, assigned_to_user_id, created_by, created_dts_begin, created_dts_end, delay_until_dts, due_dts_begin, due_dts_end, last_update_dts_begin, last_update_dts_end, object_email, object_type, priority, status, unassigned].hash
294
+ [assigned_to_group_id, assigned_to_me, assigned_to_user_id, created_by, created_dts_begin, created_dts_end, delay_until_dts_begin, delay_until_dts_end, due_dts_begin, due_dts_end, last_update_dts_begin, last_update_dts_end, object_email, object_type, priority, status, unassigned].hash
285
295
  end
286
296
 
287
297
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.165'
14
+ VERSION = '3.10.166'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -91,6 +91,7 @@ require 'ultracart_api/models/cart_payment_affirm'
91
91
  require 'ultracart_api/models/cart_payment_amazon'
92
92
  require 'ultracart_api/models/cart_payment_check'
93
93
  require 'ultracart_api/models/cart_payment_credit_card'
94
+ require 'ultracart_api/models/cart_payment_health_benefit_card'
94
95
  require 'ultracart_api/models/cart_payment_purchase_order'
95
96
  require 'ultracart_api/models/cart_profile_login_request'
96
97
  require 'ultracart_api/models/cart_profile_login_response'
@@ -611,6 +612,7 @@ require 'ultracart_api/models/order_payment_credit_card'
611
612
  require 'ultracart_api/models/order_payment_credit_card_dual_vaulted'
612
613
  require 'ultracart_api/models/order_payment_credit_card_dual_vaulted_property'
613
614
  require 'ultracart_api/models/order_payment_e_check'
615
+ require 'ultracart_api/models/order_payment_health_benefit_card'
614
616
  require 'ultracart_api/models/order_payment_insurance'
615
617
  require 'ultracart_api/models/order_payment_purchase_order'
616
618
  require 'ultracart_api/models/order_payment_transaction'
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.10.165
4
+ version: 3.10.166
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-23 00:00:00.000000000 Z
11
+ date: 2023-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -297,6 +297,7 @@ files:
297
297
  - docs/CartPaymentAmazon.md
298
298
  - docs/CartPaymentCheck.md
299
299
  - docs/CartPaymentCreditCard.md
300
+ - docs/CartPaymentHealthBenefitCard.md
300
301
  - docs/CartPaymentPurchaseOrder.md
301
302
  - docs/CartProfileLoginRequest.md
302
303
  - docs/CartProfileLoginResponse.md
@@ -830,6 +831,7 @@ files:
830
831
  - docs/OrderPaymentCreditCardDualVaulted.md
831
832
  - docs/OrderPaymentCreditCardDualVaultedProperty.md
832
833
  - docs/OrderPaymentECheck.md
834
+ - docs/OrderPaymentHealthBenefitCard.md
833
835
  - docs/OrderPaymentInsurance.md
834
836
  - docs/OrderPaymentPurchaseOrder.md
835
837
  - docs/OrderPaymentTransaction.md
@@ -1137,6 +1139,7 @@ files:
1137
1139
  - lib/ultracart_api/models/cart_payment_amazon.rb
1138
1140
  - lib/ultracart_api/models/cart_payment_check.rb
1139
1141
  - lib/ultracart_api/models/cart_payment_credit_card.rb
1142
+ - lib/ultracart_api/models/cart_payment_health_benefit_card.rb
1140
1143
  - lib/ultracart_api/models/cart_payment_purchase_order.rb
1141
1144
  - lib/ultracart_api/models/cart_profile_login_request.rb
1142
1145
  - lib/ultracart_api/models/cart_profile_login_response.rb
@@ -1657,6 +1660,7 @@ files:
1657
1660
  - lib/ultracart_api/models/order_payment_credit_card_dual_vaulted.rb
1658
1661
  - lib/ultracart_api/models/order_payment_credit_card_dual_vaulted_property.rb
1659
1662
  - lib/ultracart_api/models/order_payment_e_check.rb
1663
+ - lib/ultracart_api/models/order_payment_health_benefit_card.rb
1660
1664
  - lib/ultracart_api/models/order_payment_insurance.rb
1661
1665
  - lib/ultracart_api/models/order_payment_purchase_order.rb
1662
1666
  - lib/ultracart_api/models/order_payment_transaction.rb