ultracart_api 3.10.212 → 3.10.214

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: c12cca624c17cf16a4570451e2a94b8c038c36a590bf78b8533da664d2792de9
4
- data.tar.gz: a908babf975de9b03d99533f8a3268cda2789d76ee8de174d47a2dfbb6d4263b
3
+ metadata.gz: 9255656b7fc08e939b1c377a9a05ac919d34d930c8017bf3d6841f185b24fb75
4
+ data.tar.gz: dd621d01b88b2a57d0a86da6c3c508adc0b6a95413e3240e99aed7380fb04412
5
5
  SHA512:
6
- metadata.gz: 8b9a74442d0101d903d33199ec2c70419696e7b0ff2b942dcf83822e795b39fd98b1cacbe6866d2ebeab6178a8763126569aab69f19d44baf9326a688cd2a993
7
- data.tar.gz: cab14be1e1a672ee0333ded5ebda8050a7cc3a87e3527f554e14934a49c23aabd21a1270c74b5b2805b68c5050273aa6cfd4123ab9c99646e1d1be3004258dda
6
+ metadata.gz: 7a67f7da097f8930f290ffee30adc253edafd2f4ddc3a2089a23e8ecafa5f6b6ece138d73a4a6866016fe38fad99dcc8bd077e5ad1a3d8b633a4751c4da8f0a7
7
+ data.tar.gz: a86721aefd5d6ba8ba02896ff6c18f1719a08b4ef1fb52e7755ab48363d7342edcd0584e76e14a94b84a36f8adaf4a052bd67bf07b1c00efd45878e9f24b0e96
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.10.212
10
+ - Package version: 3.10.214
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
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.10.212.gem
27
+ gem install ./ultracart_api-3.10.214.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.212.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.214.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.10.212'
35
+ gem 'ultracart_api', '~> 3.10.214'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -494,6 +494,7 @@ Class | Method | HTTP request | Description
494
494
  *UltracartClient::StorefrontApi* | [**sequence_test**](docs/StorefrontApi.md#sequence_test) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/test | Sequence test
495
495
  *UltracartClient::StorefrontApi* | [**start_email_campaign**](docs/StorefrontApi.md#start_email_campaign) | **PUT** /storefront/{storefront_oid}/email/campaigns/{email_campaign_uuid}/start | Start email campaign
496
496
  *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
497
+ *UltracartClient::StorefrontApi* | [**sunset_email_segment**](docs/StorefrontApi.md#sunset_email_segment) | **PUT** /storefront/{storefront_oid}/email/segments/{email_segment_uuid}/sunset | Sunset email segment
497
498
  *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
498
499
  *UltracartClient::StorefrontApi* | [**update_email_campaign**](docs/StorefrontApi.md#update_email_campaign) | **PUT** /storefront/{storefront_oid}/email/campaigns/{email_campaign_uuid} | Update email campaign
499
500
  *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
@@ -1509,6 +1510,8 @@ Not every change is committed to every SDK.
1509
1510
 
1510
1511
  | Version | Date | Comments |
1511
1512
  | --: | :-: | --- |
1513
+ | 3.10.214 | 08/08/2024 | added query_target to OrderApi.getOrdersBatch to allow cache usage |
1514
+ | 3.10.213 | 06/24/2024 | conversation object cleanup |
1512
1515
  | 3.10.212 | 06/14/2024 | pbx menu - add say voice property |
1513
1516
  | 3.10.211 | 06/07/2024 | conversation pbx - adjust agent voicemail box uuid fields |
1514
1517
  | 3.10.210 | 06/03/2024 | conversationPbxPhoneNumber - fix serialized name for phone number UUID |
data/docs/OrderApi.md CHANGED
@@ -1167,6 +1167,7 @@ opts = {
1167
1167
  manual_refund: false, # BOOLEAN | Consider a manual refund done externally
1168
1168
  reverse_affiliate_transactions: true, # BOOLEAN | Reverse affiliate transactions
1169
1169
  issue_store_credit: false, # BOOLEAN | Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
1170
+ auto_order_cancel_reason: 'auto_order_cancel_reason_example', # String | Reason for auto orders cancellation
1170
1171
  _expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples
1171
1172
  }
1172
1173
 
@@ -1191,6 +1192,7 @@ Name | Type | Description | Notes
1191
1192
  **manual_refund** | **BOOLEAN**| Consider a manual refund done externally | [optional] [default to false]
1192
1193
  **reverse_affiliate_transactions** | **BOOLEAN**| Reverse affiliate transactions | [optional] [default to true]
1193
1194
  **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]
1195
+ **auto_order_cancel_reason** | **String**| Reason for auto orders cancellation | [optional]
1194
1196
  **_expand** | **String**| The object expansion to perform on the result. See documentation for examples | [optional]
1195
1197
 
1196
1198
  ### Return type
@@ -4,5 +4,6 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **order_ids** | **Array<String>** | Order IDs | [optional]
7
+ **query_target** | **String** | Query Target | [optional]
7
8
 
8
9
 
data/docs/SelfConfig.md CHANGED
@@ -3,6 +3,8 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **exempt_from_colorado_retail_delivery_fee** | **BOOLEAN** | True if the Colorado Retail Delivery Fee should not be collected | [optional]
7
+ **exempt_from_minnesota_retail_delivery_fee** | **BOOLEAN** | True if the Minnesota Retail Delivery Fee should not be collected | [optional]
6
8
  **tax_billing** | **BOOLEAN** | True if sales tax should be collected based on billing address instead of shipping address | [optional]
7
9
 
8
10
 
@@ -154,6 +154,7 @@ Method | HTTP request | Description
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
@@ -7897,6 +7898,56 @@ Name | Type | Description | Notes
7897
7898
 
7898
7899
 
7899
7900
 
7901
+ # **sunset_email_segment**
7902
+ > sunset_email_segment(storefront_oid, email_segment_uuid)
7903
+
7904
+ Sunset email segment
7905
+
7906
+ ### Example
7907
+ ```ruby
7908
+ # load the gem
7909
+ require 'ultracart_api'
7910
+
7911
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
7912
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
7913
+ api_instance = UltracartClient::StorefrontApi.new_using_api_key(simple_key, false, false)
7914
+
7915
+
7916
+ storefront_oid = 56 # Integer |
7917
+
7918
+ email_segment_uuid = 'email_segment_uuid_example' # String |
7919
+
7920
+
7921
+ begin
7922
+ #Sunset email segment
7923
+ api_instance.sunset_email_segment(storefront_oid, email_segment_uuid)
7924
+ rescue UltracartClient::ApiError => e
7925
+ puts "Exception when calling StorefrontApi->sunset_email_segment: #{e}"
7926
+ end
7927
+ ```
7928
+
7929
+ ### Parameters
7930
+
7931
+ Name | Type | Description | Notes
7932
+ ------------- | ------------- | ------------- | -------------
7933
+ **storefront_oid** | **Integer**| |
7934
+ **email_segment_uuid** | **String**| |
7935
+
7936
+ ### Return type
7937
+
7938
+ nil (empty response body)
7939
+
7940
+ ### Authorization
7941
+
7942
+ [ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
7943
+
7944
+ ### HTTP request headers
7945
+
7946
+ - **Content-Type**: application/json
7947
+ - **Accept**: application/json
7948
+
7949
+
7950
+
7900
7951
  # **unfavorite_screen_recording**
7901
7952
  > unfavorite_screen_recording(storefront_oid, screen_recording_uuid)
7902
7953
 
data/docs/Twilio.md CHANGED
@@ -6,15 +6,11 @@ Name | Type | Description | Notes
6
6
  **account_sid** | **String** | | [optional]
7
7
  **api_key_id** | **String** | | [optional]
8
8
  **api_key_name** | **String** | | [optional]
9
- **api_key_secret** | **String** | | [optional]
10
9
  **auth_token** | **String** | | [optional]
11
10
  **esp_twilio_uuid** | **String** | | [optional]
12
11
  **inbound_twiml_app_sid** | **String** | | [optional]
13
12
  **outbound_twiml_app_sid** | **String** | | [optional]
14
13
  **phone_numbers** | **Array<String>** | | [optional]
15
- **private_key_pem** | **String** | | [optional]
16
- **public_key_pem** | **String** | | [optional]
17
- **public_key_sid** | **String** | | [optional]
18
14
  **twilio_workspace_sid** | **String** | | [optional]
19
15
 
20
16
 
@@ -3,6 +3,8 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **exempt_from_colorado_retail_delivery_fee** | **BOOLEAN** | True if the Colorado Retail Delivery Fee should not be collected | [optional]
7
+ **exempt_from_minnesota_retail_delivery_fee** | **BOOLEAN** | True if the Minnesota Retail Delivery Fee should not be collected | [optional]
6
8
  **tax_billing** | **BOOLEAN** | True if sales tax should be collected based on billing address instead of shipping address | [optional]
7
9
 
8
10
 
@@ -1280,6 +1280,7 @@ module UltracartClient
1280
1280
  # @option opts [BOOLEAN] :manual_refund Consider a manual refund done externally (default to false)
1281
1281
  # @option opts [BOOLEAN] :reverse_affiliate_transactions Reverse affiliate transactions (default to true)
1282
1282
  # @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)
1283
+ # @option opts [String] :auto_order_cancel_reason Reason for auto orders cancellation
1283
1284
  # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
1284
1285
  # @return [OrderResponse]
1285
1286
  def refund_order(order, order_id, opts = {})
@@ -1298,6 +1299,7 @@ module UltracartClient
1298
1299
  # @option opts [BOOLEAN] :manual_refund Consider a manual refund done externally
1299
1300
  # @option opts [BOOLEAN] :reverse_affiliate_transactions Reverse affiliate transactions
1300
1301
  # @option opts [BOOLEAN] :issue_store_credit Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
1302
+ # @option opts [String] :auto_order_cancel_reason Reason for auto orders cancellation
1301
1303
  # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
1302
1304
  # @return [Array<(OrderResponse, Fixnum, Hash)>] OrderResponse data, response status code and response headers
1303
1305
  def refund_order_with_http_info(order, order_id, opts = {})
@@ -1323,6 +1325,7 @@ module UltracartClient
1323
1325
  query_params[:'manual_refund'] = opts[:'manual_refund'] if !opts[:'manual_refund'].nil?
1324
1326
  query_params[:'reverse_affiliate_transactions'] = opts[:'reverse_affiliate_transactions'] if !opts[:'reverse_affiliate_transactions'].nil?
1325
1327
  query_params[:'issue_store_credit'] = opts[:'issue_store_credit'] if !opts[:'issue_store_credit'].nil?
1328
+ query_params[:'auto_order_cancel_reason'] = opts[:'auto_order_cancel_reason'] if !opts[:'auto_order_cancel_reason'].nil?
1326
1329
  query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
1327
1330
 
1328
1331
  # header parameters
@@ -8834,6 +8834,64 @@ module UltracartClient
8834
8834
  end
8835
8835
  return data, status_code, headers
8836
8836
  end
8837
+ # Sunset email segment
8838
+ # @param storefront_oid
8839
+ # @param email_segment_uuid
8840
+ # @param [Hash] opts the optional parameters
8841
+ # @return [nil]
8842
+ def sunset_email_segment(storefront_oid, email_segment_uuid, opts = {})
8843
+ sunset_email_segment_with_http_info(storefront_oid, email_segment_uuid, opts)
8844
+ nil
8845
+ end
8846
+
8847
+ # Sunset email segment
8848
+ # @param storefront_oid
8849
+ # @param email_segment_uuid
8850
+ # @param [Hash] opts the optional parameters
8851
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
8852
+ def sunset_email_segment_with_http_info(storefront_oid, email_segment_uuid, opts = {})
8853
+ if @api_client.config.debugging
8854
+ @api_client.config.logger.debug 'Calling API: StorefrontApi.sunset_email_segment ...'
8855
+ end
8856
+ # verify the required parameter 'storefront_oid' is set
8857
+ if @api_client.config.client_side_validation && storefront_oid.nil?
8858
+ fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling StorefrontApi.sunset_email_segment"
8859
+ end
8860
+ # verify the required parameter 'email_segment_uuid' is set
8861
+ if @api_client.config.client_side_validation && email_segment_uuid.nil?
8862
+ fail ArgumentError, "Missing the required parameter 'email_segment_uuid' when calling StorefrontApi.sunset_email_segment"
8863
+ end
8864
+ # resource path
8865
+ local_var_path = '/storefront/{storefront_oid}/email/segments/{email_segment_uuid}/sunset'.sub('{' + 'storefront_oid' + '}', storefront_oid.to_s).sub('{' + 'email_segment_uuid' + '}', email_segment_uuid.to_s)
8866
+
8867
+ # query parameters
8868
+ query_params = {}
8869
+
8870
+ # header parameters
8871
+ header_params = {}
8872
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
8873
+ # HTTP header 'Accept' (if needed)
8874
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
8875
+ # HTTP header 'Content-Type'
8876
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
8877
+
8878
+ # form parameters
8879
+ form_params = {}
8880
+
8881
+ # http body (model)
8882
+ post_body = nil
8883
+ auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
8884
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
8885
+ :header_params => header_params,
8886
+ :query_params => query_params,
8887
+ :form_params => form_params,
8888
+ :body => post_body,
8889
+ :auth_names => auth_names)
8890
+ if @api_client.config.debugging
8891
+ @api_client.config.logger.debug "API called: StorefrontApi#sunset_email_segment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8892
+ end
8893
+ return data, status_code, headers
8894
+ end
8837
8895
  # Remove favorite flag on screen recording
8838
8896
  # Remove favorite flag on screen recording
8839
8897
  # @param storefront_oid
@@ -17,17 +17,44 @@ module UltracartClient
17
17
  # Order IDs
18
18
  attr_accessor :order_ids
19
19
 
20
+ # Query Target
21
+ attr_accessor :query_target
22
+
23
+ class EnumAttributeValidator
24
+ attr_reader :datatype
25
+ attr_reader :allowable_values
26
+
27
+ def initialize(datatype, allowable_values)
28
+ @allowable_values = allowable_values.map do |value|
29
+ case datatype.to_s
30
+ when /Integer/i
31
+ value.to_i
32
+ when /Float/i
33
+ value.to_f
34
+ else
35
+ value
36
+ end
37
+ end
38
+ end
39
+
40
+ def valid?(value)
41
+ !value || allowable_values.include?(value)
42
+ end
43
+ end
44
+
20
45
  # Attribute mapping from ruby-style variable name to JSON key.
21
46
  def self.attribute_map
22
47
  {
23
- :'order_ids' => :'order_ids'
48
+ :'order_ids' => :'order_ids',
49
+ :'query_target' => :'query_target'
24
50
  }
25
51
  end
26
52
 
27
53
  # Attribute type mapping.
28
54
  def self.swagger_types
29
55
  {
30
- :'order_ids' => :'Array<String>'
56
+ :'order_ids' => :'Array<String>',
57
+ :'query_target' => :'String'
31
58
  }
32
59
  end
33
60
 
@@ -44,6 +71,10 @@ module UltracartClient
44
71
  self.order_ids = value
45
72
  end
46
73
  end
74
+
75
+ if attributes.has_key?(:'query_target')
76
+ self.query_target = attributes[:'query_target']
77
+ end
47
78
  end
48
79
 
49
80
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -56,15 +87,28 @@ module UltracartClient
56
87
  # Check to see if the all the properties in the model are valid
57
88
  # @return true if the model is valid
58
89
  def valid?
90
+ query_target_validator = EnumAttributeValidator.new('String', ['origin', 'cache'])
91
+ return false unless query_target_validator.valid?(@query_target)
59
92
  true
60
93
  end
61
94
 
95
+ # Custom attribute writer method checking allowed values (enum).
96
+ # @param [Object] query_target Object to be assigned
97
+ def query_target=(query_target)
98
+ validator = EnumAttributeValidator.new('String', ['origin', 'cache'])
99
+ unless validator.valid?(query_target)
100
+ fail ArgumentError, 'invalid value for "query_target", must be one of #{validator.allowable_values}.'
101
+ end
102
+ @query_target = query_target
103
+ end
104
+
62
105
  # Checks equality by comparing each attribute.
63
106
  # @param [Object] Object to be compared
64
107
  def ==(o)
65
108
  return true if self.equal?(o)
66
109
  self.class == o.class &&
67
- order_ids == o.order_ids
110
+ order_ids == o.order_ids &&
111
+ query_target == o.query_target
68
112
  end
69
113
 
70
114
  # @see the `==` method
@@ -76,7 +120,7 @@ module UltracartClient
76
120
  # Calculates hash code according to all attributes.
77
121
  # @return [Fixnum] Hash code
78
122
  def hash
79
- [order_ids].hash
123
+ [order_ids, query_target].hash
80
124
  end
81
125
 
82
126
  # Builds the object from hash
@@ -14,12 +14,20 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class SelfConfig
17
+ # True if the Colorado Retail Delivery Fee should not be collected
18
+ attr_accessor :exempt_from_colorado_retail_delivery_fee
19
+
20
+ # True if the Minnesota Retail Delivery Fee should not be collected
21
+ attr_accessor :exempt_from_minnesota_retail_delivery_fee
22
+
17
23
  # True if sales tax should be collected based on billing address instead of shipping address
18
24
  attr_accessor :tax_billing
19
25
 
20
26
  # Attribute mapping from ruby-style variable name to JSON key.
21
27
  def self.attribute_map
22
28
  {
29
+ :'exempt_from_colorado_retail_delivery_fee' => :'exempt_from_colorado_retail_delivery_fee',
30
+ :'exempt_from_minnesota_retail_delivery_fee' => :'exempt_from_minnesota_retail_delivery_fee',
23
31
  :'tax_billing' => :'tax_billing'
24
32
  }
25
33
  end
@@ -27,6 +35,8 @@ module UltracartClient
27
35
  # Attribute type mapping.
28
36
  def self.swagger_types
29
37
  {
38
+ :'exempt_from_colorado_retail_delivery_fee' => :'BOOLEAN',
39
+ :'exempt_from_minnesota_retail_delivery_fee' => :'BOOLEAN',
30
40
  :'tax_billing' => :'BOOLEAN'
31
41
  }
32
42
  end
@@ -39,6 +49,14 @@ module UltracartClient
39
49
  # convert string to symbol for hash key
40
50
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
41
51
 
52
+ if attributes.has_key?(:'exempt_from_colorado_retail_delivery_fee')
53
+ self.exempt_from_colorado_retail_delivery_fee = attributes[:'exempt_from_colorado_retail_delivery_fee']
54
+ end
55
+
56
+ if attributes.has_key?(:'exempt_from_minnesota_retail_delivery_fee')
57
+ self.exempt_from_minnesota_retail_delivery_fee = attributes[:'exempt_from_minnesota_retail_delivery_fee']
58
+ end
59
+
42
60
  if attributes.has_key?(:'tax_billing')
43
61
  self.tax_billing = attributes[:'tax_billing']
44
62
  end
@@ -62,6 +80,8 @@ module UltracartClient
62
80
  def ==(o)
63
81
  return true if self.equal?(o)
64
82
  self.class == o.class &&
83
+ exempt_from_colorado_retail_delivery_fee == o.exempt_from_colorado_retail_delivery_fee &&
84
+ exempt_from_minnesota_retail_delivery_fee == o.exempt_from_minnesota_retail_delivery_fee &&
65
85
  tax_billing == o.tax_billing
66
86
  end
67
87
 
@@ -74,7 +94,7 @@ module UltracartClient
74
94
  # Calculates hash code according to all attributes.
75
95
  # @return [Fixnum] Hash code
76
96
  def hash
77
- [tax_billing].hash
97
+ [exempt_from_colorado_retail_delivery_fee, exempt_from_minnesota_retail_delivery_fee, tax_billing].hash
78
98
  end
79
99
 
80
100
  # Builds the object from hash
@@ -20,8 +20,6 @@ module UltracartClient
20
20
 
21
21
  attr_accessor :api_key_name
22
22
 
23
- attr_accessor :api_key_secret
24
-
25
23
  attr_accessor :auth_token
26
24
 
27
25
  attr_accessor :esp_twilio_uuid
@@ -32,12 +30,6 @@ module UltracartClient
32
30
 
33
31
  attr_accessor :phone_numbers
34
32
 
35
- attr_accessor :private_key_pem
36
-
37
- attr_accessor :public_key_pem
38
-
39
- attr_accessor :public_key_sid
40
-
41
33
  attr_accessor :twilio_workspace_sid
42
34
 
43
35
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -46,15 +38,11 @@ module UltracartClient
46
38
  :'account_sid' => :'account_sid',
47
39
  :'api_key_id' => :'api_key_id',
48
40
  :'api_key_name' => :'api_key_name',
49
- :'api_key_secret' => :'api_key_secret',
50
41
  :'auth_token' => :'auth_token',
51
42
  :'esp_twilio_uuid' => :'esp_twilio_uuid',
52
43
  :'inbound_twiml_app_sid' => :'inbound_twiml_app_sid',
53
44
  :'outbound_twiml_app_sid' => :'outbound_twiml_app_sid',
54
45
  :'phone_numbers' => :'phone_numbers',
55
- :'private_key_pem' => :'private_key_pem',
56
- :'public_key_pem' => :'public_key_pem',
57
- :'public_key_sid' => :'public_key_sid',
58
46
  :'twilio_workspace_sid' => :'twilio_workspace_sid'
59
47
  }
60
48
  end
@@ -65,15 +53,11 @@ module UltracartClient
65
53
  :'account_sid' => :'String',
66
54
  :'api_key_id' => :'String',
67
55
  :'api_key_name' => :'String',
68
- :'api_key_secret' => :'String',
69
56
  :'auth_token' => :'String',
70
57
  :'esp_twilio_uuid' => :'String',
71
58
  :'inbound_twiml_app_sid' => :'String',
72
59
  :'outbound_twiml_app_sid' => :'String',
73
60
  :'phone_numbers' => :'Array<String>',
74
- :'private_key_pem' => :'String',
75
- :'public_key_pem' => :'String',
76
- :'public_key_sid' => :'String',
77
61
  :'twilio_workspace_sid' => :'String'
78
62
  }
79
63
  end
@@ -98,10 +82,6 @@ module UltracartClient
98
82
  self.api_key_name = attributes[:'api_key_name']
99
83
  end
100
84
 
101
- if attributes.has_key?(:'api_key_secret')
102
- self.api_key_secret = attributes[:'api_key_secret']
103
- end
104
-
105
85
  if attributes.has_key?(:'auth_token')
106
86
  self.auth_token = attributes[:'auth_token']
107
87
  end
@@ -124,18 +104,6 @@ module UltracartClient
124
104
  end
125
105
  end
126
106
 
127
- if attributes.has_key?(:'private_key_pem')
128
- self.private_key_pem = attributes[:'private_key_pem']
129
- end
130
-
131
- if attributes.has_key?(:'public_key_pem')
132
- self.public_key_pem = attributes[:'public_key_pem']
133
- end
134
-
135
- if attributes.has_key?(:'public_key_sid')
136
- self.public_key_sid = attributes[:'public_key_sid']
137
- end
138
-
139
107
  if attributes.has_key?(:'twilio_workspace_sid')
140
108
  self.twilio_workspace_sid = attributes[:'twilio_workspace_sid']
141
109
  end
@@ -162,15 +130,11 @@ module UltracartClient
162
130
  account_sid == o.account_sid &&
163
131
  api_key_id == o.api_key_id &&
164
132
  api_key_name == o.api_key_name &&
165
- api_key_secret == o.api_key_secret &&
166
133
  auth_token == o.auth_token &&
167
134
  esp_twilio_uuid == o.esp_twilio_uuid &&
168
135
  inbound_twiml_app_sid == o.inbound_twiml_app_sid &&
169
136
  outbound_twiml_app_sid == o.outbound_twiml_app_sid &&
170
137
  phone_numbers == o.phone_numbers &&
171
- private_key_pem == o.private_key_pem &&
172
- public_key_pem == o.public_key_pem &&
173
- public_key_sid == o.public_key_sid &&
174
138
  twilio_workspace_sid == o.twilio_workspace_sid
175
139
  end
176
140
 
@@ -183,7 +147,7 @@ module UltracartClient
183
147
  # Calculates hash code according to all attributes.
184
148
  # @return [Fixnum] Hash code
185
149
  def hash
186
- [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
150
+ [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
187
151
  end
188
152
 
189
153
  # Builds the object from hash
@@ -14,12 +14,20 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class UltraCartConfig
17
+ # True if the Colorado Retail Delivery Fee should not be collected
18
+ attr_accessor :exempt_from_colorado_retail_delivery_fee
19
+
20
+ # True if the Minnesota Retail Delivery Fee should not be collected
21
+ attr_accessor :exempt_from_minnesota_retail_delivery_fee
22
+
17
23
  # True if sales tax should be collected based on billing address instead of shipping address
18
24
  attr_accessor :tax_billing
19
25
 
20
26
  # Attribute mapping from ruby-style variable name to JSON key.
21
27
  def self.attribute_map
22
28
  {
29
+ :'exempt_from_colorado_retail_delivery_fee' => :'exempt_from_colorado_retail_delivery_fee',
30
+ :'exempt_from_minnesota_retail_delivery_fee' => :'exempt_from_minnesota_retail_delivery_fee',
23
31
  :'tax_billing' => :'tax_billing'
24
32
  }
25
33
  end
@@ -27,6 +35,8 @@ module UltracartClient
27
35
  # Attribute type mapping.
28
36
  def self.swagger_types
29
37
  {
38
+ :'exempt_from_colorado_retail_delivery_fee' => :'BOOLEAN',
39
+ :'exempt_from_minnesota_retail_delivery_fee' => :'BOOLEAN',
30
40
  :'tax_billing' => :'BOOLEAN'
31
41
  }
32
42
  end
@@ -39,6 +49,14 @@ module UltracartClient
39
49
  # convert string to symbol for hash key
40
50
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
41
51
 
52
+ if attributes.has_key?(:'exempt_from_colorado_retail_delivery_fee')
53
+ self.exempt_from_colorado_retail_delivery_fee = attributes[:'exempt_from_colorado_retail_delivery_fee']
54
+ end
55
+
56
+ if attributes.has_key?(:'exempt_from_minnesota_retail_delivery_fee')
57
+ self.exempt_from_minnesota_retail_delivery_fee = attributes[:'exempt_from_minnesota_retail_delivery_fee']
58
+ end
59
+
42
60
  if attributes.has_key?(:'tax_billing')
43
61
  self.tax_billing = attributes[:'tax_billing']
44
62
  end
@@ -62,6 +80,8 @@ module UltracartClient
62
80
  def ==(o)
63
81
  return true if self.equal?(o)
64
82
  self.class == o.class &&
83
+ exempt_from_colorado_retail_delivery_fee == o.exempt_from_colorado_retail_delivery_fee &&
84
+ exempt_from_minnesota_retail_delivery_fee == o.exempt_from_minnesota_retail_delivery_fee &&
65
85
  tax_billing == o.tax_billing
66
86
  end
67
87
 
@@ -74,7 +94,7 @@ module UltracartClient
74
94
  # Calculates hash code according to all attributes.
75
95
  # @return [Fixnum] Hash code
76
96
  def hash
77
- [tax_billing].hash
97
+ [exempt_from_colorado_retail_delivery_fee, exempt_from_minnesota_retail_delivery_fee, tax_billing].hash
78
98
  end
79
99
 
80
100
  # 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.10.212'
14
+ VERSION = '3.10.214'
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.10.212
4
+ version: 3.10.214
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