ultracart_api 3.9.2 → 3.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c21e0fbeb29a599225941362bbfd5a4fa38d1608c86df5089f33cdfcec08ad3b
4
- data.tar.gz: 70f55016e1557be86277dec10d59e0bd0048a8f9bd2340d3e6567a942bb6a85d
3
+ metadata.gz: 3d068d27d5807a5494204d0db5a681fb771e5b9fbabb74f59742e7d3ba59fd34
4
+ data.tar.gz: fff21105856493ae872eebd2fc55135e459aaaee5a7420f14b68e64518dde142
5
5
  SHA512:
6
- metadata.gz: 6186b4eab4833f0150ed24869b93524146f6bebc9c4028a7b092fa39f045c1d525a97b6ae6f60ad9d088e413b8deef821e8fd9eee15b9839a5061cb296763fa9
7
- data.tar.gz: 9db3605fb5364fa06c971a25b3a745c5d8277ddef0f6fd06e79a2b8e17b8f429af16d83313ed3d091830f243b69251a960e41d567509b6d855a372289fd092e4
6
+ metadata.gz: 8361715af7f71ab8216227cb0484942c0d0608cfaa941fcfc7e530a020d53d805e4e5ce064316ac36f90c4160850e48991d25fa924da6feefafcba13d052332c
7
+ data.tar.gz: 0ae1b6160775abc6ef98ac2b2d3be2fc1f3ee46049cc2db8b7019a6e08285c3d5934c9508c6b63842227ca3972a15a4e27a965a700a2eb2224d2c59a161b5590
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.2
10
+ - Package version: 3.9.5
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.2.gem
27
+ gem install ./ultracart_api-3.9.5.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.9.2.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.9.5.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.2'
35
+ gem 'ultracart_api', '~> 3.9.5'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -661,6 +661,7 @@ Class | Method | HTTP request | Description
661
661
  - [UltracartClient::EmailCommseqStepLog](docs/EmailCommseqStepLog.md)
662
662
  - [UltracartClient::EmailCommseqStepLogsResponse](docs/EmailCommseqStepLogsResponse.md)
663
663
  - [UltracartClient::EmailCommseqWebhookSendTestRequest](docs/EmailCommseqWebhookSendTestRequest.md)
664
+ - [UltracartClient::EmailCommseqWebhookSendTestResponse](docs/EmailCommseqWebhookSendTestResponse.md)
664
665
  - [UltracartClient::EmailCommseqsResponse](docs/EmailCommseqsResponse.md)
665
666
  - [UltracartClient::EmailCustomer](docs/EmailCustomer.md)
666
667
  - [UltracartClient::EmailCustomerEditorUrlResponse](docs/EmailCustomerEditorUrlResponse.md)
@@ -1150,6 +1151,9 @@ Not every change is committed to every SDK.
1150
1151
 
1151
1152
  | Version | Date | Comments |
1152
1153
  | --: | :-: | --- |
1154
+ | 3.9.5 | 04/14/2022 | postcard screenshot bug fixes |
1155
+ | 3.9.4 | 04/13/2022 | Added spf DNS record to the sending domain object |
1156
+ | 3.9.3 | 04/06/2022 | fix return object on send webhook test method |
1153
1157
  | 3.9.2 | 04/04/2022 | user.email field extended and postcard screenshot fields |
1154
1158
  | 3.9.1 | 03/03/2022 | javascript sdk package.json bug fix |
1155
1159
  | 3.9.0 | 03/03/2022 | removed ultra_cart_rest_api_v2.d.ts from javascript sdk because typescript sdk exists now |
@@ -5,7 +5,6 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **attributes** | [**Array<LibraryItemAttribute>**](LibraryItemAttribute.md) | Attributes associated with the library item to contain additional configuration. | [optional]
7
7
  **cjson** | **String** | Cjson to be added to library | [optional]
8
- **cjson2** | **String** | Additional Cjson to be added to library, notably for the postcard which has a front and back. | [optional]
9
8
  **content_type** | **String** | flow, campaign, cjson, email, transactional_email, postcard or upsell | [optional]
10
9
  **description** | **String** | description of library item | [optional]
11
10
  **email_name** | **String** | Required if content_type is transactional_email. This is the name of the email template (html, not text). This name should have a .vm file extension. An example is auto_order_cancel_html.vm | [optional]
@@ -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]
@@ -13,14 +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
- **screenshot_back_large_full_url** | **String** | URL to screenshot (back) in large form factor full page | [optional]
17
- **screenshot_back_large_viewport_url** | **String** | URL to screenshot (back) in large form factor viewport | [optional]
18
- **screenshot_back_small_full_url** | **String** | URL to screenshot (back) in small form factor full page | [optional]
19
- **screenshot_back_small_viewport_url** | **String** | URL to screenshot (back) in small form factor viewport | [optional]
20
- **screenshot_large_full_url** | **String** | URL to screenshot in large form factor full page | [optional]
21
- **screenshot_large_viewport_url** | **String** | URL to screenshot in large form factor viewport | [optional]
22
- **screenshot_small_full_url** | **String** | URL to screenshot in small form factor full page | [optional]
23
- **screenshot_small_viewport_url** | **String** | URL to screenshot in small form factor viewport | [optional]
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]
24
18
  **storefront_oid** | **Integer** | Storefront oid | [optional]
25
19
 
26
20
 
@@ -0,0 +1,14 @@
1
+ # UltracartClient::EmailCommseqWebhookSendTestResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **error** | [**Error**](Error.md) | | [optional]
7
+ **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
8
+ **request** | **String** | HTTP Request | [optional]
9
+ **response** | **String** | HTTP Response | [optional]
10
+ **status_code** | **Integer** | HTTP Status Code | [optional]
11
+ **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
12
+ **warning** | [**Warning**](Warning.md) | | [optional]
13
+
14
+
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]
@@ -7045,7 +7045,7 @@ Name | Type | Description | Notes
7045
7045
 
7046
7046
 
7047
7047
  # **send_webhook_test**
7048
- > EmailCommseqEmailSendTestResponse send_webhook_test(storefront_oid, email_commseq_webhook_test_request)
7048
+ > EmailCommseqWebhookSendTestResponse send_webhook_test(storefront_oid, email_commseq_webhook_test_request)
7049
7049
 
7050
7050
  Send webhook test
7051
7051
 
@@ -7082,7 +7082,7 @@ Name | Type | Description | Notes
7082
7082
 
7083
7083
  ### Return type
7084
7084
 
7085
- [**EmailCommseqEmailSendTestResponse**](EmailCommseqEmailSendTestResponse.md)
7085
+ [**EmailCommseqWebhookSendTestResponse**](EmailCommseqWebhookSendTestResponse.md)
7086
7086
 
7087
7087
  ### Authorization
7088
7088
 
@@ -7871,7 +7871,7 @@ module UltracartClient
7871
7871
  # @param storefront_oid
7872
7872
  # @param email_commseq_webhook_test_request Email commseq webhook test request
7873
7873
  # @param [Hash] opts the optional parameters
7874
- # @return [EmailCommseqEmailSendTestResponse]
7874
+ # @return [EmailCommseqWebhookSendTestResponse]
7875
7875
  def send_webhook_test(storefront_oid, email_commseq_webhook_test_request, opts = {})
7876
7876
  data, _status_code, _headers = send_webhook_test_with_http_info(storefront_oid, email_commseq_webhook_test_request, opts)
7877
7877
  data
@@ -7881,7 +7881,7 @@ module UltracartClient
7881
7881
  # @param storefront_oid
7882
7882
  # @param email_commseq_webhook_test_request Email commseq webhook test request
7883
7883
  # @param [Hash] opts the optional parameters
