ultracart_api 4.0.229 → 4.0.231

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: c62128e1dbf30d44830aa3a3c6e8cf46711a5db7e9ca4b8f41d8e434ff1d6d45
4
- data.tar.gz: f6ad2bcde2593443d1e197da8e4b5e61d97516960e369a73ffd609d0052972e6
3
+ metadata.gz: 34974570592c4f662df1ba6c7ce249cfe01b8b4179c378df6f83c5421fa6e202
4
+ data.tar.gz: 20497ccdc504bc640cd8e7601d5afe0add61a3fce7eb186ab08dfaedf9bd4278
5
5
  SHA512:
6
- metadata.gz: 8d73950f7668ce84376204a2aee27b3113310d820c6c6d09a73f6134ac45d5980a3eb30da519b165a9644f3bbd31235be934f453531ff0db017965c818a216d1
7
- data.tar.gz: 8a5d17361aa10a27bdb1faf46650d30464e628398db137a63152431ba7d204edf1ee243f8b078af1b23b0abbeaa044a86bbceee1e95a7da3c42092038fb6f764
6
+ metadata.gz: 91b1dca1e3b6a22f338adc4aab73471c2d4e622071e35102931456dbbd9eedf36a874b725f0b3d60efb59d0bc0773fb68233b427b89bc14c415a8f971c50f11e
7
+ data.tar.gz: a83f3fa625fc07ac0d5fa1eb28b0f55b9e8c760cf1c5915a4841f822079bbee01980ce237c1376eed283d2814f77663f002dcf77d944d6d689ffb3ce39389cd8
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.229
10
+ - Package version: 4.0.231
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.229.gem
27
+ gem install ./ultracart_api-4.0.231.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.229.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.231.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.229'
36
+ gem 'ultracart_api', '~> 4.0.231'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -500,6 +500,7 @@ Class | Method | HTTP request | Description
500
500
  *UltracartClient::StorefrontApi* | [**sequence_test**](docs/StorefrontApi.md#sequence_test) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/test | Sequence test
501
501
  *UltracartClient::StorefrontApi* | [**start_email_campaign**](docs/StorefrontApi.md#start_email_campaign) | **PUT** /storefront/{storefront_oid}/email/campaigns/{email_campaign_uuid}/start | Start email campaign
502
502
  *UltracartClient::StorefrontApi* | [**subscribe_to_email_list**](docs/StorefrontApi.md#subscribe_to_email_list) | **POST** /storefront/{storefront_oid}/email/lists/{email_list_uuid}/subscribe | Subscribe customers to email list
503
+ *UltracartClient::StorefrontApi* | [**sunset_email_segment**](docs/StorefrontApi.md#sunset_email_segment) | **PUT** /storefront/{storefront_oid}/email/segments/{email_segment_uuid}/sunset | Sunset email segment
503
504
  *UltracartClient::StorefrontApi* | [**unfavorite_screen_recording**](docs/StorefrontApi.md#unfavorite_screen_recording) | **DELETE** /storefront/{storefront_oid}/screen_recordings/{screen_recording_uuid}/favorite | Remove favorite flag on screen recording
504
505
  *UltracartClient::StorefrontApi* | [**update_email_campaign**](docs/StorefrontApi.md#update_email_campaign) | **PUT** /storefront/{storefront_oid}/email/campaigns/{email_campaign_uuid} | Update email campaign
505
506
  *UltracartClient::StorefrontApi* | [**update_email_campaign_folder**](docs/StorefrontApi.md#update_email_campaign_folder) | **PUT** /storefront/{storefront_oid}/email/campaign_folders/{email_campaign_folder_uuid} | Update email campaign folder
@@ -1517,6 +1518,8 @@ Not every change is committed to every SDK.
1517
1518
 
1518
1519
  | Version | Date | Comments |
1519
1520
  | --: | :-: | --- |
1521
+ | 4.0.231 | 08/08/2024 | added query_target to OrderApi.getOrdersBatch to allow cache usage |
1522
+ | 4.0.230 | 06/24/2024 | conversation object cleanup |
1520
1523
  | 4.0.229 | 06/14/2024 | pbx menu - add say voice property |
1521
1524
  | 4.0.228 | 06/07/2024 | conversation pbx - adjust agent voicemail box uuid fields |
1522
1525
  | 4.0.227 | 06/03/2024 | conversationPbxPhoneNumber - fix serialized name for phone number UUID |
data/docs/OrderApi.md CHANGED
@@ -1590,6 +1590,7 @@ opts = {
1590
1590
  manual_refund: true, # Boolean | Consider a manual refund done externally
1591
1591
  reverse_affiliate_transactions: true, # Boolean | Reverse affiliate transactions
1592
1592
  issue_store_credit: true, # Boolean | Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
1593
+ auto_order_cancel_reason: 'auto_order_cancel_reason_example', # String | Reason for auto orders cancellation
1593
1594
  _expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples
1594
1595
  }
1595
1596
 
@@ -1632,6 +1633,7 @@ end
1632
1633
  | **manual_refund** | **Boolean** | Consider a manual refund done externally | [optional][default to false] |
1633
1634
  | **reverse_affiliate_transactions** | **Boolean** | Reverse affiliate transactions | [optional][default to true] |
1634
1635
  | **issue_store_credit** | **Boolean** | Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account | [optional][default to false] |
1636
+ | **auto_order_cancel_reason** | **String** | Reason for auto orders cancellation | [optional] |
1635
1637
  | **_expand** | **String** | The object expansion to perform on the result. See documentation for examples | [optional] |
1636
1638
 
1637
1639
  ### Return type
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **order_ids** | **Array<String>** | Order IDs | [optional] |
8
+ | **query_target** | **String** | Query Target | [optional] |
8
9
 
9
10
  ## Example
10
11
 
@@ -12,7 +13,8 @@
12
13
  require 'ultracart_api'
13
14
 
14
15
  instance = UltracartClient::OrderQueryBatch.new(
15
- order_ids: null
16
+ order_ids: null,
17
+ query_target: null
16
18
  )
17
19
  ```
18
20
 
data/docs/SelfConfig.md CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **exempt_from_colorado_retail_delivery_fee** | **Boolean** | True if the Colorado Retail Delivery Fee should not be collected | [optional] |
8
+ | **exempt_from_minnesota_retail_delivery_fee** | **Boolean** | True if the Minnesota Retail Delivery Fee should not be collected | [optional] |
7
9
  | **tax_billing** | **Boolean** | True if sales tax should be collected based on billing address instead of shipping address | [optional] |
8
10
 
9
11
  ## Example
@@ -12,6 +14,8 @@
12
14
  require 'ultracart_api'
13
15
 
14
16
  instance = UltracartClient::SelfConfig.new(
17
+ exempt_from_colorado_retail_delivery_fee: null,
18
+ exempt_from_minnesota_retail_delivery_fee: null,
15
19
  tax_billing: null
16
20
  )
17
21
  ```
@@ -154,6 +154,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
154
154
  | [**sequence_test**](StorefrontApi.md#sequence_test) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/test | Sequence test |
155
155
  | [**start_email_campaign**](StorefrontApi.md#start_email_campaign) | **PUT** /storefront/{storefront_oid}/email/campaigns/{email_campaign_uuid}/start | Start email campaign |
156
156
  | [**subscribe_to_email_list**](StorefrontApi.md#subscribe_to_email_list) | **POST** /storefront/{storefront_oid}/email/lists/{email_list_uuid}/subscribe | Subscribe customers to email list |
157
+ | [**sunset_email_segment**](StorefrontApi.md#sunset_email_segment) | **PUT** /storefront/{storefront_oid}/email/segments/{email_segment_uuid}/sunset | Sunset email segment |
157
158
  | [**unfavorite_screen_recording**](StorefrontApi.md#unfavorite_screen_recording) | **DELETE** /storefront/{storefront_oid}/screen_recordings/{screen_recording_uuid}/favorite | Remove favorite flag on screen recording |
158
159
  | [**update_email_campaign**](StorefrontApi.md#update_email_campaign) | **PUT** /storefront/{storefront_oid}/email/campaigns/{email_campaign_uuid} | Update email campaign |
159
160
  | [**update_email_campaign_folder**](StorefrontApi.md#update_email_campaign_folder) | **PUT** /storefront/{storefront_oid}/email/campaign_folders/{email_campaign_folder_uuid} | Update email campaign folder |
@@ -10943,6 +10944,76 @@ end
10943
10944
  - **Accept**: application/json
10944
10945
 
10945
10946
 
10947
+ ## sunset_email_segment
10948
+
10949
+ > sunset_email_segment(storefront_oid, email_segment_uuid)
10950
+
10951
+ Sunset email segment
10952
+
10953
+ ### Examples
10954
+
10955
+ ```ruby
10956
+ require 'time'
10957
+ require 'ultracart_api'
10958
+ require 'json'
10959
+ require 'yaml'
10960
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
10961
+
10962
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
10963
+ # As such, this might not be the best way to use this object.
10964
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
10965
+
10966
+ api = UltracartClient::StorefrontApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
10967
+ storefront_oid = 56 # Integer |
10968
+ email_segment_uuid = 'email_segment_uuid_example' # String |
10969
+
10970
+ begin
10971
+ # Sunset email segment
10972
+ api_instance.sunset_email_segment(storefront_oid, email_segment_uuid)
10973
+ rescue UltracartClient::ApiError => e
10974
+ puts "Error when calling StorefrontApi->sunset_email_segment: #{e}"
10975
+ end
10976
+ ```
10977
+
10978
+ #### Using the sunset_email_segment_with_http_info variant
10979
+
10980
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
10981
+
10982
+ > <Array(nil, Integer, Hash)> sunset_email_segment_with_http_info(storefront_oid, email_segment_uuid)
10983
+
10984
+ ```ruby
10985
+ begin
10986
+ # Sunset email segment
10987
+ data, status_code, headers = api_instance.sunset_email_segment_with_http_info(storefront_oid, email_segment_uuid)
10988
+ p status_code # => 2xx
10989
+ p headers # => { ... }
10990
+ p data # => nil
10991
+ rescue UltracartClient::ApiError => e
10992
+ puts "Error when calling StorefrontApi->sunset_email_segment_with_http_info: #{e}"
10993
+ end
10994
+ ```
10995
+
10996
+ ### Parameters
10997
+
10998
+ | Name | Type | Description | Notes |
10999
+ | ---- | ---- | ----------- | ----- |
11000
+ | **storefront_oid** | **Integer** | | |
11001
+ | **email_segment_uuid** | **String** | | |
11002
+
11003
+ ### Return type
11004
+
11005
+ nil (empty response body)
11006
+
11007
+ ### Authorization
11008
+
11009
+ [ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
11010
+
11011
+ ### HTTP request headers
11012
+
11013
+ - **Content-Type**: Not defined
11014
+ - **Accept**: application/json
11015
+
11016
+
10946
11017
  ## unfavorite_screen_recording
10947
11018
 
10948
11019
  > unfavorite_screen_recording(storefront_oid, screen_recording_uuid)
data/docs/Twilio.md CHANGED
@@ -7,15 +7,11 @@
7
7
  | **account_sid** | **String** | | [optional] |
8
8
  | **api_key_id** | **String** | | [optional] |
9
9
  | **api_key_name** | **String** | | [optional] |
10
- | **api_key_secret** | **String** | | [optional] |
11
10
  | **auth_token** | **String** | | [optional] |
12
11
  | **esp_twilio_uuid** | **String** | | [optional] |
13
12
  | **inbound_twiml_app_sid** | **String** | | [optional] |
14
13
  | **outbound_twiml_app_sid** | **String** | | [optional] |
15
14
  | **phone_numbers** | **Array&lt;String&gt;** | | [optional] |
16
- | **private_key_pem** | **String** | | [optional] |
17
- | **public_key_pem** | **String** | | [optional] |
18
- | **public_key_sid** | **String** | | [optional] |
19
15
  | **twilio_workspace_sid** | **String** | | [optional] |
20
16
 
21
17
  ## Example
@@ -27,15 +23,11 @@ instance = UltracartClient::Twilio.new(
27
23
  account_sid: null,
28
24
  api_key_id: null,
29
25
  api_key_name: null,
30
- api_key_secret: null,
31
26
  auth_token: null,
32
27
  esp_twilio_uuid: null,
33
28
  inbound_twiml_app_sid: null,
34
29
  outbound_twiml_app_sid: null,
35
30
  phone_numbers: null,
36
- private_key_pem: null,
37
- public_key_pem: null,
38
- public_key_sid: null,
39
31
  twilio_workspace_sid: null
40
32
  )
41
33
  ```
@@ -4,6 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **exempt_from_colorado_retail_delivery_fee** | **Boolean** | True if the Colorado Retail Delivery Fee should not be collected | [optional] |
8
+ | **exempt_from_minnesota_retail_delivery_fee** | **Boolean** | True if the Minnesota Retail Delivery Fee should not be collected | [optional] |
7
9
  | **tax_billing** | **Boolean** | True if sales tax should be collected based on billing address instead of shipping address | [optional] |
8
10
 
9
11
  ## Example
@@ -12,6 +14,8 @@
12
14
  require 'ultracart_api'
13
15
 
14
16
  instance = UltracartClient::UltraCartConfig.new(
17
+ exempt_from_colorado_retail_delivery_fee: null,
18
+ exempt_from_minnesota_retail_delivery_fee: null,
15
19
  tax_billing: null
16
20
  )
17
21
  ```
@@ -1491,6 +1491,7 @@ module UltracartClient
1491
1491
  # @option opts [Boolean] :manual_refund Consider a manual refund done externally (default to false)
1492
1492
  # @option opts [Boolean] :reverse_affiliate_transactions Reverse affiliate transactions (default to true)
1493
1493
  # @option opts [Boolean] :issue_store_credit Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account (default to false)
1494
+ # @option opts [String] :auto_order_cancel_reason Reason for auto orders cancellation
1494
1495
  # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
1495
1496
  # @return [OrderResponse]
1496
1497
  def refund_order(order_id, order, opts = {})
@@ -1509,6 +1510,7 @@ module UltracartClient
1509
1510
  # @option opts [Boolean] :manual_refund Consider a manual refund done externally (default to false)
1510
1511
  # @option opts [Boolean] :reverse_affiliate_transactions Reverse affiliate transactions (default to true)
1511
1512
  # @option opts [Boolean] :issue_store_credit Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account (default to false)
1513
+ # @option opts [String] :auto_order_cancel_reason Reason for auto orders cancellation
1512
1514
  # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
1513
1515
  # @return [Array<(OrderResponse, Integer, Hash)>] OrderResponse data, response status code and response headers
1514
1516
  def refund_order_with_http_info(order_id, order, opts = {})
@@ -1534,6 +1536,7 @@ module UltracartClient
1534
1536
  query_params[:'manual_refund'] = opts[:'manual_refund'] if !opts[:'manual_refund'].nil?
1535
1537
  query_params[:'reverse_affiliate_transactions'] = opts[:'reverse_affiliate_transactions'] if !opts[:'reverse_affiliate_transactions'].nil?
1536
1538
  query_params[:'issue_store_credit'] = opts[:'issue_store_credit'] if !opts[:'issue_store_credit'].nil?
1539
+ query_params[:'auto_order_cancel_reason'] = opts[:'auto_order_cancel_reason'] if !opts[:'auto_order_cancel_reason'].nil?
1537
1540
  query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
1538
1541
 
1539
1542
  # header parameters
@@ -10414,6 +10414,74 @@ module UltracartClient
10414
10414
  return data, status_code, headers
10415
10415
  end
10416
10416
 
10417
+ # Sunset email segment
10418
+ # @param storefront_oid [Integer]
10419
+ # @param email_segment_uuid [String]
10420
+ # @param [Hash] opts the optional parameters
10421
+ # @return [nil]
10422
+ def sunset_email_segment(storefront_oid, email_segment_uuid, opts = {})
10423
+ sunset_email_segment_with_http_info(storefront_oid, email_segment_uuid, opts)
10424
+ nil
10425
+ end
10426
+
10427
+ # Sunset email segment
10428
+ # @param storefront_oid [Integer]
10429
+ # @param email_segment_uuid [String]
10430
+ # @param [Hash] opts the optional parameters
10431
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
10432
+ def sunset_email_segment_with_http_info(storefront_oid, email_segment_uuid, opts = {})
10433
+ if @api_client.config.debugging
10434
+ @api_client.config.logger.debug 'Calling API: StorefrontApi.sunset_email_segment ...'
10435
+ end
10436
+ # verify the required parameter 'storefront_oid' is set
10437
+ if @api_client.config.client_side_validation && storefront_oid.nil?
10438
+ fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling StorefrontApi.sunset_email_segment"
10439
+ end
10440
+ # verify the required parameter 'email_segment_uuid' is set
10441
+ if @api_client.config.client_side_validation && email_segment_uuid.nil?
10442
+ fail ArgumentError, "Missing the required parameter 'email_segment_uuid' when calling StorefrontApi.sunset_email_segment"
10443
+ end
10444
+ # resource path
10445
+ local_var_path = '/storefront/{storefront_oid}/email/segments/{email_segment_uuid}/sunset'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s)).sub('{' + 'email_segment_uuid' + '}', CGI.escape(email_segment_uuid.to_s))
10446
+
10447
+ # query parameters
10448
+ query_params = opts[:query_params] || {}
10449
+
10450
+ # header parameters
10451
+ header_params = opts[:header_params] || {}
10452
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
10453
+ # HTTP header 'Accept' (if needed)
10454
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
10455
+
10456
+ # form parameters
10457
+ form_params = opts[:form_params] || {}
10458
+
10459
+ # http body (model)
10460
+ post_body = opts[:debug_body]
10461
+
10462
+ # return_type
10463
+ return_type = opts[:debug_return_type]
10464
+
10465
+ # auth_names
10466
+ auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
10467
+
10468
+ new_options = opts.merge(
10469
+ :operation => :"StorefrontApi.sunset_email_segment",
10470
+ :header_params => header_params,
10471
+ :query_params => query_params,
10472
+ :form_params => form_params,
10473
+ :body => post_body,
10474
+ :auth_names => auth_names,
10475
+ :return_type => return_type
10476
+ )
10477
+
10478
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
10479
+ if @api_client.config.debugging
10480
+ @api_client.config.logger.debug "API called: StorefrontApi#sunset_email_segment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10481
+ end
10482
+ return data, status_code, headers
10483
+ end
10484
+
10417
10485
  # Remove favorite flag on screen recording
10418
10486
  # Remove favorite flag on screen recording
10419
10487
  # @param storefront_oid [Integer]
@@ -18,10 +18,36 @@ module UltracartClient
18
18
  # Order IDs
19
19
  attr_accessor :order_ids
20
20
 
21
+ # Query Target
22
+ attr_accessor :query_target
23
+
24
+ class EnumAttributeValidator
25
+ attr_reader :datatype
26
+ attr_reader :allowable_values
27
+
28
+ def initialize(datatype, allowable_values)
29
+ @allowable_values = allowable_values.map do |value|
30
+ case datatype.to_s
31
+ when /Integer/i
32
+ value.to_i
33
+ when /Float/i
34
+ value.to_f
35
+ else
36
+ value
37
+ end
38
+ end
39
+ end
40
+
41
+ def valid?(value)
42
+ !value || allowable_values.include?(value)
43
+ end
44
+ end
45
+
21
46
  # Attribute mapping from ruby-style variable name to JSON key.
22
47
  def self.attribute_map
23
48
  {
24
- :'order_ids' => :'order_ids'
49
+ :'order_ids' => :'order_ids',
50
+ :'query_target' => :'query_target'
25
51
  }
26
52
  end
27
53
 
@@ -33,7 +59,8 @@ module UltracartClient
33
59
  # Attribute type mapping.
34
60
  def self.openapi_types
35
61
  {
36
- :'order_ids' => :'Array<String>'
62
+ :'order_ids' => :'Array<String>',
63
+ :'query_target' => :'String'
37
64
  }
38
65
  end
39
66
 
@@ -63,6 +90,10 @@ module UltracartClient
63
90
  self.order_ids = value
64
91
  end
65
92
  end
93
+
94
+ if attributes.key?(:'query_target')
95
+ self.query_target = attributes[:'query_target']
96
+ end
66
97
  end
67
98
 
68
99
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -75,15 +106,28 @@ module UltracartClient
75
106
  # Check to see if the all the properties in the model are valid
76
107
  # @return true if the model is valid
77
108
  def valid?
109
+ query_target_validator = EnumAttributeValidator.new('String', ["origin", "cache"])
110
+ return false unless query_target_validator.valid?(@query_target)
78
111
  true
79
112
  end
80
113
 
114
+ # Custom attribute writer method checking allowed values (enum).
115
+ # @param [Object] query_target Object to be assigned
116
+ def query_target=(query_target)
117
+ validator = EnumAttributeValidator.new('String', ["origin", "cache"])
118
+ unless validator.valid?(query_target)
119
+ fail ArgumentError, "invalid value for \"query_target\", must be one of #{validator.allowable_values}."
120
+ end
121
+ @query_target = query_target
122
+ end
123
+
81
124
  # Checks equality by comparing each attribute.
82
125
  # @param [Object] Object to be compared
83
126
  def ==(o)
84
127
  return true if self.equal?(o)
85
128
  self.class == o.class &&
86
- order_ids == o.order_ids
129
+ order_ids == o.order_ids &&
130
+ query_target == o.query_target
87
131
  end
88
132
 
89
133
  # @see the `==` method
@@ -95,7 +139,7 @@ module UltracartClient
95
139
  # Calculates hash code according to all attributes.
96
140
  # @return [Integer] Hash code
97
141
  def hash
98
- [order_ids].hash
142
+ [order_ids, query_target].hash
99
143
  end
100
144
 
101
145
  # Builds the object from hash
@@ -15,12 +15,20 @@ require 'time'
15
15
 
16
16
  module UltracartClient
17
17
  class SelfConfig
18
+ # True if the Colorado Retail Delivery Fee should not be collected
19
+ attr_accessor :exempt_from_colorado_retail_delivery_fee
20
+
21
+ # True if the Minnesota Retail Delivery Fee should not be collected
22
+ attr_accessor :exempt_from_minnesota_retail_delivery_fee
23
+
18
24
  # True if sales tax should be collected based on billing address instead of shipping address
19
25
  attr_accessor :tax_billing
20
26
 
21
27
  # Attribute mapping from ruby-style variable name to JSON key.
22
28
  def self.attribute_map
23
29
  {
30
+ :'exempt_from_colorado_retail_delivery_fee' => :'exempt_from_colorado_retail_delivery_fee',
31
+ :'exempt_from_minnesota_retail_delivery_fee' => :'exempt_from_minnesota_retail_delivery_fee',
24
32
  :'tax_billing' => :'tax_billing'
25
33
  }
26
34
  end
@@ -33,6 +41,8 @@ module UltracartClient
33
41
  # Attribute type mapping.
34
42
  def self.openapi_types
35
43
  {
44
+ :'exempt_from_colorado_retail_delivery_fee' => :'Boolean',
45
+ :'exempt_from_minnesota_retail_delivery_fee' => :'Boolean',
36
46
  :'tax_billing' => :'Boolean'
37
47
  }
38
48
  end
@@ -58,6 +68,14 @@ module UltracartClient
58
68
  h[k.to_sym] = v
59
69
  }
60
70
 
71
+ if attributes.key?(:'exempt_from_colorado_retail_delivery_fee')
72
+ self.exempt_from_colorado_retail_delivery_fee = attributes[:'exempt_from_colorado_retail_delivery_fee']
73
+ end
74
+
75
+ if attributes.key?(:'exempt_from_minnesota_retail_delivery_fee')
76
+ self.exempt_from_minnesota_retail_delivery_fee = attributes[:'exempt_from_minnesota_retail_delivery_fee']
77
+ end
78
+
61
79
  if attributes.key?(:'tax_billing')
62
80
  self.tax_billing = attributes[:'tax_billing']
63
81
  end
@@ -81,6 +99,8 @@ module UltracartClient
81
99
  def ==(o)
82
100
  return true if self.equal?(o)
83
101
  self.class == o.class &&
102
+ exempt_from_colorado_retail_delivery_fee == o.exempt_from_colorado_retail_delivery_fee &&
103
+ exempt_from_minnesota_retail_delivery_fee == o.exempt_from_minnesota_retail_delivery_fee &&
84
104
  tax_billing == o.tax_billing
85
105
  end
86
106
 
@@ -93,7 +113,7 @@ module UltracartClient
93
113
  # Calculates hash code according to all attributes.
94
114
  # @return [Integer] Hash code
95
115
  def hash
96
- [tax_billing].hash
116
+ [exempt_from_colorado_retail_delivery_fee, exempt_from_minnesota_retail_delivery_fee, tax_billing].hash
97
117
  end
98
118
 
99
119
  # Builds the object from hash
@@ -21,8 +21,6 @@ module UltracartClient
21
21
 
22
22
  attr_accessor :api_key_name
23
23
 
24
- attr_accessor :api_key_secret
25
-
26
24
  attr_accessor :auth_token
27
25
 
28
26
  attr_accessor :esp_twilio_uuid
@@ -33,12 +31,6 @@ module UltracartClient
33
31
 
34
32
  attr_accessor :phone_numbers
35
33
 
36
- attr_accessor :private_key_pem
37
-
38
- attr_accessor :public_key_pem
39
-
40
- attr_accessor :public_key_sid
41
-
42
34
  attr_accessor :twilio_workspace_sid
43
35
 
44
36
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -47,15 +39,11 @@ module UltracartClient
47
39
  :'account_sid' => :'account_sid',
48
40
  :'api_key_id' => :'api_key_id',
49
41
  :'api_key_name' => :'api_key_name',
50
- :'api_key_secret' => :'api_key_secret',
51
42
  :'auth_token' => :'auth_token',
52
43
  :'esp_twilio_uuid' => :'esp_twilio_uuid',
53
44
  :'inbound_twiml_app_sid' => :'inbound_twiml_app_sid',
54
45
  :'outbound_twiml_app_sid' => :'outbound_twiml_app_sid',
55
46
  :'phone_numbers' => :'phone_numbers',
56
- :'private_key_pem' => :'private_key_pem',
57
- :'public_key_pem' => :'public_key_pem',
58
- :'public_key_sid' => :'public_key_sid',
59
47
  :'twilio_workspace_sid' => :'twilio_workspace_sid'
60
48
  }
61
49
  end
@@ -71,15 +59,11 @@ module UltracartClient
71
59
  :'account_sid' => :'String',
72
60
  :'api_key_id' => :'String',
73
61
  :'api_key_name' => :'String',
74
- :'api_key_secret' => :'String',
75
62
  :'auth_token' => :'String',
76
63
  :'esp_twilio_uuid' => :'String',
77
64
  :'inbound_twiml_app_sid' => :'String',
78
65
  :'outbound_twiml_app_sid' => :'String',
79
66
  :'phone_numbers' => :'Array<String>',
80
- :'private_key_pem' => :'String',
81
- :'public_key_pem' => :'String',
82
- :'public_key_sid' => :'String',
83
67
  :'twilio_workspace_sid' => :'String'
84
68
  }
85
69
  end
@@ -117,10 +101,6 @@ module UltracartClient
117
101
  self.api_key_name = attributes[:'api_key_name']
118
102
  end
119
103
 
120
- if attributes.key?(:'api_key_secret')
121
- self.api_key_secret = attributes[:'api_key_secret']
122
- end
123
-
124
104
  if attributes.key?(:'auth_token')
125
105
  self.auth_token = attributes[:'auth_token']
126
106
  end
@@ -143,18 +123,6 @@ module UltracartClient
143
123
  end
144
124
  end
145
125
 
146
- if attributes.key?(:'private_key_pem')
147
- self.private_key_pem = attributes[:'private_key_pem']
148
- end
149
-
150
- if attributes.key?(:'public_key_pem')
151
- self.public_key_pem = attributes[:'public_key_pem']
152
- end
153
-
154
- if attributes.key?(:'public_key_sid')
155
- self.public_key_sid = attributes[:'public_key_sid']
156
- end
157
-
158
126
  if attributes.key?(:'twilio_workspace_sid')
159
127
  self.twilio_workspace_sid = attributes[:'twilio_workspace_sid']
160
128
  end
@@ -181,15 +149,11 @@ module UltracartClient
181
149
  account_sid == o.account_sid &&
182
150
  api_key_id == o.api_key_id &&
183
151
  api_key_name == o.api_key_name &&
184
- api_key_secret == o.api_key_secret &&
185
152
  auth_token == o.auth_token &&
186
153
  esp_twilio_uuid == o.esp_twilio_uuid &&
187
154
  inbound_twiml_app_sid == o.inbound_twiml_app_sid &&
188
155
  outbound_twiml_app_sid == o.outbound_twiml_app_sid &&
189
156
  phone_numbers == o.phone_numbers &&
190
- private_key_pem == o.private_key_pem &&
191
- public_key_pem == o.public_key_pem &&
192
- public_key_sid == o.public_key_sid &&
193
157
  twilio_workspace_sid == o.twilio_workspace_sid
194
158
  end
195
159
 
@@ -202,7 +166,7 @@ module UltracartClient
202
166
  # Calculates hash code according to all attributes.
203
167
  # @return [Integer] Hash code
204
168
  def hash
205
- [account_sid, api_key_id, api_key_name, api_key_secret, auth_token, esp_twilio_uuid, inbound_twiml_app_sid, outbound_twiml_app_sid, phone_numbers, private_key_pem, public_key_pem, public_key_sid, twilio_workspace_sid].hash
169
+ [account_sid, api_key_id, api_key_name, auth_token, esp_twilio_uuid, inbound_twiml_app_sid, outbound_twiml_app_sid, phone_numbers, twilio_workspace_sid].hash
206
170
  end
207
171
 
208
172
  # Builds the object from hash
@@ -15,12 +15,20 @@ require 'time'
15
15
 
16
16
  module UltracartClient
17
17
  class UltraCartConfig
18
+ # True if the Colorado Retail Delivery Fee should not be collected
19
+ attr_accessor :exempt_from_colorado_retail_delivery_fee
20
+
21
+ # True if the Minnesota Retail Delivery Fee should not be collected
22
+ attr_accessor :exempt_from_minnesota_retail_delivery_fee
23
+
18
24
  # True if sales tax should be collected based on billing address instead of shipping address
19
25
  attr_accessor :tax_billing
20
26
 
21
27
  # Attribute mapping from ruby-style variable name to JSON key.
22
28
  def self.attribute_map
23
29
  {
30
+ :'exempt_from_colorado_retail_delivery_fee' => :'exempt_from_colorado_retail_delivery_fee',
31
+ :'exempt_from_minnesota_retail_delivery_fee' => :'exempt_from_minnesota_retail_delivery_fee',
24
32
  :'tax_billing' => :'tax_billing'
25
33
  }
26
34
  end
@@ -33,6 +41,8 @@ module UltracartClient
33
41
  # Attribute type mapping.
34
42
  def self.openapi_types
35
43
  {
44
+ :'exempt_from_colorado_retail_delivery_fee' => :'Boolean',
45
+ :'exempt_from_minnesota_retail_delivery_fee' => :'Boolean',
36
46
  :'tax_billing' => :'Boolean'
37
47
  }
38
48
  end
@@ -58,6 +68,14 @@ module UltracartClient
58
68
  h[k.to_sym] = v
59
69
  }
60
70
 
71
+ if attributes.key?(:'exempt_from_colorado_retail_delivery_fee')
72
+ self.exempt_from_colorado_retail_delivery_fee = attributes[:'exempt_from_colorado_retail_delivery_fee']
73
+ end
74
+
75
+ if attributes.key?(:'exempt_from_minnesota_retail_delivery_fee')
76
+ self.exempt_from_minnesota_retail_delivery_fee = attributes[:'exempt_from_minnesota_retail_delivery_fee']
77
+ end
78
+
61
79
  if attributes.key?(:'tax_billing')
62
80
  self.tax_billing = attributes[:'tax_billing']
63
81
  end
@@ -81,6 +99,8 @@ module UltracartClient
81
99
  def ==(o)
82
100
  return true if self.equal?(o)
83
101
  self.class == o.class &&
102
+ exempt_from_colorado_retail_delivery_fee == o.exempt_from_colorado_retail_delivery_fee &&
103
+ exempt_from_minnesota_retail_delivery_fee == o.exempt_from_minnesota_retail_delivery_fee &&
84
104
  tax_billing == o.tax_billing
85
105
  end
86
106
 
@@ -93,7 +113,7 @@ module UltracartClient
93
113
  # Calculates hash code according to all attributes.
94
114
  # @return [Integer] Hash code
95
115
  def hash
96
- [tax_billing].hash
116
+ [exempt_from_colorado_retail_delivery_fee, exempt_from_minnesota_retail_delivery_fee, tax_billing].hash
97
117
  end
98
118
 
99
119
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.229'
14
+ VERSION = '4.0.231'
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: 4.0.229
4
+ version: 4.0.231
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-14 00:00:00.000000000 Z
11
+ date: 2024-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus