ultracart_api 4.0.58.rc → 4.0.61.rc

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 206deb75e21fb2a4d9efe7b6e189d7ea7bf68580866dcde171fa10f5757e790d
4
- data.tar.gz: 9ed88d43c55f74363b6006df5926aa6d3012a39f314ae06d0f17176927eb9825
3
+ metadata.gz: 6d3fb3d72ab8ae823ff9d7c55d08505646e0cee81134dded52b0ad0c521636b7
4
+ data.tar.gz: 7356b90a1ce591d823b08c065c19814aff2c22b621f80411823d57801bf16cfe
5
5
  SHA512:
6
- metadata.gz: 60fd4bc3266bea7a0e10f3d0b40984dff684ce8ad945c31acea17887da10fdf90182f9254413438d4e75f7e5e232f0c648c4045566518b23f50534f88dc6122b
7
- data.tar.gz: 6cee56e4a0795664101442d6240db26c2e9bdcaa949e7e2d4efd9c64cb06cc8a02e1b04daa940c79d1bd0b3532f9f4c28582a70c65a50f2cd2acebad79e4004c
6
+ metadata.gz: b565e35b1bb58cfb82d276ce34baa85a912bdfcf8c08bc1de2dcc8d05ab9bbcb32c7a85cdb656000d137f873d1cdc7075763b74b1f292552fbaae5bcad5e5192
7
+ data.tar.gz: f502b71b1630f5055923a8062aec2d34a16007a09fbf2c6d9b830ec9c8e1205f8c61225289ba71168dc101bbc95fbb4c1c49e310c3e4784e527f737856c9512d
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 4.0.58.rc
10
+ - Package version: 4.0.61.rc
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-4.0.58.rc.gem
27
+ gem install ./ultracart_api-4.0.61.rc.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.58.rc.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.61.rc.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'ultracart_api', '~> 4.0.58.rc'
36
+ gem 'ultracart_api', '~> 4.0.61.rc'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -399,6 +399,7 @@ Class | Method | HTTP request | Description
399
399
  *UltracartClient::StorefrontApi* | [**update_screen_recording_tags**](docs/StorefrontApi.md#update_screen_recording_tags) | **POST** /storefront/{storefront_oid}/screen_recordings/{screen_recording_uuid}/tags | Update tags on a screen recording
400
400
  *UltracartClient::StorefrontApi* | [**update_transaction_email**](docs/StorefrontApi.md#update_transaction_email) | **PUT** /storefront/{storefront_oid}/transaction_email/list/{email_id} | Updates a transaction email object
401
401
  *UltracartClient::StorefrontApi* | [**update_twilio_account**](docs/StorefrontApi.md#update_twilio_account) | **PUT** /storefront/twilio/accounts/{esp_twilio_uuid} | Update Twilio account
402
+ *UltracartClient::StorefrontApi* | [**validate_ruler**](docs/StorefrontApi.md#validate_ruler) | **POST** /storefront/ruler/validate | Validate AWS Event Ruler
402
403
  *UltracartClient::TaxApi* | [**delete_tax_provider_self_city**](docs/TaxApi.md#delete_tax_provider_self_city) | **DELETE** /tax/providers/self/city/{city} | Deletes a Self tax provider city
403
404
  *UltracartClient::TaxApi* | [**delete_tax_provider_self_country**](docs/TaxApi.md#delete_tax_provider_self_country) | **DELETE** /tax/providers/self/country/{countryCode} | Deletes a Self tax provider country
404
405
  *UltracartClient::TaxApi* | [**delete_tax_provider_self_county**](docs/TaxApi.md#delete_tax_provider_self_county) | **DELETE** /tax/providers/self/county/{county} | Deletes a Self tax provider county
@@ -1000,6 +1001,8 @@ Class | Method | HTTP request | Description
1000
1001
  - [UltracartClient::RegisterAffiliateClickResponse](docs/RegisterAffiliateClickResponse.md)
1001
1002
  - [UltracartClient::ResponseMetadata](docs/ResponseMetadata.md)
1002
1003
  - [UltracartClient::ResultSet](docs/ResultSet.md)
1004
+ - [UltracartClient::RulerValidationRequest](docs/RulerValidationRequest.md)
1005
+ - [UltracartClient::RulerValidationResponse](docs/RulerValidationResponse.md)
1003
1006
  - [UltracartClient::ScreenRecording](docs/ScreenRecording.md)
1004
1007
  - [UltracartClient::ScreenRecordingAdPlatform](docs/ScreenRecordingAdPlatform.md)
1005
1008
  - [UltracartClient::ScreenRecordingFilter](docs/ScreenRecordingFilter.md)
@@ -1188,6 +1191,9 @@ Not every change is committed to every SDK.
1188
1191
 
1189
1192
  | Version | Date | Comments |
1190
1193
  | --: | :-: | --- |
1194
+ | 4.0.61-RC | 09/07/2022 | sf comms - using aws event ruler for bigquery segmentation validation |
1195
+ | 4.0.60-RC | 09/02/2022 | customer editor added loyal ledger descriptions |
1196
+ | 4.0.59-RC | 08/30/2022 | storefront comm fields for sms configuration |
1191
1197
  | 4.0.58-RC | 08/26/2022 | postcard address fields for comm sequence testing |
1192
1198
  | 4.0.57-RC | 08/22/2022 | exposing individual reviews within item.review object |
1193
1199
  | 4.0.56-RC | 08/19/2022 | order api - added cell phone fields for sms |
@@ -9,6 +9,7 @@
9
9
  | **card_exp_years** | **Array<String>** | card_exp_years | [optional] |
10
10
  | **card_types** | **Array<String>** | card_types | [optional] |
11
11
  | **countries** | [**Array<Country>**](Country.md) | countries | [optional] |
12
+ | **loyalty_ledger_descriptions** | **Array<String>** | loyalty_ledger_descriptions | [optional] |
12
13
  | **loyalty_program_type** | **String** | loyalty_program_type | [optional] |
13
14
  | **qb_classes** | **Array<String>** | qb_classes | [optional] |
14
15
  | **sales_rep_codes** | **Array<String>** | sales_rep_codes | [optional] |
@@ -26,6 +27,7 @@ instance = UltracartClient::CustomerEditorValues.new(
26
27
  card_exp_years: null,
27
28
  card_types: null,
28
29
  countries: null,
30
+ loyalty_ledger_descriptions: null,
29
31
  loyalty_program_type: null,
30
32
  qb_classes: null,
31
33
  sales_rep_codes: null,
@@ -25,6 +25,8 @@
25
25
  | **revenue_per_customer_formatted** | **String** | Revenue per customer associated with campaign | [optional] |
26
26
  | **scheduled_dts** | **String** | Scheduled date | [optional] |
27
27
  | **screenshot_large_full_url** | **String** | URL to a large full length screenshot | [optional] |
28
+ | **sms_esp_twilio_uuid** | **String** | Twilio Account UUID. Null for none | [optional] |
29
+ | **sms_phone_number** | **String** | Twilio SMS Phone Number. Null for none | [optional] |
28
30
  | **status** | **String** | Status of the campaign of draft, archived, and sent | [optional] |
29
31
  | **status_dts** | **String** | Timestamp when the last status change happened | [optional] |
30
32
  | **storefront_oid** | **Integer** | Storefront oid | [optional] |
@@ -56,6 +58,8 @@ instance = UltracartClient::EmailCampaign.new(
56
58
  revenue_per_customer_formatted: null,
57
59
  scheduled_dts: null,
58
60
  screenshot_large_full_url: null,
61
+ sms_esp_twilio_uuid: null,
62
+ sms_phone_number: null,
59
63
  status: null,
60
64
  status_dts: null,
61
65
  storefront_oid: null
data/docs/EmailFlow.md CHANGED
@@ -26,6 +26,8 @@
26
26
  | **revenue_formatted** | **String** | Revenue, formatted | [optional] |
27
27
  | **revenue_per_customer_formatted** | **String** | Revenue per customer, formatted | [optional] |
28
28
  | **screenshot_large_full_url** | **String** | URL to a large full length screenshot | [optional] |
29
+ | **sms_esp_twilio_uuid** | **String** | Twilio Account UUID. Null for none | [optional] |
30
+ | **sms_phone_number** | **String** | Twilio SMS Phone Number. Null for none | [optional] |
29
31
  | **status** | **String** | Status of the campaign of draft, archived, active, and inactive | [optional] |
30
32
  | **status_dts** | **String** | Timestamp when the last status change happened | [optional] |
31
33
  | **storefront_oid** | **Integer** | Storefront oid | [optional] |
@@ -61,6 +63,8 @@ instance = UltracartClient::EmailFlow.new(
61
63
  revenue_formatted: null,
62
64
  revenue_per_customer_formatted: null,
63
65
  screenshot_large_full_url: null,
66
+ sms_esp_twilio_uuid: null,
67
+ sms_phone_number: null,
64
68
  status: null,
65
69
  status_dts: null,
66
70
  storefront_oid: null,
@@ -13,6 +13,8 @@
13
13
  | **postcard_from_name** | **String** | | [optional] |
14
14
  | **postcard_from_postal_code** | **String** | | [optional] |
15
15
  | **postcard_from_state** | **String** | | [optional] |
16
+ | **sms_esp_twilio_uuid** | **String** | | [optional] |
17
+ | **sms_phone_number** | **String** | | [optional] |
16
18
  | **transactional_esp_domain_user** | **String** | | [optional] |
17
19
  | **transactional_esp_domain_uuid** | **String** | | [optional] |
18
20
  | **transactional_esp_friendly_name** | **String** | | [optional] |
@@ -32,6 +34,8 @@ instance = UltracartClient::EmailSettings.new(
32
34
  postcard_from_name: null,
33
35
  postcard_from_postal_code: null,
34
36
  postcard_from_state: null,
37
+ sms_esp_twilio_uuid: null,
38
+ sms_phone_number: null,
35
39
  transactional_esp_domain_user: null,
36
40
  transactional_esp_domain_uuid: null,
37
41
  transactional_esp_friendly_name: null
@@ -0,0 +1,18 @@
1
+ # UltracartClient::RulerValidationRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **ruler** | **String** | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ultracart_api'
13
+
14
+ instance = UltracartClient::RulerValidationRequest.new(
15
+ ruler: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # UltracartClient::RulerValidationResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error_message** | **String** | | [optional] |
8
+ | **valid** | **Boolean** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ultracart_api'
14
+
15
+ instance = UltracartClient::RulerValidationResponse.new(
16
+ error_message: null,
17
+ valid: null
18
+ )
19
+ ```
20
+
@@ -168,6 +168,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
168
168
  | [**update_screen_recording_tags**](StorefrontApi.md#update_screen_recording_tags) | **POST** /storefront/{storefront_oid}/screen_recordings/{screen_recording_uuid}/tags | Update tags on a screen recording |
169
169
  | [**update_transaction_email**](StorefrontApi.md#update_transaction_email) | **PUT** /storefront/{storefront_oid}/transaction_email/list/{email_id} | Updates a transaction email object |
170
170
  | [**update_twilio_account**](StorefrontApi.md#update_twilio_account) | **PUT** /storefront/twilio/accounts/{esp_twilio_uuid} | Update Twilio account |
171
+ | [**validate_ruler**](StorefrontApi.md#validate_ruler) | **POST** /storefront/ruler/validate | Validate AWS Event Ruler |
171
172
 
172
173
 
173
174
  ## add_to_library
@@ -11933,3 +11934,72 @@ end
11933
11934
  - **Content-Type**: application/json
11934
11935
  - **Accept**: application/json
11935
11936
 
11937
+
11938
+ ## validate_ruler
11939
+
11940
+ > <RulerValidationResponse> validate_ruler(ruler_validate_request)
11941
+
11942
+ Validate AWS Event Ruler
11943
+
11944
+ ### Examples
11945
+
11946
+ ```ruby
11947
+ require 'time'
11948
+ require 'ultracart_api'
11949
+ require 'json'
11950
+ require 'yaml'
11951
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
11952
+
11953
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
11954
+ # As such, this might not be the best way to use this object.
11955
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
11956
+
11957
+ api = UltracartClient::StorefrontApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
11958
+ ruler_validate_request = UltracartClient::RulerValidationRequest.new # RulerValidationRequest | Ruler Validate Request
11959
+
11960
+ begin
11961
+ # Validate AWS Event Ruler
11962
+ result = api_instance.validate_ruler(ruler_validate_request)
11963
+ p result
11964
+ rescue UltracartClient::ApiError => e
11965
+ puts "Error when calling StorefrontApi->validate_ruler: #{e}"
11966
+ end
11967
+ ```
11968
+
11969
+ #### Using the validate_ruler_with_http_info variant
11970
+
11971
+ This returns an Array which contains the response data, status code and headers.
11972
+
11973
+ > <Array(<RulerValidationResponse>, Integer, Hash)> validate_ruler_with_http_info(ruler_validate_request)
11974
+
11975
+ ```ruby
11976
+ begin
11977
+ # Validate AWS Event Ruler
11978
+ data, status_code, headers = api_instance.validate_ruler_with_http_info(ruler_validate_request)
11979
+ p status_code # => 2xx
11980
+ p headers # => { ... }
11981
+ p data # => <RulerValidationResponse>
11982
+ rescue UltracartClient::ApiError => e
11983
+ puts "Error when calling StorefrontApi->validate_ruler_with_http_info: #{e}"
11984
+ end
11985
+ ```
11986
+
11987
+ ### Parameters
11988
+
11989
+ | Name | Type | Description | Notes |
11990
+ | ---- | ---- | ----------- | ----- |
11991
+ | **ruler_validate_request** | [**RulerValidationRequest**](RulerValidationRequest.md) | Ruler Validate Request | |
11992
+
11993
+ ### Return type
11994
+
11995
+ [**RulerValidationResponse**](RulerValidationResponse.md)
11996
+
11997
+ ### Authorization
11998
+
11999
+ [ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
12000
+
12001
+ ### HTTP request headers
12002
+
12003
+ - **Content-Type**: application/json
12004
+ - **Accept**: application/json
12005
+
@@ -11538,5 +11538,72 @@ module UltracartClient
11538
11538
  end
11539
11539
  return data, status_code, headers
11540
11540
  end
11541
+
11542
+ # Validate AWS Event Ruler
11543
+ # @param ruler_validate_request [RulerValidationRequest] Ruler Validate Request
11544
+ # @param [Hash] opts the optional parameters
11545
+ # @return [RulerValidationResponse]
11546
+ def validate_ruler(ruler_validate_request, opts = {})
11547
+ data, _status_code, _headers = validate_ruler_with_http_info(ruler_validate_request, opts)
11548
+ data
11549
+ end
11550
+
11551
+ # Validate AWS Event Ruler
11552
+ # @param ruler_validate_request [RulerValidationRequest] Ruler Validate Request
11553
+ # @param [Hash] opts the optional parameters
11554
+ # @return [Array<(RulerValidationResponse, Integer, Hash)>] RulerValidationResponse data, response status code and response headers
11555
+ def validate_ruler_with_http_info(ruler_validate_request, opts = {})
11556
+ if @api_client.config.debugging
11557
+ @api_client.config.logger.debug 'Calling API: StorefrontApi.validate_ruler ...'
11558
+ end
11559
+ # verify the required parameter 'ruler_validate_request' is set
11560
+ if @api_client.config.client_side_validation && ruler_validate_request.nil?
11561
+ fail ArgumentError, "Missing the required parameter 'ruler_validate_request' when calling StorefrontApi.validate_ruler"
11562
+ end
11563
+ # resource path
11564
+ local_var_path = '/storefront/ruler/validate'
11565
+
11566
+ # query parameters
11567
+ query_params = opts[:query_params] || {}
11568
+
11569
+ # header parameters
11570
+ header_params = opts[:header_params] || {}
11571
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
11572
+ # HTTP header 'Accept' (if needed)
11573
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
11574
+ # HTTP header 'Content-Type'
11575
+ content_type = @api_client.select_header_content_type(['application/json'])
11576
+ if !content_type.nil?
11577
+ header_params['Content-Type'] = content_type
11578
+ end
11579
+
11580
+ # form parameters
11581
+ form_params = opts[:form_params] || {}
11582
+
11583
+ # http body (model)
11584
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(ruler_validate_request)
11585
+
11586
+ # return_type
11587
+ return_type = opts[:debug_return_type] || 'RulerValidationResponse'
11588
+
11589
+ # auth_names
11590
+ auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
11591
+
11592
+ new_options = opts.merge(
11593
+ :operation => :"StorefrontApi.validate_ruler",
11594
+ :header_params => header_params,
11595
+ :query_params => query_params,
11596
+ :form_params => form_params,
11597
+ :body => post_body,
11598
+ :auth_names => auth_names,
11599
+ :return_type => return_type
11600
+ )
11601
+
11602
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
11603
+ if @api_client.config.debugging
11604
+ @api_client.config.logger.debug "API called: StorefrontApi#validate_ruler\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11605
+ end
11606
+ return data, status_code, headers
11607
+ end
11541
11608
  end
11542
11609
  end
@@ -30,6 +30,9 @@ module UltracartClient
30
30
  # countries
31
31
  attr_accessor :countries
32
32
 
33
+ # loyalty_ledger_descriptions
34
+ attr_accessor :loyalty_ledger_descriptions
35
+
33
36
  # loyalty_program_type
34
37
  attr_accessor :loyalty_program_type
35
38
 
@@ -53,6 +56,7 @@ module UltracartClient
53
56
  :'card_exp_years' => :'card_exp_years',
54
57
  :'card_types' => :'card_types',
55
58
  :'countries' => :'countries',
59
+ :'loyalty_ledger_descriptions' => :'loyalty_ledger_descriptions',
56
60
  :'loyalty_program_type' => :'loyalty_program_type',
57
61
  :'qb_classes' => :'qb_classes',
58
62
  :'sales_rep_codes' => :'sales_rep_codes',
@@ -74,6 +78,7 @@ module UltracartClient
74
78
  :'card_exp_years' => :'Array<String>',
75
79
  :'card_types' => :'Array<String>',
76
80
  :'countries' => :'Array<Country>',
81
+ :'loyalty_ledger_descriptions' => :'Array<String>',
77
82
  :'loyalty_program_type' => :'String',
78
83
  :'qb_classes' => :'Array<String>',
79
84
  :'sales_rep_codes' => :'Array<String>',
@@ -133,6 +138,12 @@ module UltracartClient
133
138
  end
134
139
  end
135
140
 
141
+ if attributes.key?(:'loyalty_ledger_descriptions')
142
+ if (value = attributes[:'loyalty_ledger_descriptions']).is_a?(Array)
143
+ self.loyalty_ledger_descriptions = value
144
+ end
145
+ end
146
+
136
147
  if attributes.key?(:'loyalty_program_type')
137
148
  self.loyalty_program_type = attributes[:'loyalty_program_type']
138
149
  end
@@ -185,6 +196,7 @@ module UltracartClient
185
196
  card_exp_years == o.card_exp_years &&
186
197
  card_types == o.card_types &&
187
198
  countries == o.countries &&
199
+ loyalty_ledger_descriptions == o.loyalty_ledger_descriptions &&
188
200
  loyalty_program_type == o.loyalty_program_type &&
189
201
  qb_classes == o.qb_classes &&
190
202
  sales_rep_codes == o.sales_rep_codes &&
@@ -201,7 +213,7 @@ module UltracartClient
201
213
  # Calculates hash code according to all attributes.
202
214
  # @return [Integer] Hash code
203
215
  def hash
204
- [affiliates, card_exp_months, card_exp_years, card_types, countries, loyalty_program_type, qb_classes, sales_rep_codes, state_optional_countries, terms].hash
216
+ [affiliates, card_exp_months, card_exp_years, card_types, countries, loyalty_ledger_descriptions, loyalty_program_type, qb_classes, sales_rep_codes, state_optional_countries, terms].hash
205
217
  end
206
218
 
207
219
  # Builds the object from hash
@@ -78,6 +78,12 @@ module UltracartClient
78
78
  # URL to a large full length screenshot
79
79
  attr_accessor :screenshot_large_full_url
80
80
 
81
+ # Twilio Account UUID. Null for none
82
+ attr_accessor :sms_esp_twilio_uuid
83
+
84
+ # Twilio SMS Phone Number. Null for none
85
+ attr_accessor :sms_phone_number
86
+
81
87
  # Status of the campaign of draft, archived, and sent
82
88
  attr_accessor :status
83
89
 
@@ -111,6 +117,8 @@ module UltracartClient
111
117
  :'revenue_per_customer_formatted' => :'revenue_per_customer_formatted',
112
118
  :'scheduled_dts' => :'scheduled_dts',
113
119
  :'screenshot_large_full_url' => :'screenshot_large_full_url',
120
+ :'sms_esp_twilio_uuid' => :'sms_esp_twilio_uuid',
121
+ :'sms_phone_number' => :'sms_phone_number',
114
122
  :'status' => :'status',
115
123
  :'status_dts' => :'status_dts',
116
124
  :'storefront_oid' => :'storefront_oid'
@@ -146,6 +154,8 @@ module UltracartClient
146
154
  :'revenue_per_customer_formatted' => :'String',
147
155
  :'scheduled_dts' => :'String',
148
156
  :'screenshot_large_full_url' => :'String',
157
+ :'sms_esp_twilio_uuid' => :'String',
158
+ :'sms_phone_number' => :'String',
149
159
  :'status' => :'String',
150
160
  :'status_dts' => :'String',
151
161
  :'storefront_oid' => :'Integer'
@@ -259,6 +269,14 @@ module UltracartClient
259
269
  self.screenshot_large_full_url = attributes[:'screenshot_large_full_url']
260
270
  end
261
271
 
272
+ if attributes.key?(:'sms_esp_twilio_uuid')
273
+ self.sms_esp_twilio_uuid = attributes[:'sms_esp_twilio_uuid']
274
+ end
275
+
276
+ if attributes.key?(:'sms_phone_number')
277
+ self.sms_phone_number = attributes[:'sms_phone_number']
278
+ end
279
+
262
280
  if attributes.key?(:'status')
263
281
  self.status = attributes[:'status']
264
282
  end
@@ -326,6 +344,8 @@ module UltracartClient
326
344
  revenue_per_customer_formatted == o.revenue_per_customer_formatted &&
327
345
  scheduled_dts == o.scheduled_dts &&
328
346
  screenshot_large_full_url == o.screenshot_large_full_url &&
347
+ sms_esp_twilio_uuid == o.sms_esp_twilio_uuid &&
348
+ sms_phone_number == o.sms_phone_number &&
329
349
  status == o.status &&
330
350
  status_dts == o.status_dts &&
331
351
  storefront_oid == o.storefront_oid
@@ -340,7 +360,7 @@ module UltracartClient
340
360
  # Calculates hash code according to all attributes.
341
361
  # @return [Integer] Hash code
342
362
  def hash
343
- [click_rate_formatted, created_dts, deleted, email_campaign_uuid, email_communication_sequence_uuid, end_once_customer_purchases, end_once_customer_purchases_anywhere, esp_campaign_folder_uuid, esp_domain_user, esp_domain_uuid, esp_friendly_name, library_item_oid, memberships, merchant_id, name, open_rate_formatted, prevent_sending_due_to_spam, revenue_formatted, revenue_per_customer_formatted, scheduled_dts, screenshot_large_full_url, status, status_dts, storefront_oid].hash
363
+ [click_rate_formatted, created_dts, deleted, email_campaign_uuid, email_communication_sequence_uuid, end_once_customer_purchases, end_once_customer_purchases_anywhere, esp_campaign_folder_uuid, esp_domain_user, esp_domain_uuid, esp_friendly_name, library_item_oid, memberships, merchant_id, name, open_rate_formatted, prevent_sending_due_to_spam, revenue_formatted, revenue_per_customer_formatted, scheduled_dts, screenshot_large_full_url, sms_esp_twilio_uuid, sms_phone_number, status, status_dts, storefront_oid].hash
344
364
  end
345
365
 
346
366
  # Builds the object from hash
@@ -81,6 +81,12 @@ module UltracartClient
81
81
  # URL to a large full length screenshot
82
82
  attr_accessor :screenshot_large_full_url
83
83
 
84
+ # Twilio Account UUID. Null for none
85
+ attr_accessor :sms_esp_twilio_uuid
86
+
87
+ # Twilio SMS Phone Number. Null for none
88
+ attr_accessor :sms_phone_number
89
+
84
90
  # Status of the campaign of draft, archived, active, and inactive
85
91
  attr_accessor :status
86
92
 
@@ -124,6 +130,8 @@ module UltracartClient
124
130
  :'revenue_formatted' => :'revenue_formatted',
125
131
  :'revenue_per_customer_formatted' => :'revenue_per_customer_formatted',
126
132
  :'screenshot_large_full_url' => :'screenshot_large_full_url',
133
+ :'sms_esp_twilio_uuid' => :'sms_esp_twilio_uuid',
134
+ :'sms_phone_number' => :'sms_phone_number',
127
135
  :'status' => :'status',
128
136
  :'status_dts' => :'status_dts',
129
137
  :'storefront_oid' => :'storefront_oid',
@@ -163,6 +171,8 @@ module UltracartClient
163
171
  :'revenue_formatted' => :'String',
164
172
  :'revenue_per_customer_formatted' => :'String',
165
173
  :'screenshot_large_full_url' => :'String',
174
+ :'sms_esp_twilio_uuid' => :'String',
175
+ :'sms_phone_number' => :'String',
166
176
  :'status' => :'String',
167
177
  :'status_dts' => :'String',
168
178
  :'storefront_oid' => :'Integer',
@@ -281,6 +291,14 @@ module UltracartClient
281
291
  self.screenshot_large_full_url = attributes[:'screenshot_large_full_url']
282
292
  end
283
293
 
294
+ if attributes.key?(:'sms_esp_twilio_uuid')
295
+ self.sms_esp_twilio_uuid = attributes[:'sms_esp_twilio_uuid']
296
+ end
297
+
298
+ if attributes.key?(:'sms_phone_number')
299
+ self.sms_phone_number = attributes[:'sms_phone_number']
300
+ end
301
+
284
302
  if attributes.key?(:'status')
285
303
  self.status = attributes[:'status']
286
304
  end
@@ -361,6 +379,8 @@ module UltracartClient
361
379
  revenue_formatted == o.revenue_formatted &&
362
380
  revenue_per_customer_formatted == o.revenue_per_customer_formatted &&
363
381
  screenshot_large_full_url == o.screenshot_large_full_url &&
382
+ sms_esp_twilio_uuid == o.sms_esp_twilio_uuid &&
383
+ sms_phone_number == o.sms_phone_number &&
364
384
  status == o.status &&
365
385
  status_dts == o.status_dts &&
366
386
  storefront_oid == o.storefront_oid &&
@@ -378,7 +398,7 @@ module UltracartClient
378
398
  # Calculates hash code according to all attributes.
379
399
  # @return [Integer] Hash code
380
400
  def hash
381
- [allow_multiple_concurrent_enrollments, back_populating, click_rate_formatted, created_dts, deleted, email_communication_sequence_uuid, email_flow_uuid, end_once_customer_purchases, end_once_customer_purchases_anywhere, enrolled_customers, esp_domain_user, esp_domain_uuid, esp_flow_folder_uuid, esp_friendly_name, filter_profile_equation_json, library_item_oid, merchant_id, name, open_rate_formatted, revenue_formatted, revenue_per_customer_formatted, screenshot_large_full_url, status, status_dts, storefront_oid, trigger_parameter, trigger_parameter_name, trigger_type].hash
401
+ [allow_multiple_concurrent_enrollments, back_populating, click_rate_formatted, created_dts, deleted, email_communication_sequence_uuid, email_flow_uuid, end_once_customer_purchases, end_once_customer_purchases_anywhere, enrolled_customers, esp_domain_user, esp_domain_uuid, esp_flow_folder_uuid, esp_friendly_name, filter_profile_equation_json, library_item_oid, merchant_id, name, open_rate_formatted, revenue_formatted, revenue_per_customer_formatted, screenshot_large_full_url, sms_esp_twilio_uuid, sms_phone_number, status, status_dts, storefront_oid, trigger_parameter, trigger_parameter_name, trigger_type].hash
382
402
  end
383
403
 
384
404
  # Builds the object from hash
@@ -33,6 +33,10 @@ module UltracartClient
33
33
 
34
34
  attr_accessor :postcard_from_state
35
35
 
36
+ attr_accessor :sms_esp_twilio_uuid
37
+
38
+ attr_accessor :sms_phone_number
39
+
36
40
  attr_accessor :transactional_esp_domain_user
37
41
 
38
42
  attr_accessor :transactional_esp_domain_uuid
@@ -51,6 +55,8 @@ module UltracartClient
51
55
  :'postcard_from_name' => :'postcard_from_name',
52
56
  :'postcard_from_postal_code' => :'postcard_from_postal_code',
53
57
  :'postcard_from_state' => :'postcard_from_state',
58
+ :'sms_esp_twilio_uuid' => :'sms_esp_twilio_uuid',
59
+ :'sms_phone_number' => :'sms_phone_number',
54
60
  :'transactional_esp_domain_user' => :'transactional_esp_domain_user',
55
61
  :'transactional_esp_domain_uuid' => :'transactional_esp_domain_uuid',
56
62
  :'transactional_esp_friendly_name' => :'transactional_esp_friendly_name'
@@ -74,6 +80,8 @@ module UltracartClient
74
80
  :'postcard_from_name' => :'String',
75
81
  :'postcard_from_postal_code' => :'String',
76
82
  :'postcard_from_state' => :'String',
83
+ :'sms_esp_twilio_uuid' => :'String',
84
+ :'sms_phone_number' => :'String',
77
85
  :'transactional_esp_domain_user' => :'String',
78
86
  :'transactional_esp_domain_uuid' => :'String',
79
87
  :'transactional_esp_friendly_name' => :'String'
@@ -137,6 +145,14 @@ module UltracartClient
137
145
  self.postcard_from_state = attributes[:'postcard_from_state']
138
146
  end
139
147
 
148
+ if attributes.key?(:'sms_esp_twilio_uuid')
149
+ self.sms_esp_twilio_uuid = attributes[:'sms_esp_twilio_uuid']
150
+ end
151
+
152
+ if attributes.key?(:'sms_phone_number')
153
+ self.sms_phone_number = attributes[:'sms_phone_number']
154
+ end
155
+
140
156
  if attributes.key?(:'transactional_esp_domain_user')
141
157
  self.transactional_esp_domain_user = attributes[:'transactional_esp_domain_user']
142
158
  end
@@ -177,6 +193,8 @@ module UltracartClient
177
193
  postcard_from_name == o.postcard_from_name &&
178
194
  postcard_from_postal_code == o.postcard_from_postal_code &&
179
195
  postcard_from_state == o.postcard_from_state &&
196
+ sms_esp_twilio_uuid == o.sms_esp_twilio_uuid &&
197
+ sms_phone_number == o.sms_phone_number &&
180
198
  transactional_esp_domain_user == o.transactional_esp_domain_user &&
181
199
  transactional_esp_domain_uuid == o.transactional_esp_domain_uuid &&
182
200
  transactional_esp_friendly_name == o.transactional_esp_friendly_name
@@ -191,7 +209,7 @@ module UltracartClient
191
209
  # Calculates hash code according to all attributes.
192
210
  # @return [Integer] Hash code
193
211
  def hash
194
- [marketing_esp_domain_user, marketing_esp_domain_uuid, marketing_esp_friendly_name, postcard_from_address1, postcard_from_address2, postcard_from_city, postcard_from_name, postcard_from_postal_code, postcard_from_state, transactional_esp_domain_user, transactional_esp_domain_uuid, transactional_esp_friendly_name].hash
212
+ [marketing_esp_domain_user, marketing_esp_domain_uuid, marketing_esp_friendly_name, postcard_from_address1, postcard_from_address2, postcard_from_city, postcard_from_name, postcard_from_postal_code, postcard_from_state, sms_esp_twilio_uuid, sms_phone_number, transactional_esp_domain_user, transactional_esp_domain_uuid, transactional_esp_friendly_name].hash
195
213
  end
196
214
 
197
215
  # Builds the object from hash
@@ -0,0 +1,219 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class RulerValidationRequest
18
+ attr_accessor :ruler
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'ruler' => :'ruler'
24
+ }
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'ruler' => :'String'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::RulerValidationRequest` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::RulerValidationRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'ruler')
61
+ self.ruler = attributes[:'ruler']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ ruler == o.ruler
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [ruler].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def self.build_from_hash(attributes)
102
+ new.build_from_hash(attributes)
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ attributes = attributes.transform_keys(&:to_sym)
111
+ self.class.openapi_types.each_pair do |key, type|
112
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
113
+ self.send("#{key}=", nil)
114
+ elsif type =~ /\AArray<(.*)>/i
115
+ # check to ensure the input is an array given that the attribute
116
+ # is documented as an array but the input is not
117
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
+ end
120
+ elsif !attributes[self.class.attribute_map[key]].nil?
121
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
122
+ end
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :Time
135
+ Time.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ # models (e.g. Pet) or oneOf
166
+ klass = UltracartClient.const_get(type)
167
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
168
+ end
169
+ end
170
+
171
+ # Returns the string representation of the object
172
+ # @return [String] String presentation of the object
173
+ def to_s
174
+ to_hash.to_s
175
+ end
176
+
177
+ # to_body is an alias to to_hash (backward compatibility)
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_body
180
+ to_hash
181
+ end
182
+
183
+ # Returns the object in the form of hash
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_hash
186
+ hash = {}
187
+ self.class.attribute_map.each_pair do |attr, param|
188
+ value = self.send(attr)
189
+ if value.nil?
190
+ is_nullable = self.class.openapi_nullable.include?(attr)
191
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
192
+ end
193
+
194
+ hash[param] = _to_hash(value)
195
+ end
196
+ hash
197
+ end
198
+
199
+ # Outputs non-array value in the form of hash
200
+ # For object, use to_hash. Otherwise, just return the value
201
+ # @param [Object] value Any valid value
202
+ # @return [Hash] Returns the value in the form of hash
203
+ def _to_hash(value)
204
+ if value.is_a?(Array)
205
+ value.compact.map { |v| _to_hash(v) }
206
+ elsif value.is_a?(Hash)
207
+ {}.tap do |hash|
208
+ value.each { |k, v| hash[k] = _to_hash(v) }
209
+ end
210
+ elsif value.respond_to? :to_hash
211
+ value.to_hash
212
+ else
213
+ value
214
+ end
215
+ end
216
+
217
+ end
218
+
219
+ end
@@ -0,0 +1,228 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class RulerValidationResponse
18
+ attr_accessor :error_message
19
+
20
+ attr_accessor :valid
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'error_message' => :'error_message',
26
+ :'valid' => :'valid'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'error_message' => :'String',
39
+ :'valid' => :'Boolean'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::RulerValidationResponse` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::RulerValidationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'error_message')
65
+ self.error_message = attributes[:'error_message']
66
+ end
67
+
68
+ if attributes.key?(:'valid')
69
+ self.valid = attributes[:'valid']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ true
84
+ end
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ error_message == o.error_message &&
92
+ valid == o.valid
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Integer] Hash code
103
+ def hash
104
+ [error_message, valid].hash
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def self.build_from_hash(attributes)
111
+ new.build_from_hash(attributes)
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+ attributes = attributes.transform_keys(&:to_sym)
120
+ self.class.openapi_types.each_pair do |key, type|
121
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
122
+ self.send("#{key}=", nil)
123
+ elsif type =~ /\AArray<(.*)>/i
124
+ # check to ensure the input is an array given that the attribute
125
+ # is documented as an array but the input is not
126
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
128
+ end
129
+ elsif !attributes[self.class.attribute_map[key]].nil?
130
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
131
+ end
132
+ end
133
+
134
+ self
135
+ end
136
+
137
+ # Deserializes the data based on type
138
+ # @param string type Data type
139
+ # @param string value Value to be deserialized
140
+ # @return [Object] Deserialized data
141
+ def _deserialize(type, value)
142
+ case type.to_sym
143
+ when :Time
144
+ Time.parse(value)
145
+ when :Date
146
+ Date.parse(value)
147
+ when :String
148
+ value.to_s
149
+ when :Integer
150
+ value.to_i
151
+ when :Float
152
+ value.to_f
153
+ when :Boolean
154
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
155
+ true
156
+ else
157
+ false
158
+ end
159
+ when :Object
160
+ # generic object (usually a Hash), return directly
161
+ value
162
+ when /\AArray<(?<inner_type>.+)>\z/
163
+ inner_type = Regexp.last_match[:inner_type]
164
+ value.map { |v| _deserialize(inner_type, v) }
165
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
166
+ k_type = Regexp.last_match[:k_type]
167
+ v_type = Regexp.last_match[:v_type]
168
+ {}.tap do |hash|
169
+ value.each do |k, v|
170
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
171
+ end
172
+ end
173
+ else # model
174
+ # models (e.g. Pet) or oneOf
175
+ klass = UltracartClient.const_get(type)
176
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.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
+ if value.nil?
199
+ is_nullable = self.class.openapi_nullable.include?(attr)
200
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
201
+ end
202
+
203
+ hash[param] = _to_hash(value)
204
+ end
205
+ hash
206
+ end
207
+
208
+ # Outputs non-array value in the form of hash
209
+ # For object, use to_hash. Otherwise, just return the value
210
+ # @param [Object] value Any valid value
211
+ # @return [Hash] Returns the value in the form of hash
212
+ def _to_hash(value)
213
+ if value.is_a?(Array)
214
+ value.compact.map { |v| _to_hash(v) }
215
+ elsif value.is_a?(Hash)
216
+ {}.tap do |hash|
217
+ value.each { |k, v| hash[k] = _to_hash(v) }
218
+ end
219
+ elsif value.respond_to? :to_hash
220
+ value.to_hash
221
+ else
222
+ value
223
+ end
224
+ end
225
+
226
+ end
227
+
228
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.58.rc'
14
+ VERSION = '4.0.61.rc'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -567,6 +567,8 @@ require 'ultracart_api/models/register_affiliate_click_request'
567
567
  require 'ultracart_api/models/register_affiliate_click_response'
568
568
  require 'ultracart_api/models/response_metadata'
569
569
  require 'ultracart_api/models/result_set'
570
+ require 'ultracart_api/models/ruler_validation_request'
571
+ require 'ultracart_api/models/ruler_validation_response'
570
572
  require 'ultracart_api/models/screen_recording'
571
573
  require 'ultracart_api/models/screen_recording_ad_platform'
572
574
  require 'ultracart_api/models/screen_recording_filter'
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: 4.0.58.rc
4
+ version: 4.0.61.rc
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-26 00:00:00.000000000 Z
11
+ date: 2022-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -625,6 +625,8 @@ files:
625
625
  - docs/RegisterAffiliateClickResponse.md
626
626
  - docs/ResponseMetadata.md
627
627
  - docs/ResultSet.md
628
+ - docs/RulerValidationRequest.md
629
+ - docs/RulerValidationResponse.md
628
630
  - docs/ScreenRecording.md
629
631
  - docs/ScreenRecordingAdPlatform.md
630
632
  - docs/ScreenRecordingFilter.md
@@ -1319,6 +1321,8 @@ files:
1319
1321
  - lib/ultracart_api/models/register_affiliate_click_response.rb
1320
1322
  - lib/ultracart_api/models/response_metadata.rb
1321
1323
  - lib/ultracart_api/models/result_set.rb
1324
+ - lib/ultracart_api/models/ruler_validation_request.rb
1325
+ - lib/ultracart_api/models/ruler_validation_response.rb
1322
1326
  - lib/ultracart_api/models/screen_recording.rb
1323
1327
  - lib/ultracart_api/models/screen_recording_ad_platform.rb
1324
1328
  - lib/ultracart_api/models/screen_recording_filter.rb