7884
- # @return [Array<(EmailCommseqEmailSendTestResponse, Fixnum, Hash)>] EmailCommseqEmailSendTestResponse data, response status code and response headers
7884
+ # @return [Array<(EmailCommseqWebhookSendTestResponse, Fixnum, Hash)>] EmailCommseqWebhookSendTestResponse data, response status code and response headers
7885
7885
  def send_webhook_test_with_http_info(storefront_oid, email_commseq_webhook_test_request, opts = {})
7886
7886
  if @api_client.config.debugging
7887
7887
  @api_client.config.logger.debug 'Calling API: StorefrontApi.send_webhook_test ...'
@@ -7920,7 +7920,7 @@ module UltracartClient
7920
7920
  :form_params => form_params,
7921
7921
  :body => post_body,
7922
7922
  :auth_names => auth_names,
7923
- :return_type => 'EmailCommseqEmailSendTestResponse')
7923
+ :return_type => 'EmailCommseqWebhookSendTestResponse')
7924
7924
  if @api_client.config.debugging
7925
7925
  @api_client.config.logger.debug "API called: StorefrontApi#send_webhook_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7926
7926
  end
@@ -20,9 +20,6 @@ module UltracartClient
20
20
  # Cjson to be added to library
21
21
  attr_accessor :cjson
22
22
 
23
- # Additional Cjson to be added to library, notably for the postcard which has a front and back.
24
- attr_accessor :cjson2
25
-
26
23
  # flow, campaign, cjson, email, transactional_email, postcard or upsell
27
24
  attr_accessor :content_type
28
25
 
