ultracart_api 4.0.182 → 4.0.183
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -4
- data/docs/CartPayment.md +2 -0
- data/docs/CartPaymentHealthBenefitCard.md +28 -0
- data/docs/OrderPayment.md +2 -0
- data/docs/OrderPaymentHealthBenefitCard.md +28 -0
- data/docs/WorkflowTasksRequest.md +4 -2
- data/lib/ultracart_api/models/cart_payment.rb +10 -1
- data/lib/ultracart_api/models/cart_payment_health_benefit_card.rb +270 -0
- data/lib/ultracart_api/models/order_payment.rb +12 -3
- data/lib/ultracart_api/models/order_payment_health_benefit_card.rb +270 -0
- data/lib/ultracart_api/models/workflow_tasks_request.rb +17 -7
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +2 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c91734129f42411892cd3b1c0c4bcc0f5b518ebc223122c480eaabc0caafec5f
|
4
|
+
data.tar.gz: a964d10de48ee5001cbcc8b196e7a62a3b8a7b8abac065c728845d4a2d262af6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46887a4eacf2d6b6534225b1a4f532c70a1a77b28eec183e0e2f059fc98c38b8d73677f7bb0a500820d65c1a81feb755950a1ab4eba2d90922819054e43efb52
|
7
|
+
data.tar.gz: 53b238a94093bdc608242b6aaf48c787ee5cda168e08ba3ac76bc9838de79ebf63863663ff2d7438ab74cff0d365d63193951e232e35d060ca3a07fb2bde586b
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
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: 4.0.
|
10
|
+
- Package version: 4.0.183
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-4.0.
|
27
|
+
gem install ./ultracart_api-4.0.183.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
30
|
+
(for development, run `gem install --dev ./ultracart_api-4.0.183.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 'ultracart_api', '~> 4.0.
|
36
|
+
gem 'ultracart_api', '~> 4.0.183'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -599,6 +599,7 @@ Class | Method | HTTP request | Description
|
|
599
599
|
- [UltracartClient::CartPaymentAmazon](docs/CartPaymentAmazon.md)
|
600
600
|
- [UltracartClient::CartPaymentCheck](docs/CartPaymentCheck.md)
|
601
601
|
- [UltracartClient::CartPaymentCreditCard](docs/CartPaymentCreditCard.md)
|
602
|
+
- [UltracartClient::CartPaymentHealthBenefitCard](docs/CartPaymentHealthBenefitCard.md)
|
602
603
|
- [UltracartClient::CartPaymentPurchaseOrder](docs/CartPaymentPurchaseOrder.md)
|
603
604
|
- [UltracartClient::CartProfileLoginRequest](docs/CartProfileLoginRequest.md)
|
604
605
|
- [UltracartClient::CartProfileLoginResponse](docs/CartProfileLoginResponse.md)
|
@@ -1118,6 +1119,7 @@ Class | Method | HTTP request | Description
|
|
1118
1119
|
- [UltracartClient::OrderPaymentCreditCardDualVaulted](docs/OrderPaymentCreditCardDualVaulted.md)
|
1119
1120
|
- [UltracartClient::OrderPaymentCreditCardDualVaultedProperty](docs/OrderPaymentCreditCardDualVaultedProperty.md)
|
1120
1121
|
- [UltracartClient::OrderPaymentECheck](docs/OrderPaymentECheck.md)
|
1122
|
+
- [UltracartClient::OrderPaymentHealthBenefitCard](docs/OrderPaymentHealthBenefitCard.md)
|
1121
1123
|
- [UltracartClient::OrderPaymentInsurance](docs/OrderPaymentInsurance.md)
|
1122
1124
|
- [UltracartClient::OrderPaymentPurchaseOrder](docs/OrderPaymentPurchaseOrder.md)
|
1123
1125
|
- [UltracartClient::OrderPaymentTransaction](docs/OrderPaymentTransaction.md)
|
@@ -1394,6 +1396,7 @@ Not every change is committed to every SDK.
|
|
1394
1396
|
|
1395
1397
|
| Version | Date | Comments |
|
1396
1398
|
| --: | :-: | --- |
|
1399
|
+
| 4.0.183 | 10/27/2023 | workflow task object model refinement |
|
1397
1400
|
| 4.0.182 | 10/23/2023 | workflow tasks api |
|
1398
1401
|
| 4.0.181 | 10/23/2023 | workflow tasks api |
|
1399
1402
|
| 4.0.180 | 10/16/2023 | CartSettingsPaymentCreditCard - add collect_credit_card_verification_number_minimum |
|
data/docs/CartPayment.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
| **amazon** | [**CartPaymentAmazon**](CartPaymentAmazon.md) | | [optional] |
|
9
9
|
| **check** | [**CartPaymentCheck**](CartPaymentCheck.md) | | [optional] |
|
10
10
|
| **credit_card** | [**CartPaymentCreditCard**](CartPaymentCreditCard.md) | | [optional] |
|
11
|
+
| **health_benefit_card** | [**CartPaymentHealthBenefitCard**](CartPaymentHealthBenefitCard.md) | | [optional] |
|
11
12
|
| **payment_method** | **String** | Payment method | [optional] |
|
12
13
|
| **purchase_order** | [**CartPaymentPurchaseOrder**](CartPaymentPurchaseOrder.md) | | [optional] |
|
13
14
|
| **rtg_code** | **String** | Rotating transaction gateway code | [optional] |
|
@@ -22,6 +23,7 @@ instance = UltracartClient::CartPayment.new(
|
|
22
23
|
amazon: null,
|
23
24
|
check: null,
|
24
25
|
credit_card: null,
|
26
|
+
health_benefit_card: null,
|
25
27
|
payment_method: null,
|
26
28
|
purchase_order: null,
|
27
29
|
rtg_code: null
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# UltracartClient::CartPaymentHealthBenefitCard
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **health_benefit_card_expiration_month** | **Integer** | Health benefit expiration month (1-12) | [optional] |
|
8
|
+
| **health_benefit_card_expiration_year** | **Integer** | Health benefit card expiration year (four digit year) | [optional] |
|
9
|
+
| **health_benefit_card_number** | **String** | Health benefit card number (masked to the last 4) | [optional] |
|
10
|
+
| **health_benefit_card_number_token** | **String** | Hosted field token for the card number | [optional] |
|
11
|
+
| **health_benefit_card_verification_number** | **String** | Health benefit card verification number (masked) | [optional] |
|
12
|
+
| **health_benefit_card_verification_number_token** | **String** | Hosted field token for the health benefit card verification number | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'ultracart_api'
|
18
|
+
|
19
|
+
instance = UltracartClient::CartPaymentHealthBenefitCard.new(
|
20
|
+
health_benefit_card_expiration_month: null,
|
21
|
+
health_benefit_card_expiration_year: null,
|
22
|
+
health_benefit_card_number: null,
|
23
|
+
health_benefit_card_number_token: null,
|
24
|
+
health_benefit_card_verification_number: null,
|
25
|
+
health_benefit_card_verification_number_token: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
data/docs/OrderPayment.md
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
| **check** | [**OrderPaymentCheck**](OrderPaymentCheck.md) | | [optional] |
|
8
8
|
| **credit_card** | [**OrderPaymentCreditCard**](OrderPaymentCreditCard.md) | | [optional] |
|
9
9
|
| **echeck** | [**OrderPaymentECheck**](OrderPaymentECheck.md) | | [optional] |
|
10
|
+
| **health_benefit_card** | [**OrderPaymentHealthBenefitCard**](OrderPaymentHealthBenefitCard.md) | | [optional] |
|
10
11
|
| **hold_for_fraud_review** | **Boolean** | True if order has been held for fraud review | [optional] |
|
11
12
|
| **insurance** | [**OrderPaymentInsurance**](OrderPaymentInsurance.md) | | [optional] |
|
12
13
|
| **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] |
|
@@ -32,6 +33,7 @@ instance = UltracartClient::OrderPayment.new(
|
|
32
33
|
check: null,
|
33
34
|
credit_card: null,
|
34
35
|
echeck: null,
|
36
|
+
health_benefit_card: null,
|
35
37
|
hold_for_fraud_review: null,
|
36
38
|
insurance: null,
|
37
39
|
payment_dts: null,
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# UltracartClient::OrderPaymentHealthBenefitCard
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **health_benefit_card_expiration_month** | **Integer** | Health benefit card expiration month (1-12) | [optional] |
|
8
|
+
| **health_benefit_card_expiration_year** | **Integer** | Health benefit card expiration year (Four digit year) | [optional] |
|
9
|
+
| **health_benefit_card_number** | **String** | Health benefit card number (masked to last 4) | [optional] |
|
10
|
+
| **health_benefit_card_number_token** | **String** | Health benefit card number token from hosted fields used to update the health benefit card number | [optional] |
|
11
|
+
| **health_benefit_card_number_truncated** | **Boolean** | True if the health benefit card has been truncated | [optional] |
|
12
|
+
| **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] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'ultracart_api'
|
18
|
+
|
19
|
+
instance = UltracartClient::OrderPaymentHealthBenefitCard.new(
|
20
|
+
health_benefit_card_expiration_month: null,
|
21
|
+
health_benefit_card_expiration_year: null,
|
22
|
+
health_benefit_card_number: null,
|
23
|
+
health_benefit_card_number_token: null,
|
24
|
+
health_benefit_card_number_truncated: null,
|
25
|
+
health_benefit_card_verification_number_token: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -10,7 +10,8 @@
|
|
10
10
|
| **created_by** | [**WorkflowUser**](WorkflowUser.md) | | [optional] |
|
11
11
|
| **created_dts_begin** | **String** | Date/time that the workflow task was created | [optional] |
|
12
12
|
| **created_dts_end** | **String** | Date/time that the workflow task was created | [optional] |
|
13
|
-
| **
|
13
|
+
| **delay_until_dts_begin** | **String** | Date/time that the workflow task should delay until | [optional] |
|
14
|
+
| **delay_until_dts_end** | **String** | Date/time that the workflow task should delay until | [optional] |
|
14
15
|
| **due_dts_begin** | **String** | Date/time that the workflow task is due | [optional] |
|
15
16
|
| **due_dts_end** | **String** | Date/time that the workflow task is due | [optional] |
|
16
17
|
| **last_update_dts_begin** | **String** | Date/time that the workflow task was last updated | [optional] |
|
@@ -33,7 +34,8 @@ instance = UltracartClient::WorkflowTasksRequest.new(
|
|
33
34
|
created_by: null,
|
34
35
|
created_dts_begin: null,
|
35
36
|
created_dts_end: null,
|
36
|
-
|
37
|
+
delay_until_dts_begin: null,
|
38
|
+
delay_until_dts_end: null,
|
37
39
|
due_dts_begin: null,
|
38
40
|
due_dts_end: null,
|
39
41
|
last_update_dts_begin: null,
|
@@ -23,6 +23,8 @@ module UltracartClient
|
|
23
23
|
|
24
24
|
attr_accessor :credit_card
|
25
25
|
|
26
|
+
attr_accessor :health_benefit_card
|
27
|
+
|
26
28
|
# Payment method
|
27
29
|
attr_accessor :payment_method
|
28
30
|
|
@@ -38,6 +40,7 @@ module UltracartClient
|
|
38
40
|
:'amazon' => :'amazon',
|
39
41
|
:'check' => :'check',
|
40
42
|
:'credit_card' => :'credit_card',
|
43
|
+
:'health_benefit_card' => :'health_benefit_card',
|
41
44
|
:'payment_method' => :'payment_method',
|
42
45
|
:'purchase_order' => :'purchase_order',
|
43
46
|
:'rtg_code' => :'rtg_code'
|
@@ -56,6 +59,7 @@ module UltracartClient
|
|
56
59
|
:'amazon' => :'CartPaymentAmazon',
|
57
60
|
:'check' => :'CartPaymentCheck',
|
58
61
|
:'credit_card' => :'CartPaymentCreditCard',
|
62
|
+
:'health_benefit_card' => :'CartPaymentHealthBenefitCard',
|
59
63
|
:'payment_method' => :'String',
|
60
64
|
:'purchase_order' => :'CartPaymentPurchaseOrder',
|
61
65
|
:'rtg_code' => :'String'
|
@@ -99,6 +103,10 @@ module UltracartClient
|
|
99
103
|
self.credit_card = attributes[:'credit_card']
|
100
104
|
end
|
101
105
|
|
106
|
+
if attributes.key?(:'health_benefit_card')
|
107
|
+
self.health_benefit_card = attributes[:'health_benefit_card']
|
108
|
+
end
|
109
|
+
|
102
110
|
if attributes.key?(:'payment_method')
|
103
111
|
self.payment_method = attributes[:'payment_method']
|
104
112
|
end
|
@@ -134,6 +142,7 @@ module UltracartClient
|
|
134
142
|
amazon == o.amazon &&
|
135
143
|
check == o.check &&
|
136
144
|
credit_card == o.credit_card &&
|
145
|
+
health_benefit_card == o.health_benefit_card &&
|
137
146
|
payment_method == o.payment_method &&
|
138
147
|
purchase_order == o.purchase_order &&
|
139
148
|
rtg_code == o.rtg_code
|
@@ -148,7 +157,7 @@ module UltracartClient
|
|
148
157
|
# Calculates hash code according to all attributes.
|
149
158
|
# @return [Integer] Hash code
|
150
159
|
def hash
|
151
|
-
[affirm, amazon, check, credit_card, payment_method, purchase_order, rtg_code].hash
|
160
|
+
[affirm, amazon, check, credit_card, health_benefit_card, payment_method, purchase_order, rtg_code].hash
|
152
161
|
end
|
153
162
|
|
154
163
|
# Builds the object from hash
|
@@ -0,0 +1,270 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module UltracartClient
|
17
|
+
class CartPaymentHealthBenefitCard
|
18
|
+
# Health benefit expiration month (1-12)
|
19
|
+
attr_accessor :health_benefit_card_expiration_month
|
20
|
+
|
21
|
+
# Health benefit card expiration year (four digit year)
|
22
|
+
attr_accessor :health_benefit_card_expiration_year
|
23
|
+
|
24
|
+
# Health benefit card number (masked to the last 4)
|
25
|
+
attr_accessor :health_benefit_card_number
|
26
|
+
|
27
|
+
# Hosted field token for the card number
|
28
|
+
attr_accessor :health_benefit_card_number_token
|
29
|
+
|
30
|
+
# Health benefit card verification number (masked)
|
31
|
+
attr_accessor :health_benefit_card_verification_number
|
32
|
+
|
33
|
+
# Hosted field token for the health benefit card verification number
|
34
|
+
attr_accessor :health_benefit_card_verification_number_token
|
35
|
+
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
+
def self.attribute_map
|
38
|
+
{
|
39
|
+
:'health_benefit_card_expiration_month' => :'health_benefit_card_expiration_month',
|
40
|
+
:'health_benefit_card_expiration_year' => :'health_benefit_card_expiration_year',
|
41
|
+
:'health_benefit_card_number' => :'health_benefit_card_number',
|
42
|
+
:'health_benefit_card_number_token' => :'health_benefit_card_number_token',
|
43
|
+
:'health_benefit_card_verification_number' => :'health_benefit_card_verification_number',
|
44
|
+
:'health_benefit_card_verification_number_token' => :'health_benefit_card_verification_number_token'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Returns all the JSON keys this model knows about
|
49
|
+
def self.acceptable_attributes
|
50
|
+
attribute_map.values
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute type mapping.
|
54
|
+
def self.openapi_types
|
55
|
+
{
|
56
|
+
:'health_benefit_card_expiration_month' => :'Integer',
|
57
|
+
:'health_benefit_card_expiration_year' => :'Integer',
|
58
|
+
:'health_benefit_card_number' => :'String',
|
59
|
+
:'health_benefit_card_number_token' => :'String',
|
60
|
+
:'health_benefit_card_verification_number' => :'String',
|
61
|
+
:'health_benefit_card_verification_number_token' => :'String'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# List of attributes with nullable: true
|
66
|
+
def self.openapi_nullable
|
67
|
+
Set.new([
|
68
|
+
])
|
69
|
+
end
|
70
|
+
|
71
|
+
# Initializes the object
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
73
|
+
def initialize(attributes = {})
|
74
|
+
if (!attributes.is_a?(Hash))
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::CartPaymentHealthBenefitCard` initialize method"
|
76
|
+
end
|
77
|
+
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::CartPaymentHealthBenefitCard`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
82
|
+
end
|
83
|
+
h[k.to_sym] = v
|
84
|
+
}
|
85
|
+
|
86
|
+
if attributes.key?(:'health_benefit_card_expiration_month')
|
87
|
+
self.health_benefit_card_expiration_month = attributes[:'health_benefit_card_expiration_month']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'health_benefit_card_expiration_year')
|
91
|
+
self.health_benefit_card_expiration_year = attributes[:'health_benefit_card_expiration_year']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'health_benefit_card_number')
|
95
|
+
self.health_benefit_card_number = attributes[:'health_benefit_card_number']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'health_benefit_card_number_token')
|
99
|
+
self.health_benefit_card_number_token = attributes[:'health_benefit_card_number_token']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'health_benefit_card_verification_number')
|
103
|
+
self.health_benefit_card_verification_number = attributes[:'health_benefit_card_verification_number']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'health_benefit_card_verification_number_token')
|
107
|
+
self.health_benefit_card_verification_number_token = attributes[:'health_benefit_card_verification_number_token']
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
112
|
+
# @return Array for valid properties with the reasons
|
113
|
+
def list_invalid_properties
|
114
|
+
invalid_properties = Array.new
|
115
|
+
invalid_properties
|
116
|
+
end
|
117
|
+
|
118
|
+
# Check to see if the all the properties in the model are valid
|
119
|
+
# @return true if the model is valid
|
120
|
+
def valid?
|
121
|
+
true
|
122
|
+
end
|
123
|
+
|
124
|
+
# Checks equality by comparing each attribute.
|
125
|
+
# @param [Object] Object to be compared
|
126
|
+
def ==(o)
|
127
|
+
return true if self.equal?(o)
|
128
|
+
self.class == o.class &&
|
129
|
+
health_benefit_card_expiration_month == o.health_benefit_card_expiration_month &&
|
130
|
+
health_benefit_card_expiration_year == o.health_benefit_card_expiration_year &&
|
131
|
+
health_benefit_card_number == o.health_benefit_card_number &&
|
132
|
+
health_benefit_card_number_token == o.health_benefit_card_number_token &&
|
133
|
+
health_benefit_card_verification_number == o.health_benefit_card_verification_number &&
|
134
|
+
health_benefit_card_verification_number_token == o.health_benefit_card_verification_number_token
|
135
|
+
end
|
136
|
+
|
137
|
+
# @see the `==` method
|
138
|
+
# @param [Object] Object to be compared
|
139
|
+
def eql?(o)
|
140
|
+
self == o
|
141
|
+
end
|
142
|
+
|
143
|
+
# Calculates hash code according to all attributes.
|
144
|
+
# @return [Integer] Hash code
|
145
|
+
def hash
|
146
|
+
[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
|
147
|
+
end
|
148
|
+
|
149
|
+
# Builds the object from hash
|
150
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
151
|
+
# @return [Object] Returns the model itself
|
152
|
+
def self.build_from_hash(attributes)
|
153
|
+
new.build_from_hash(attributes)
|
154
|
+
end
|
155
|
+
|
156
|
+
# Builds the object from hash
|
157
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
158
|
+
# @return [Object] Returns the model itself
|
159
|
+
def build_from_hash(attributes)
|
160
|
+
return nil unless attributes.is_a?(Hash)
|
161
|
+
attributes = attributes.transform_keys(&:to_sym)
|
162
|
+
self.class.openapi_types.each_pair do |key, type|
|
163
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
164
|
+
self.send("#{key}=", nil)
|
165
|
+
elsif type =~ /\AArray<(.*)>/i
|
166
|
+
# check to ensure the input is an array given that the attribute
|
167
|
+
# is documented as an array but the input is not
|
168
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
169
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
170
|
+
end
|
171
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
172
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
self
|
177
|
+
end
|
178
|
+
|
179
|
+
# Deserializes the data based on type
|
180
|
+
# @param string type Data type
|
181
|
+
# @param string value Value to be deserialized
|
182
|
+
# @return [Object] Deserialized data
|
183
|
+
def _deserialize(type, value)
|
184
|
+
case type.to_sym
|
185
|
+
when :Time
|
186
|
+
Time.parse(value)
|
187
|
+
when :Date
|
188
|
+
Date.parse(value)
|
189
|
+
when :String
|
190
|
+
value.to_s
|
191
|
+
when :Integer
|
192
|
+
value.to_i
|
193
|
+
when :Float
|
194
|
+
value.to_f
|
195
|
+
when :Boolean
|
196
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
197
|
+
true
|
198
|
+
else
|
199
|
+
false
|
200
|
+
end
|
201
|
+
when :Object
|
202
|
+
# generic object (usually a Hash), return directly
|
203
|
+
value
|
204
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
205
|
+
inner_type = Regexp.last_match[:inner_type]
|
206
|
+
value.map { |v| _deserialize(inner_type, v) }
|
207
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
208
|
+
k_type = Regexp.last_match[:k_type]
|
209
|
+
v_type = Regexp.last_match[:v_type]
|
210
|
+
{}.tap do |hash|
|
211
|
+
value.each do |k, v|
|
212
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
213
|
+
end
|
214
|
+
end
|
215
|
+
else # model
|
216
|
+
# models (e.g. Pet) or oneOf
|
217
|
+
klass = UltracartClient.const_get(type)
|
218
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
# Returns the string representation of the object
|
223
|
+
# @return [String] String presentation of the object
|
224
|
+
def to_s
|
225
|
+
to_hash.to_s
|
226
|
+
end
|
227
|
+
|
228
|
+
# to_body is an alias to to_hash (backward compatibility)
|
229
|
+
# @return [Hash] Returns the object in the form of hash
|
230
|
+
def to_body
|
231
|
+
to_hash
|
232
|
+
end
|
233
|
+
|
234
|
+
# Returns the object in the form of hash
|
235
|
+
# @return [Hash] Returns the object in the form of hash
|
236
|
+
def to_hash
|
237
|
+
hash = {}
|
238
|
+
self.class.attribute_map.each_pair do |attr, param|
|
239
|
+
value = self.send(attr)
|
240
|
+
if value.nil?
|
241
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
242
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
243
|
+
end
|
244
|
+
|
245
|
+
hash[param] = _to_hash(value)
|
246
|
+
end
|
247
|
+
hash
|
248
|
+
end
|
249
|
+
|
250
|
+
# Outputs non-array value in the form of hash
|
251
|
+
# For object, use to_hash. Otherwise, just return the value
|
252
|
+
# @param [Object] value Any valid value
|
253
|
+
# @return [Hash] Returns the value in the form of hash
|
254
|
+
def _to_hash(value)
|
255
|
+
if value.is_a?(Array)
|
256
|
+
value.compact.map { |v| _to_hash(v) }
|
257
|
+
elsif value.is_a?(Hash)
|
258
|
+
{}.tap do |hash|
|
259
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
260
|
+
end
|
261
|
+
elsif value.respond_to? :to_hash
|
262
|
+
value.to_hash
|
263
|
+
else
|
264
|
+
value
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
end
|
269
|
+
|
270
|
+
end
|
@@ -21,6 +21,8 @@ module UltracartClient
|
|
21
21
|
|
22
22
|
attr_accessor :echeck
|
23
23
|
|
24
|
+
attr_accessor :health_benefit_card
|
25
|
+
|
24
26
|
# True if order has been held for fraud review
|
25
27
|
attr_accessor :hold_for_fraud_review
|
26
28
|
|
@@ -91,6 +93,7 @@ module UltracartClient
|
|
91
93
|
:'check' => :'check',
|
92
94
|
:'credit_card' => :'credit_card',
|
93
95
|
:'echeck' => :'echeck',
|
96
|
+
:'health_benefit_card' => :'health_benefit_card',
|
94
97
|
:'hold_for_fraud_review' => :'hold_for_fraud_review',
|
95
98
|
:'insurance' => :'insurance',
|
96
99
|
:'payment_dts' => :'payment_dts',
|
@@ -120,6 +123,7 @@ module UltracartClient
|
|
120
123
|
:'check' => :'OrderPaymentCheck',
|
121
124
|
:'credit_card' => :'OrderPaymentCreditCard',
|
122
125
|
:'echeck' => :'OrderPaymentECheck',
|
126
|
+
:'health_benefit_card' => :'OrderPaymentHealthBenefitCard',
|
123
127
|
:'hold_for_fraud_review' => :'Boolean',
|
124
128
|
:'insurance' => :'OrderPaymentInsurance',
|
125
129
|
:'payment_dts' => :'String',
|
@@ -171,6 +175,10 @@ module UltracartClient
|
|
171
175
|
self.echeck = attributes[:'echeck']
|
172
176
|
end
|
173
177
|
|
178
|
+
if attributes.key?(:'health_benefit_card')
|
179
|
+
self.health_benefit_card = attributes[:'health_benefit_card']
|
180
|
+
end
|
181
|
+
|
174
182
|
if attributes.key?(:'hold_for_fraud_review')
|
175
183
|
self.hold_for_fraud_review = attributes[:'hold_for_fraud_review']
|
176
184
|
end
|
@@ -244,7 +252,7 @@ module UltracartClient
|
|
244
252
|
# Check to see if the all the properties in the model are valid
|
245
253
|
# @return true if the model is valid
|
246
254
|
def valid?
|
247
|
-
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"])
|
255
|
+
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"])
|
248
256
|
return false unless payment_method_validator.valid?(@payment_method)
|
249
257
|
payment_status_validator = EnumAttributeValidator.new('String', ["Unprocessed", "Authorized", "Capture Failed", "Processed", "Declined", "Voided", "Refunded", "Skipped"])
|
250
258
|
return false unless payment_status_validator.valid?(@payment_status)
|
@@ -254,7 +262,7 @@ module UltracartClient
|
|
254
262
|
# Custom attribute writer method checking allowed values (enum).
|
255
263
|
# @param [Object] payment_method Object to be assigned
|
256
264
|
def payment_method=(payment_method)
|
257
|
-
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"])
|
265
|
+
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"])
|
258
266
|
unless validator.valid?(payment_method)
|
259
267
|
fail ArgumentError, "invalid value for \"payment_method\", must be one of #{validator.allowable_values}."
|
260
268
|
end
|
@@ -279,6 +287,7 @@ module UltracartClient
|
|
279
287
|
check == o.check &&
|
280
288
|
credit_card == o.credit_card &&
|
281
289
|
echeck == o.echeck &&
|
290
|
+
health_benefit_card == o.health_benefit_card &&
|
282
291
|
hold_for_fraud_review == o.hold_for_fraud_review &&
|
283
292
|
insurance == o.insurance &&
|
284
293
|
payment_dts == o.payment_dts &&
|
@@ -305,7 +314,7 @@ module UltracartClient
|
|
305
314
|
# Calculates hash code according to all attributes.
|
306
315
|
# @return [Integer] Hash code
|
307
316
|
def hash
|
308
|
-
[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
|
317
|
+
[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
|
309
318
|
end
|
310
319
|
|
311
320
|
# Builds the object from hash
|
@@ -0,0 +1,270 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module UltracartClient
|
17
|
+
class OrderPaymentHealthBenefitCard
|
18
|
+
# Health benefit card expiration month (1-12)
|
19
|
+
attr_accessor :health_benefit_card_expiration_month
|
20
|
+
|
21
|
+
# Health benefit card expiration year (Four digit year)
|
22
|
+
attr_accessor :health_benefit_card_expiration_year
|
23
|
+
|
24
|
+
# Health benefit card number (masked to last 4)
|
25
|
+
attr_accessor :health_benefit_card_number
|
26
|
+
|
27
|
+
# Health benefit card number token from hosted fields used to update the health benefit card number
|
28
|
+
attr_accessor :health_benefit_card_number_token
|
29
|
+
|
30
|
+
# True if the health benefit card has been truncated
|
31
|
+
attr_accessor :health_benefit_card_number_truncated
|
32
|
+
|
33
|
+
# 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
|
34
|
+
attr_accessor :health_benefit_card_verification_number_token
|
35
|
+
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
+
def self.attribute_map
|
38
|
+
{
|
39
|
+
:'health_benefit_card_expiration_month' => :'health_benefit_card_expiration_month',
|
40
|
+
:'health_benefit_card_expiration_year' => :'health_benefit_card_expiration_year',
|
41
|
+
:'health_benefit_card_number' => :'health_benefit_card_number',
|
42
|
+
:'health_benefit_card_number_token' => :'health_benefit_card_number_token',
|
43
|
+
:'health_benefit_card_number_truncated' => :'health_benefit_card_number_truncated',
|
44
|
+
:'health_benefit_card_verification_number_token' => :'health_benefit_card_verification_number_token'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Returns all the JSON keys this model knows about
|
49
|
+
def self.acceptable_attributes
|
50
|
+
attribute_map.values
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute type mapping.
|
54
|
+
def self.openapi_types
|
55
|
+
{
|
56
|
+
:'health_benefit_card_expiration_month' => :'Integer',
|
57
|
+
:'health_benefit_card_expiration_year' => :'Integer',
|
58
|
+
:'health_benefit_card_number' => :'String',
|
59
|
+
:'health_benefit_card_number_token' => :'String',
|
60
|
+
:'health_benefit_card_number_truncated' => :'Boolean',
|
61
|
+
:'health_benefit_card_verification_number_token' => :'String'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# List of attributes with nullable: true
|
66
|
+
def self.openapi_nullable
|
67
|
+
Set.new([
|
68
|
+
])
|
69
|
+
end
|
70
|
+
|
71
|
+
# Initializes the object
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
73
|
+
def initialize(attributes = {})
|
74
|
+
if (!attributes.is_a?(Hash))
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::OrderPaymentHealthBenefitCard` initialize method"
|
76
|
+
end
|
77
|
+
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::OrderPaymentHealthBenefitCard`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
82
|
+
end
|
83
|
+
h[k.to_sym] = v
|
84
|
+
}
|
85
|
+
|
86
|
+
if attributes.key?(:'health_benefit_card_expiration_month')
|
87
|
+
self.health_benefit_card_expiration_month = attributes[:'health_benefit_card_expiration_month']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'health_benefit_card_expiration_year')
|
91
|
+
self.health_benefit_card_expiration_year = attributes[:'health_benefit_card_expiration_year']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'health_benefit_card_number')
|
95
|
+
self.health_benefit_card_number = attributes[:'health_benefit_card_number']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'health_benefit_card_number_token')
|
99
|
+
self.health_benefit_card_number_token = attributes[:'health_benefit_card_number_token']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'health_benefit_card_number_truncated')
|
103
|
+
self.health_benefit_card_number_truncated = attributes[:'health_benefit_card_number_truncated']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'health_benefit_card_verification_number_token')
|
107
|
+
self.health_benefit_card_verification_number_token = attributes[:'health_benefit_card_verification_number_token']
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
112
|
+
# @return Array for valid properties with the reasons
|
113
|
+
def list_invalid_properties
|
114
|
+
invalid_properties = Array.new
|
115
|
+
invalid_properties
|
116
|
+
end
|
117
|
+
|
118
|
+
# Check to see if the all the properties in the model are valid
|
119
|
+
# @return true if the model is valid
|
120
|
+
def valid?
|
121
|
+
true
|
122
|
+
end
|
123
|
+
|
124
|
+
# Checks equality by comparing each attribute.
|
125
|
+
# @param [Object] Object to be compared
|
126
|
+
def ==(o)
|
127
|
+
return true if self.equal?(o)
|
128
|
+
self.class == o.class &&
|
129
|
+
health_benefit_card_expiration_month == o.health_benefit_card_expiration_month &&
|
130
|
+
health_benefit_card_expiration_year == o.health_benefit_card_expiration_year &&
|
131
|
+
health_benefit_card_number == o.health_benefit_card_number &&
|
132
|
+
health_benefit_card_number_token == o.health_benefit_card_number_token &&
|
133
|
+
health_benefit_card_number_truncated == o.health_benefit_card_number_truncated &&
|
134
|
+
health_benefit_card_verification_number_token == o.health_benefit_card_verification_number_token
|
135
|
+
end
|
136
|
+
|
137
|
+
# @see the `==` method
|
138
|
+
# @param [Object] Object to be compared
|
139
|
+
def eql?(o)
|
140
|
+
self == o
|
141
|
+
end
|
142
|
+
|
143
|
+
# Calculates hash code according to all attributes.
|
144
|
+
# @return [Integer] Hash code
|
145
|
+
def hash
|
146
|
+
[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
|
147
|
+
end
|
148
|
+
|
149
|
+
# Builds the object from hash
|
150
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
151
|
+
# @return [Object] Returns the model itself
|
152
|
+
def self.build_from_hash(attributes)
|
153
|
+
new.build_from_hash(attributes)
|
154
|
+
end
|
155
|
+
|
156
|
+
# Builds the object from hash
|
157
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
158
|
+
# @return [Object] Returns the model itself
|
159
|
+
def build_from_hash(attributes)
|
160
|
+
return nil unless attributes.is_a?(Hash)
|
161
|
+
attributes = attributes.transform_keys(&:to_sym)
|
162
|
+
self.class.openapi_types.each_pair do |key, type|
|
163
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
164
|
+
self.send("#{key}=", nil)
|
165
|
+
elsif type =~ /\AArray<(.*)>/i
|
166
|
+
# check to ensure the input is an array given that the attribute
|
167
|
+
# is documented as an array but the input is not
|
168
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
169
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
170
|
+
end
|
171
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
172
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
self
|
177
|
+
end
|
178
|
+
|
179
|
+
# Deserializes the data based on type
|
180
|
+
# @param string type Data type
|
181
|
+
# @param string value Value to be deserialized
|
182
|
+
# @return [Object] Deserialized data
|
183
|
+
def _deserialize(type, value)
|
184
|
+
case type.to_sym
|
185
|
+
when :Time
|
186
|
+
Time.parse(value)
|
187
|
+
when :Date
|
188
|
+
Date.parse(value)
|
189
|
+
when :String
|
190
|
+
value.to_s
|
191
|
+
when :Integer
|
192
|
+
value.to_i
|
193
|
+
when :Float
|
194
|
+
value.to_f
|
195
|
+
when :Boolean
|
196
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
197
|
+
true
|
198
|
+
else
|
199
|
+
false
|
200
|
+
end
|
201
|
+
when :Object
|
202
|
+
# generic object (usually a Hash), return directly
|
203
|
+
value
|
204
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
205
|
+
inner_type = Regexp.last_match[:inner_type]
|
206
|
+
value.map { |v| _deserialize(inner_type, v) }
|
207
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
208
|
+
k_type = Regexp.last_match[:k_type]
|
209
|
+
v_type = Regexp.last_match[:v_type]
|
210
|
+
{}.tap do |hash|
|
211
|
+
value.each do |k, v|
|
212
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
213
|
+
end
|
214
|
+
end
|
215
|
+
else # model
|
216
|
+
# models (e.g. Pet) or oneOf
|
217
|
+
klass = UltracartClient.const_get(type)
|
218
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
# Returns the string representation of the object
|
223
|
+
# @return [String] String presentation of the object
|
224
|
+
def to_s
|
225
|
+
to_hash.to_s
|
226
|
+
end
|
227
|
+
|
228
|
+
# to_body is an alias to to_hash (backward compatibility)
|
229
|
+
# @return [Hash] Returns the object in the form of hash
|
230
|
+
def to_body
|
231
|
+
to_hash
|
232
|
+
end
|
233
|
+
|
234
|
+
# Returns the object in the form of hash
|
235
|
+
# @return [Hash] Returns the object in the form of hash
|
236
|
+
def to_hash
|
237
|
+
hash = {}
|
238
|
+
self.class.attribute_map.each_pair do |attr, param|
|
239
|
+
value = self.send(attr)
|
240
|
+
if value.nil?
|
241
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
242
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
243
|
+
end
|
244
|
+
|
245
|
+
hash[param] = _to_hash(value)
|
246
|
+
end
|
247
|
+
hash
|
248
|
+
end
|
249
|
+
|
250
|
+
# Outputs non-array value in the form of hash
|
251
|
+
# For object, use to_hash. Otherwise, just return the value
|
252
|
+
# @param [Object] value Any valid value
|
253
|
+
# @return [Hash] Returns the value in the form of hash
|
254
|
+
def _to_hash(value)
|
255
|
+
if value.is_a?(Array)
|
256
|
+
value.compact.map { |v| _to_hash(v) }
|
257
|
+
elsif value.is_a?(Hash)
|
258
|
+
{}.tap do |hash|
|
259
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
260
|
+
end
|
261
|
+
elsif value.respond_to? :to_hash
|
262
|
+
value.to_hash
|
263
|
+
else
|
264
|
+
value
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
end
|
269
|
+
|
270
|
+
end
|
@@ -33,7 +33,10 @@ module UltracartClient
|
|
33
33
|
attr_accessor :created_dts_end
|
34
34
|
|
35
35
|
# Date/time that the workflow task should delay until
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :delay_until_dts_begin
|
37
|
+
|
38
|
+
# Date/time that the workflow task should delay until
|
39
|
+
attr_accessor :delay_until_dts_end
|
37
40
|
|
38
41
|
# Date/time that the workflow task is due
|
39
42
|
attr_accessor :due_dts_begin
|
@@ -93,7 +96,8 @@ module UltracartClient
|
|
93
96
|
:'created_by' => :'created_by',
|
94
97
|
:'created_dts_begin' => :'created_dts_begin',
|
95
98
|
:'created_dts_end' => :'created_dts_end',
|
96
|
-
:'
|
99
|
+
:'delay_until_dts_begin' => :'delay_until_dts_begin',
|
100
|
+
:'delay_until_dts_end' => :'delay_until_dts_end',
|
97
101
|
:'due_dts_begin' => :'due_dts_begin',
|
98
102
|
:'due_dts_end' => :'due_dts_end',
|
99
103
|
:'last_update_dts_begin' => :'last_update_dts_begin',
|
@@ -120,7 +124,8 @@ module UltracartClient
|
|
120
124
|
:'created_by' => :'WorkflowUser',
|
121
125
|
:'created_dts_begin' => :'String',
|
122
126
|
:'created_dts_end' => :'String',
|
123
|
-
:'
|
127
|
+
:'delay_until_dts_begin' => :'String',
|
128
|
+
:'delay_until_dts_end' => :'String',
|
124
129
|
:'due_dts_begin' => :'String',
|
125
130
|
:'due_dts_end' => :'String',
|
126
131
|
:'last_update_dts_begin' => :'String',
|
@@ -178,8 +183,12 @@ module UltracartClient
|
|
178
183
|
self.created_dts_end = attributes[:'created_dts_end']
|
179
184
|
end
|
180
185
|
|
181
|
-
if attributes.key?(:'
|
182
|
-
self.
|
186
|
+
if attributes.key?(:'delay_until_dts_begin')
|
187
|
+
self.delay_until_dts_begin = attributes[:'delay_until_dts_begin']
|
188
|
+
end
|
189
|
+
|
190
|
+
if attributes.key?(:'delay_until_dts_end')
|
191
|
+
self.delay_until_dts_end = attributes[:'delay_until_dts_end']
|
183
192
|
end
|
184
193
|
|
185
194
|
if attributes.key?(:'due_dts_begin')
|
@@ -279,7 +288,8 @@ module UltracartClient
|
|
279
288
|
created_by == o.created_by &&
|
280
289
|
created_dts_begin == o.created_dts_begin &&
|
281
290
|
created_dts_end == o.created_dts_end &&
|
282
|
-
|
291
|
+
delay_until_dts_begin == o.delay_until_dts_begin &&
|
292
|
+
delay_until_dts_end == o.delay_until_dts_end &&
|
283
293
|
due_dts_begin == o.due_dts_begin &&
|
284
294
|
due_dts_end == o.due_dts_end &&
|
285
295
|
last_update_dts_begin == o.last_update_dts_begin &&
|
@@ -300,7 +310,7 @@ module UltracartClient
|
|
300
310
|
# Calculates hash code according to all attributes.
|
301
311
|
# @return [Integer] Hash code
|
302
312
|
def hash
|
303
|
-
[assigned_to_group_id, assigned_to_me, assigned_to_user_id, created_by, created_dts_begin, created_dts_end,
|
313
|
+
[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
|
304
314
|
end
|
305
315
|
|
306
316
|
# Builds the object from hash
|
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'
|
@@ -610,6 +611,7 @@ require 'ultracart_api/models/order_payment_credit_card'
|
|
610
611
|
require 'ultracart_api/models/order_payment_credit_card_dual_vaulted'
|
611
612
|
require 'ultracart_api/models/order_payment_credit_card_dual_vaulted_property'
|
612
613
|
require 'ultracart_api/models/order_payment_e_check'
|
614
|
+
require 'ultracart_api/models/order_payment_health_benefit_card'
|
613
615
|
require 'ultracart_api/models/order_payment_insurance'
|
614
616
|
require 'ultracart_api/models/order_payment_purchase_order'
|
615
617
|
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: 4.0.
|
4
|
+
version: 4.0.183
|
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-
|
11
|
+
date: 2023-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -137,6 +137,7 @@ files:
|
|
137
137
|
- docs/CartPaymentAmazon.md
|
138
138
|
- docs/CartPaymentCheck.md
|
139
139
|
- docs/CartPaymentCreditCard.md
|
140
|
+
- docs/CartPaymentHealthBenefitCard.md
|
140
141
|
- docs/CartPaymentPurchaseOrder.md
|
141
142
|
- docs/CartProfileLoginRequest.md
|
142
143
|
- docs/CartProfileLoginResponse.md
|
@@ -669,6 +670,7 @@ files:
|
|
669
670
|
- docs/OrderPaymentCreditCardDualVaulted.md
|
670
671
|
- docs/OrderPaymentCreditCardDualVaultedProperty.md
|
671
672
|
- docs/OrderPaymentECheck.md
|
673
|
+
- docs/OrderPaymentHealthBenefitCard.md
|
672
674
|
- docs/OrderPaymentInsurance.md
|
673
675
|
- docs/OrderPaymentPurchaseOrder.md
|
674
676
|
- docs/OrderPaymentTransaction.md
|
@@ -976,6 +978,7 @@ files:
|
|
976
978
|
- lib/ultracart_api/models/cart_payment_amazon.rb
|
977
979
|
- lib/ultracart_api/models/cart_payment_check.rb
|
978
980
|
- lib/ultracart_api/models/cart_payment_credit_card.rb
|
981
|
+
- lib/ultracart_api/models/cart_payment_health_benefit_card.rb
|
979
982
|
- lib/ultracart_api/models/cart_payment_purchase_order.rb
|
980
983
|
- lib/ultracart_api/models/cart_profile_login_request.rb
|
981
984
|
- lib/ultracart_api/models/cart_profile_login_response.rb
|
@@ -1495,6 +1498,7 @@ files:
|
|
1495
1498
|
- lib/ultracart_api/models/order_payment_credit_card_dual_vaulted.rb
|
1496
1499
|
- lib/ultracart_api/models/order_payment_credit_card_dual_vaulted_property.rb
|
1497
1500
|
- lib/ultracart_api/models/order_payment_e_check.rb
|
1501
|
+
- lib/ultracart_api/models/order_payment_health_benefit_card.rb
|
1498
1502
|
- lib/ultracart_api/models/order_payment_insurance.rb
|
1499
1503
|
- lib/ultracart_api/models/order_payment_purchase_order.rb
|
1500
1504
|
- lib/ultracart_api/models/order_payment_transaction.rb
|