ultracart_api 3.11.17 → 3.11.18
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 +4 -4
- data/README.md +7 -4
- data/docs/EmailEditorValuesResponse.md +12 -0
- data/docs/EmailWebhookEditorValuesResponse.md +0 -1
- data/docs/StorefrontApi.md +49 -0
- data/lib/ultracart_api/api/storefront_api.rb +53 -0
- data/lib/ultracart_api/models/email_editor_values_response.rb +223 -0
- data/lib/ultracart_api/models/email_webhook_editor_values_response.rb +1 -12
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b8eff51a39002262cf310b2b17f4bc56c390847951a1e3bda57cc0c0fe5b033
|
4
|
+
data.tar.gz: c7593a062115b62040ab4f4fb4791483a7de229dc8bc59a73487423423b6ca7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0b92b0fb98fe3e3f2da01a99e75e98123ff8f7d3533b7ab32f93adea38b38a85b7c2ecc922edce3efbbdf1be6ee1c2d8a5200455b79c270054afb8cacb52e52
|
7
|
+
data.tar.gz: feafaa57c5fedc649a05826516876a46a7284e5af68c273927cdcf31ffe064f591eec92cf3b59d568484e7a2646e486c3beed2078052c7babafb23e17bde400b
|
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.11.
|
10
|
+
- Package version: 3.11.18
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
|
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.11.
|
27
|
+
gem install ./ultracart_api-3.11.18.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.11.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.11.18.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.11.
|
35
|
+
gem 'ultracart_api', '~> 3.11.18'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -410,6 +410,7 @@ Class | Method | HTTP request | Description
|
|
410
410
|
*UltracartClient::StorefrontApi* | [**get_email_campaigns**](docs/StorefrontApi.md#get_email_campaigns) | **GET** /storefront/{storefront_oid}/email/campaigns | Get email campaigns
|
411
411
|
*UltracartClient::StorefrontApi* | [**get_email_campaigns_with_stats**](docs/StorefrontApi.md#get_email_campaigns_with_stats) | **GET** /storefront/{storefront_oid}/email/campaignsWithStats/{stat_days} | Get email campaigns with stats
|
412
412
|
*UltracartClient::StorefrontApi* | [**get_email_commseq**](docs/StorefrontApi.md#get_email_commseq) | **GET** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid} | Get email commseq
|
413
|
+
*UltracartClient::StorefrontApi* | [**get_email_commseq_editor_values**](docs/StorefrontApi.md#get_email_commseq_editor_values) | **GET** /storefront/{storefront_oid}/email/commseqs/editorValues | Get email merchant specific editor values
|
413
414
|
*UltracartClient::StorefrontApi* | [**get_email_commseq_email_stats**](docs/StorefrontApi.md#get_email_commseq_email_stats) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/emailStats | Get email communication sequence emails stats
|
414
415
|
*UltracartClient::StorefrontApi* | [**get_email_commseq_postcard_stats**](docs/StorefrontApi.md#get_email_commseq_postcard_stats) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/postcardStats | Get email communication sequence postcard stats
|
415
416
|
*UltracartClient::StorefrontApi* | [**get_email_commseq_postcard_tracking**](docs/StorefrontApi.md#get_email_commseq_postcard_tracking) | **GET** /storefront/{storefront_oid}/email/postcards/{commseq_postcard_uuid}/tracking | Get email communication postcard tracking
|
@@ -1018,6 +1019,7 @@ Class | Method | HTTP request | Description
|
|
1018
1019
|
- [UltracartClient::EmailDashboardStatsResponse](docs/EmailDashboardStatsResponse.md)
|
1019
1020
|
- [UltracartClient::EmailDomain](docs/EmailDomain.md)
|
1020
1021
|
- [UltracartClient::EmailEditorTokenResponse](docs/EmailEditorTokenResponse.md)
|
1022
|
+
- [UltracartClient::EmailEditorValuesResponse](docs/EmailEditorValuesResponse.md)
|
1021
1023
|
- [UltracartClient::EmailFlow](docs/EmailFlow.md)
|
1022
1024
|
- [UltracartClient::EmailFlowBackPopulateRequest](docs/EmailFlowBackPopulateRequest.md)
|
1023
1025
|
- [UltracartClient::EmailFlowBackPopulateResponse](docs/EmailFlowBackPopulateResponse.md)
|
@@ -1567,6 +1569,7 @@ Not every change is committed to every SDK.
|
|
1567
1569
|
|
1568
1570
|
| Version | Date | Comments |
|
1569
1571
|
| --: | :-: | --- |
|
1572
|
+
| 3.11.18 | 08/04/2025 | more internal development on loyalty step for storefront flows |
|
1570
1573
|
| 3.11.17 | 08/04/2025 | small changes to internal flow app to support loyalty tier moves |
|
1571
1574
|
| 3.11.16 | 07/28/2025 | updated doc samples |
|
1572
1575
|
| 3.11.15 | 07/28/2025 | new order methods for blocking and unblocking refunds |
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# UltracartClient::EmailEditorValuesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**error** | [**Error**](Error.md) | | [optional]
|
7
|
+
**loyalty_tiers** | **Array<String>** | | [optional]
|
8
|
+
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
9
|
+
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
10
|
+
**warning** | [**Warning**](Warning.md) | | [optional]
|
11
|
+
|
12
|
+
|
@@ -6,7 +6,6 @@ Name | Type | Description | Notes
|
|
6
6
|
**available_expansions** | **Array<String>** | | [optional]
|
7
7
|
**available_tokens** | **Array<String>** | | [optional]
|
8
8
|
**error** | [**Error**](Error.md) | | [optional]
|
9
|
-
**loyalty_tiers** | **Array<String>** | | [optional]
|
10
9
|
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
11
10
|
**rest_object_type** | **String** | | [optional]
|
12
11
|
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
data/docs/StorefrontApi.md
CHANGED
@@ -44,6 +44,7 @@ Method | HTTP request | Description
|
|
44
44
|
[**get_email_campaigns**](StorefrontApi.md#get_email_campaigns) | **GET** /storefront/{storefront_oid}/email/campaigns | Get email campaigns
|
45
45
|
[**get_email_campaigns_with_stats**](StorefrontApi.md#get_email_campaigns_with_stats) | **GET** /storefront/{storefront_oid}/email/campaignsWithStats/{stat_days} | Get email campaigns with stats
|
46
46
|
[**get_email_commseq**](StorefrontApi.md#get_email_commseq) | **GET** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid} | Get email commseq
|
47
|
+
[**get_email_commseq_editor_values**](StorefrontApi.md#get_email_commseq_editor_values) | **GET** /storefront/{storefront_oid}/email/commseqs/editorValues | Get email merchant specific editor values
|
47
48
|
[**get_email_commseq_email_stats**](StorefrontApi.md#get_email_commseq_email_stats) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/emailStats | Get email communication sequence emails stats
|
48
49
|
[**get_email_commseq_postcard_stats**](StorefrontApi.md#get_email_commseq_postcard_stats) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/postcardStats | Get email communication sequence postcard stats
|
49
50
|
[**get_email_commseq_postcard_tracking**](StorefrontApi.md#get_email_commseq_postcard_tracking) | **GET** /storefront/{storefront_oid}/email/postcards/{commseq_postcard_uuid}/tracking | Get email communication postcard tracking
|
@@ -2203,6 +2204,54 @@ Name | Type | Description | Notes
|
|
2203
2204
|
|
2204
2205
|
|
2205
2206
|
|
2207
|
+
# **get_email_commseq_editor_values**
|
2208
|
+
> EmailEditorValuesResponse get_email_commseq_editor_values(storefront_oid)
|
2209
|
+
|
2210
|
+
Get email merchant specific editor values
|
2211
|
+
|
2212
|
+
### Example
|
2213
|
+
```ruby
|
2214
|
+
# load the gem
|
2215
|
+
require 'ultracart_api'
|
2216
|
+
|
2217
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
2218
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
2219
|
+
api_instance = UltracartClient::StorefrontApi.new_using_api_key(simple_key, false, false)
|
2220
|
+
|
2221
|
+
|
2222
|
+
storefront_oid = 56 # Integer |
|
2223
|
+
|
2224
|
+
|
2225
|
+
begin
|
2226
|
+
#Get email merchant specific editor values
|
2227
|
+
result = api_instance.get_email_commseq_editor_values(storefront_oid)
|
2228
|
+
p result
|
2229
|
+
rescue UltracartClient::ApiError => e
|
2230
|
+
puts "Exception when calling StorefrontApi->get_email_commseq_editor_values: #{e}"
|
2231
|
+
end
|
2232
|
+
```
|
2233
|
+
|
2234
|
+
### Parameters
|
2235
|
+
|
2236
|
+
Name | Type | Description | Notes
|
2237
|
+
------------- | ------------- | ------------- | -------------
|
2238
|
+
**storefront_oid** | **Integer**| |
|
2239
|
+
|
2240
|
+
### Return type
|
2241
|
+
|
2242
|
+
[**EmailEditorValuesResponse**](EmailEditorValuesResponse.md)
|
2243
|
+
|
2244
|
+
### Authorization
|
2245
|
+
|
2246
|
+
[ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
2247
|
+
|
2248
|
+
### HTTP request headers
|
2249
|
+
|
2250
|
+
- **Content-Type**: application/json
|
2251
|
+
- **Accept**: application/json
|
2252
|
+
|
2253
|
+
|
2254
|
+
|
2206
2255
|
# **get_email_commseq_email_stats**
|
2207
2256
|
> EmailStatSummaryResponse get_email_commseq_email_stats(storefront_oid, commseq_uuid, stats_request)
|
2208
2257
|
|
@@ -2327,6 +2327,59 @@ module UltracartClient
|
|
2327
2327
|
end
|
2328
2328
|
return data, status_code, headers
|
2329
2329
|
end
|
2330
|
+
# Get email merchant specific editor values
|
2331
|
+
# @param storefront_oid
|
2332
|
+
# @param [Hash] opts the optional parameters
|
2333
|
+
# @return [EmailEditorValuesResponse]
|
2334
|
+
def get_email_commseq_editor_values(storefront_oid, opts = {})
|
2335
|
+
data, _status_code, _headers = get_email_commseq_editor_values_with_http_info(storefront_oid, opts)
|
2336
|
+
data
|
2337
|
+
end
|
2338
|
+
|
2339
|
+
# Get email merchant specific editor values
|
2340
|
+
# @param storefront_oid
|
2341
|
+
# @param [Hash] opts the optional parameters
|
2342
|
+
# @return [Array<(EmailEditorValuesResponse, Fixnum, Hash)>] EmailEditorValuesResponse data, response status code and response headers
|
2343
|
+
def get_email_commseq_editor_values_with_http_info(storefront_oid, opts = {})
|
2344
|
+
if @api_client.config.debugging
|
2345
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_email_commseq_editor_values ...'
|
2346
|
+
end
|
2347
|
+
# verify the required parameter 'storefront_oid' is set
|
2348
|
+
if @api_client.config.client_side_validation && storefront_oid.nil?
|
2349
|
+
fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling StorefrontApi.get_email_commseq_editor_values"
|
2350
|
+
end
|
2351
|
+
# resource path
|
2352
|
+
local_var_path = '/storefront/{storefront_oid}/email/commseqs/editorValues'.sub('{' + 'storefront_oid' + '}', storefront_oid.to_s)
|
2353
|
+
|
2354
|
+
# query parameters
|
2355
|
+
query_params = {}
|
2356
|
+
|
2357
|
+
# header parameters
|
2358
|
+
header_params = {}
|
2359
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2360
|
+
# HTTP header 'Accept' (if needed)
|
2361
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2362
|
+
# HTTP header 'Content-Type'
|
2363
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2364
|
+
|
2365
|
+
# form parameters
|
2366
|
+
form_params = {}
|
2367
|
+
|
2368
|
+
# http body (model)
|
2369
|
+
post_body = nil
|
2370
|
+
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
2371
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2372
|
+
:header_params => header_params,
|
2373
|
+
:query_params => query_params,
|
2374
|
+
:form_params => form_params,
|
2375
|
+
:body => post_body,
|
2376
|
+
:auth_names => auth_names,
|
2377
|
+
:return_type => 'EmailEditorValuesResponse')
|
2378
|
+
if @api_client.config.debugging
|
2379
|
+
@api_client.config.logger.debug "API called: StorefrontApi#get_email_commseq_editor_values\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2380
|
+
end
|
2381
|
+
return data, status_code, headers
|
2382
|
+
end
|
2330
2383
|
# Get email communication sequence emails stats
|
2331
2384
|
# @param storefront_oid
|
2332
2385
|
# @param commseq_uuid
|
@@ -0,0 +1,223 @@
|
|
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 EmailEditorValuesResponse
|
17
|
+
attr_accessor :error
|
18
|
+
|
19
|
+
attr_accessor :loyalty_tiers
|
20
|
+
|
21
|
+
attr_accessor :metadata
|
22
|
+
|
23
|
+
# Indicates if API call was successful
|
24
|
+
attr_accessor :success
|
25
|
+
|
26
|
+
attr_accessor :warning
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'error' => :'error',
|
32
|
+
:'loyalty_tiers' => :'loyalty_tiers',
|
33
|
+
:'metadata' => :'metadata',
|
34
|
+
:'success' => :'success',
|
35
|
+
:'warning' => :'warning'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
def self.swagger_types
|
41
|
+
{
|
42
|
+
:'error' => :'Error',
|
43
|
+
:'loyalty_tiers' => :'Array<String>',
|
44
|
+
:'metadata' => :'ResponseMetadata',
|
45
|
+
:'success' => :'BOOLEAN',
|
46
|
+
:'warning' => :'Warning'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
return unless attributes.is_a?(Hash)
|
54
|
+
|
55
|
+
# convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
57
|
+
|
58
|
+
if attributes.has_key?(:'error')
|
59
|
+
self.error = attributes[:'error']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'loyalty_tiers')
|
63
|
+
if (value = attributes[:'loyalty_tiers']).is_a?(Array)
|
64
|
+
self.loyalty_tiers = value
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.has_key?(:'metadata')
|
69
|
+
self.metadata = attributes[:'metadata']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.has_key?(:'success')
|
73
|
+
self.success = attributes[:'success']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.has_key?(:'warning')
|
77
|
+
self.warning = attributes[:'warning']
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
82
|
+
# @return Array for valid properties with the reasons
|
83
|
+
def list_invalid_properties
|
84
|
+
invalid_properties = Array.new
|
85
|
+
invalid_properties
|
86
|
+
end
|
87
|
+
|
88
|
+
# Check to see if the all the properties in the model are valid
|
89
|
+
# @return true if the model is valid
|
90
|
+
def valid?
|
91
|
+
true
|
92
|
+
end
|
93
|
+
|
94
|
+
# Checks equality by comparing each attribute.
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def ==(o)
|
97
|
+
return true if self.equal?(o)
|
98
|
+
self.class == o.class &&
|
99
|
+
error == o.error &&
|
100
|
+
loyalty_tiers == o.loyalty_tiers &&
|
101
|
+
metadata == o.metadata &&
|
102
|
+
success == o.success &&
|
103
|
+
warning == o.warning
|
104
|
+
end
|
105
|
+
|
106
|
+
# @see the `==` method
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def eql?(o)
|
109
|
+
self == o
|
110
|
+
end
|
111
|
+
|
112
|
+
# Calculates hash code according to all attributes.
|
113
|
+
# @return [Fixnum] Hash code
|
114
|
+
def hash
|
115
|
+
[error, loyalty_tiers, metadata, success, warning].hash
|
116
|
+
end
|
117
|
+
|
118
|
+
# Builds the object from hash
|
119
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
+
# @return [Object] Returns the model itself
|
121
|
+
def build_from_hash(attributes)
|
122
|
+
return nil unless attributes.is_a?(Hash)
|
123
|
+
self.class.swagger_types.each_pair do |key, type|
|
124
|
+
if type =~ /\AArray<(.*)>/i
|
125
|
+
# check to ensure the input is an array given that the attribute
|
126
|
+
# is documented as an array but the input is not
|
127
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
128
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
129
|
+
end
|
130
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
131
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
132
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
133
|
+
end
|
134
|
+
|
135
|
+
self
|
136
|
+
end
|
137
|
+
|
138
|
+
# Deserializes the data based on type
|
139
|
+
# @param string type Data type
|
140
|
+
# @param string value Value to be deserialized
|
141
|
+
# @return [Object] Deserialized data
|
142
|
+
def _deserialize(type, value)
|
143
|
+
case type.to_sym
|
144
|
+
when :DateTime
|
145
|
+
DateTime.parse(value)
|
146
|
+
when :Date
|
147
|
+
Date.parse(value)
|
148
|
+
when :String
|
149
|
+
value.to_s
|
150
|
+
when :Integer
|
151
|
+
value.to_i
|
152
|
+
when :Float
|
153
|
+
value.to_f
|
154
|
+
when :BOOLEAN
|
155
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
156
|
+
true
|
157
|
+
else
|
158
|
+
false
|
159
|
+
end
|
160
|
+
when :Object
|
161
|
+
# generic object (usually a Hash), return directly
|
162
|
+
value
|
163
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
164
|
+
inner_type = Regexp.last_match[:inner_type]
|
165
|
+
value.map { |v| _deserialize(inner_type, v) }
|
166
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
167
|
+
k_type = Regexp.last_match[:k_type]
|
168
|
+
v_type = Regexp.last_match[:v_type]
|
169
|
+
{}.tap do |hash|
|
170
|
+
value.each do |k, v|
|
171
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
else # model
|
175
|
+
temp_model = UltracartClient.const_get(type).new
|
176
|
+
temp_model.build_from_hash(value)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the string representation of the object
|
181
|
+
# @return [String] String presentation of the object
|
182
|
+
def to_s
|
183
|
+
to_hash.to_s
|
184
|
+
end
|
185
|
+
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
188
|
+
def to_body
|
189
|
+
to_hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the object in the form of hash
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
194
|
+
def to_hash
|
195
|
+
hash = {}
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
197
|
+
value = self.send(attr)
|
198
|
+
next if value.nil?
|
199
|
+
hash[param] = _to_hash(value)
|
200
|
+
end
|
201
|
+
hash
|
202
|
+
end
|
203
|
+
|
204
|
+
# Outputs non-array value in the form of hash
|
205
|
+
# For object, use to_hash. Otherwise, just return the value
|
206
|
+
# @param [Object] value Any valid value
|
207
|
+
# @return [Hash] Returns the value in the form of hash
|
208
|
+
def _to_hash(value)
|
209
|
+
if value.is_a?(Array)
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
211
|
+
elsif value.is_a?(Hash)
|
212
|
+
{}.tap do |hash|
|
213
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
214
|
+
end
|
215
|
+
elsif value.respond_to? :to_hash
|
216
|
+
value.to_hash
|
217
|
+
else
|
218
|
+
value
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
end
|
223
|
+
end
|
@@ -20,8 +20,6 @@ module UltracartClient
|
|
20
20
|
|
21
21
|
attr_accessor :error
|
22
22
|
|
23
|
-
attr_accessor :loyalty_tiers
|
24
|
-
|
25
23
|
attr_accessor :metadata
|
26
24
|
|
27
25
|
attr_accessor :rest_object_type
|
@@ -37,7 +35,6 @@ module UltracartClient
|
|
37
35
|
:'available_expansions' => :'available_expansions',
|
38
36
|
:'available_tokens' => :'available_tokens',
|
39
37
|
:'error' => :'error',
|
40
|
-
:'loyalty_tiers' => :'loyalty_tiers',
|
41
38
|
:'metadata' => :'metadata',
|
42
39
|
:'rest_object_type' => :'rest_object_type',
|
43
40
|
:'success' => :'success',
|
@@ -51,7 +48,6 @@ module UltracartClient
|
|
51
48
|
:'available_expansions' => :'Array<String>',
|
52
49
|
:'available_tokens' => :'Array<String>',
|
53
50
|
:'error' => :'Error',
|
54
|
-
:'loyalty_tiers' => :'Array<String>',
|
55
51
|
:'metadata' => :'ResponseMetadata',
|
56
52
|
:'rest_object_type' => :'String',
|
57
53
|
:'success' => :'BOOLEAN',
|
@@ -83,12 +79,6 @@ module UltracartClient
|
|
83
79
|
self.error = attributes[:'error']
|
84
80
|
end
|
85
81
|
|
86
|
-
if attributes.has_key?(:'loyalty_tiers')
|
87
|
-
if (value = attributes[:'loyalty_tiers']).is_a?(Array)
|
88
|
-
self.loyalty_tiers = value
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
82
|
if attributes.has_key?(:'metadata')
|
93
83
|
self.metadata = attributes[:'metadata']
|
94
84
|
end
|
@@ -127,7 +117,6 @@ module UltracartClient
|
|
127
117
|
available_expansions == o.available_expansions &&
|
128
118
|
available_tokens == o.available_tokens &&
|
129
119
|
error == o.error &&
|
130
|
-
loyalty_tiers == o.loyalty_tiers &&
|
131
120
|
metadata == o.metadata &&
|
132
121
|
rest_object_type == o.rest_object_type &&
|
133
122
|
success == o.success &&
|
@@ -143,7 +132,7 @@ module UltracartClient
|
|
143
132
|
# Calculates hash code according to all attributes.
|
144
133
|
# @return [Fixnum] Hash code
|
145
134
|
def hash
|
146
|
-
[available_expansions, available_tokens, error,
|
135
|
+
[available_expansions, available_tokens, error, metadata, rest_object_type, success, warning].hash
|
147
136
|
end
|
148
137
|
|
149
138
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -424,6 +424,7 @@ require 'ultracart_api/models/email_dashboard_activity_response'
|
|
424
424
|
require 'ultracart_api/models/email_dashboard_stats_response'
|
425
425
|
require 'ultracart_api/models/email_domain'
|
426
426
|
require 'ultracart_api/models/email_editor_token_response'
|
427
|
+
require 'ultracart_api/models/email_editor_values_response'
|
427
428
|
require 'ultracart_api/models/email_flow'
|
428
429
|
require 'ultracart_api/models/email_flow_back_populate_request'
|
429
430
|
require 'ultracart_api/models/email_flow_back_populate_response'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ultracart_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.11.
|
4
|
+
version: 3.11.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
@@ -637,6 +637,7 @@ files:
|
|
637
637
|
- docs/EmailDashboardStatsResponse.md
|
638
638
|
- docs/EmailDomain.md
|
639
639
|
- docs/EmailEditorTokenResponse.md
|
640
|
+
- docs/EmailEditorValuesResponse.md
|
640
641
|
- docs/EmailFlow.md
|
641
642
|
- docs/EmailFlowBackPopulateRequest.md
|
642
643
|
- docs/EmailFlowBackPopulateResponse.md
|
@@ -1559,6 +1560,7 @@ files:
|
|
1559
1560
|
- lib/ultracart_api/models/email_dashboard_stats_response.rb
|
1560
1561
|
- lib/ultracart_api/models/email_domain.rb
|
1561
1562
|
- lib/ultracart_api/models/email_editor_token_response.rb
|
1563
|
+
- lib/ultracart_api/models/email_editor_values_response.rb
|
1562
1564
|
- lib/ultracart_api/models/email_flow.rb
|
1563
1565
|
- lib/ultracart_api/models/email_flow_back_populate_request.rb
|
1564
1566
|
- lib/ultracart_api/models/email_flow_back_populate_response.rb
|