@@ -55,7 +52,6 @@ module UltracartClient
55
52
  {
56
53
  :'attributes' => :'attributes',
57
54
  :'cjson' => :'cjson',
58
- :'cjson2' => :'cjson2',
59
55
  :'content_type' => :'content_type',
60
56
  :'description' => :'description',
61
57
  :'email_name' => :'email_name',
@@ -73,7 +69,6 @@ module UltracartClient
73
69
  {
74
70
  :'attributes' => :'Array<LibraryItemAttribute>',
75
71
  :'cjson' => :'String',
76
- :'cjson2' => :'String',
77
72
  :'content_type' => :'String',
78
73
  :'description' => :'String',
79
74
  :'email_name' => :'String',
@@ -104,10 +99,6 @@ module UltracartClient
104
99
  self.cjson = attributes[:'cjson']
105
100
  end
106
101
 
107
- if attributes.has_key?(:'cjson2')
108
- self.cjson2 = attributes[:'cjson2']
109
- end
110
-
111
102
  if attributes.has_key?(:'content_type')
112
103
  self.content_type = attributes[:'content_type']
113
104
  end
@@ -167,7 +158,6 @@ module UltracartClient
167
158
  self.class == o.class &&
168
159
  attributes == o.attributes &&
169
160
  cjson == o.cjson &&
170
- cjson2 == o.cjson2 &&
171
161
  content_type == o.content_type &&
172
162
  description == o.description &&
173
163
  email_name == o.email_name &&
@@ -188,7 +178,7 @@ module UltracartClient
188
178
  # Calculates hash code according to all attributes.
189
179
  # @return [Fixnum] Hash code
190
180
  def hash
191
- [attributes, cjson, cjson2, content_type, description, email_name, email_path, screenshots, storefront_oid, title, upsell_offer_oid, uuid].hash
181
+ [attributes, cjson, content_type, description, email_name, email_path, screenshots, storefront_oid, title, upsell_offer_oid, uuid].hash
192
182
  end
193
183
 
194
184
  # 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,29 +44,11 @@ module UltracartClient
44
44
  # Postcard front container uuid
45
45
  attr_accessor :postcard_front_container_uuid
46
46
 
47
- # URL to screenshot (back) in large form factor full page
48
- attr_accessor :screenshot_back_large_full_url
47
+ # URL to screenshot of the back of the postcard
48
+ attr_accessor :screenshot_back_url
49
49
 
50
- # URL to screenshot (back) in large form factor viewport
51
- attr_accessor :screenshot_back_large_viewport_url
52
-
53
- # URL to screenshot (back) in small form factor full page
54
- attr_accessor :screenshot_back_small_full_url
55
-
56
- # URL to screenshot (back) in small form factor viewport
57
- attr_accessor :screenshot_back_small_viewport_url
58
-
59
- # URL to screenshot in large form factor full page
60
- attr_accessor :screenshot_large_full_url
61
-
62
- # URL to screenshot in large form factor viewport
63
- attr_accessor :screenshot_large_viewport_url
64
-
65
- # URL to screenshot in small form factor full page
66
- attr_accessor :screenshot_small_full_url
67
-
68
- # URL to screenshot in small form factor viewport
69
- attr_accessor :screenshot_small_viewport_url
50
+ # URL to screenshot of the front of the postcard
51
+ attr_accessor :screenshot_front_url
70
52
 
71
53
  # Storefront oid
72
54
  attr_accessor :storefront_oid
@@ -84,14 +66,8 @@ module UltracartClient
84
66
  :'postcard_container_cjson_last_modified_dts' => :'postcard_container_cjson_last_modified_dts',
85
67
  :'postcard_front_container_cjson' => :'postcard_front_container_cjson',
86
68
  :'postcard_front_container_uuid' => :'postcard_front_container_uuid',
87
- :'screenshot_back_large_full_url' => :'screenshot_back_large_full_url',
88
- :'screenshot_back_large_viewport_url' => :'screenshot_back_large_viewport_url',
89
- :'screenshot_back_small_full_url' => :'screenshot_back_small_full_url',
90
- :'screenshot_back_small_viewport_url' => :'screenshot_back_small_viewport_url',
91
- :'screenshot_large_full_url' => :'screenshot_large_full_url',
92
- :'screenshot_large_viewport_url' => :'screenshot_large_viewport_url',
93
- :'screenshot_small_full_url' => :'screenshot_small_full_url',
94
- :'screenshot_small_viewport_url' => :'screenshot_small_viewport_url',
69
+ :'screenshot_back_url' => :'screenshot_back_url',
70
+ :'screenshot_front_url' => :'screenshot_front_url',
95
71
  :'storefront_oid' => :'storefront_oid'
96
72
  }
97
73
  end
@@ -109,14 +85,8 @@ module UltracartClient
109
85
  :'postcard_container_cjson_last_modified_dts' => :'String',
110
86
  :'postcard_front_container_cjson' => :'String',
111
87
  :'postcard_front_container_uuid' => :'String',
112
- :'screenshot_back_large_full_url' => :'String',
113
- :'screenshot_back_large_viewport_url' => :'String',
114
- :'screenshot_back_small_full_url' => :'String',
115
- :'screenshot_back_small_viewport_url' => :'String',
116
- :'screenshot_large_full_url' => :'String',
117
- :'screenshot_large_viewport_url' => :'String',
118
- :'screenshot_small_full_url' => :'String',
119
- :'screenshot_small_viewport_url' => :'String',
88
+ :'screenshot_back_url' => :'String',
89
+ :'screenshot_front_url' => :'String',
120
90
  :'storefront_oid' => :'Integer'
121
91
  }
122
92
  end
@@ -169,36 +139,12 @@ module UltracartClient
169
139
  self.postcard_front_container_uuid = attributes[:'postcard_front_container_uuid']
170
140
  end
171
141
 
