ultracart_api 3.11.34 → 3.11.35
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 +6 -4
- data/docs/CustomerApi.md +66 -0
- data/docs/CustomerQuery.md +1 -0
- data/docs/EmailCommseqEmail.md +3 -0
- data/lib/ultracart_api/api/customer_api.rb +73 -0
- data/lib/ultracart_api/models/customer_query.rb +45 -1
- data/lib/ultracart_api/models/email_commseq_email.rb +28 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 74fd0a3b8e29bca5d8137de15d5dbf25af8aa34c49b6fa876256fc02b26d6dcc
|
|
4
|
+
data.tar.gz: 2caec0dcab300c7e0b5cfa04107a1216b4142e623962823040cbb7abd3d3e116
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b0bf20b37350ecad56f6485bf7173e88d48c0b9449074b5396a2c73d3e1012acd31d0e8baeeafab5f8136038e0b4c40647111304a97b5d6f7c96f7a1e9e46ac
|
|
7
|
+
data.tar.gz: 66f75317d45561cf712e2d2d3b317d3c462b43620165ac4e74e174626b58ff8c5ec2cc9848484726822aa4b6f2058e024ffe077bd182a2680932ca39fa2d2817
|
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.35
|
|
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.35.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.35.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.35'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -270,6 +270,7 @@ Class | Method | HTTP request | Description
|
|
|
270
270
|
*UltracartClient::CustomerApi* | [**insert_wish_list_item**](docs/CustomerApi.md#insert_wish_list_item) | **POST** /customer/customers/{customer_profile_oid}/wishlist | Insert a customer wishlist item
|
|
271
271
|
*UltracartClient::CustomerApi* | [**merge_customer**](docs/CustomerApi.md#merge_customer) | **PUT** /customer/customers/{customer_profile_oid}/merge | Merge customer into this customer
|
|
272
272
|
*UltracartClient::CustomerApi* | [**search_customer_profile_values**](docs/CustomerApi.md#search_customer_profile_values) | **POST** /customer/search | Searches for all matching values (using POST)
|
|
273
|
+
*UltracartClient::CustomerApi* | [**search_customers**](docs/CustomerApi.md#search_customers) | **GET** /customer/customers/search | Search for customers
|
|
273
274
|
*UltracartClient::CustomerApi* | [**update_customer**](docs/CustomerApi.md#update_customer) | **PUT** /customer/customers/{customer_profile_oid} | Update a customer
|
|
274
275
|
*UltracartClient::CustomerApi* | [**update_customer_email_lists**](docs/CustomerApi.md#update_customer_email_lists) | **POST** /customer/customers/{customer_profile_oid}/email_lists | Update email list subscriptions for a customer
|
|
275
276
|
*UltracartClient::CustomerApi* | [**update_wish_list_item**](docs/CustomerApi.md#update_wish_list_item) | **PUT** /customer/customers/{customer_profile_oid}/wishlist/{customer_wishlist_item_oid} | Update a customer wishlist item
|
|
@@ -1601,6 +1602,7 @@ Not every change is committed to every SDK.
|
|
|
1601
1602
|
|
|
1602
1603
|
| Version | Date | Comments |
|
|
1603
1604
|
| --: | :-: | --- |
|
|
1605
|
+
| 3.11.35 | 12/02/2025 | caching option added to getCustomers, created new method searchCustomers |
|
|
1604
1606
|
| 3.11.34 | 12/02/2025 | coupons - added optional free specific shipping method to two coupons |
|
|
1605
1607
|
| 3.11.33 | 11/26/2025 | conversation - AI agent profile fields |
|
|
1606
1608
|
| 3.11.32 | 11/20/2025 | conversion api bug fix on incorrect signature |
|
data/docs/CustomerApi.md
CHANGED
|
@@ -24,6 +24,7 @@ Method | HTTP request | Description
|
|
|
24
24
|
[**insert_wish_list_item**](CustomerApi.md#insert_wish_list_item) | **POST** /customer/customers/{customer_profile_oid}/wishlist | Insert a customer wishlist item
|
|
25
25
|
[**merge_customer**](CustomerApi.md#merge_customer) | **PUT** /customer/customers/{customer_profile_oid}/merge | Merge customer into this customer
|
|
26
26
|
[**search_customer_profile_values**](CustomerApi.md#search_customer_profile_values) | **POST** /customer/search | Searches for all matching values (using POST)
|
|
27
|
+
[**search_customers**](CustomerApi.md#search_customers) | **GET** /customer/customers/search | Search for customers
|
|
27
28
|
[**update_customer**](CustomerApi.md#update_customer) | **PUT** /customer/customers/{customer_profile_oid} | Update a customer
|
|
28
29
|
[**update_customer_email_lists**](CustomerApi.md#update_customer_email_lists) | **POST** /customer/customers/{customer_profile_oid}/email_lists | Update email list subscriptions for a customer
|
|
29
30
|
[**update_wish_list_item**](CustomerApi.md#update_wish_list_item) | **PUT** /customer/customers/{customer_profile_oid}/wishlist/{customer_wishlist_item_oid} | Update a customer wishlist item
|
|
@@ -1128,6 +1129,71 @@ Name | Type | Description | Notes
|
|
|
1128
1129
|
|
|
1129
1130
|
|
|
1130
1131
|
|
|
1132
|
+
# **search_customers**
|
|
1133
|
+
> CustomersResponse search_customers(opts)
|
|
1134
|
+
|
|
1135
|
+
Search for customers
|
|
1136
|
+
|
|
1137
|
+
Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
|
|
1138
|
+
|
|
1139
|
+
### Example
|
|
1140
|
+
```ruby
|
|
1141
|
+
# load the gem
|
|
1142
|
+
require 'ultracart_api'
|
|
1143
|
+
|
|
1144
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
1145
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
1146
|
+
api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
opts = {
|
|
1150
|
+
search_string: 'search_string_example', # String | Search
|
|
1151
|
+
signup_dts_start: 'signup_dts_start_example', # String | Signup date start
|
|
1152
|
+
signup_dts_end: 'signup_dts_end_example', # String | Signup date end
|
|
1153
|
+
_limit: 100, # Integer | The maximum number of records to return on this one API call. (Max 200)
|
|
1154
|
+
_offset: 0, # Integer | Pagination of the record set. Offset is a zero based index.
|
|
1155
|
+
_since: '_since_example', # String | Fetch customers that have been created/modified since this date/time.
|
|
1156
|
+
_sort: '_sort_example', # String | The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
|
|
1157
|
+
_expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
begin
|
|
1161
|
+
#Search for customers
|
|
1162
|
+
result = api_instance.search_customers(opts)
|
|
1163
|
+
p result
|
|
1164
|
+
rescue UltracartClient::ApiError => e
|
|
1165
|
+
puts "Exception when calling CustomerApi->search_customers: #{e}"
|
|
1166
|
+
end
|
|
1167
|
+
```
|
|
1168
|
+
|
|
1169
|
+
### Parameters
|
|
1170
|
+
|
|
1171
|
+
Name | Type | Description | Notes
|
|
1172
|
+
------------- | ------------- | ------------- | -------------
|
|
1173
|
+
**search_string** | **String**| Search | [optional]
|
|
1174
|
+
**signup_dts_start** | **String**| Signup date start | [optional]
|
|
1175
|
+
**signup_dts_end** | **String**| Signup date end | [optional]
|
|
1176
|
+
**_limit** | **Integer**| The maximum number of records to return on this one API call. (Max 200) | [optional] [default to 100]
|
|
1177
|
+
**_offset** | **Integer**| Pagination of the record set. Offset is a zero based index. | [optional] [default to 0]
|
|
1178
|
+
**_since** | **String**| Fetch customers that have been created/modified since this date/time. | [optional]
|
|
1179
|
+
**_sort** | **String**| The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional]
|
|
1180
|
+
**_expand** | **String**| The object expansion to perform on the result. See documentation for examples | [optional]
|
|
1181
|
+
|
|
1182
|
+
### Return type
|
|
1183
|
+
|
|
1184
|
+
[**CustomersResponse**](CustomersResponse.md)
|
|
1185
|
+
|
|
1186
|
+
### Authorization
|
|
1187
|
+
|
|
1188
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
1189
|
+
|
|
1190
|
+
### HTTP request headers
|
|
1191
|
+
|
|
1192
|
+
- **Content-Type**: application/json
|
|
1193
|
+
- **Accept**: application/json
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
|
|
1131
1197
|
# **update_customer**
|
|
1132
1198
|
> CustomerResponse update_customer(customer, customer_profile_oid, opts)
|
|
1133
1199
|
|
data/docs/CustomerQuery.md
CHANGED
|
@@ -21,6 +21,7 @@ Name | Type | Description | Notes
|
|
|
21
21
|
**pricing_tier_name** | **String** | Pricing tier name | [optional]
|
|
22
22
|
**pricing_tier_oid** | **Integer** | Pricing tier oid | [optional]
|
|
23
23
|
**qb_class** | **String** | QuickBooks class to import this customer as | [optional]
|
|
24
|
+
**query_target** | **String** | Query Target | [optional]
|
|
24
25
|
**quickbooks_code** | **String** | QuickBooks name to import this customer as | [optional]
|
|
25
26
|
**shipping_city** | **String** | Billing city | [optional]
|
|
26
27
|
**shipping_company** | **String** | Billing company | [optional]
|
data/docs/EmailCommseqEmail.md
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**ai_generation** | **BOOLEAN** | | [optional]
|
|
7
|
+
**ai_generation_prompt** | **String** | | [optional]
|
|
8
|
+
**ai_generation_user_id** | **Integer** | | [optional]
|
|
6
9
|
**deleted** | **BOOLEAN** | Deleted | [optional]
|
|
7
10
|
**edited_by_user** | **String** | Edited by user | [optional]
|
|
8
11
|
**email_communication_sequence_email_uuid** | **String** | Email communication sequence email uuid | [optional]
|
|
@@ -1271,6 +1271,79 @@ module UltracartClient
|
|
|
1271
1271
|
end
|
|
1272
1272
|
return data, status_code, headers
|
|
1273
1273
|
end
|
|
1274
|
+
# Search for customers
|
|
1275
|
+
# Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
|
|
1276
|
+
# @param [Hash] opts the optional parameters
|
|
1277
|
+
# @option opts [String] :search_string Search
|
|
1278
|
+
# @option opts [String] :signup_dts_start Signup date start
|
|
1279
|
+
# @option opts [String] :signup_dts_end Signup date end
|
|
1280
|
+
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
|
|
1281
|
+
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
|
|
1282
|
+
# @option opts [String] :_since Fetch customers that have been created/modified since this date/time.
|
|
1283
|
+
# @option opts [String] :_sort The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
|
|
1284
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
|
1285
|
+
# @return [CustomersResponse]
|
|
1286
|
+
def search_customers(opts = {})
|
|
1287
|
+
data, _status_code, _headers = search_customers_with_http_info(opts)
|
|
1288
|
+
data
|
|
1289
|
+
end
|
|
1290
|
+
|
|
1291
|
+
# Search for customers
|
|
1292
|
+
# Retrieves customers from the account by matching the search value against most customer fields. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination. This search also goes against the cache so updates should not be performed with these result objects. Always re-query the individual customer profile if you are going to make updates.
|
|
1293
|
+
# @param [Hash] opts the optional parameters
|
|
1294
|
+
# @option opts [String] :search_string Search
|
|
1295
|
+
# @option opts [String] :signup_dts_start Signup date start
|
|
1296
|
+
# @option opts [String] :signup_dts_end Signup date end
|
|
1297
|
+
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200)
|
|
1298
|
+
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
|
|
1299
|
+
# @option opts [String] :_since Fetch customers that have been created/modified since this date/time.
|
|
1300
|
+
# @option opts [String] :_sort The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
|
|
1301
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
|
1302
|
+
# @return [Array<(CustomersResponse, Fixnum, Hash)>] CustomersResponse data, response status code and response headers
|
|
1303
|
+
def search_customers_with_http_info(opts = {})
|
|
1304
|
+
if @api_client.config.debugging
|
|
1305
|
+
@api_client.config.logger.debug 'Calling API: CustomerApi.search_customers ...'
|
|
1306
|
+
end
|
|
1307
|
+
# resource path
|
|
1308
|
+
local_var_path = '/customer/customers/search'
|
|
1309
|
+
|
|
1310
|
+
# query parameters
|
|
1311
|
+
query_params = {}
|
|
1312
|
+
query_params[:'search_string'] = opts[:'search_string'] if !opts[:'search_string'].nil?
|
|
1313
|
+
query_params[:'signup_dts_start'] = opts[:'signup_dts_start'] if !opts[:'signup_dts_start'].nil?
|
|
1314
|
+
query_params[:'signup_dts_end'] = opts[:'signup_dts_end'] if !opts[:'signup_dts_end'].nil?
|
|
1315
|
+
query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
|
|
1316
|
+
query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
|
|
1317
|
+
query_params[:'_since'] = opts[:'_since'] if !opts[:'_since'].nil?
|
|
1318
|
+
query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
|
|
1319
|
+
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
|
1320
|
+
|
|
1321
|
+
# header parameters
|
|
1322
|
+
header_params = {}
|
|
1323
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
1324
|
+
# HTTP header 'Accept' (if needed)
|
|
1325
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1326
|
+
# HTTP header 'Content-Type'
|
|
1327
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1328
|
+
|
|
1329
|
+
# form parameters
|
|
1330
|
+
form_params = {}
|
|
1331
|
+
|
|
1332
|
+
# http body (model)
|
|
1333
|
+
post_body = nil
|
|
1334
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
1335
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
1336
|
+
:header_params => header_params,
|
|
1337
|
+
:query_params => query_params,
|
|
1338
|
+
:form_params => form_params,
|
|
1339
|
+
:body => post_body,
|
|
1340
|
+
:auth_names => auth_names,
|
|
1341
|
+
:return_type => 'CustomersResponse')
|
|
1342
|
+
if @api_client.config.debugging
|
|
1343
|
+
@api_client.config.logger.debug "API called: CustomerApi#search_customers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1344
|
+
end
|
|
1345
|
+
return data, status_code, headers
|
|
1346
|
+
end
|
|
1274
1347
|
# Update a customer
|
|
1275
1348
|
# Update a customer on the UltraCart account.
|
|
1276
1349
|
# @param customer Customer to update
|
|
@@ -68,6 +68,9 @@ module UltracartClient
|
|
|
68
68
|
# QuickBooks class to import this customer as
|
|
69
69
|
attr_accessor :qb_class
|
|
70
70
|
|
|
71
|
+
# Query Target
|
|
72
|
+
attr_accessor :query_target
|
|
73
|
+
|
|
71
74
|
# QuickBooks name to import this customer as
|
|
72
75
|
attr_accessor :quickbooks_code
|
|
73
76
|
|
|
@@ -104,6 +107,28 @@ module UltracartClient
|
|
|
104
107
|
# Signup date start
|
|
105
108
|
attr_accessor :signup_dts_start
|
|
106
109
|
|
|
110
|
+
class EnumAttributeValidator
|
|
111
|
+
attr_reader :datatype
|
|
112
|
+
attr_reader :allowable_values
|
|
113
|
+
|
|
114
|
+
def initialize(datatype, allowable_values)
|
|
115
|
+
@allowable_values = allowable_values.map do |value|
|
|
116
|
+
case datatype.to_s
|
|
117
|
+
when /Integer/i
|
|
118
|
+
value.to_i
|
|
119
|
+
when /Float/i
|
|
120
|
+
value.to_f
|
|
121
|
+
else
|
|
122
|
+
value
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
def valid?(value)
|
|
128
|
+
!value || allowable_values.include?(value)
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
|
|
107
132
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
108
133
|
def self.attribute_map
|
|
109
134
|
{
|
|
@@ -125,6 +150,7 @@ module UltracartClient
|
|
|
125
150
|
:'pricing_tier_name' => :'pricing_tier_name',
|
|
126
151
|
:'pricing_tier_oid' => :'pricing_tier_oid',
|
|
127
152
|
:'qb_class' => :'qb_class',
|
|
153
|
+
:'query_target' => :'query_target',
|
|
128
154
|
:'quickbooks_code' => :'quickbooks_code',
|
|
129
155
|
:'shipping_city' => :'shipping_city',
|
|
130
156
|
:'shipping_company' => :'shipping_company',
|
|
@@ -161,6 +187,7 @@ module UltracartClient
|
|
|
161
187
|
:'pricing_tier_name' => :'String',
|
|
162
188
|
:'pricing_tier_oid' => :'Integer',
|
|
163
189
|
:'qb_class' => :'String',
|
|
190
|
+
:'query_target' => :'String',
|
|
164
191
|
:'quickbooks_code' => :'String',
|
|
165
192
|
:'shipping_city' => :'String',
|
|
166
193
|
:'shipping_company' => :'String',
|
|
@@ -262,6 +289,10 @@ module UltracartClient
|
|
|
262
289
|
self.qb_class = attributes[:'qb_class']
|
|
263
290
|
end
|
|
264
291
|
|
|
292
|
+
if attributes.has_key?(:'query_target')
|
|
293
|
+
self.query_target = attributes[:'query_target']
|
|
294
|
+
end
|
|
295
|
+
|
|
265
296
|
if attributes.has_key?(:'quickbooks_code')
|
|
266
297
|
self.quickbooks_code = attributes[:'quickbooks_code']
|
|
267
298
|
end
|
|
@@ -407,6 +438,8 @@ module UltracartClient
|
|
|
407
438
|
return false if !@billing_postal_code.nil? && @billing_postal_code.to_s.length > 20
|
|
408
439
|
return false if !@billing_state.nil? && @billing_state.to_s.length > 32
|
|
409
440
|
return false if !@pricing_tier_name.nil? && @pricing_tier_name.to_s.length > 50
|
|
441
|
+
query_target_validator = EnumAttributeValidator.new('String', ['origin', 'cache'])
|
|
442
|
+
return false unless query_target_validator.valid?(@query_target)
|
|
410
443
|
return false if !@shipping_city.nil? && @shipping_city.to_s.length > 32
|
|
411
444
|
return false if !@shipping_company.nil? && @shipping_company.to_s.length > 50
|
|
412
445
|
return false if !@shipping_country_code.nil? && @shipping_country_code.to_s.length > 2
|
|
@@ -519,6 +552,16 @@ module UltracartClient
|
|
|
519
552
|
@pricing_tier_name = pricing_tier_name
|
|
520
553
|
end
|
|
521
554
|
|
|
555
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
556
|
+
# @param [Object] query_target Object to be assigned
|
|
557
|
+
def query_target=(query_target)
|
|
558
|
+
validator = EnumAttributeValidator.new('String', ['origin', 'cache'])
|
|
559
|
+
unless validator.valid?(query_target)
|
|
560
|
+
fail ArgumentError, 'invalid value for "query_target", must be one of #{validator.allowable_values}.'
|
|
561
|
+
end
|
|
562
|
+
@query_target = query_target
|
|
563
|
+
end
|
|
564
|
+
|
|
522
565
|
# Custom attribute writer method with validation
|
|
523
566
|
# @param [Object] shipping_city Value to be assigned
|
|
524
567
|
def shipping_city=(shipping_city)
|
|
@@ -632,6 +675,7 @@ module UltracartClient
|
|
|
632
675
|
pricing_tier_name == o.pricing_tier_name &&
|
|
633
676
|
pricing_tier_oid == o.pricing_tier_oid &&
|
|
634
677
|
qb_class == o.qb_class &&
|
|
678
|
+
query_target == o.query_target &&
|
|
635
679
|
quickbooks_code == o.quickbooks_code &&
|
|
636
680
|
shipping_city == o.shipping_city &&
|
|
637
681
|
shipping_company == o.shipping_company &&
|
|
@@ -655,7 +699,7 @@ module UltracartClient
|
|
|
655
699
|
# Calculates hash code according to all attributes.
|
|
656
700
|
# @return [Fixnum] Hash code
|
|
657
701
|
def hash
|
|
658
|
-
[all_tags, any_tags, billing_city, billing_company, billing_country_code, billing_day_phone, billing_evening_phone, billing_first_name, billing_last_name, billing_postal_code, billing_state, email, emails, last_modified_dts_end, last_modified_dts_start, pricing_tier_name, pricing_tier_oid, qb_class, quickbooks_code, shipping_city, shipping_company, shipping_country_code, shipping_day_phone, shipping_evening_phone, shipping_first_name, shipping_last_name, shipping_postal_code, shipping_state, signup_dts_end, signup_dts_start].hash
|
|
702
|
+
[all_tags, any_tags, billing_city, billing_company, billing_country_code, billing_day_phone, billing_evening_phone, billing_first_name, billing_last_name, billing_postal_code, billing_state, email, emails, last_modified_dts_end, last_modified_dts_start, pricing_tier_name, pricing_tier_oid, qb_class, query_target, quickbooks_code, shipping_city, shipping_company, shipping_country_code, shipping_day_phone, shipping_evening_phone, shipping_first_name, shipping_last_name, shipping_postal_code, shipping_state, signup_dts_end, signup_dts_start].hash
|
|
659
703
|
end
|
|
660
704
|
|
|
661
705
|
# Builds the object from hash
|
|
@@ -14,6 +14,12 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module UltracartClient
|
|
16
16
|
class EmailCommseqEmail
|
|
17
|
+
attr_accessor :ai_generation
|
|
18
|
+
|
|
19
|
+
attr_accessor :ai_generation_prompt
|
|
20
|
+
|
|
21
|
+
attr_accessor :ai_generation_user_id
|
|
22
|
+
|
|
17
23
|
# Deleted
|
|
18
24
|
attr_accessor :deleted
|
|
19
25
|
|
|
@@ -111,6 +117,9 @@ module UltracartClient
|
|
|
111
117
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
112
118
|
def self.attribute_map
|
|
113
119
|
{
|
|
120
|
+
:'ai_generation' => :'ai_generation',
|
|
121
|
+
:'ai_generation_prompt' => :'ai_generation_prompt',
|
|
122
|
+
:'ai_generation_user_id' => :'ai_generation_user_id',
|
|
114
123
|
:'deleted' => :'deleted',
|
|
115
124
|
:'edited_by_user' => :'edited_by_user',
|
|
116
125
|
:'email_communication_sequence_email_uuid' => :'email_communication_sequence_email_uuid',
|
|
@@ -151,6 +160,9 @@ module UltracartClient
|
|
|
151
160
|
# Attribute type mapping.
|
|
152
161
|
def self.swagger_types
|
|
153
162
|
{
|
|
163
|
+
:'ai_generation' => :'BOOLEAN',
|
|
164
|
+
:'ai_generation_prompt' => :'String',
|
|
165
|
+
:'ai_generation_user_id' => :'Integer',
|
|
154
166
|
:'deleted' => :'BOOLEAN',
|
|
155
167
|
:'edited_by_user' => :'String',
|
|
156
168
|
:'email_communication_sequence_email_uuid' => :'String',
|
|
@@ -196,6 +208,18 @@ module UltracartClient
|
|
|
196
208
|
# convert string to symbol for hash key
|
|
197
209
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
198
210
|
|
|
211
|
+
if attributes.has_key?(:'ai_generation')
|
|
212
|
+
self.ai_generation = attributes[:'ai_generation']
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
if attributes.has_key?(:'ai_generation_prompt')
|
|
216
|
+
self.ai_generation_prompt = attributes[:'ai_generation_prompt']
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if attributes.has_key?(:'ai_generation_user_id')
|
|
220
|
+
self.ai_generation_user_id = attributes[:'ai_generation_user_id']
|
|
221
|
+
end
|
|
222
|
+
|
|
199
223
|
if attributes.has_key?(:'deleted')
|
|
200
224
|
self.deleted = attributes[:'deleted']
|
|
201
225
|
end
|
|
@@ -351,6 +375,9 @@ module UltracartClient
|
|
|
351
375
|
def ==(o)
|
|
352
376
|
return true if self.equal?(o)
|
|
353
377
|
self.class == o.class &&
|
|
378
|
+
ai_generation == o.ai_generation &&
|
|
379
|
+
ai_generation_prompt == o.ai_generation_prompt &&
|
|
380
|
+
ai_generation_user_id == o.ai_generation_user_id &&
|
|
354
381
|
deleted == o.deleted &&
|
|
355
382
|
edited_by_user == o.edited_by_user &&
|
|
356
383
|
email_communication_sequence_email_uuid == o.email_communication_sequence_email_uuid &&
|
|
@@ -396,7 +423,7 @@ module UltracartClient
|
|
|
396
423
|
# Calculates hash code according to all attributes.
|
|
397
424
|
# @return [Fixnum] Hash code
|
|
398
425
|
def hash
|
|
399
|
-
[deleted, edited_by_user, email_communication_sequence_email_uuid, email_communication_sequence_uuid, email_container_cjson, email_container_cjson_last_modified_dts, email_template_vm_path, external_generation, external_generation_authentication, external_generation_basic_password, external_generation_basic_username, external_generation_header_name, external_generation_header_value, external_generation_id, external_generation_url, filter_profile_equation_json, individually_render, library_item_oid, magic_link, merchant_id, pending_review, preview_text, rejected, requires_review, screenshot_large_full_url, screenshot_large_viewport_url, screenshot_small_full_url, screenshot_small_viewport_url, smart_sending, storefront_oid, subject, suspended_for_spam, transactional_email, version].hash
|
|
426
|
+
[ai_generation, ai_generation_prompt, ai_generation_user_id, deleted, edited_by_user, email_communication_sequence_email_uuid, email_communication_sequence_uuid, email_container_cjson, email_container_cjson_last_modified_dts, email_template_vm_path, external_generation, external_generation_authentication, external_generation_basic_password, external_generation_basic_username, external_generation_header_name, external_generation_header_value, external_generation_id, external_generation_url, filter_profile_equation_json, individually_render, library_item_oid, magic_link, merchant_id, pending_review, preview_text, rejected, requires_review, screenshot_large_full_url, screenshot_large_viewport_url, screenshot_small_full_url, screenshot_small_viewport_url, smart_sending, storefront_oid, subject, suspended_for_spam, transactional_email, version].hash
|
|
400
427
|
end
|
|
401
428
|
|
|
402
429
|
# Builds the object from hash
|