ultracart_api 4.1.34 → 4.1.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 +4 -2
- data/docs/CustomerApi.md +61 -0
- data/docs/CustomerQuery.md +2 -0
- data/docs/EmailCommseqEmail.md +6 -0
- data/lib/ultracart_api/api/customer_api.rb +82 -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: 261a7f783b8e6549fc4e3bdf2dc2a11f4fd01a1b6fdf2ce06ca62d6057fe0847
|
|
4
|
+
data.tar.gz: '0168bf2bfbbac4dd6c3265823c02ad35fb909ec40d3a12e5667830bdadcf71ec'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f447501c910811d3bc63fa4559a6bfa4f5bf15ead6b661afb1ccdbf4f918d64857b89476981cde1efa14e7aeb597771e853d745e1aa2b719a051234a48bef76c
|
|
7
|
+
data.tar.gz: 5632695b743338ece4f79f0264094c436f98b68243735bf4ba157a9dc78e83d4e1a36f8fe2641cb0c7de8b1c1fb171de9e2f85e551b6088ac99e045eeaf178b9
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Note: Every method has a sample for every language. See https://github.com/Ultr
|
|
|
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.1.
|
|
10
|
+
- Package version: 4.1.35
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
- For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
|
|
|
16
16
|
gemfile:
|
|
17
17
|
|
|
18
18
|
```shell
|
|
19
|
-
gem 'ultracart_api', '4.1.
|
|
19
|
+
gem 'ultracart_api', '4.1.35'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
install:
|
|
@@ -266,6 +266,7 @@ Class | Method | HTTP request | Description
|
|
|
266
266
|
*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
|
|
267
267
|
*UltracartClient::CustomerApi* | [**merge_customer**](docs/CustomerApi.md#merge_customer) | **PUT** /customer/customers/{customer_profile_oid}/merge | Merge customer into this customer
|
|
268
268
|
*UltracartClient::CustomerApi* | [**search_customer_profile_values**](docs/CustomerApi.md#search_customer_profile_values) | **POST** /customer/search | Searches for all matching values (using POST)
|
|
269
|
+
*UltracartClient::CustomerApi* | [**search_customers**](docs/CustomerApi.md#search_customers) | **GET** /customer/customers/search | Search for customers
|
|
269
270
|
*UltracartClient::CustomerApi* | [**update_customer**](docs/CustomerApi.md#update_customer) | **PUT** /customer/customers/{customer_profile_oid} | Update a customer
|
|
270
271
|
*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
|
|
271
272
|
*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
|
|
@@ -1599,6 +1600,7 @@ Not every change is committed to every SDK.
|
|
|
1599
1600
|
|
|
1600
1601
|
| Version | Date | Comments |
|
|
1601
1602
|
| --: | :-: | --- |
|
|
1603
|
+
| 4.1.35 | 12/02/2025 | caching option added to getCustomers, created new method searchCustomers |
|
|
1602
1604
|
| 4.1.34 | 12/02/2025 | coupons - added optional free specific shipping method to two coupons |
|
|
1603
1605
|
| 4.1.33 | 11/26/2025 | conversation - AI agent profile fields |
|
|
1604
1606
|
| 4.1.32 | 11/20/2025 | conversion api bug fix on incorrect signature |
|
data/docs/CustomerApi.md
CHANGED
|
@@ -24,6 +24,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
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 |
|
|
@@ -2181,6 +2182,66 @@ end
|
|
|
2181
2182
|
- **Accept**: application/json
|
|
2182
2183
|
|
|
2183
2184
|
|
|
2185
|
+
## search_customers
|
|
2186
|
+
|
|
2187
|
+
> <CustomersResponse> search_customers(opts)
|
|
2188
|
+
|
|
2189
|
+
Search for customers
|
|
2190
|
+
|
|
2191
|
+
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.
|
|
2192
|
+
|
|
2193
|
+
|
|
2194
|
+
### Examples
|
|
2195
|
+
|
|
2196
|
+
|
|
2197
|
+
(No example for this operation).
|
|
2198
|
+
|
|
2199
|
+
|
|
2200
|
+
#### Using the search_customers_with_http_info variant
|
|
2201
|
+
|
|
2202
|
+
This returns an Array which contains the response data, status code and headers.
|
|
2203
|
+
|
|
2204
|
+
> <Array(<CustomersResponse>, Integer, Hash)> search_customers_with_http_info(opts)
|
|
2205
|
+
|
|
2206
|
+
```ruby
|
|
2207
|
+
begin
|
|
2208
|
+
# Search for customers
|
|
2209
|
+
data, status_code, headers = api_instance.search_customers_with_http_info(opts)
|
|
2210
|
+
p status_code # => 2xx
|
|
2211
|
+
p headers # => { ... }
|
|
2212
|
+
p data # => <CustomersResponse>
|
|
2213
|
+
rescue UltracartClient::ApiError => e
|
|
2214
|
+
puts "Error when calling CustomerApi->search_customers_with_http_info: #{e}"
|
|
2215
|
+
end
|
|
2216
|
+
```
|
|
2217
|
+
|
|
2218
|
+
### Parameters
|
|
2219
|
+
|
|
2220
|
+
| Name | Type | Description | Notes |
|
|
2221
|
+
| ---- | ---- | ----------- | ----- |
|
|
2222
|
+
| **search_string** | **String** | Search | [optional] |
|
|
2223
|
+
| **signup_dts_start** | **String** | Signup date start | [optional] |
|
|
2224
|
+
| **signup_dts_end** | **String** | Signup date end | [optional] |
|
|
2225
|
+
| **_limit** | **Integer** | The maximum number of records to return on this one API call. (Max 200) | [optional][default to 100] |
|
|
2226
|
+
| **_offset** | **Integer** | Pagination of the record set. Offset is a zero based index. | [optional][default to 0] |
|
|
2227
|
+
| **_since** | **String** | Fetch customers that have been created/modified since this date/time. | [optional] |
|
|
2228
|
+
| **_sort** | **String** | The sort order of the customers. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional] |
|
|
2229
|
+
| **_expand** | **String** | The object expansion to perform on the result. See documentation for examples | [optional] |
|
|
2230
|
+
|
|
2231
|
+
### Return type
|
|
2232
|
+
|
|
2233
|
+
[**CustomersResponse**](CustomersResponse.md)
|
|
2234
|
+
|
|
2235
|
+
### Authorization
|
|
2236
|
+
|
|
2237
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
2238
|
+
|
|
2239
|
+
### HTTP request headers
|
|
2240
|
+
|
|
2241
|
+
- **Content-Type**: Not defined
|
|
2242
|
+
- **Accept**: application/json
|
|
2243
|
+
|
|
2244
|
+
|
|
2184
2245
|
## update_customer
|
|
2185
2246
|
|
|
2186
2247
|
> <CustomerResponse> update_customer(customer_profile_oid, customer, opts)
|
data/docs/CustomerQuery.md
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
| **pricing_tier_name** | **String** | Pricing tier name | [optional] |
|
|
23
23
|
| **pricing_tier_oid** | **Integer** | Pricing tier oid | [optional] |
|
|
24
24
|
| **qb_class** | **String** | QuickBooks class to import this customer as | [optional] |
|
|
25
|
+
| **query_target** | **String** | Query Target | [optional] |
|
|
25
26
|
| **quickbooks_code** | **String** | QuickBooks name to import this customer as | [optional] |
|
|
26
27
|
| **shipping_city** | **String** | Billing city | [optional] |
|
|
27
28
|
| **shipping_company** | **String** | Billing company | [optional] |
|
|
@@ -59,6 +60,7 @@ instance = UltracartClient::CustomerQuery.new(
|
|
|
59
60
|
pricing_tier_name: null,
|
|
60
61
|
pricing_tier_oid: null,
|
|
61
62
|
qb_class: null,
|
|
63
|
+
query_target: null,
|
|
62
64
|
quickbooks_code: null,
|
|
63
65
|
shipping_city: null,
|
|
64
66
|
shipping_company: null,
|
data/docs/EmailCommseqEmail.md
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **ai_generation** | **Boolean** | | [optional] |
|
|
8
|
+
| **ai_generation_prompt** | **String** | | [optional] |
|
|
9
|
+
| **ai_generation_user_id** | **Integer** | | [optional] |
|
|
7
10
|
| **deleted** | **Boolean** | Deleted | [optional] |
|
|
8
11
|
| **edited_by_user** | **String** | Edited by user | [optional] |
|
|
9
12
|
| **email_communication_sequence_email_uuid** | **String** | Email communication sequence email uuid | [optional] |
|
|
@@ -45,6 +48,9 @@
|
|
|
45
48
|
require 'ultracart_api'
|
|
46
49
|
|
|
47
50
|
instance = UltracartClient::EmailCommseqEmail.new(
|
|
51
|
+
ai_generation: null,
|
|
52
|
+
ai_generation_prompt: null,
|
|
53
|
+
ai_generation_user_id: null,
|
|
48
54
|
deleted: null,
|
|
49
55
|
edited_by_user: null,
|
|
50
56
|
email_communication_sequence_email_uuid: null,
|
|
@@ -1494,6 +1494,88 @@ module UltracartClient
|
|
|
1494
1494
|
return data, status_code, headers
|
|
1495
1495
|
end
|
|
1496
1496
|
|
|
1497
|
+
# Search for customers
|
|
1498
|
+
# 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.
|
|
1499
|
+
# @param [Hash] opts the optional parameters
|
|
1500
|
+
# @option opts [String] :search_string Search
|
|
1501
|
+
# @option opts [String] :signup_dts_start Signup date start
|
|
1502
|
+
# @option opts [String] :signup_dts_end Signup date end
|
|
1503
|
+
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
|
|
1504
|
+
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
|
|
1505
|
+
# @option opts [String] :_since Fetch customers that have been created/modified since this date/time.
|
|
1506
|
+
# @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.
|
|
1507
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
|
1508
|
+
# @return [CustomersResponse]
|
|
1509
|
+
def search_customers(opts = {})
|
|
1510
|
+
data, _status_code, _headers = search_customers_with_http_info(opts)
|
|
1511
|
+
data
|
|
1512
|
+
end
|
|
1513
|
+
|
|
1514
|
+
# Search for customers
|
|
1515
|
+
# 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.
|
|
1516
|
+
# @param [Hash] opts the optional parameters
|
|
1517
|
+
# @option opts [String] :search_string Search
|
|
1518
|
+
# @option opts [String] :signup_dts_start Signup date start
|
|
1519
|
+
# @option opts [String] :signup_dts_end Signup date end
|
|
1520
|
+
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
|
|
1521
|
+
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
|
|
1522
|
+
# @option opts [String] :_since Fetch customers that have been created/modified since this date/time.
|
|
1523
|
+
# @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.
|
|
1524
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
|
1525
|
+
# @return [Array<(CustomersResponse, Integer, Hash)>] CustomersResponse data, response status code and response headers
|
|
1526
|
+
def search_customers_with_http_info(opts = {})
|
|
1527
|
+
if @api_client.config.debugging
|
|
1528
|
+
@api_client.config.logger.debug 'Calling API: CustomerApi.search_customers ...'
|
|
1529
|
+
end
|
|
1530
|
+
# resource path
|
|
1531
|
+
local_var_path = '/customer/customers/search'
|
|
1532
|
+
|
|
1533
|
+
# query parameters
|
|
1534
|
+
query_params = opts[:query_params] || {}
|
|
1535
|
+
query_params[:'search_string'] = opts[:'search_string'] if !opts[:'search_string'].nil?
|
|
1536
|
+
query_params[:'signup_dts_start'] = opts[:'signup_dts_start'] if !opts[:'signup_dts_start'].nil?
|
|
1537
|
+
query_params[:'signup_dts_end'] = opts[:'signup_dts_end'] if !opts[:'signup_dts_end'].nil?
|
|
1538
|
+
query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
|
|
1539
|
+
query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
|
|
1540
|
+
query_params[:'_since'] = opts[:'_since'] if !opts[:'_since'].nil?
|
|
1541
|
+
query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
|
|
1542
|
+
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
|
1543
|
+
|
|
1544
|
+
# header parameters
|
|
1545
|
+
header_params = opts[:header_params] || {}
|
|
1546
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
1547
|
+
# HTTP header 'Accept' (if needed)
|
|
1548
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1549
|
+
|
|
1550
|
+
# form parameters
|
|
1551
|
+
form_params = opts[:form_params] || {}
|
|
1552
|
+
|
|
1553
|
+
# http body (model)
|
|
1554
|
+
post_body = opts[:debug_body]
|
|
1555
|
+
|
|
1556
|
+
# return_type
|
|
1557
|
+
return_type = opts[:debug_return_type] || 'CustomersResponse'
|
|
1558
|
+
|
|
1559
|
+
# auth_names
|
|
1560
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
1561
|
+
|
|
1562
|
+
new_options = opts.merge(
|
|
1563
|
+
:operation => :"CustomerApi.search_customers",
|
|
1564
|
+
:header_params => header_params,
|
|
1565
|
+
:query_params => query_params,
|
|
1566
|
+
:form_params => form_params,
|
|
1567
|
+
:body => post_body,
|
|
1568
|
+
:auth_names => auth_names,
|
|
1569
|
+
:return_type => return_type
|
|
1570
|
+
)
|
|
1571
|
+
|
|
1572
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1573
|
+
if @api_client.config.debugging
|
|
1574
|
+
@api_client.config.logger.debug "API called: CustomerApi#search_customers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1575
|
+
end
|
|
1576
|
+
return data, status_code, headers
|
|
1577
|
+
end
|
|
1578
|
+
|
|
1497
1579
|
# Update a customer
|
|
1498
1580
|
# Update a customer on the UltraCart account.
|
|
1499
1581
|
# @param customer_profile_oid [Integer] The customer_profile_oid to update.
|
|
@@ -69,6 +69,9 @@ module UltracartClient
|
|
|
69
69
|
# QuickBooks class to import this customer as
|
|
70
70
|
attr_accessor :qb_class
|
|
71
71
|
|
|
72
|
+
# Query Target
|
|
73
|
+
attr_accessor :query_target
|
|
74
|
+
|
|
72
75
|
# QuickBooks name to import this customer as
|
|
73
76
|
attr_accessor :quickbooks_code
|
|
74
77
|
|
|
@@ -105,6 +108,28 @@ module UltracartClient
|
|
|
105
108
|
# Signup date start
|
|
106
109
|
attr_accessor :signup_dts_start
|
|
107
110
|
|
|
111
|
+
class EnumAttributeValidator
|
|
112
|
+
attr_reader :datatype
|
|
113
|
+
attr_reader :allowable_values
|
|
114
|
+
|
|
115
|
+
def initialize(datatype, allowable_values)
|
|
116
|
+
@allowable_values = allowable_values.map do |value|
|
|
117
|
+
case datatype.to_s
|
|
118
|
+
when /Integer/i
|
|
119
|
+
value.to_i
|
|
120
|
+
when /Float/i
|
|
121
|
+
value.to_f
|
|
122
|
+
else
|
|
123
|
+
value
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
def valid?(value)
|
|
129
|
+
!value || allowable_values.include?(value)
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
108
133
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
109
134
|
def self.attribute_map
|
|
110
135
|
{
|
|
@@ -126,6 +151,7 @@ module UltracartClient
|
|
|
126
151
|
:'pricing_tier_name' => :'pricing_tier_name',
|
|
127
152
|
:'pricing_tier_oid' => :'pricing_tier_oid',
|
|
128
153
|
:'qb_class' => :'qb_class',
|
|
154
|
+
:'query_target' => :'query_target',
|
|
129
155
|
:'quickbooks_code' => :'quickbooks_code',
|
|
130
156
|
:'shipping_city' => :'shipping_city',
|
|
131
157
|
:'shipping_company' => :'shipping_company',
|
|
@@ -167,6 +193,7 @@ module UltracartClient
|
|
|
167
193
|
:'pricing_tier_name' => :'String',
|
|
168
194
|
:'pricing_tier_oid' => :'Integer',
|
|
169
195
|
:'qb_class' => :'String',
|
|
196
|
+
:'query_target' => :'String',
|
|
170
197
|
:'quickbooks_code' => :'String',
|
|
171
198
|
:'shipping_city' => :'String',
|
|
172
199
|
:'shipping_company' => :'String',
|
|
@@ -281,6 +308,10 @@ module UltracartClient
|
|
|
281
308
|
self.qb_class = attributes[:'qb_class']
|
|
282
309
|
end
|
|
283
310
|
|
|
311
|
+
if attributes.key?(:'query_target')
|
|
312
|
+
self.query_target = attributes[:'query_target']
|
|
313
|
+
end
|
|
314
|
+
|
|
284
315
|
if attributes.key?(:'quickbooks_code')
|
|
285
316
|
self.quickbooks_code = attributes[:'quickbooks_code']
|
|
286
317
|
end
|
|
@@ -426,6 +457,8 @@ module UltracartClient
|
|
|
426
457
|
return false if !@billing_postal_code.nil? && @billing_postal_code.to_s.length > 20
|
|
427
458
|
return false if !@billing_state.nil? && @billing_state.to_s.length > 32
|
|
428
459
|
return false if !@pricing_tier_name.nil? && @pricing_tier_name.to_s.length > 50
|
|
460
|
+
query_target_validator = EnumAttributeValidator.new('String', ["origin", "cache"])
|
|
461
|
+
return false unless query_target_validator.valid?(@query_target)
|
|
429
462
|
return false if !@shipping_city.nil? && @shipping_city.to_s.length > 32
|
|
430
463
|
return false if !@shipping_company.nil? && @shipping_company.to_s.length > 50
|
|
431
464
|
return false if !@shipping_country_code.nil? && @shipping_country_code.to_s.length > 2
|
|
@@ -538,6 +571,16 @@ module UltracartClient
|
|
|
538
571
|
@pricing_tier_name = pricing_tier_name
|
|
539
572
|
end
|
|
540
573
|
|
|
574
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
575
|
+
# @param [Object] query_target Object to be assigned
|
|
576
|
+
def query_target=(query_target)
|
|
577
|
+
validator = EnumAttributeValidator.new('String', ["origin", "cache"])
|
|
578
|
+
unless validator.valid?(query_target)
|
|
579
|
+
fail ArgumentError, "invalid value for \"query_target\", must be one of #{validator.allowable_values}."
|
|
580
|
+
end
|
|
581
|
+
@query_target = query_target
|
|
582
|
+
end
|
|
583
|
+
|
|
541
584
|
# Custom attribute writer method with validation
|
|
542
585
|
# @param [Object] shipping_city Value to be assigned
|
|
543
586
|
def shipping_city=(shipping_city)
|
|
@@ -651,6 +694,7 @@ module UltracartClient
|
|
|
651
694
|
pricing_tier_name == o.pricing_tier_name &&
|
|
652
695
|
pricing_tier_oid == o.pricing_tier_oid &&
|
|
653
696
|
qb_class == o.qb_class &&
|
|
697
|
+
query_target == o.query_target &&
|
|
654
698
|
quickbooks_code == o.quickbooks_code &&
|
|
655
699
|
shipping_city == o.shipping_city &&
|
|
656
700
|
shipping_company == o.shipping_company &&
|
|
@@ -674,7 +718,7 @@ module UltracartClient
|
|
|
674
718
|
# Calculates hash code according to all attributes.
|
|
675
719
|
# @return [Integer] Hash code
|
|
676
720
|
def hash
|
|
677
|
-
[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
|
|
721
|
+
[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
|
|
678
722
|
end
|
|
679
723
|
|
|
680
724
|
# Builds the object from hash
|
|
@@ -15,6 +15,12 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module UltracartClient
|
|
17
17
|
class EmailCommseqEmail
|
|
18
|
+
attr_accessor :ai_generation
|
|
19
|
+
|
|
20
|
+
attr_accessor :ai_generation_prompt
|
|
21
|
+
|
|
22
|
+
attr_accessor :ai_generation_user_id
|
|
23
|
+
|
|
18
24
|
# Deleted
|
|
19
25
|
attr_accessor :deleted
|
|
20
26
|
|
|
@@ -112,6 +118,9 @@ module UltracartClient
|
|
|
112
118
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
113
119
|
def self.attribute_map
|
|
114
120
|
{
|
|
121
|
+
:'ai_generation' => :'ai_generation',
|
|
122
|
+
:'ai_generation_prompt' => :'ai_generation_prompt',
|
|
123
|
+
:'ai_generation_user_id' => :'ai_generation_user_id',
|
|
115
124
|
:'deleted' => :'deleted',
|
|
116
125
|
:'edited_by_user' => :'edited_by_user',
|
|
117
126
|
:'email_communication_sequence_email_uuid' => :'email_communication_sequence_email_uuid',
|
|
@@ -157,6 +166,9 @@ module UltracartClient
|
|
|
157
166
|
# Attribute type mapping.
|
|
158
167
|
def self.openapi_types
|
|
159
168
|
{
|
|
169
|
+
:'ai_generation' => :'Boolean',
|
|
170
|
+
:'ai_generation_prompt' => :'String',
|
|
171
|
+
:'ai_generation_user_id' => :'Integer',
|
|
160
172
|
:'deleted' => :'Boolean',
|
|
161
173
|
:'edited_by_user' => :'String',
|
|
162
174
|
:'email_communication_sequence_email_uuid' => :'String',
|
|
@@ -215,6 +227,18 @@ module UltracartClient
|
|
|
215
227
|
h[k.to_sym] = v
|
|
216
228
|
}
|
|
217
229
|
|
|
230
|
+
if attributes.key?(:'ai_generation')
|
|
231
|
+
self.ai_generation = attributes[:'ai_generation']
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if attributes.key?(:'ai_generation_prompt')
|
|
235
|
+
self.ai_generation_prompt = attributes[:'ai_generation_prompt']
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if attributes.key?(:'ai_generation_user_id')
|
|
239
|
+
self.ai_generation_user_id = attributes[:'ai_generation_user_id']
|
|
240
|
+
end
|
|
241
|
+
|
|
218
242
|
if attributes.key?(:'deleted')
|
|
219
243
|
self.deleted = attributes[:'deleted']
|
|
220
244
|
end
|
|
@@ -370,6 +394,9 @@ module UltracartClient
|
|
|
370
394
|
def ==(o)
|
|
371
395
|
return true if self.equal?(o)
|
|
372
396
|
self.class == o.class &&
|
|
397
|
+
ai_generation == o.ai_generation &&
|
|
398
|
+
ai_generation_prompt == o.ai_generation_prompt &&
|
|
399
|
+
ai_generation_user_id == o.ai_generation_user_id &&
|
|
373
400
|
deleted == o.deleted &&
|
|
374
401
|
edited_by_user == o.edited_by_user &&
|
|
375
402
|
email_communication_sequence_email_uuid == o.email_communication_sequence_email_uuid &&
|
|
@@ -415,7 +442,7 @@ module UltracartClient
|
|
|
415
442
|
# Calculates hash code according to all attributes.
|
|
416
443
|
# @return [Integer] Hash code
|
|
417
444
|
def hash
|
|
418
|
-
[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
|
|
445
|
+
[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
|
|
419
446
|
end
|
|
420
447
|
|
|
421
448
|
# Builds the object from hash
|