172
- if attributes.has_key?(:'screenshot_back_large_full_url')
173
- self.screenshot_back_large_full_url = attributes[:'screenshot_back_large_full_url']
174
- end
175
-
176
- if attributes.has_key?(:'screenshot_back_large_viewport_url')
177
- self.screenshot_back_large_viewport_url = attributes[:'screenshot_back_large_viewport_url']
178
- end
179
-
180
- if attributes.has_key?(:'screenshot_back_small_full_url')
181
- self.screenshot_back_small_full_url = attributes[:'screenshot_back_small_full_url']
182
- end
183
-
184
- if attributes.has_key?(:'screenshot_back_small_viewport_url')
185
- self.screenshot_back_small_viewport_url = attributes[:'screenshot_back_small_viewport_url']
186
- end
187
-
188
- if attributes.has_key?(:'screenshot_large_full_url')
189
- self.screenshot_large_full_url = attributes[:'screenshot_large_full_url']
190
- end
191
-
192
- if attributes.has_key?(:'screenshot_large_viewport_url')
193
- self.screenshot_large_viewport_url = attributes[:'screenshot_large_viewport_url']
194
- end
195
-
196
- if attributes.has_key?(:'screenshot_small_full_url')
197
- self.screenshot_small_full_url = attributes[:'screenshot_small_full_url']
142
+ if attributes.has_key?(:'screenshot_back_url')
143
+ self.screenshot_back_url = attributes[:'screenshot_back_url']
198
144
  end
199
145
 
200
- if attributes.has_key?(:'screenshot_small_viewport_url')
201
- self.screenshot_small_viewport_url = attributes[:'screenshot_small_viewport_url']
146
+ if attributes.has_key?(:'screenshot_front_url')
147
+ self.screenshot_front_url = attributes[:'screenshot_front_url']
202
148
  end
203
149
 
204
150
  if attributes.has_key?(:'storefront_oid')
@@ -234,14 +180,8 @@ module UltracartClient
234
180
  postcard_container_cjson_last_modified_dts == o.postcard_container_cjson_last_modified_dts &&
235
181
  postcard_front_container_cjson == o.postcard_front_container_cjson &&
236
182
  postcard_front_container_uuid == o.postcard_front_container_uuid &&
237
- screenshot_back_large_full_url == o.screenshot_back_large_full_url &&
238
- screenshot_back_large_viewport_url == o.screenshot_back_large_viewport_url &&
239
- screenshot_back_small_full_url == o.screenshot_back_small_full_url &&
240
- screenshot_back_small_viewport_url == o.screenshot_back_small_viewport_url &&
241
- screenshot_large_full_url == o.screenshot_large_full_url &&
242
- screenshot_large_viewport_url == o.screenshot_large_viewport_url &&
243
- screenshot_small_full_url == o.screenshot_small_full_url &&
244
- screenshot_small_viewport_url == o.screenshot_small_viewport_url &&
183
+ screenshot_back_url == o.screenshot_back_url &&
184
+ screenshot_front_url == o.screenshot_front_url &&
245
185
  storefront_oid == o.storefront_oid
246
186
  end
247
187
 
@@ -254,7 +194,7 @@ module UltracartClient
254
194
  # Calculates hash code according to all attributes.
255
195
  # @return [Fixnum] Hash code
256
196
  def hash
257
- [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_large_full_url, screenshot_back_large_viewport_url, screenshot_back_small_full_url, screenshot_back_small_viewport_url, screenshot_large_full_url, screenshot_large_viewport_url, screenshot_small_full_url, screenshot_small_viewport_url, storefront_oid].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, screenshot_back_url, screenshot_front_url, storefront_oid].hash
258
198
  end
259
199
 
260
200
  # Builds the object from hash
