ultracart_api 3.10.45 → 3.10.46

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: b061dc3f423b1f007176e5eda82c4b8af271bcf1b9f9ab34e7ec55950c0df174
4
- data.tar.gz: c3e14a0a86f473e47f5c3dc3112b787186e365bb4d7c70fbc3a44d1c5a44992b
3
+ metadata.gz: 377b9d095f723be07c9afffb03549128473ca5d53d2db8166589f5b1927f3c7a
4
+ data.tar.gz: c9798b40411f46e8a96ddfc213582bee2f6b5147c24c66a42ad842b4171149e8
5
5
  SHA512:
6
- metadata.gz: e63b5a5068ecb227263d511276a99a44260cb934735dc31e7e9b20e192678bfbcd39a8c947300691919ee5d2ac6ab6b696fcee30ca7af1a7d6faca77513f3f7f
7
- data.tar.gz: 6bd55be389872157e68df2a851f3a103a73ac1b3de4561460cb4094c988bd9063d86865600a246a0d32bc8aafbd0f6bbd907a49084885925a0eb2b581d622da7
6
+ metadata.gz: 87e752a22dc48d8d6f2803e37717c0ec756044c467beb0fa8de4edade1573074718fc3acede9530c5a866ece6af81628bc925626720f491163087e877c0192f2
7
+ data.tar.gz: dfeb897c6054f77b3f11b35e09dcec872b72955056a4f823f14cb60e964da372c099b0bdb2d0edf37543aa737866bee268e824195873e462cb3914272f597d21
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 3.10.45
10
+ - Package version: 3.10.46
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-3.10.45.gem
27
+ gem install ./ultracart_api-3.10.46.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.45.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.46.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'ultracart_api', '~> 3.10.45'
35
+ gem 'ultracart_api', '~> 3.10.46'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -269,6 +269,7 @@ Class | Method | HTTP request | Description
269
269
  *UltracartClient::StorefrontApi* | [**get_email_commseq**](docs/StorefrontApi.md#get_email_commseq) | **GET** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid} | Get email commseq
270
270
  *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
271
271
  *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
272
+ *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
272
273
  *UltracartClient::StorefrontApi* | [**get_email_commseq_stat_overall**](docs/StorefrontApi.md#get_email_commseq_stat_overall) | **GET** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/stat | Get communication sequence stats overall
273
274
  *UltracartClient::StorefrontApi* | [**get_email_commseq_step_stats**](docs/StorefrontApi.md#get_email_commseq_step_stats) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/stepStats | Get email communication sequence step stats
274
275
  *UltracartClient::StorefrontApi* | [**get_email_commseq_step_waiting**](docs/StorefrontApi.md#get_email_commseq_step_waiting) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/waiting | Get email communication sequence customers waiting at each requested step
@@ -764,6 +765,8 @@ Class | Method | HTTP request | Description
764
765
  - [UltracartClient::EmailPlanAdditional](docs/EmailPlanAdditional.md)
765
766
  - [UltracartClient::EmailPlanResponse](docs/EmailPlanResponse.md)
766
767
  - [UltracartClient::EmailPostcardStat](docs/EmailPostcardStat.md)
768
+ - [UltracartClient::EmailPostcardTracking](docs/EmailPostcardTracking.md)
769
+ - [UltracartClient::EmailPostcardTrackingResponse](docs/EmailPostcardTrackingResponse.md)
767
770
  - [UltracartClient::EmailSegment](docs/EmailSegment.md)
768
771
  - [UltracartClient::EmailSegmentArchiveResponse](docs/EmailSegmentArchiveResponse.md)
769
772
  - [UltracartClient::EmailSegmentCustomer](docs/EmailSegmentCustomer.md)
@@ -1182,6 +1185,7 @@ Not every change is committed to every SDK.
1182
1185
 
1183
1186
  | Version | Date | Comments |
1184
1187
  | --: | :-: | --- |
1188
+ | 3.10.46 | 09/13/2022 | storefront comms - postcard tracking |
1185
1189
  | 3.10.45 | 09/12/2022 | storefront comm - send back reviews.io configured flag on getEmailSettings |
1186
1190
  | 3.10.44 | 09/07/2022 | sf comms - using aws event ruler for bigquery segmentation validation |
1187
1191
  | 3.10.43 | 09/02/2022 | customer editor added loyal ledger descriptions |
@@ -0,0 +1,32 @@
1
+ # UltracartClient::EmailPostcardTracking
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **commseq_postcard_uuid** | **String** | | [optional]
7
+ **commseq_step_uuid** | **String** | | [optional]
8
+ **commseq_uuid** | **String** | | [optional]
9
+ **conversion_dts** | **String** | Conversion date time. | [optional]
10
+ **cost** | **Float** | | [optional]
11
+ **customer_uuid** | **String** | | [optional]
12
+ **delivered_dts** | **String** | Delivered date time. | [optional]
13
+ **from_address_line1** | **String** | | [optional]
14
+ **from_address_line2** | **String** | | [optional]
15
+ **from_city** | **String** | | [optional]
16
+ **from_name** | **String** | | [optional]
17
+ **from_state** | **String** | | [optional]
18
+ **from_zip** | **String** | | [optional]
19
+ **mailed_dts** | **String** | Mailed date time. | [optional]
20
+ **order_id** | **String** | | [optional]
21
+ **postcard_tracking_uuid** | **String** | | [optional]
22
+ **status** | **String** | | [optional]
23
+ **submit_dts** | **String** | Submit date time. | [optional]
24
+ **to_address_line1** | **String** | | [optional]
25
+ **to_address_line2** | **String** | | [optional]
26
+ **to_city** | **String** | | [optional]
27
+ **to_name** | **String** | | [optional]
28
+ **to_state** | **String** | | [optional]
29
+ **to_zip** | **String** | | [optional]
30
+ **tracking_description** | **String** | | [optional]
31
+
32
+
@@ -0,0 +1,12 @@
1
+ # UltracartClient::EmailPostcardTrackingResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **error** | [**Error**](Error.md) | | [optional]
7
+ **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
8
+ **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
9
+ **tracking** | [**EmailPostcardTracking**](EmailPostcardTracking.md) | | [optional]
10
+ **warning** | [**Warning**](Warning.md) | | [optional]
11
+
12
+
@@ -44,6 +44,7 @@ Method | HTTP request | Description
44
44
  [**get_email_commseq**](StorefrontApi.md#get_email_commseq) | **GET** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid} | Get email commseq
45
45
  [**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
46
46
  [**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
47
+ [**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
47
48
  [**get_email_commseq_stat_overall**](StorefrontApi.md#get_email_commseq_stat_overall) | **GET** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/stat | Get communication sequence stats overall
48
49
  [**get_email_commseq_step_stats**](StorefrontApi.md#get_email_commseq_step_stats) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/stepStats | Get email communication sequence step stats
49
50
  [**get_email_commseq_step_waiting**](StorefrontApi.md#get_email_commseq_step_waiting) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/waiting | Get email communication sequence customers waiting at each requested step
@@ -2190,6 +2191,57 @@ Name | Type | Description | Notes
2190
2191
 
2191
2192
 
2192
2193
 
2194
+ # **get_email_commseq_postcard_tracking**
2195
+ > EmailPostcardTrackingResponse get_email_commseq_postcard_tracking(storefront_oid, commseq_postcard_uuid)
2196
+
2197
+ Get email communication postcard tracking
2198
+
2199
+ ### Example
2200
+ ```ruby
2201
+ # load the gem
2202
+ require 'ultracart_api'
2203
+
2204
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
2205
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
2206
+ api_instance = UltracartClient::StorefrontApi.new_using_api_key(simple_key, false, false)
2207
+
2208
+
2209
+ storefront_oid = 56 # Integer |
2210
+
2211
+ commseq_postcard_uuid = 'commseq_postcard_uuid_example' # String |
2212
+
2213
+
2214
+ begin
2215
+ #Get email communication postcard tracking
2216
+ result = api_instance.get_email_commseq_postcard_tracking(storefront_oid, commseq_postcard_uuid)
2217
+ p result
2218
+ rescue UltracartClient::ApiError => e
2219
+ puts "Exception when calling StorefrontApi->get_email_commseq_postcard_tracking: #{e}"
2220
+ end
2221
+ ```
2222
+
2223
+ ### Parameters
2224
+
2225
+ Name | Type | Description | Notes
2226
+ ------------- | ------------- | ------------- | -------------
2227
+ **storefront_oid** | **Integer**| |
2228
+ **commseq_postcard_uuid** | **String**| |
2229
+
2230
+ ### Return type
2231
+
2232
+ [**EmailPostcardTrackingResponse**](EmailPostcardTrackingResponse.md)
2233
+
2234
+ ### Authorization
2235
+
2236
+ [ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
2237
+
2238
+ ### HTTP request headers
2239
+
2240
+ - **Content-Type**: application/json
2241
+ - **Accept**: application/json
2242
+
2243
+
2244
+
2193
2245
  # **get_email_commseq_stat_overall**
2194
2246
  > EmailCommseqStatResponse get_email_commseq_stat_overall(storefront_oid, commseq_uuid)
2195
2247
 
@@ -2339,6 +2339,65 @@ module UltracartClient
2339
2339
  end
2340
2340
  return data, status_code, headers
2341
2341
  end
2342
+ # Get email communication postcard tracking
2343
+ # @param storefront_oid
2344
+ # @param commseq_postcard_uuid
2345
+ # @param [Hash] opts the optional parameters
2346
+ # @return [EmailPostcardTrackingResponse]
2347
+ def get_email_commseq_postcard_tracking(storefront_oid, commseq_postcard_uuid, opts = {})
2348
+ data, _status_code, _headers = get_email_commseq_postcard_tracking_with_http_info(storefront_oid, commseq_postcard_uuid, opts)
2349
+ data
2350
+ end
2351
+
2352
+ # Get email communication postcard tracking
2353
+ # @param storefront_oid
2354
+ # @param commseq_postcard_uuid
2355
+ # @param [Hash] opts the optional parameters
2356
+ # @return [Array<(EmailPostcardTrackingResponse, Fixnum, Hash)>] EmailPostcardTrackingResponse data, response status code and response headers
2357
+ def get_email_commseq_postcard_tracking_with_http_info(storefront_oid, commseq_postcard_uuid, opts = {})
2358
+ if @api_client.config.debugging
2359
+ @api_client.config.logger.debug 'Calling API: StorefrontApi.get_email_commseq_postcard_tracking ...'
2360
+ end
2361
+ # verify the required parameter 'storefront_oid' is set
2362
+ if @api_client.config.client_side_validation && storefront_oid.nil?
2363
+ fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling StorefrontApi.get_email_commseq_postcard_tracking"
2364
+ end
2365
+ # verify the required parameter 'commseq_postcard_uuid' is set
2366
+ if @api_client.config.client_side_validation && commseq_postcard_uuid.nil?
2367
+ fail ArgumentError, "Missing the required parameter 'commseq_postcard_uuid' when calling StorefrontApi.get_email_commseq_postcard_tracking"
2368
+ end
2369
+ # resource path
2370
+ local_var_path = '/storefront/{storefront_oid}/email/postcards/{commseq_postcard_uuid}/tracking'.sub('{' + 'storefront_oid' + '}', storefront_oid.to_s).sub('{' + 'commseq_postcard_uuid' + '}', commseq_postcard_uuid.to_s)
2371
+
2372
+ # query parameters
2373
+ query_params = {}
2374
+
2375
+ # header parameters
2376
+ header_params = {}
2377
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
2378
+ # HTTP header 'Accept' (if needed)
2379
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2380
+ # HTTP header 'Content-Type'
2381
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2382
+
2383
+ # form parameters
2384
+ form_params = {}
2385
+
2386
+ # http body (model)
2387
+ post_body = nil
2388
+ auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
2389
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2390
+ :header_params => header_params,
2391
+ :query_params => query_params,
2392
+ :form_params => form_params,
2393
+ :body => post_body,
2394
+ :auth_names => auth_names,
2395
+ :return_type => 'EmailPostcardTrackingResponse')
2396
+ if @api_client.config.debugging
2397
+ @api_client.config.logger.debug "API called: StorefrontApi#get_email_commseq_postcard_tracking\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2398
+ end
2399
+ return data, status_code, headers
2400
+ end
2342
2401
  # Get communication sequence stats overall
2343
2402
  # @param storefront_oid
2344
2403
  # @param commseq_uuid
@@ -0,0 +1,404 @@
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 EmailPostcardTracking
17
+ attr_accessor :commseq_postcard_uuid
18
+
19
+ attr_accessor :commseq_step_uuid
20
+
21
+ attr_accessor :commseq_uuid
22
+
23
+ # Conversion date time.
24
+ attr_accessor :conversion_dts
25
+
26
+ attr_accessor :cost
27
+
28
+ attr_accessor :customer_uuid
29
+
30
+ # Delivered date time.
31
+ attr_accessor :delivered_dts
32
+
33
+ attr_accessor :from_address_line1
34
+
35
+ attr_accessor :from_address_line2
36
+
37
+ attr_accessor :from_city
38
+
39
+ attr_accessor :from_name
40
+
41
+ attr_accessor :from_state
42
+
43
+ attr_accessor :from_zip
44
+
45
+ # Mailed date time.
46
+ attr_accessor :mailed_dts
47
+
48
+ attr_accessor :order_id
49
+
50
+ attr_accessor :postcard_tracking_uuid
51
+
52
+ attr_accessor :status
53
+
54
+ # Submit date time.
55
+ attr_accessor :submit_dts
56
+
57
+ attr_accessor :to_address_line1
58
+
59
+ attr_accessor :to_address_line2
60
+
61
+ attr_accessor :to_city
62
+
63
+ attr_accessor :to_name
64
+
65
+ attr_accessor :to_state
66
+
67
+ attr_accessor :to_zip
68
+
69
+ attr_accessor :tracking_description
70
+
71
+ # Attribute mapping from ruby-style variable name to JSON key.
72
+ def self.attribute_map
73
+ {
74
+ :'commseq_postcard_uuid' => :'commseq_postcard_uuid',
75
+ :'commseq_step_uuid' => :'commseq_step_uuid',
76
+ :'commseq_uuid' => :'commseq_uuid',
77
+ :'conversion_dts' => :'conversion_dts',
78
+ :'cost' => :'cost',
79
+ :'customer_uuid' => :'customer_uuid',
80
+ :'delivered_dts' => :'delivered_dts',
81
+ :'from_address_line1' => :'from_address_line1',
82
+ :'from_address_line2' => :'from_address_line2',
83
+ :'from_city' => :'from_city',
84
+ :'from_name' => :'from_name',
85
+ :'from_state' => :'from_state',
86
+ :'from_zip' => :'from_zip',
87
+ :'mailed_dts' => :'mailed_dts',
88
+ :'order_id' => :'order_id',
89
+ :'postcard_tracking_uuid' => :'postcard_tracking_uuid',
90
+ :'status' => :'status',
91
+ :'submit_dts' => :'submit_dts',
92
+ :'to_address_line1' => :'to_address_line1',
93
+ :'to_address_line2' => :'to_address_line2',
94
+ :'to_city' => :'to_city',
95
+ :'to_name' => :'to_name',
96
+ :'to_state' => :'to_state',
97
+ :'to_zip' => :'to_zip',
98
+ :'tracking_description' => :'tracking_description'
99
+ }
100
+ end
101
+
102
+ # Attribute type mapping.
103
+ def self.swagger_types
104
+ {
105
+ :'commseq_postcard_uuid' => :'String',
106
+ :'commseq_step_uuid' => :'String',
107
+ :'commseq_uuid' => :'String',
108
+ :'conversion_dts' => :'String',
109
+ :'cost' => :'Float',
110
+ :'customer_uuid' => :'String',
111
+ :'delivered_dts' => :'String',
112
+ :'from_address_line1' => :'String',
113
+ :'from_address_line2' => :'String',
114
+ :'from_city' => :'String',
115
+ :'from_name' => :'String',
116
+ :'from_state' => :'String',
117
+ :'from_zip' => :'String',
118
+ :'mailed_dts' => :'String',
119
+ :'order_id' => :'String',
120
+ :'postcard_tracking_uuid' => :'String',
121
+ :'status' => :'String',
122
+ :'submit_dts' => :'String',
123
+ :'to_address_line1' => :'String',
124
+ :'to_address_line2' => :'String',
125
+ :'to_city' => :'String',
126
+ :'to_name' => :'String',
127
+ :'to_state' => :'String',
128
+ :'to_zip' => :'String',
129
+ :'tracking_description' => :'String'
130
+ }
131
+ end
132
+
133
+ # Initializes the object
134
+ # @param [Hash] attributes Model attributes in the form of hash
135
+ def initialize(attributes = {})
136
+ return unless attributes.is_a?(Hash)
137
+
138
+ # convert string to symbol for hash key
139
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
140
+
141
+ if attributes.has_key?(:'commseq_postcard_uuid')
142
+ self.commseq_postcard_uuid = attributes[:'commseq_postcard_uuid']
143
+ end
144
+
145
+ if attributes.has_key?(:'commseq_step_uuid')
146
+ self.commseq_step_uuid = attributes[:'commseq_step_uuid']
147
+ end
148
+
149
+ if attributes.has_key?(:'commseq_uuid')
150
+ self.commseq_uuid = attributes[:'commseq_uuid']
151
+ end
152
+
153
+ if attributes.has_key?(:'conversion_dts')
154
+ self.conversion_dts = attributes[:'conversion_dts']
155
+ end
156
+
157
+ if attributes.has_key?(:'cost')
158
+ self.cost = attributes[:'cost']
159
+ end
160
+
161
+ if attributes.has_key?(:'customer_uuid')
162
+ self.customer_uuid = attributes[:'customer_uuid']
163
+ end
164
+
165
+ if attributes.has_key?(:'delivered_dts')
166
+ self.delivered_dts = attributes[:'delivered_dts']
167
+ end
168
+
169
+ if attributes.has_key?(:'from_address_line1')
170
+ self.from_address_line1 = attributes[:'from_address_line1']
171
+ end
172
+
173
+ if attributes.has_key?(:'from_address_line2')
174
+ self.from_address_line2 = attributes[:'from_address_line2']
175
+ end
176
+
177
+ if attributes.has_key?(:'from_city')
178
+ self.from_city = attributes[:'from_city']
179
+ end
180
+
181
+ if attributes.has_key?(:'from_name')
182
+ self.from_name = attributes[:'from_name']
183
+ end
184
+
185
+ if attributes.has_key?(:'from_state')
186
+ self.from_state = attributes[:'from_state']
187
+ end
188
+
189
+ if attributes.has_key?(:'from_zip')
190
+ self.from_zip = attributes[:'from_zip']
191
+ end
192
+
193
+ if attributes.has_key?(:'mailed_dts')
194
+ self.mailed_dts = attributes[:'mailed_dts']
195
+ end
196
+
197
+ if attributes.has_key?(:'order_id')
198
+ self.order_id = attributes[:'order_id']
199
+ end
200
+
201
+ if attributes.has_key?(:'postcard_tracking_uuid')
202
+ self.postcard_tracking_uuid = attributes[:'postcard_tracking_uuid']
203
+ end
204
+
205
+ if attributes.has_key?(:'status')
206
+ self.status = attributes[:'status']
207
+ end
208
+
209
+ if attributes.has_key?(:'submit_dts')
210
+ self.submit_dts = attributes[:'submit_dts']
211
+ end
212
+
213
+ if attributes.has_key?(:'to_address_line1')
214
+ self.to_address_line1 = attributes[:'to_address_line1']
215
+ end
216
+
217
+ if attributes.has_key?(:'to_address_line2')
218
+ self.to_address_line2 = attributes[:'to_address_line2']
219
+ end
220
+
221
+ if attributes.has_key?(:'to_city')
222
+ self.to_city = attributes[:'to_city']
223
+ end
224
+
225
+ if attributes.has_key?(:'to_name')
226
+ self.to_name = attributes[:'to_name']
227
+ end
228
+
229
+ if attributes.has_key?(:'to_state')
230
+ self.to_state = attributes[:'to_state']
231
+ end
232
+
233
+ if attributes.has_key?(:'to_zip')
234
+ self.to_zip = attributes[:'to_zip']
235
+ end
236
+
237
+ if attributes.has_key?(:'tracking_description')
238
+ self.tracking_description = attributes[:'tracking_description']
239
+ end
240
+ end
241
+
242
+ # Show invalid properties with the reasons. Usually used together with valid?
243
+ # @return Array for valid properties with the reasons
244
+ def list_invalid_properties
245
+ invalid_properties = Array.new
246
+ invalid_properties
247
+ end
248
+
249
+ # Check to see if the all the properties in the model are valid
250
+ # @return true if the model is valid
251
+ def valid?
252
+ true
253
+ end
254
+
255
+ # Checks equality by comparing each attribute.
256
+ # @param [Object] Object to be compared
257
+ def ==(o)
258
+ return true if self.equal?(o)
259
+ self.class == o.class &&
260
+ commseq_postcard_uuid == o.commseq_postcard_uuid &&
261
+ commseq_step_uuid == o.commseq_step_uuid &&
262
+ commseq_uuid == o.commseq_uuid &&
263
+ conversion_dts == o.conversion_dts &&
264
+ cost == o.cost &&
265
+ customer_uuid == o.customer_uuid &&
266
+ delivered_dts == o.delivered_dts &&
267
+ from_address_line1 == o.from_address_line1 &&
268
+ from_address_line2 == o.from_address_line2 &&
269
+ from_city == o.from_city &&
270
+ from_name == o.from_name &&
271
+ from_state == o.from_state &&
272
+ from_zip == o.from_zip &&
273
+ mailed_dts == o.mailed_dts &&
274
+ order_id == o.order_id &&
275
+ postcard_tracking_uuid == o.postcard_tracking_uuid &&
276
+ status == o.status &&
277
+ submit_dts == o.submit_dts &&
278
+ to_address_line1 == o.to_address_line1 &&
279
+ to_address_line2 == o.to_address_line2 &&
280
+ to_city == o.to_city &&
281
+ to_name == o.to_name &&
282
+ to_state == o.to_state &&
283
+ to_zip == o.to_zip &&
284
+ tracking_description == o.tracking_description
285
+ end
286
+
287
+ # @see the `==` method
288
+ # @param [Object] Object to be compared
289
+ def eql?(o)
290
+ self == o
291
+ end
292
+
293
+ # Calculates hash code according to all attributes.
294
+ # @return [Fixnum] Hash code
295
+ def hash
296
+ [commseq_postcard_uuid, commseq_step_uuid, commseq_uuid, conversion_dts, cost, customer_uuid, delivered_dts, from_address_line1, from_address_line2, from_city, from_name, from_state, from_zip, mailed_dts, order_id, postcard_tracking_uuid, status, submit_dts, to_address_line1, to_address_line2, to_city, to_name, to_state, to_zip, tracking_description].hash
297
+ end
298
+
299
+ # Builds the object from hash
300
+ # @param [Hash] attributes Model attributes in the form of hash
301
+ # @return [Object] Returns the model itself
302
+ def build_from_hash(attributes)
303
+ return nil unless attributes.is_a?(Hash)
304
+ self.class.swagger_types.each_pair do |key, type|
305
+ if type =~ /\AArray<(.*)>/i
306
+ # check to ensure the input is an array given that the attribute
307
+ # is documented as an array but the input is not
308
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
309
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
310
+ end
311
+ elsif !attributes[self.class.attribute_map[key]].nil?
312
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
313
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
314
+ end
315
+
316
+ self
317
+ end
318
+
319
+ # Deserializes the data based on type
320
+ # @param string type Data type
321
+ # @param string value Value to be deserialized
322
+ # @return [Object] Deserialized data
323
+ def _deserialize(type, value)
324
+ case type.to_sym
325
+ when :DateTime
326
+ DateTime.parse(value)
327
+ when :Date
328
+ Date.parse(value)
329
+ when :String
330
+ value.to_s
331
+ when :Integer
332
+ value.to_i
333
+ when :Float
334
+ value.to_f
335
+ when :BOOLEAN
336
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
337
+ true
338
+ else
339
+ false
340
+ end
341
+ when :Object
342
+ # generic object (usually a Hash), return directly
343
+ value
344
+ when /\AArray<(?<inner_type>.+)>\z/
345
+ inner_type = Regexp.last_match[:inner_type]
346
+ value.map { |v| _deserialize(inner_type, v) }
347
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
348
+ k_type = Regexp.last_match[:k_type]
349
+ v_type = Regexp.last_match[:v_type]
350
+ {}.tap do |hash|
351
+ value.each do |k, v|
352
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
353
+ end
354
+ end
355
+ else # model
356
+ temp_model = UltracartClient.const_get(type).new
357
+ temp_model.build_from_hash(value)
358
+ end
359
+ end
360
+
361
+ # Returns the string representation of the object
362
+ # @return [String] String presentation of the object
363
+ def to_s
364
+ to_hash.to_s
365
+ end
366
+
367
+ # to_body is an alias to to_hash (backward compatibility)
368
+ # @return [Hash] Returns the object in the form of hash
369
+ def to_body
370
+ to_hash
371
+ end
372
+
373
+ # Returns the object in the form of hash
374
+ # @return [Hash] Returns the object in the form of hash
375
+ def to_hash
376
+ hash = {}
377
+ self.class.attribute_map.each_pair do |attr, param|
378
+ value = self.send(attr)
379
+ next if value.nil?
380
+ hash[param] = _to_hash(value)
381
+ end
382
+ hash
383
+ end
384
+
385
+ # Outputs non-array value in the form of hash
386
+ # For object, use to_hash. Otherwise, just return the value
387
+ # @param [Object] value Any valid value
388
+ # @return [Hash] Returns the value in the form of hash
389
+ def _to_hash(value)
390
+ if value.is_a?(Array)
391
+ value.compact.map { |v| _to_hash(v) }
392
+ elsif value.is_a?(Hash)
393
+ {}.tap do |hash|
394
+ value.each { |k, v| hash[k] = _to_hash(v) }
395
+ end
396
+ elsif value.respond_to? :to_hash
397
+ value.to_hash
398
+ else
399
+ value
400
+ end
401
+ end
402
+
403
+ end
404
+ end
@@ -0,0 +1,221 @@
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 EmailPostcardTrackingResponse
17
+ attr_accessor :error
18
+
19
+ attr_accessor :metadata
20
+
21
+ # Indicates if API call was successful
22
+ attr_accessor :success
23
+
24
+ attr_accessor :tracking
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
+ :'metadata' => :'metadata',
33
+ :'success' => :'success',
34
+ :'tracking' => :'tracking',
35
+ :'warning' => :'warning'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'error' => :'Error',
43
+ :'metadata' => :'ResponseMetadata',
44
+ :'success' => :'BOOLEAN',
45
+ :'tracking' => :'EmailPostcardTracking',
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?(:'metadata')
63
+ self.metadata = attributes[:'metadata']
64
+ end
65
+
66
+ if attributes.has_key?(:'success')
67
+ self.success = attributes[:'success']
68
+ end
69
+
70
+ if attributes.has_key?(:'tracking')
71
+ self.tracking = attributes[:'tracking']
72
+ end
73
+
74
+ if attributes.has_key?(:'warning')
75
+ self.warning = attributes[:'warning']
76
+ end
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properties with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ true
90
+ end
91
+
92
+ # Checks equality by comparing each attribute.
93
+ # @param [Object] Object to be compared
94
+ def ==(o)
95
+ return true if self.equal?(o)
96
+ self.class == o.class &&
97
+ error == o.error &&
98
+ metadata == o.metadata &&
99
+ success == o.success &&
100
+ tracking == o.tracking &&
101
+ warning == o.warning
102
+ end
103
+
104
+ # @see the `==` method
105
+ # @param [Object] Object to be compared
106
+ def eql?(o)
107
+ self == o
108
+ end
109
+
110
+ # Calculates hash code according to all attributes.
111
+ # @return [Fixnum] Hash code
112
+ def hash
113
+ [error, metadata, success, tracking, warning].hash
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ self.class.swagger_types.each_pair do |key, type|
122
+ if type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the attribute
124
+ # is documented as an array but the input is not
125
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
126
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
127
+ end
128
+ elsif !attributes[self.class.attribute_map[key]].nil?
129
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
130
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
131
+ end
132
+
133
+ self
134
+ end
135
+
136
+ # Deserializes the data based on type
137
+ # @param string type Data type
138
+ # @param string value Value to be deserialized
139
+ # @return [Object] Deserialized data
140
+ def _deserialize(type, value)
141
+ case type.to_sym
142
+ when :DateTime
143
+ DateTime.parse(value)
144
+ when :Date
145
+ Date.parse(value)
146
+ when :String
147
+ value.to_s
148
+ when :Integer
149
+ value.to_i
150
+ when :Float
151
+ value.to_f
152
+ when :BOOLEAN
153
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
154
+ true
155
+ else
156
+ false
157
+ end
158
+ when :Object
159
+ # generic object (usually a Hash), return directly
160
+ value
161
+ when /\AArray<(?<inner_type>.+)>\z/
162
+ inner_type = Regexp.last_match[:inner_type]
163
+ value.map { |v| _deserialize(inner_type, v) }
164
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
165
+ k_type = Regexp.last_match[:k_type]
166
+ v_type = Regexp.last_match[:v_type]
167
+ {}.tap do |hash|
168
+ value.each do |k, v|
169
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
170
+ end
171
+ end
172
+ else # model
173
+ temp_model = UltracartClient.const_get(type).new
174
+ temp_model.build_from_hash(value)
175
+ end
176
+ end
177
+
178
+ # Returns the string representation of the object
179
+ # @return [String] String presentation of the object
180
+ def to_s
181
+ to_hash.to_s
182
+ end
183
+
184
+ # to_body is an alias to to_hash (backward compatibility)
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_body
187
+ to_hash
188
+ end
189
+
190
+ # Returns the object in the form of hash
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_hash
193
+ hash = {}
194
+ self.class.attribute_map.each_pair do |attr, param|
195
+ value = self.send(attr)
196
+ next if value.nil?
197
+ hash[param] = _to_hash(value)
198
+ end
199
+ hash
200
+ end
201
+
202
+ # Outputs non-array value in the form of hash
203
+ # For object, use to_hash. Otherwise, just return the value
204
+ # @param [Object] value Any valid value
205
+ # @return [Hash] Returns the value in the form of hash
206
+ def _to_hash(value)
207
+ if value.is_a?(Array)
208
+ value.compact.map { |v| _to_hash(v) }
209
+ elsif value.is_a?(Hash)
210
+ {}.tap do |hash|
211
+ value.each { |k, v| hash[k] = _to_hash(v) }
212
+ end
213
+ elsif value.respond_to? :to_hash
214
+ value.to_hash
215
+ else
216
+ value
217
+ end
218
+ end
219
+
220
+ end
221
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.45'
14
+ VERSION = '3.10.46'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -336,6 +336,8 @@ require 'ultracart_api/models/email_plan'
336
336
  require 'ultracart_api/models/email_plan_additional'
337
337
  require 'ultracart_api/models/email_plan_response'
338
338
  require 'ultracart_api/models/email_postcard_stat'
339
+ require 'ultracart_api/models/email_postcard_tracking'
340
+ require 'ultracart_api/models/email_postcard_tracking_response'
339
341
  require 'ultracart_api/models/email_segment'
340
342
  require 'ultracart_api/models/email_segment_archive_response'
341
343
  require 'ultracart_api/models/email_segment_customer'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.45
4
+ version: 3.10.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-12 00:00:00.000000000 Z
11
+ date: 2022-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -548,6 +548,8 @@ files:
548
548
  - docs/EmailPlanAdditional.md
549
549
  - docs/EmailPlanResponse.md
550
550
  - docs/EmailPostcardStat.md
551
+ - docs/EmailPostcardTracking.md
552
+ - docs/EmailPostcardTrackingResponse.md
551
553
  - docs/EmailSegment.md
552
554
  - docs/EmailSegmentArchiveResponse.md
553
555
  - docs/EmailSegmentCustomer.md
@@ -1250,6 +1252,8 @@ files:
1250
1252
  - lib/ultracart_api/models/email_plan_additional.rb
1251
1253
  - lib/ultracart_api/models/email_plan_response.rb
1252
1254
  - lib/ultracart_api/models/email_postcard_stat.rb
1255
+ - lib/ultracart_api/models/email_postcard_tracking.rb
1256
+ - lib/ultracart_api/models/email_postcard_tracking_response.rb
1253
1257
  - lib/ultracart_api/models/email_segment.rb
1254
1258
  - lib/ultracart_api/models/email_segment_archive_response.rb
1255
1259
  - lib/ultracart_api/models/email_segment_customer.rb