ultracart_api 3.11.33 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d508630490dcc323c85795f81f82eb287507dc1fd2f0364b23265aae228d9f34
4
- data.tar.gz: 278463342c54274fdc77271d5cea1f56dfa628b55102bdbfcec328da07ea0547
3
+ metadata.gz: 74fd0a3b8e29bca5d8137de15d5dbf25af8aa34c49b6fa876256fc02b26d6dcc
4
+ data.tar.gz: 2caec0dcab300c7e0b5cfa04107a1216b4142e623962823040cbb7abd3d3e116
5
5
  SHA512:
6
- metadata.gz: 0ab7d5fd8f7846ff9c6f6c097dfd849690fa15af0d4a2836a8a3704ce4f43f1d3d2dd1c0e6a25e3fc99b5ba54715da8885ab71b96aa976c2a3a0131871ac841e
7
- data.tar.gz: 36089124805452a530233b7253e4e7ed0fe4354959fa12f15b3f1c4265594f14fc9e0f9b64a055edc1a51941181ec0b6818175ddeac1c377126d311d334e7989
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.33
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.33.gem
27
+ gem install ./ultracart_api-3.11.35.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.11.33.gem` to install the development dependencies)
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.33'
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,8 @@ 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 |
1606
+ | 3.11.34 | 12/02/2025 | coupons - added optional free specific shipping method to two coupons |
1604
1607
  | 3.11.33 | 11/26/2025 | conversation - AI agent profile fields |
1605
1608
  | 3.11.32 | 11/20/2025 | conversion api bug fix on incorrect signature |
1606
1609
  | 3.11.31 | 11/20/2025 | conversation - AI agent mcp server tools function |
@@ -7,5 +7,6 @@ Name | Type | Description | Notes
7
7
  **limit** | **Integer** | The (optional) maximum quantity of discounted items. Free shipping will apply to all units of the free item ids though. | [optional]
8
8
  **match_required_purchase_item_to_free_item** | **BOOLEAN** | If true then the free item is matched 1:1 with the free item in the list. | [optional]
9
9
  **required_purchase_items** | **Array<String>** | Required items (at least one from the list) that must be purchased for coupon to be valid | [optional]
10
+ **shipping_methods** | **Array<String>** | One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods | [optional]
10
11
 
11
12
 
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
8
8
  **excluded_items** | **Array<String>** | A list of items which cannot be discounted. | [optional]
9
9
  **item_tags** | **Array<String>** | An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items. | [optional]
10
10
  **items** | **Array<String>** | An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items. | [optional]
11
+ **shipping_methods** | **Array<String>** | One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods | [optional]
11
12
 
12
13
 
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
 
@@ -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]
@@ -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
@@ -26,13 +26,17 @@ module UltracartClient
26
26
  # Required items (at least one from the list) that must be purchased for coupon to be valid
27
27
  attr_accessor :required_purchase_items
28
28
 
29
+ # One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods
30
+ attr_accessor :shipping_methods
31
+
29
32
  # Attribute mapping from ruby-style variable name to JSON key.
30
33
  def self.attribute_map
31
34
  {
32
35
  :'items' => :'items',
33
36
  :'limit' => :'limit',
34
37
  :'match_required_purchase_item_to_free_item' => :'match_required_purchase_item_to_free_item',
35
- :'required_purchase_items' => :'required_purchase_items'
38
+ :'required_purchase_items' => :'required_purchase_items',
39
+ :'shipping_methods' => :'shipping_methods'
36
40
  }
37
41
  end
38
42
 
@@ -42,7 +46,8 @@ module UltracartClient
42
46
  :'items' => :'Array<String>',
43
47
  :'limit' => :'Integer',
44
48
  :'match_required_purchase_item_to_free_item' => :'BOOLEAN',
45
- :'required_purchase_items' => :'Array<String>'
49
+ :'required_purchase_items' => :'Array<String>',
50
+ :'shipping_methods' => :'Array<String>'
46
51
  }
47
52
  end
48
53
 
@@ -73,6 +78,12 @@ module UltracartClient
73
78
  self.required_purchase_items = value
74
79
  end
75
80
  end
81
+
82
+ if attributes.has_key?(:'shipping_methods')
83
+ if (value = attributes[:'shipping_methods']).is_a?(Array)
84
+ self.shipping_methods = value
85
+ end
86
+ end
76
87
  end
77
88
 
78
89
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -96,7 +107,8 @@ module UltracartClient
96
107
  items == o.items &&
97
108
  limit == o.limit &&
98
109
  match_required_purchase_item_to_free_item == o.match_required_purchase_item_to_free_item &&
99
- required_purchase_items == o.required_purchase_items
110
+ required_purchase_items == o.required_purchase_items &&
111
+ shipping_methods == o.shipping_methods
100
112
  end
101
113
 
102
114
  # @see the `==` method
@@ -108,7 +120,7 @@ module UltracartClient
108
120
  # Calculates hash code according to all attributes.
109
121
  # @return [Fixnum] Hash code
110
122
  def hash
111
- [items, limit, match_required_purchase_item_to_free_item, required_purchase_items].hash
123
+ [items, limit, match_required_purchase_item_to_free_item, required_purchase_items, shipping_methods].hash
112
124
  end
113
125
 
114
126
  # Builds the object from hash
@@ -29,6 +29,9 @@ module UltracartClient
29
29
  # An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items.
30
30
  attr_accessor :items
31
31
 
32
+ # One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods
33
+ attr_accessor :shipping_methods
34
+
32
35
  # Attribute mapping from ruby-style variable name to JSON key.
33
36
  def self.attribute_map
34
37
  {
@@ -36,7 +39,8 @@ module UltracartClient
36
39
  :'excluded_item_tags' => :'excluded_item_tags',
37
40
  :'excluded_items' => :'excluded_items',
38
41
  :'item_tags' => :'item_tags',
39
- :'items' => :'items'
42
+ :'items' => :'items',
43
+ :'shipping_methods' => :'shipping_methods'
40
44
  }
41
45
  end
42
46
 
@@ -47,7 +51,8 @@ module UltracartClient
47
51
  :'excluded_item_tags' => :'Array<String>',
48
52
  :'excluded_items' => :'Array<String>',
49
53
  :'item_tags' => :'Array<String>',
50
- :'items' => :'Array<String>'
54
+ :'items' => :'Array<String>',
55
+ :'shipping_methods' => :'Array<String>'
51
56
  }
52
57
  end
53
58
 
@@ -86,6 +91,12 @@ module UltracartClient
86
91
  self.items = value
87
92
  end
88
93
  end
94
+
95
+ if attributes.has_key?(:'shipping_methods')
96
+ if (value = attributes[:'shipping_methods']).is_a?(Array)
97
+ self.shipping_methods = value
98
+ end
99
+ end
89
100
  end
90
101
 
91
102
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -110,7 +121,8 @@ module UltracartClient
110
121
  excluded_item_tags == o.excluded_item_tags &&
111
122
  excluded_items == o.excluded_items &&
112
123
  item_tags == o.item_tags &&
113
- items == o.items
124
+ items == o.items &&
125
+ shipping_methods == o.shipping_methods
114
126
  end
115
127
 
116
128
  # @see the `==` method
@@ -122,7 +134,7 @@ module UltracartClient
122
134
  # Calculates hash code according to all attributes.
123
135
  # @return [Fixnum] Hash code
124
136
  def hash
125
- [discount_percent, excluded_item_tags, excluded_items, item_tags, items].hash
137
+ [discount_percent, excluded_item_tags, excluded_items, item_tags, items, shipping_methods].hash
126
138
  end
127
139
 
128
140
  # Builds the object from hash
@@ -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
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.11.33'
14
+ VERSION = '3.11.35'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.33
4
+ version: 3.11.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-26 00:00:00.000000000 Z
11
+ date: 2025-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus