ultracart_api 3.9.3 → 3.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -4
- data/docs/AutoOrder.md +1 -0
- data/docs/CustomerLoyalty.md +2 -0
- data/docs/EmailCommseqEmail.md +1 -0
- data/docs/EmailCommseqPostcard.md +2 -2
- data/docs/EmailDomain.md +1 -0
- data/docs/EmailPerformance.md +1 -0
- data/docs/OrderAutoOrder.md +1 -0
- data/lib/ultracart_api/models/auto_order.rb +11 -1
- data/lib/ultracart_api/models/customer_loyalty.rb +21 -1
- data/lib/ultracart_api/models/email_commseq_email.rb +11 -1
- data/lib/ultracart_api/models/email_commseq_postcard.rb +12 -12
- data/lib/ultracart_api/models/email_domain.rb +10 -1
- data/lib/ultracart_api/models/email_performance.rb +45 -1
- data/lib/ultracart_api/models/order_auto_order.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b24e98917ef5f54fb712aead6d1f544fe121294afac179e2181e0ef18148612
|
4
|
+
data.tar.gz: 01beb929c534c20da76a204106e9f5b3bd65d24576fc22be521d497356b6e8b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15849669dc4c8acd98804036dcdd1f29b657b42aae7ba3986c0671d91e30c1c53d148791ad074e8a6d074d87bc198cefb2d5c38014ff9f97d3ab12cf5529f47e
|
7
|
+
data.tar.gz: 118a3d786da54a1d1954c28c14f4eb2765fdfb65f2d15d7ff18ac7c966fc108bd9467d9dedf46a0cc01c7866e7d60a58f8dd6a6bf2031c38d6206298430b6e9d
|
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.9.
|
10
|
+
- Package version: 3.9.6
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-3.9.
|
27
|
+
gem install ./ultracart_api-3.9.6.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.9.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.9.6.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'ultracart_api', '~> 3.9.
|
35
|
+
gem 'ultracart_api', '~> 3.9.6'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1151,6 +1151,9 @@ Not every change is committed to every SDK.
|
|
1151
1151
|
|
1152
1152
|
| Version | Date | Comments |
|
1153
1153
|
| --: | :-: | --- |
|
1154
|
+
| 3.9.6 | 04/25/2022 | storefront communications email magic link setting |
|
1155
|
+
| 3.9.5 | 04/14/2022 | postcard screenshot bug fixes |
|
1156
|
+
| 3.9.4 | 04/13/2022 | Added spf DNS record to the sending domain object |
|
1154
1157
|
| 3.9.3 | 04/06/2022 | fix return object on send webhook test method |
|
1155
1158
|
| 3.9.2 | 04/04/2022 | user.email field extended and postcard screenshot fields |
|
1156
1159
|
| 3.9.1 | 03/03/2022 | javascript sdk package.json bug fix |
|
data/docs/AutoOrder.md
CHANGED
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**auto_order_oid** | **Integer** | Auto order object identifier | [optional]
|
8
8
|
**cancel_after_next_x_orders** | **Integer** | Cancel this auto order after X additional rebills | [optional]
|
9
9
|
**cancel_downgrade** | **BOOLEAN** | True if the auto order was canceled because the customer purchased a downgrade item | [optional]
|
10
|
+
**cancel_reason** | **String** | The reason this auto order was canceled by either merchant or customer | [optional]
|
10
11
|
**cancel_upgrade** | **BOOLEAN** | True if the auto order was canceled because the customer purchased an upgrade item | [optional]
|
11
12
|
**canceled_by_user** | **String** | The user that canceled the auto order | [optional]
|
12
13
|
**canceled_dts** | **String** | The date/time that the auto order was canceled | [optional]
|
data/docs/CustomerLoyalty.md
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**current_points** | **Integer** | Current Points | [optional]
|
7
|
+
**internal_gift_certificate_balance** | **String** | Loyalty Cashback / Store credit balance (internal gift certificate balance) | [optional]
|
8
|
+
**internal_gift_certificate_oid** | **Integer** | Internal gift certificate oid used to tracking loyalty cashback / store credit. | [optional]
|
7
9
|
**ledger_entries** | [**Array<CustomerLoyaltyLedger>**](CustomerLoyaltyLedger.md) | Ledger entries | [optional]
|
8
10
|
**pending_points** | **Integer** | Pending Points | [optional]
|
9
11
|
**redemptions** | [**Array<CustomerLoyaltyRedemption>**](CustomerLoyaltyRedemption.md) | Redemptions | [optional]
|
data/docs/EmailCommseqEmail.md
CHANGED
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
13
13
|
**filter_profile_equation_json** | **String** | Filter profile equation json | [optional]
|
14
14
|
**individually_render** | **BOOLEAN** | Individually render | [optional]
|
15
15
|
**library_item_oid** | **Integer** | If this item was ever added to the Code Library, this is the oid for that library item, or 0 if never added before. This value is used to determine if a library item should be inserted or updated. | [optional]
|
16
|
+
**magic_link** | **BOOLEAN** | True if email links should contain magic link tokens to log the customer in automatically | [optional]
|
16
17
|
**merchant_id** | **String** | Merchant ID | [optional]
|
17
18
|
**pending_review** | **BOOLEAN** | True if the content of this email is pending review by UltraCart | [optional]
|
18
19
|
**preview_text** | **String** | Preview text | [optional]
|
@@ -13,8 +13,8 @@ Name | Type | Description | Notes
|
|
13
13
|
**postcard_container_cjson_last_modified_dts** | **String** | Timestamp the last time the container was modified. | [optional]
|
14
14
|
**postcard_front_container_cjson** | **String** | Postcard front container cjson | [optional]
|
15
15
|
**postcard_front_container_uuid** | **String** | Postcard front container uuid | [optional]
|
16
|
-
**
|
17
|
-
**
|
16
|
+
**screenshot_back_url** | **String** | URL to screenshot of the back of the postcard | [optional]
|
17
|
+
**screenshot_front_url** | **String** | URL to screenshot of the front of the postcard | [optional]
|
18
18
|
**storefront_oid** | **Integer** | Storefront oid | [optional]
|
19
19
|
|
20
20
|
|
data/docs/EmailDomain.md
CHANGED
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
11
11
|
**identity_status** | **String** | | [optional]
|
12
12
|
**merchant_id** | **String** | | [optional]
|
13
13
|
**provider** | **String** | | [optional]
|
14
|
+
**spf** | [**VerificationRecord**](VerificationRecord.md) | | [optional]
|
14
15
|
**start_dkim_dts** | **String** | | [optional]
|
15
16
|
**start_identity_dts** | **String** | | [optional]
|
16
17
|
**verification** | [**VerificationRecord**](VerificationRecord.md) | | [optional]
|
data/docs/EmailPerformance.md
CHANGED
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
11
11
|
**customer_histogram** | [**EmailPerformanceCustomerHistogram**](EmailPerformanceCustomerHistogram.md) | | [optional]
|
12
12
|
**daily_stats** | [**Array<EmailPerformanceDaily>**](EmailPerformanceDaily.md) | Daily statistics used for charting | [optional]
|
13
13
|
**delivered_count** | **Integer** | Delivered count | [optional]
|
14
|
+
**loyalty_program_type** | **String** | Loyalty Program Type | [optional]
|
14
15
|
**max_active_customers** | **Integer** | Maximum active customers allowed under their billing plan | [optional]
|
15
16
|
**max_emails_per_day** | **Integer** | Max emails per day | [optional]
|
16
17
|
**max_emails_per_hour** | **Integer** | Max emails per hour | [optional]
|
data/docs/OrderAutoOrder.md
CHANGED
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**auto_order_oid** | **Integer** | Auto order object identifier | [optional]
|
8
8
|
**cancel_after_next_x_orders** | **Integer** | Cancel this auto order after X additional rebills | [optional]
|
9
9
|
**cancel_downgrade** | **BOOLEAN** | True if the auto order was canceled because the customer purchased a downgrade item | [optional]
|
10
|
+
**cancel_reason** | **String** | The reason this auto order was canceled by either merchant or customer | [optional]
|
10
11
|
**cancel_upgrade** | **BOOLEAN** | True if the auto order was canceled because the customer purchased an upgrade item | [optional]
|
11
12
|
**canceled_by_user** | **String** | The user that canceled the auto order | [optional]
|
12
13
|
**canceled_dts** | **String** | The date/time that the auto order was canceled | [optional]
|
@@ -26,6 +26,9 @@ module UltracartClient
|
|
26
26
|
# True if the auto order was canceled because the customer purchased a downgrade item
|
27
27
|
attr_accessor :cancel_downgrade
|
28
28
|
|
29
|
+
# The reason this auto order was canceled by either merchant or customer
|
30
|
+
attr_accessor :cancel_reason
|
31
|
+
|
29
32
|
# True if the auto order was canceled because the customer purchased an upgrade item
|
30
33
|
attr_accessor :cancel_upgrade
|
31
34
|
|
@@ -105,6 +108,7 @@ module UltracartClient
|
|
105
108
|
:'auto_order_oid' => :'auto_order_oid',
|
106
109
|
:'cancel_after_next_x_orders' => :'cancel_after_next_x_orders',
|
107
110
|
:'cancel_downgrade' => :'cancel_downgrade',
|
111
|
+
:'cancel_reason' => :'cancel_reason',
|
108
112
|
:'cancel_upgrade' => :'cancel_upgrade',
|
109
113
|
:'canceled_by_user' => :'canceled_by_user',
|
110
114
|
:'canceled_dts' => :'canceled_dts',
|
@@ -132,6 +136,7 @@ module UltracartClient
|
|
132
136
|
:'auto_order_oid' => :'Integer',
|
133
137
|
:'cancel_after_next_x_orders' => :'Integer',
|
134
138
|
:'cancel_downgrade' => :'BOOLEAN',
|
139
|
+
:'cancel_reason' => :'String',
|
135
140
|
:'cancel_upgrade' => :'BOOLEAN',
|
136
141
|
:'canceled_by_user' => :'String',
|
137
142
|
:'canceled_dts' => :'String',
|
@@ -176,6 +181,10 @@ module UltracartClient
|
|
176
181
|
self.cancel_downgrade = attributes[:'cancel_downgrade']
|
177
182
|
end
|
178
183
|
|
184
|
+
if attributes.has_key?(:'cancel_reason')
|
185
|
+
self.cancel_reason = attributes[:'cancel_reason']
|
186
|
+
end
|
187
|
+
|
179
188
|
if attributes.has_key?(:'cancel_upgrade')
|
180
189
|
self.cancel_upgrade = attributes[:'cancel_upgrade']
|
181
190
|
end
|
@@ -285,6 +294,7 @@ module UltracartClient
|
|
285
294
|
auto_order_oid == o.auto_order_oid &&
|
286
295
|
cancel_after_next_x_orders == o.cancel_after_next_x_orders &&
|
287
296
|
cancel_downgrade == o.cancel_downgrade &&
|
297
|
+
cancel_reason == o.cancel_reason &&
|
288
298
|
cancel_upgrade == o.cancel_upgrade &&
|
289
299
|
canceled_by_user == o.canceled_by_user &&
|
290
300
|
canceled_dts == o.canceled_dts &&
|
@@ -313,7 +323,7 @@ module UltracartClient
|
|
313
323
|
# Calculates hash code according to all attributes.
|
314
324
|
# @return [Fixnum] Hash code
|
315
325
|
def hash
|
316
|
-
[auto_order_code, auto_order_oid, cancel_after_next_x_orders, cancel_downgrade, cancel_upgrade, canceled_by_user, canceled_dts, completed, credit_card_attempt, disabled_dts, enabled, failure_reason, items, logs, next_attempt, original_order, original_order_id, override_affiliate_id, rebill_orders, rotating_transaction_gateway_code, status].hash
|
326
|
+
[auto_order_code, auto_order_oid, cancel_after_next_x_orders, cancel_downgrade, cancel_reason, cancel_upgrade, canceled_by_user, canceled_dts, completed, credit_card_attempt, disabled_dts, enabled, failure_reason, items, logs, next_attempt, original_order, original_order_id, override_affiliate_id, rebill_orders, rotating_transaction_gateway_code, status].hash
|
317
327
|
end
|
318
328
|
|
319
329
|
# Builds the object from hash
|
@@ -17,6 +17,12 @@ module UltracartClient
|
|
17
17
|
# Current Points
|
18
18
|
attr_accessor :current_points
|
19
19
|
|
20
|
+
# Loyalty Cashback / Store credit balance (internal gift certificate balance)
|
21
|
+
attr_accessor :internal_gift_certificate_balance
|
22
|
+
|
23
|
+
# Internal gift certificate oid used to tracking loyalty cashback / store credit.
|
24
|
+
attr_accessor :internal_gift_certificate_oid
|
25
|
+
|
20
26
|
# Ledger entries
|
21
27
|
attr_accessor :ledger_entries
|
22
28
|
|
@@ -30,6 +36,8 @@ module UltracartClient
|
|
30
36
|
def self.attribute_map
|
31
37
|
{
|
32
38
|
:'current_points' => :'current_points',
|
39
|
+
:'internal_gift_certificate_balance' => :'internal_gift_certificate_balance',
|
40
|
+
:'internal_gift_certificate_oid' => :'internal_gift_certificate_oid',
|
33
41
|
:'ledger_entries' => :'ledger_entries',
|
34
42
|
:'pending_points' => :'pending_points',
|
35
43
|
:'redemptions' => :'redemptions'
|
@@ -40,6 +48,8 @@ module UltracartClient
|
|
40
48
|
def self.swagger_types
|
41
49
|
{
|
42
50
|
:'current_points' => :'Integer',
|
51
|
+
:'internal_gift_certificate_balance' => :'String',
|
52
|
+
:'internal_gift_certificate_oid' => :'Integer',
|
43
53
|
:'ledger_entries' => :'Array<CustomerLoyaltyLedger>',
|
44
54
|
:'pending_points' => :'Integer',
|
45
55
|
:'redemptions' => :'Array<CustomerLoyaltyRedemption>'
|
@@ -58,6 +68,14 @@ module UltracartClient
|
|
58
68
|
self.current_points = attributes[:'current_points']
|
59
69
|
end
|
60
70
|
|
71
|
+
if attributes.has_key?(:'internal_gift_certificate_balance')
|
72
|
+
self.internal_gift_certificate_balance = attributes[:'internal_gift_certificate_balance']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.has_key?(:'internal_gift_certificate_oid')
|
76
|
+
self.internal_gift_certificate_oid = attributes[:'internal_gift_certificate_oid']
|
77
|
+
end
|
78
|
+
|
61
79
|
if attributes.has_key?(:'ledger_entries')
|
62
80
|
if (value = attributes[:'ledger_entries']).is_a?(Array)
|
63
81
|
self.ledger_entries = value
|
@@ -94,6 +112,8 @@ module UltracartClient
|
|
94
112
|
return true if self.equal?(o)
|
95
113
|
self.class == o.class &&
|
96
114
|
current_points == o.current_points &&
|
115
|
+
internal_gift_certificate_balance == o.internal_gift_certificate_balance &&
|
116
|
+
internal_gift_certificate_oid == o.internal_gift_certificate_oid &&
|
97
117
|
ledger_entries == o.ledger_entries &&
|
98
118
|
pending_points == o.pending_points &&
|
99
119
|
redemptions == o.redemptions
|
@@ -108,7 +128,7 @@ module UltracartClient
|
|
108
128
|
# Calculates hash code according to all attributes.
|
109
129
|
# @return [Fixnum] Hash code
|
110
130
|
def hash
|
111
|
-
[current_points, ledger_entries, pending_points, redemptions].hash
|
131
|
+
[current_points, internal_gift_certificate_balance, internal_gift_certificate_oid, ledger_entries, pending_points, redemptions].hash
|
112
132
|
end
|
113
133
|
|
114
134
|
# Builds the object from hash
|
@@ -44,6 +44,9 @@ module UltracartClient
|
|
44
44
|
# If this item was ever added to the Code Library, this is the oid for that library item, or 0 if never added before. This value is used to determine if a library item should be inserted or updated.
|
45
45
|
attr_accessor :library_item_oid
|
46
46
|
|
47
|
+
# True if email links should contain magic link tokens to log the customer in automatically
|
48
|
+
attr_accessor :magic_link
|
49
|
+
|
47
50
|
# Merchant ID
|
48
51
|
attr_accessor :merchant_id
|
49
52
|
|
@@ -102,6 +105,7 @@ module UltracartClient
|
|
102
105
|
:'filter_profile_equation_json' => :'filter_profile_equation_json',
|
103
106
|
:'individually_render' => :'individually_render',
|
104
107
|
:'library_item_oid' => :'library_item_oid',
|
108
|
+
:'magic_link' => :'magic_link',
|
105
109
|
:'merchant_id' => :'merchant_id',
|
106
110
|
:'pending_review' => :'pending_review',
|
107
111
|
:'preview_text' => :'preview_text',
|
@@ -133,6 +137,7 @@ module UltracartClient
|
|
133
137
|
:'filter_profile_equation_json' => :'String',
|
134
138
|
:'individually_render' => :'BOOLEAN',
|
135
139
|
:'library_item_oid' => :'Integer',
|
140
|
+
:'magic_link' => :'BOOLEAN',
|
136
141
|
:'merchant_id' => :'String',
|
137
142
|
:'pending_review' => :'BOOLEAN',
|
138
143
|
:'preview_text' => :'String',
|
@@ -199,6 +204,10 @@ module UltracartClient
|
|
199
204
|
self.library_item_oid = attributes[:'library_item_oid']
|
200
205
|
end
|
201
206
|
|
207
|
+
if attributes.has_key?(:'magic_link')
|
208
|
+
self.magic_link = attributes[:'magic_link']
|
209
|
+
end
|
210
|
+
|
202
211
|
if attributes.has_key?(:'merchant_id')
|
203
212
|
self.merchant_id = attributes[:'merchant_id']
|
204
213
|
end
|
@@ -288,6 +297,7 @@ module UltracartClient
|
|
288
297
|
filter_profile_equation_json == o.filter_profile_equation_json &&
|
289
298
|
individually_render == o.individually_render &&
|
290
299
|
library_item_oid == o.library_item_oid &&
|
300
|
+
magic_link == o.magic_link &&
|
291
301
|
merchant_id == o.merchant_id &&
|
292
302
|
pending_review == o.pending_review &&
|
293
303
|
preview_text == o.preview_text &&
|
@@ -314,7 +324,7 @@ module UltracartClient
|
|
314
324
|
# Calculates hash code according to all attributes.
|
315
325
|
# @return [Fixnum] Hash code
|
316
326
|
def hash
|
317
|
-
[deleted, edited_by_user, email_communication_sequence_email_uuid, email_communication_sequence_uuid, email_container_cjson, email_container_cjson_last_modified_dts, email_template_vm_path, filter_profile_equation_json, individually_render, library_item_oid, merchant_id, pending_review, preview_text, rejected, requires_review, screenshot_large_full_url, screenshot_large_viewport_url, screenshot_small_full_url, screenshot_small_viewport_url, smart_sending, storefront_oid, subject, suspended_for_spam, transactional_email, version].hash
|
327
|
+
[deleted, edited_by_user, email_communication_sequence_email_uuid, email_communication_sequence_uuid, email_container_cjson, email_container_cjson_last_modified_dts, email_template_vm_path, filter_profile_equation_json, individually_render, library_item_oid, magic_link, merchant_id, pending_review, preview_text, rejected, requires_review, screenshot_large_full_url, screenshot_large_viewport_url, screenshot_small_full_url, screenshot_small_viewport_url, smart_sending, storefront_oid, subject, suspended_for_spam, transactional_email, version].hash
|
318
328
|
end
|
319
329
|
|
320
330
|
# Builds the object from hash
|
@@ -44,11 +44,11 @@ module UltracartClient
|
|
44
44
|
# Postcard front container uuid
|
45
45
|
attr_accessor :postcard_front_container_uuid
|
46
46
|
|
47
|
-
# URL
|
48
|
-
attr_accessor :
|
47
|
+
# URL to screenshot of the back of the postcard
|
48
|
+
attr_accessor :screenshot_back_url
|
49
49
|
|
50
|
-
# URL
|
51
|
-
attr_accessor :
|
50
|
+
# URL to screenshot of the front of the postcard
|
51
|
+
attr_accessor :screenshot_front_url
|
52
52
|
|
53
53
|
# Storefront oid
|
54
54
|
attr_accessor :storefront_oid
|
@@ -66,8 +66,8 @@ module UltracartClient
|
|
66
66
|
:'postcard_container_cjson_last_modified_dts' => :'postcard_container_cjson_last_modified_dts',
|
67
67
|
:'postcard_front_container_cjson' => :'postcard_front_container_cjson',
|
68
68
|
:'postcard_front_container_uuid' => :'postcard_front_container_uuid',
|
69
|
+
:'screenshot_back_url' => :'screenshot_back_url',
|
69
70
|
:'screenshot_front_url' => :'screenshot_front_url',
|
70
|
-
:'screenshot_small_full_url' => :'screenshot_small_full_url',
|
71
71
|
:'storefront_oid' => :'storefront_oid'
|
72
72
|
}
|
73
73
|
end
|
@@ -85,8 +85,8 @@ module UltracartClient
|
|
85
85
|
:'postcard_container_cjson_last_modified_dts' => :'String',
|
86
86
|
:'postcard_front_container_cjson' => :'String',
|
87
87
|
:'postcard_front_container_uuid' => :'String',
|
88
|
+
:'screenshot_back_url' => :'String',
|
88
89
|
:'screenshot_front_url' => :'String',
|
89
|
-
:'screenshot_small_full_url' => :'String',
|
90
90
|
:'storefront_oid' => :'Integer'
|
91
91
|
}
|
92
92
|
end
|
@@ -139,12 +139,12 @@ module UltracartClient
|
|
139
139
|
self.postcard_front_container_uuid = attributes[:'postcard_front_container_uuid']
|
140
140
|
end
|
141
141
|
|
142
|
-
if attributes.has_key?(:'
|
143
|
-
self.
|
142
|
+
if attributes.has_key?(:'screenshot_back_url')
|
143
|
+
self.screenshot_back_url = attributes[:'screenshot_back_url']
|
144
144
|
end
|
145
145
|
|
146
|
-
if attributes.has_key?(:'
|
147
|
-
self.
|
146
|
+
if attributes.has_key?(:'screenshot_front_url')
|
147
|
+
self.screenshot_front_url = attributes[:'screenshot_front_url']
|
148
148
|
end
|
149
149
|
|
150
150
|
if attributes.has_key?(:'storefront_oid')
|
@@ -180,8 +180,8 @@ module UltracartClient
|
|
180
180
|
postcard_container_cjson_last_modified_dts == o.postcard_container_cjson_last_modified_dts &&
|
181
181
|
postcard_front_container_cjson == o.postcard_front_container_cjson &&
|
182
182
|
postcard_front_container_uuid == o.postcard_front_container_uuid &&
|
183
|
+
screenshot_back_url == o.screenshot_back_url &&
|
183
184
|
screenshot_front_url == o.screenshot_front_url &&
|
184
|
-
screenshot_small_full_url == o.screenshot_small_full_url &&
|
185
185
|
storefront_oid == o.storefront_oid
|
186
186
|
end
|
187
187
|
|
@@ -194,7 +194,7 @@ module UltracartClient
|
|
194
194
|
# Calculates hash code according to all attributes.
|
195
195
|
# @return [Fixnum] Hash code
|
196
196
|
def hash
|
197
|
-
[deleted, edited_by_user, email_communication_sequence_postcard_uuid, filter_profile_equation_json, merchant_id, postcard_back_container_cjson, postcard_back_container_uuid, postcard_container_cjson_last_modified_dts, postcard_front_container_cjson, postcard_front_container_uuid,
|
197
|
+
[deleted, edited_by_user, email_communication_sequence_postcard_uuid, filter_profile_equation_json, merchant_id, postcard_back_container_cjson, postcard_back_container_uuid, postcard_container_cjson_last_modified_dts, postcard_front_container_cjson, postcard_front_container_uuid, screenshot_back_url, screenshot_front_url, storefront_oid].hash
|
198
198
|
end
|
199
199
|
|
200
200
|
# Builds the object from hash
|
@@ -30,6 +30,8 @@ module UltracartClient
|
|
30
30
|
|
31
31
|
attr_accessor :provider
|
32
32
|
|
33
|
+
attr_accessor :spf
|
34
|
+
|
33
35
|
attr_accessor :start_dkim_dts
|
34
36
|
|
35
37
|
attr_accessor :start_identity_dts
|
@@ -47,6 +49,7 @@ module UltracartClient
|
|
47
49
|
:'identity_status' => :'identity_status',
|
48
50
|
:'merchant_id' => :'merchant_id',
|
49
51
|
:'provider' => :'provider',
|
52
|
+
:'spf' => :'spf',
|
50
53
|
:'start_dkim_dts' => :'start_dkim_dts',
|
51
54
|
:'start_identity_dts' => :'start_identity_dts',
|
52
55
|
:'verification' => :'verification'
|
@@ -64,6 +67,7 @@ module UltracartClient
|
|
64
67
|
:'identity_status' => :'String',
|
65
68
|
:'merchant_id' => :'String',
|
66
69
|
:'provider' => :'String',
|
70
|
+
:'spf' => :'VerificationRecord',
|
67
71
|
:'start_dkim_dts' => :'String',
|
68
72
|
:'start_identity_dts' => :'String',
|
69
73
|
:'verification' => :'VerificationRecord'
|
@@ -112,6 +116,10 @@ module UltracartClient
|
|
112
116
|
self.provider = attributes[:'provider']
|
113
117
|
end
|
114
118
|
|
119
|
+
if attributes.has_key?(:'spf')
|
120
|
+
self.spf = attributes[:'spf']
|
121
|
+
end
|
122
|
+
|
115
123
|
if attributes.has_key?(:'start_dkim_dts')
|
116
124
|
self.start_dkim_dts = attributes[:'start_dkim_dts']
|
117
125
|
end
|
@@ -151,6 +159,7 @@ module UltracartClient
|
|
151
159
|
identity_status == o.identity_status &&
|
152
160
|
merchant_id == o.merchant_id &&
|
153
161
|
provider == o.provider &&
|
162
|
+
spf == o.spf &&
|
154
163
|
start_dkim_dts == o.start_dkim_dts &&
|
155
164
|
start_identity_dts == o.start_identity_dts &&
|
156
165
|
verification == o.verification
|
@@ -165,7 +174,7 @@ module UltracartClient
|
|
165
174
|
# Calculates hash code according to all attributes.
|
166
175
|
# @return [Fixnum] Hash code
|
167
176
|
def hash
|
168
|
-
[comment, dkim, dkim_status, domain, esp_domain_uuid, identity_status, merchant_id, provider, start_dkim_dts, start_identity_dts, verification].hash
|
177
|
+
[comment, dkim, dkim_status, domain, esp_domain_uuid, identity_status, merchant_id, provider, spf, start_dkim_dts, start_identity_dts, verification].hash
|
169
178
|
end
|
170
179
|
|
171
180
|
# Builds the object from hash
|
@@ -37,6 +37,9 @@ module UltracartClient
|
|
37
37
|
# Delivered count
|
38
38
|
attr_accessor :delivered_count
|
39
39
|
|
40
|
+
# Loyalty Program Type
|
41
|
+
attr_accessor :loyalty_program_type
|
42
|
+
|
40
43
|
# Maximum active customers allowed under their billing plan
|
41
44
|
attr_accessor :max_active_customers
|
42
45
|
|
@@ -79,6 +82,28 @@ module UltracartClient
|
|
79
82
|
# Total transactions emails sent
|
80
83
|
attr_accessor :transactional_send_count
|
81
84
|
|
85
|
+
class EnumAttributeValidator
|
86
|
+
attr_reader :datatype
|
87
|
+
attr_reader :allowable_values
|
88
|
+
|
89
|
+
def initialize(datatype, allowable_values)
|
90
|
+
@allowable_values = allowable_values.map do |value|
|
91
|
+
case datatype.to_s
|
92
|
+
when /Integer/i
|
93
|
+
value.to_i
|
94
|
+
when /Float/i
|
95
|
+
value.to_f
|
96
|
+
else
|
97
|
+
value
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
def valid?(value)
|
103
|
+
!value || allowable_values.include?(value)
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
82
107
|
# Attribute mapping from ruby-style variable name to JSON key.
|
83
108
|
def self.attribute_map
|
84
109
|
{
|
@@ -90,6 +115,7 @@ module UltracartClient
|
|
90
115
|
:'customer_histogram' => :'customer_histogram',
|
91
116
|
:'daily_stats' => :'daily_stats',
|
92
117
|
:'delivered_count' => :'delivered_count',
|
118
|
+
:'loyalty_program_type' => :'loyalty_program_type',
|
93
119
|
:'max_active_customers' => :'max_active_customers',
|
94
120
|
:'max_emails_per_day' => :'max_emails_per_day',
|
95
121
|
:'max_emails_per_hour' => :'max_emails_per_hour',
|
@@ -118,6 +144,7 @@ module UltracartClient
|
|
118
144
|
:'customer_histogram' => :'EmailPerformanceCustomerHistogram',
|
119
145
|
:'daily_stats' => :'Array<EmailPerformanceDaily>',
|
120
146
|
:'delivered_count' => :'Integer',
|
147
|
+
:'loyalty_program_type' => :'String',
|
121
148
|
:'max_active_customers' => :'Integer',
|
122
149
|
:'max_emails_per_day' => :'Integer',
|
123
150
|
:'max_emails_per_hour' => :'Integer',
|
@@ -177,6 +204,10 @@ module UltracartClient
|
|
177
204
|
self.delivered_count = attributes[:'delivered_count']
|
178
205
|
end
|
179
206
|
|
207
|
+
if attributes.has_key?(:'loyalty_program_type')
|
208
|
+
self.loyalty_program_type = attributes[:'loyalty_program_type']
|
209
|
+
end
|
210
|
+
|
180
211
|
if attributes.has_key?(:'max_active_customers')
|
181
212
|
self.max_active_customers = attributes[:'max_active_customers']
|
182
213
|
end
|
@@ -244,9 +275,21 @@ module UltracartClient
|
|
244
275
|
# Check to see if the all the properties in the model are valid
|
245
276
|
# @return true if the model is valid
|
246
277
|
def valid?
|
278
|
+
loyalty_program_type_validator = EnumAttributeValidator.new('String', ['disabled', 'points', 'cashback'])
|
279
|
+
return false unless loyalty_program_type_validator.valid?(@loyalty_program_type)
|
247
280
|
true
|
248
281
|
end
|
249
282
|
|
283
|
+
# Custom attribute writer method checking allowed values (enum).
|
284
|
+
# @param [Object] loyalty_program_type Object to be assigned
|
285
|
+
def loyalty_program_type=(loyalty_program_type)
|
286
|
+
validator = EnumAttributeValidator.new('String', ['disabled', 'points', 'cashback'])
|
287
|
+
unless validator.valid?(loyalty_program_type)
|
288
|
+
fail ArgumentError, 'invalid value for "loyalty_program_type", must be one of #{validator.allowable_values}.'
|
289
|
+
end
|
290
|
+
@loyalty_program_type = loyalty_program_type
|
291
|
+
end
|
292
|
+
|
250
293
|
# Checks equality by comparing each attribute.
|
251
294
|
# @param [Object] Object to be compared
|
252
295
|
def ==(o)
|
@@ -260,6 +303,7 @@ module UltracartClient
|
|
260
303
|
customer_histogram == o.customer_histogram &&
|
261
304
|
daily_stats == o.daily_stats &&
|
262
305
|
delivered_count == o.delivered_count &&
|
306
|
+
loyalty_program_type == o.loyalty_program_type &&
|
263
307
|
max_active_customers == o.max_active_customers &&
|
264
308
|
max_emails_per_day == o.max_emails_per_day &&
|
265
309
|
max_emails_per_hour == o.max_emails_per_hour &&
|
@@ -285,7 +329,7 @@ module UltracartClient
|
|
285
329
|
# Calculates hash code according to all attributes.
|
286
330
|
# @return [Fixnum] Hash code
|
287
331
|
def hash
|
288
|
-
[active_customers, actual_customers, bounce_count, bounce_percentage, bounce_percentage_formatted, customer_histogram, daily_stats, delivered_count, max_active_customers, max_emails_per_day, max_emails_per_hour, max_emails_per_month, paused_for_spam, revenue, sent_emails_per_day, sent_emails_per_hour, sent_emails_per_month, sequence_send_count, spam_count, spam_percentage, spam_percentage_formatted, transactional_send_count].hash
|
332
|
+
[active_customers, actual_customers, bounce_count, bounce_percentage, bounce_percentage_formatted, customer_histogram, daily_stats, delivered_count, loyalty_program_type, max_active_customers, max_emails_per_day, max_emails_per_hour, max_emails_per_month, paused_for_spam, revenue, sent_emails_per_day, sent_emails_per_hour, sent_emails_per_month, sequence_send_count, spam_count, spam_percentage, spam_percentage_formatted, transactional_send_count].hash
|
289
333
|
end
|
290
334
|
|
291
335
|
# Builds the object from hash
|
@@ -26,6 +26,9 @@ module UltracartClient
|
|
26
26
|
# True if the auto order was canceled because the customer purchased a downgrade item
|
27
27
|
attr_accessor :cancel_downgrade
|
28
28
|
|
29
|
+
# The reason this auto order was canceled by either merchant or customer
|
30
|
+
attr_accessor :cancel_reason
|
31
|
+
|
29
32
|
# True if the auto order was canceled because the customer purchased an upgrade item
|
30
33
|
attr_accessor :cancel_upgrade
|
31
34
|
|
@@ -100,6 +103,7 @@ module UltracartClient
|
|
100
103
|
:'auto_order_oid' => :'auto_order_oid',
|
101
104
|
:'cancel_after_next_x_orders' => :'cancel_after_next_x_orders',
|
102
105
|
:'cancel_downgrade' => :'cancel_downgrade',
|
106
|
+
:'cancel_reason' => :'cancel_reason',
|
103
107
|
:'cancel_upgrade' => :'cancel_upgrade',
|
104
108
|
:'canceled_by_user' => :'canceled_by_user',
|
105
109
|
:'canceled_dts' => :'canceled_dts',
|
@@ -125,6 +129,7 @@ module UltracartClient
|
|
125
129
|
:'auto_order_oid' => :'Integer',
|
126
130
|
:'cancel_after_next_x_orders' => :'Integer',
|
127
131
|
:'cancel_downgrade' => :'BOOLEAN',
|
132
|
+
:'cancel_reason' => :'String',
|
128
133
|
:'cancel_upgrade' => :'BOOLEAN',
|
129
134
|
:'canceled_by_user' => :'String',
|
130
135
|
:'canceled_dts' => :'String',
|
@@ -167,6 +172,10 @@ module UltracartClient
|
|
167
172
|
self.cancel_downgrade = attributes[:'cancel_downgrade']
|
168
173
|
end
|
169
174
|
|
175
|
+
if attributes.has_key?(:'cancel_reason')
|
176
|
+
self.cancel_reason = attributes[:'cancel_reason']
|
177
|
+
end
|
178
|
+
|
170
179
|
if attributes.has_key?(:'cancel_upgrade')
|
171
180
|
self.cancel_upgrade = attributes[:'cancel_upgrade']
|
172
181
|
end
|
@@ -266,6 +275,7 @@ module UltracartClient
|
|
266
275
|
auto_order_oid == o.auto_order_oid &&
|
267
276
|
cancel_after_next_x_orders == o.cancel_after_next_x_orders &&
|
268
277
|
cancel_downgrade == o.cancel_downgrade &&
|
278
|
+
cancel_reason == o.cancel_reason &&
|
269
279
|
cancel_upgrade == o.cancel_upgrade &&
|
270
280
|
canceled_by_user == o.canceled_by_user &&
|
271
281
|
canceled_dts == o.canceled_dts &&
|
@@ -292,7 +302,7 @@ module UltracartClient
|
|
292
302
|
# Calculates hash code according to all attributes.
|
293
303
|
# @return [Fixnum] Hash code
|
294
304
|
def hash
|
295
|
-
[auto_order_code, auto_order_oid, cancel_after_next_x_orders, cancel_downgrade, cancel_upgrade, canceled_by_user, canceled_dts, completed, credit_card_attempt, disabled_dts, enabled, failure_reason, items, next_attempt, original_order_id, override_affiliate_id, rebill_orders, rotating_transaction_gateway_code, status].hash
|
305
|
+
[auto_order_code, auto_order_oid, cancel_after_next_x_orders, cancel_downgrade, cancel_reason, cancel_upgrade, canceled_by_user, canceled_dts, completed, credit_card_attempt, disabled_dts, enabled, failure_reason, items, next_attempt, original_order_id, override_affiliate_id, rebill_orders, rotating_transaction_gateway_code, status].hash
|
296
306
|
end
|
297
307
|
|
298
308
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ultracart_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.9.
|
4
|
+
version: 3.9.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|