ultracart_api 3.10.165 → 3.10.167
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/CartPayment.md +1 -0
- data/docs/CartPaymentHealthBenefitCard.md +13 -0
- data/docs/CartSummary.md +2 -0
- data/docs/OrderPayment.md +1 -0
- data/docs/OrderPaymentHealthBenefitCard.md +13 -0
- data/docs/OrderSummary.md +2 -0
- data/docs/WorkflowTasksRequest.md +2 -1
- data/lib/ultracart_api/models/cart_payment.rb +10 -1
- data/lib/ultracart_api/models/cart_payment_health_benefit_card.rb +235 -0
- data/lib/ultracart_api/models/cart_summary.rb +19 -1
- data/lib/ultracart_api/models/order_payment.rb +12 -3
- data/lib/ultracart_api/models/order_payment_health_benefit_card.rb +235 -0
- data/lib/ultracart_api/models/order_summary.rb +19 -1
- 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: 71c41cc4bb6719e44bd91a5d71e35b3544fa7152e3270ce96e23a104478fc49e
|
4
|
+
data.tar.gz: 875f76b8a3d38e8f4f2ca8362d8d9bd739aad6893e420e6b5494781ee1b386f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c3d4c9d30832f86fabbab764cd3616d47071f22545d9a448504de12183c97c78bf7178b2f99cc2c8ca43057dfc42d6807a07477f55d72059ff9d4c6eff358b5
|
7
|
+
data.tar.gz: 87489fc752aa6b6467476345d5c6dda2d0b2ad27622a7b04d9aac38aa7c68e4d0f2c97ee3f2d3d0845e0aa70b9ddf84fda8a26b1f3ffa1aabe0cd77fc563c0a5
|
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.
|
10
|
+
- Package version: 3.10.167
|
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.
|
27
|
+
gem install ./ultracart_api-3.10.167.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.167.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.
|
35
|
+
gem 'ultracart_api', '~> 3.10.167'
|
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,8 @@ Not every change is committed to every SDK.
|
|
1386
1388
|
|
1387
1389
|
| Version | Date | Comments |
|
1388
1390
|
| --: | :-: | --- |
|
1391
|
+
| 3.10.167 | 10/30/2023 | cart/order fields for health benefit card values in summary expansion objects |
|
1392
|
+
| 3.10.166 | 10/27/2023 | workflow task object model refinement |
|
1389
1393
|
| 3.10.165 | 10/23/2023 | workflow tasks api |
|
1390
1394
|
| 3.10.164 | 10/23/2023 | workflow tasks api |
|
1391
1395
|
| 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/CartSummary.md
CHANGED
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
|
|
7
7
|
**arbitrary_tax** | [**Currency**](Currency.md) | | [optional]
|
8
8
|
**arbitrary_tax_rate** | [**Currency**](Currency.md) | | [optional]
|
9
9
|
**arbitrary_taxable_subtotal** | [**Currency**](Currency.md) | | [optional]
|
10
|
+
**health_benefit_card_amount** | [**Currency**](Currency.md) | | [optional]
|
11
|
+
**internal_gift_certificate_amount** | [**Currency**](Currency.md) | | [optional]
|
10
12
|
**shipping_handling** | [**Currency**](Currency.md) | | [optional]
|
11
13
|
**shipping_handling_discount** | [**Currency**](Currency.md) | | [optional]
|
12
14
|
**shipping_handling_with_discount** | [**Currency**](Currency.md) | | [optional]
|
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
|
+
|
data/docs/OrderSummary.md
CHANGED
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
|
|
7
7
|
**actual_payment_processing** | [**Currency**](Currency.md) | | [optional]
|
8
8
|
**actual_shipping** | [**Currency**](Currency.md) | | [optional]
|
9
9
|
**arbitrary_shipping_handling_total** | [**Currency**](Currency.md) | | [optional]
|
10
|
+
**health_benefit_card_amount** | [**Currency**](Currency.md) | | [optional]
|
11
|
+
**health_benefit_card_refunded** | [**Currency**](Currency.md) | | [optional]
|
10
12
|
**internal_gift_certificate_amount** | [**Currency**](Currency.md) | | [optional]
|
11
13
|
**internal_gift_certificate_refunded** | [**Currency**](Currency.md) | | [optional]
|
12
14
|
**other_refunded** | [**Currency**](Currency.md) | | [optional]
|
@@ -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
|
-
**
|
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
|
@@ -22,6 +22,10 @@ module UltracartClient
|
|
22
22
|
|
23
23
|
attr_accessor :arbitrary_taxable_subtotal
|
24
24
|
|
25
|
+
attr_accessor :health_benefit_card_amount
|
26
|
+
|
27
|
+
attr_accessor :internal_gift_certificate_amount
|
28
|
+
|
25
29
|
attr_accessor :shipping_handling
|
26
30
|
|
27
31
|
attr_accessor :shipping_handling_discount
|
@@ -53,6 +57,8 @@ module UltracartClient
|
|
53
57
|
:'arbitrary_tax' => :'arbitrary_tax',
|
54
58
|
:'arbitrary_tax_rate' => :'arbitrary_tax_rate',
|
55
59
|
:'arbitrary_taxable_subtotal' => :'arbitrary_taxable_subtotal',
|
60
|
+
:'health_benefit_card_amount' => :'health_benefit_card_amount',
|
61
|
+
:'internal_gift_certificate_amount' => :'internal_gift_certificate_amount',
|
56
62
|
:'shipping_handling' => :'shipping_handling',
|
57
63
|
:'shipping_handling_discount' => :'shipping_handling_discount',
|
58
64
|
:'shipping_handling_with_discount' => :'shipping_handling_with_discount',
|
@@ -75,6 +81,8 @@ module UltracartClient
|
|
75
81
|
:'arbitrary_tax' => :'Currency',
|
76
82
|
:'arbitrary_tax_rate' => :'Currency',
|
77
83
|
:'arbitrary_taxable_subtotal' => :'Currency',
|
84
|
+
:'health_benefit_card_amount' => :'Currency',
|
85
|
+
:'internal_gift_certificate_amount' => :'Currency',
|
78
86
|
:'shipping_handling' => :'Currency',
|
79
87
|
:'shipping_handling_discount' => :'Currency',
|
80
88
|
:'shipping_handling_with_discount' => :'Currency',
|
@@ -114,6 +122,14 @@ module UltracartClient
|
|
114
122
|
self.arbitrary_taxable_subtotal = attributes[:'arbitrary_taxable_subtotal']
|
115
123
|
end
|
116
124
|
|
125
|
+
if attributes.has_key?(:'health_benefit_card_amount')
|
126
|
+
self.health_benefit_card_amount = attributes[:'health_benefit_card_amount']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.has_key?(:'internal_gift_certificate_amount')
|
130
|
+
self.internal_gift_certificate_amount = attributes[:'internal_gift_certificate_amount']
|
131
|
+
end
|
132
|
+
|
117
133
|
if attributes.has_key?(:'shipping_handling')
|
118
134
|
self.shipping_handling = attributes[:'shipping_handling']
|
119
135
|
end
|
@@ -185,6 +201,8 @@ module UltracartClient
|
|
185
201
|
arbitrary_tax == o.arbitrary_tax &&
|
186
202
|
arbitrary_tax_rate == o.arbitrary_tax_rate &&
|
187
203
|
arbitrary_taxable_subtotal == o.arbitrary_taxable_subtotal &&
|
204
|
+
health_benefit_card_amount == o.health_benefit_card_amount &&
|
205
|
+
internal_gift_certificate_amount == o.internal_gift_certificate_amount &&
|
188
206
|
shipping_handling == o.shipping_handling &&
|
189
207
|
shipping_handling_discount == o.shipping_handling_discount &&
|
190
208
|
shipping_handling_with_discount == o.shipping_handling_with_discount &&
|
@@ -208,7 +226,7 @@ module UltracartClient
|
|
208
226
|
# Calculates hash code according to all attributes.
|
209
227
|
# @return [Fixnum] Hash code
|
210
228
|
def hash
|
211
|
-
[arbitrary_shipping_handling_total, arbitrary_tax, arbitrary_tax_rate, arbitrary_taxable_subtotal, shipping_handling, shipping_handling_discount, shipping_handling_with_discount, subtotal, subtotal_discount, subtotal_with_discount, surcharge, tax, taxable_subtotal, taxable_subtotal_discount, taxable_subtotal_with_discount, total].hash
|
229
|
+
[arbitrary_shipping_handling_total, arbitrary_tax, arbitrary_tax_rate, arbitrary_taxable_subtotal, health_benefit_card_amount, internal_gift_certificate_amount, shipping_handling, shipping_handling_discount, shipping_handling_with_discount, subtotal, subtotal_discount, subtotal_with_discount, surcharge, tax, taxable_subtotal, taxable_subtotal_discount, taxable_subtotal_with_discount, total].hash
|
212
230
|
end
|
213
231
|
|
214
232
|
# Builds the object from hash
|
@@ -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
|
@@ -22,6 +22,10 @@ module UltracartClient
|
|
22
22
|
|
23
23
|
attr_accessor :arbitrary_shipping_handling_total
|
24
24
|
|
25
|
+
attr_accessor :health_benefit_card_amount
|
26
|
+
|
27
|
+
attr_accessor :health_benefit_card_refunded
|
28
|
+
|
25
29
|
attr_accessor :internal_gift_certificate_amount
|
26
30
|
|
27
31
|
attr_accessor :internal_gift_certificate_refunded
|
@@ -61,6 +65,8 @@ module UltracartClient
|
|
61
65
|
:'actual_payment_processing' => :'actual_payment_processing',
|
62
66
|
:'actual_shipping' => :'actual_shipping',
|
63
67
|
:'arbitrary_shipping_handling_total' => :'arbitrary_shipping_handling_total',
|
68
|
+
:'health_benefit_card_amount' => :'health_benefit_card_amount',
|
69
|
+
:'health_benefit_card_refunded' => :'health_benefit_card_refunded',
|
64
70
|
:'internal_gift_certificate_amount' => :'internal_gift_certificate_amount',
|
65
71
|
:'internal_gift_certificate_refunded' => :'internal_gift_certificate_refunded',
|
66
72
|
:'other_refunded' => :'other_refunded',
|
@@ -87,6 +93,8 @@ module UltracartClient
|
|
87
93
|
:'actual_payment_processing' => :'Currency',
|
88
94
|
:'actual_shipping' => :'Currency',
|
89
95
|
:'arbitrary_shipping_handling_total' => :'Currency',
|
96
|
+
:'health_benefit_card_amount' => :'Currency',
|
97
|
+
:'health_benefit_card_refunded' => :'Currency',
|
90
98
|
:'internal_gift_certificate_amount' => :'Currency',
|
91
99
|
:'internal_gift_certificate_refunded' => :'Currency',
|
92
100
|
:'other_refunded' => :'Currency',
|
@@ -130,6 +138,14 @@ module UltracartClient
|
|
130
138
|
self.arbitrary_shipping_handling_total = attributes[:'arbitrary_shipping_handling_total']
|
131
139
|
end
|
132
140
|
|
141
|
+
if attributes.has_key?(:'health_benefit_card_amount')
|
142
|
+
self.health_benefit_card_amount = attributes[:'health_benefit_card_amount']
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.has_key?(:'health_benefit_card_refunded')
|
146
|
+
self.health_benefit_card_refunded = attributes[:'health_benefit_card_refunded']
|
147
|
+
end
|
148
|
+
|
133
149
|
if attributes.has_key?(:'internal_gift_certificate_amount')
|
134
150
|
self.internal_gift_certificate_amount = attributes[:'internal_gift_certificate_amount']
|
135
151
|
end
|
@@ -217,6 +233,8 @@ module UltracartClient
|
|
217
233
|
actual_payment_processing == o.actual_payment_processing &&
|
218
234
|
actual_shipping == o.actual_shipping &&
|
219
235
|
arbitrary_shipping_handling_total == o.arbitrary_shipping_handling_total &&
|
236
|
+
health_benefit_card_amount == o.health_benefit_card_amount &&
|
237
|
+
health_benefit_card_refunded == o.health_benefit_card_refunded &&
|
220
238
|
internal_gift_certificate_amount == o.internal_gift_certificate_amount &&
|
221
239
|
internal_gift_certificate_refunded == o.internal_gift_certificate_refunded &&
|
222
240
|
other_refunded == o.other_refunded &&
|
@@ -244,7 +262,7 @@ module UltracartClient
|
|
244
262
|
# Calculates hash code according to all attributes.
|
245
263
|
# @return [Fixnum] Hash code
|
246
264
|
def hash
|
247
|
-
[actual_fulfillment, actual_payment_processing, actual_shipping, arbitrary_shipping_handling_total, internal_gift_certificate_amount, internal_gift_certificate_refunded, other_refunded, shipping_handling_refunded, shipping_handling_total, shipping_handling_total_discount, subtotal, subtotal_discount, subtotal_discount_refunded, subtotal_refunded, tax, tax_refunded, taxable_subtotal, taxable_subtotal_discount, total, total_refunded].hash
|
265
|
+
[actual_fulfillment, actual_payment_processing, actual_shipping, arbitrary_shipping_handling_total, health_benefit_card_amount, health_benefit_card_refunded, internal_gift_certificate_amount, internal_gift_certificate_refunded, other_refunded, shipping_handling_refunded, shipping_handling_total, shipping_handling_total_discount, subtotal, subtotal_discount, subtotal_discount_refunded, subtotal_refunded, tax, tax_refunded, taxable_subtotal, taxable_subtotal_discount, total, total_refunded].hash
|
248
266
|
end
|
249
267
|
|
250
268
|
# Builds the object from hash
|
@@ -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 :
|
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
|
-
:'
|
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
|
-
:'
|
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?(:'
|
163
|
-
self.
|
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
|
-
|
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,
|
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
|
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.
|
4
|
+
version: 3.10.167
|
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-30 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
|