@@ -0,0 +1,242 @@
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 EmailCommseqWebhookSendTestResponse
17
+ attr_accessor :error
18
+
19
+ attr_accessor :metadata
20
+
21
+ # HTTP Request
22
+ attr_accessor :request
23
+
24
+ # HTTP Response
25
+ attr_accessor :response
26
+
27
+ # HTTP Status Code
28
+ attr_accessor :status_code
29
+
30
+ # Indicates if API call was successful
31
+ attr_accessor :success
32
+
33
+ attr_accessor :warning
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'error' => :'error',
39
+ :'metadata' => :'metadata',
40
+ :'request' => :'request',
41
+ :'response' => :'response',
42
+ :'status_code' => :'status_code',
43
+ :'success' => :'success',
44
+ :'warning' => :'warning'
45
+ }
46
+ end
47
+
48
+ # Attribute type mapping.
49
+ def self.swagger_types
50
+ {
51
+ :'error' => :'Error',
52
+ :'metadata' => :'ResponseMetadata',
53
+ :'request' => :'String',
54
+ :'response' => :'String',
55
+ :'status_code' => :'Integer',
56
+ :'success' => :'BOOLEAN',
57
+ :'warning' => :'Warning'
58
+ }
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ return unless attributes.is_a?(Hash)
65
+
66
+ # convert string to symbol for hash key
67
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
68
+
69
+ if attributes.has_key?(:'error')
70
+ self.error = attributes[:'error']
71
+ end
72
+
73
+ if attributes.has_key?(:'metadata')
74
+ self.metadata = attributes[:'metadata']
75
+ end
76
+
77
+ if attributes.has_key?(:'request')
78
+ self.request = attributes[:'request']
79
+ end
80
+
81
+ if attributes.has_key?(:'response')
82
+ self.response = attributes[:'response']
83
+ end
84
+
85
+ if attributes.has_key?(:'status_code')
86
+ self.status_code = attributes[:'status_code']
87
+ end
88
+
89
+ if attributes.has_key?(:'success')
90
+ self.success = attributes[:'success']
91
+ end
92
+
93
+ if attributes.has_key?(:'warning')
94
+ self.warning = attributes[:'warning']
95
+ end
96
+ end
97
+
98
+ # Show invalid properties with the reasons. Usually used together with valid?
99
+ # @return Array for valid properties with the reasons
100
+ def list_invalid_properties
101
+ invalid_properties = Array.new
102
+ invalid_properties
103
+ end
104
+
105
+ # Check to see if the all the properties in the model are valid
106
+ # @return true if the model is valid
107
+ def valid?
108
+ true
109
+ end
110
+
111
+ # Checks equality by comparing each attribute.
112
+ # @param [Object] Object to be compared
113
+ def ==(o)
114
+ return true if self.equal?(o)
115
+ self.class == o.class &&
116
+ error == o.error &&
117
+ metadata == o.metadata &&
118
+ request == o.request &&
119
+ response == o.response &&
120
+ status_code == o.status_code &&
121
+ success == o.success &&
122
+ warning == o.warning
123
+ end
124
+
125
+ # @see the `==` method
126
+ # @param [Object] Object to be compared
127
+ def eql?(o)
128
+ self == o
129
+ end
130
+
131
+ # Calculates hash code according to all attributes.
132
+ # @return [Fixnum] Hash code
133
+ def hash
134
+ [error, metadata, request, response, status_code, success, warning].hash
135
+ end
136
+
137
+ # Builds the object from hash
138
+ # @param [Hash] attributes Model attributes in the form of hash
139
+ # @return [Object] Returns the model itself
140
+ def build_from_hash(attributes)
141
+ return nil unless attributes.is_a?(Hash)
142
+ self.class.swagger_types.each_pair do |key, type|
143
+ if type =~ /\AArray<(.*)>/i
144
+ # check to ensure the input is an array given that the attribute
145
+ # is documented as an array but the input is not
146
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
147
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
148
+ end
149
+ elsif !attributes[self.class.attribute_map[key]].nil?
150
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
151
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
152
+ end
153
+
154
+ self
155
+ end
156
+
157
+ # Deserializes the data based on type
158
+ # @param string type Data type
159
+ # @param string value Value to be deserialized
160
+ # @return [Object] Deserialized data
161
+ def _deserialize(type, value)
162
+ case type.to_sym
163
+ when :DateTime
164
+ DateTime.parse(value)
165
+ when :Date
166
+ Date.parse(value)
167
+ when :String
168
+ value.to_s
169
+ when :Integer
170
+ value.to_i
171
+ when :Float
172
+ value.to_f
173
+ when :BOOLEAN
174
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
175
+ true
176
+ else
177
+ false
178
+ end
179
+ when :Object
180
+ # generic object (usually a Hash), return directly
181
+ value
182
+ when /\AArray<(?<inner_type>.+)>\z/
183
+ inner_type = Regexp.last_match[:inner_type]
184
+ value.map { |v| _deserialize(inner_type, v) }
185
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
186
+ k_type = Regexp.last_match[:k_type]
187
+ v_type = Regexp.last_match[:v_type]
188
+ {}.tap do |hash|
189
+ value.each do |k, v|
190
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
191
+ end
192
+ end
193
+ else # model
194
+ temp_model = UltracartClient.const_get(type).new
195
+ temp_model.build_from_hash(value)
196
+ end
197
+ end
198
+
199
+ # Returns the string representation of the object
200
+ # @return [String] String presentation of the object
201
+ def to_s
202
+ to_hash.to_s
203
+ end
204
+
205
+ # to_body is an alias to to_hash (backward compatibility)
206
+ # @return [Hash] Returns the object in the form of hash
207
+ def to_body
208
+ to_hash
209
+ end
210
+
211
+ # Returns the object in the form of hash
212
+ # @return [Hash] Returns the object in the form of hash
213
+ def to_hash
214
+ hash = {}
215
+ self.class.attribute_map.each_pair do |attr, param|
216
+ value = self.send(attr)
217
+ next if value.nil?
218
+ hash[param] = _to_hash(value)
219
+ end
220
+ hash
221
+ end
222
+
223
+ # Outputs non-array value in the form of hash
224
+ # For object, use to_hash. Otherwise, just return the value
225
+ # @param [Object] value Any valid value
226
+ # @return [Hash] Returns the value in the form of hash
227
+ def _to_hash(value)
228
+ if value.is_a?(Array)
229
+ value.compact.map { |v| _to_hash(v) }
230
+ elsif value.is_a?(Hash)
231
+ {}.tap do |hash|
232
+ value.each { |k, v| hash[k] = _to_hash(v) }
233
+ end
234
+ elsif value.respond_to? :to_hash
235
+ value.to_hash
236
+ else
237
+ value
238
+ end
239
+ end
240
+
241
+ end
242
+ end
@@ -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
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.9.2'
14
+ VERSION = '3.9.5'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -245,6 +245,7 @@ require 'ultracart_api/models/email_commseq_step'
245
245
  require 'ultracart_api/models/email_commseq_step_log'
246
246
  require 'ultracart_api/models/email_commseq_step_logs_response'
247
247
  require 'ultracart_api/models/email_commseq_webhook_send_test_request'
248
+ require 'ultracart_api/models/email_commseq_webhook_send_test_response'
248
249
  require 'ultracart_api/models/email_commseqs_response'
249
250
  require 'ultracart_api/models/email_customer'
250
251
  require 'ultracart_api/models/email_customer_editor_url_response'
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.2
4
+ version: 3.9.5
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-04 00:00:00.000000000 Z
11
+ date: 2022-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -456,6 +456,7 @@ files:
456
456
  - docs/EmailCommseqStepLog.md
457
457
  - docs/EmailCommseqStepLogsResponse.md
458
458
  - docs/EmailCommseqWebhookSendTestRequest.md
459
+ - docs/EmailCommseqWebhookSendTestResponse.md
459
460
  - docs/EmailCommseqsResponse.md
460
461
  - docs/EmailCustomer.md
461
462
  - docs/EmailCustomerEditorUrlResponse.md
@@ -1141,6 +1142,7 @@ files:
1141
1142
  - lib/ultracart_api/models/email_commseq_step_log.rb
1142
1143
  - lib/ultracart_api/models/email_commseq_step_logs_response.rb
1143
1144
  - lib/ultracart_api/models/email_commseq_webhook_send_test_request.rb
1145
+ - lib/ultracart_api/models/email_commseq_webhook_send_test_response.rb
1144
1146
  - lib/ultracart_api/models/email_commseqs_response.rb
1145
1147
  - lib/ultracart_api/models/email_customer.rb
1146
1148
  - lib/ultracart_api/models/email_customer_editor_url_response.rb