ultracart_api 3.10.213 → 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: 131e2cb97c0feb647e076268a4bae65bd746cf25199db05266bbc5264fb0100e
4
- data.tar.gz: 10dfcd42274edd174728307cde79e1a37e69e4873572d1a598bb9132486229fb
3
+ metadata.gz: 9255656b7fc08e939b1c377a9a05ac919d34d930c8017bf3d6841f185b24fb75
4
+ data.tar.gz: dd621d01b88b2a57d0a86da6c3c508adc0b6a95413e3240e99aed7380fb04412
5
5
  SHA512:
6
- metadata.gz: 2fa23e1a646c2de8f7ba6b71aa85738cd57f268673fe617d9bbf820b92bbd6541154dd981c15800ba994ee399b390af894951613f2409b9fc67b05a79dd48359
7
- data.tar.gz: a8652785a2a7844043c2fe8c2c570d602d8487f17b2ad46f09f35423ede75f7849f30fcc13f11a3598880f0dd57a9f7f96b20e8f45a27a3264f9d2ec72eab18a
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.213
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.213.gem
27
+ gem install ./ultracart_api-3.10.214.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.213.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.213'
35
+ gem 'ultracart_api', '~> 3.10.214'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1510,6 +1510,7 @@ Not every change is committed to every SDK.
1510
1510
 
1511
1511
  | Version | Date | Comments |
1512
1512
  | --: | :-: | --- |
1513
+ | 3.10.214 | 08/08/2024 | added query_target to OrderApi.getOrdersBatch to allow cache usage |
1513
1514
  | 3.10.213 | 06/24/2024 | conversation object cleanup |
1514
1515
  | 3.10.212 | 06/14/2024 | pbx menu - add say voice property |
1515
1516
  | 3.10.211 | 06/07/2024 | conversation pbx - adjust agent voicemail box uuid fields |
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
 
@@ -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
@@ -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
@@ -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.213'
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.213
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-24 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