ultracart_api 4.1.121 → 4.1.124

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.
@@ -0,0 +1,240 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class EmailSuppressionSurfaces
18
+ # Outcome of removing the address from the central cross-account ses_suppression table
19
+ attr_accessor :central_ses_suppression
20
+
21
+ # Outcome of clearing the per-customer send gates on esp_customer
22
+ attr_accessor :esp_customer_flags
23
+
24
+ # Outcome of removing the address from the SES-native account-level suppression list
25
+ attr_accessor :ses_account_suppression
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'central_ses_suppression' => :'central_ses_suppression',
31
+ :'esp_customer_flags' => :'esp_customer_flags',
32
+ :'ses_account_suppression' => :'ses_account_suppression'
33
+ }
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'central_ses_suppression' => :'String',
45
+ :'esp_customer_flags' => :'String',
46
+ :'ses_account_suppression' => :'String'
47
+ }
48
+ end
49
+
50
+ # List of attributes with nullable: true
51
+ def self.openapi_nullable
52
+ Set.new([
53
+ ])
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::EmailSuppressionSurfaces` initialize method"
61
+ end
62
+
63
+ # check to see if the attribute exists and convert string to symbol for hash key
64
+ attributes = attributes.each_with_object({}) { |(k, v), h|
65
+ if (!self.class.attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::EmailSuppressionSurfaces`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
+ end
68
+ h[k.to_sym] = v
69
+ }
70
+
71
+ if attributes.key?(:'central_ses_suppression')
72
+ self.central_ses_suppression = attributes[:'central_ses_suppression']
73
+ end
74
+
75
+ if attributes.key?(:'esp_customer_flags')
76
+ self.esp_customer_flags = attributes[:'esp_customer_flags']
77
+ end
78
+
79
+ if attributes.key?(:'ses_account_suppression')
80
+ self.ses_account_suppression = attributes[:'ses_account_suppression']
81
+ end
82
+ end
83
+
84
+ # Show invalid properties with the reasons. Usually used together with valid?
85
+ # @return Array for valid properties with the reasons
86
+ def list_invalid_properties
87
+ invalid_properties = Array.new
88
+ invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ true
95
+ end
96
+
97
+ # Checks equality by comparing each attribute.
98
+ # @param [Object] Object to be compared
99
+ def ==(o)
100
+ return true if self.equal?(o)
101
+ self.class == o.class &&
102
+ central_ses_suppression == o.central_ses_suppression &&
103
+ esp_customer_flags == o.esp_customer_flags &&
104
+ ses_account_suppression == o.ses_account_suppression
105
+ end
106
+
107
+ # @see the `==` method
108
+ # @param [Object] Object to be compared
109
+ def eql?(o)
110
+ self == o
111
+ end
112
+
113
+ # Calculates hash code according to all attributes.
114
+ # @return [Integer] Hash code
115
+ def hash
116
+ [central_ses_suppression, esp_customer_flags, ses_account_suppression].hash
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def self.build_from_hash(attributes)
123
+ new.build_from_hash(attributes)
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def build_from_hash(attributes)
130
+ return nil unless attributes.is_a?(Hash)
131
+ attributes = attributes.transform_keys(&:to_sym)
132
+ self.class.openapi_types.each_pair do |key, type|
133
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
134
+ self.send("#{key}=", nil)
135
+ elsif type =~ /\AArray<(.*)>/i
136
+ # check to ensure the input is an array given that the attribute
137
+ # is documented as an array but the input is not
138
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
139
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
140
+ end
141
+ elsif !attributes[self.class.attribute_map[key]].nil?
142
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
143
+ end
144
+ end
145
+
146
+ self
147
+ end
148
+
149
+ # Deserializes the data based on type
150
+ # @param string type Data type
151
+ # @param string value Value to be deserialized
152
+ # @return [Object] Deserialized data
153
+ def _deserialize(type, value)
154
+ case type.to_sym
155
+ when :Time
156
+ Time.parse(value)
157
+ when :Date
158
+ Date.parse(value)
159
+ when :String
160
+ value.to_s
161
+ when :Integer
162
+ value.to_i
163
+ when :Float
164
+ value.to_f
165
+ when :Boolean
166
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
167
+ true
168
+ else
169
+ false
170
+ end
171
+ when :Object
172
+ # generic object (usually a Hash), return directly
173
+ value
174
+ when /\AArray<(?<inner_type>.+)>\z/
175
+ inner_type = Regexp.last_match[:inner_type]
176
+ value.map { |v| _deserialize(inner_type, v) }
177
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
178
+ k_type = Regexp.last_match[:k_type]
179
+ v_type = Regexp.last_match[:v_type]
180
+ {}.tap do |hash|
181
+ value.each do |k, v|
182
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
183
+ end
184
+ end
185
+ else # model
186
+ # models (e.g. Pet) or oneOf
187
+ klass = UltracartClient.const_get(type)
188
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
189
+ end
190
+ end
191
+
192
+ # Returns the string representation of the object
193
+ # @return [String] String presentation of the object
194
+ def to_s
195
+ to_hash.to_s
196
+ end
197
+
198
+ # to_body is an alias to to_hash (backward compatibility)
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_body
201
+ to_hash
202
+ end
203
+
204
+ # Returns the object in the form of hash
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_hash
207
+ hash = {}
208
+ self.class.attribute_map.each_pair do |attr, param|
209
+ value = self.send(attr)
210
+ if value.nil?
211
+ is_nullable = self.class.openapi_nullable.include?(attr)
212
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
213
+ end
214
+
215
+ hash[param] = _to_hash(value)
216
+ end
217
+ hash
218
+ end
219
+
220
+ # Outputs non-array value in the form of hash
221
+ # For object, use to_hash. Otherwise, just return the value
222
+ # @param [Object] value Any valid value
223
+ # @return [Hash] Returns the value in the form of hash
224
+ def _to_hash(value)
225
+ if value.is_a?(Array)
226
+ value.compact.map { |v| _to_hash(v) }
227
+ elsif value.is_a?(Hash)
228
+ {}.tap do |hash|
229
+ value.each { |k, v| hash[k] = _to_hash(v) }
230
+ end
231
+ elsif value.respond_to? :to_hash
232
+ value.to_hash
233
+ else
234
+ value
235
+ end
236
+ end
237
+
238
+ end
239
+
240
+ end
@@ -42,6 +42,12 @@ module UltracartClient
42
42
  # True if taxation within this jurisdiction should charge tax on shipping
43
43
  attr_accessor :tax_shipping
44
44
 
45
+ # VAT collection threshold for this country. Blank means no threshold, 0 always collects VAT, a positive value collects at or below that order subtotal.
46
+ attr_accessor :vat_threshold
47
+
48
+ # Currency code the vat_threshold amount is expressed in (USD, EUR or GBP).
49
+ attr_accessor :vat_threshold_currency
50
+
45
51
  # Attribute mapping from ruby-style variable name to JSON key.
46
52
  def self.attribute_map
47
53
  {
@@ -53,7 +59,9 @@ module UltracartClient
53
59
  :'tax_gift_wrap' => :'tax_gift_wrap',
54
60
  :'tax_rate' => :'tax_rate',
55
61
  :'tax_rate_formatted' => :'tax_rate_formatted',
56
- :'tax_shipping' => :'tax_shipping'
62
+ :'tax_shipping' => :'tax_shipping',
63
+ :'vat_threshold' => :'vat_threshold',
64
+ :'vat_threshold_currency' => :'vat_threshold_currency'
57
65
  }
58
66
  end
59
67
 
@@ -73,7 +81,9 @@ module UltracartClient
73
81
  :'tax_gift_wrap' => :'Boolean',
74
82
  :'tax_rate' => :'Float',
75
83
  :'tax_rate_formatted' => :'String',
76
- :'tax_shipping' => :'Boolean'
84
+ :'tax_shipping' => :'Boolean',
85
+ :'vat_threshold' => :'Float',
86
+ :'vat_threshold_currency' => :'String'
77
87
  }
78
88
  end
79
89
 
@@ -135,6 +145,14 @@ module UltracartClient
135
145
  if attributes.key?(:'tax_shipping')
136
146
  self.tax_shipping = attributes[:'tax_shipping']
137
147
  end
148
+
149
+ if attributes.key?(:'vat_threshold')
150
+ self.vat_threshold = attributes[:'vat_threshold']
151
+ end
152
+
153
+ if attributes.key?(:'vat_threshold_currency')
154
+ self.vat_threshold_currency = attributes[:'vat_threshold_currency']
155
+ end
138
156
  end
139
157
 
140
158
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -163,7 +181,9 @@ module UltracartClient
163
181
  tax_gift_wrap == o.tax_gift_wrap &&
164
182
  tax_rate == o.tax_rate &&
165
183
  tax_rate_formatted == o.tax_rate_formatted &&
166
- tax_shipping == o.tax_shipping
184
+ tax_shipping == o.tax_shipping &&
185
+ vat_threshold == o.vat_threshold &&
186
+ vat_threshold_currency == o.vat_threshold_currency
167
187
  end
168
188
 
169
189
  # @see the `==` method
@@ -175,7 +195,7 @@ module UltracartClient
175
195
  # Calculates hash code according to all attributes.
176
196
  # @return [Integer] Hash code
177
197
  def hash
178
- [accounting_code, country_code, country_oid, states, tax_gift_charge, tax_gift_wrap, tax_rate, tax_rate_formatted, tax_shipping].hash
198
+ [accounting_code, country_code, country_oid, states, tax_gift_charge, tax_gift_wrap, tax_rate, tax_rate_formatted, tax_shipping, vat_threshold, vat_threshold_currency].hash
179
199
  end
180
200
 
181
201
  # Builds the object from hash
@@ -69,6 +69,12 @@ module UltracartClient
69
69
  # If true, use UltraCart managed rates for this state
70
70
  attr_accessor :use_ultracart_managed_rates
71
71
 
72
+ # VAT collection threshold override for this region. Blank inherits the country threshold, 0 always collects VAT, a positive value collects at or below that order subtotal.
73
+ attr_accessor :vat_threshold
74
+
75
+ # Currency code the vat_threshold amount is expressed in (USD, EUR or GBP).
76
+ attr_accessor :vat_threshold_currency
77
+
72
78
  # Attribute mapping from ruby-style variable name to JSON key.
73
79
  def self.attribute_map
74
80
  {
@@ -89,7 +95,9 @@ module UltracartClient
89
95
  :'tax_rate' => :'tax_rate',
90
96
  :'tax_rate_formatted' => :'tax_rate_formatted',
91
97
  :'tax_shipping' => :'tax_shipping',
92
- :'use_ultracart_managed_rates' => :'use_ultracart_managed_rates'
98
+ :'use_ultracart_managed_rates' => :'use_ultracart_managed_rates',
99
+ :'vat_threshold' => :'vat_threshold',
100
+ :'vat_threshold_currency' => :'vat_threshold_currency'
93
101
  }
94
102
  end
95
103
 
@@ -118,7 +126,9 @@ module UltracartClient
118
126
  :'tax_rate' => :'Float',
119
127
  :'tax_rate_formatted' => :'String',
120
128
  :'tax_shipping' => :'Boolean',
121
- :'use_ultracart_managed_rates' => :'Boolean'
129
+ :'use_ultracart_managed_rates' => :'Boolean',
130
+ :'vat_threshold' => :'Float',
131
+ :'vat_threshold_currency' => :'String'
122
132
  }
123
133
  end
124
134
 
@@ -216,6 +226,14 @@ module UltracartClient
216
226
  if attributes.key?(:'use_ultracart_managed_rates')
217
227
  self.use_ultracart_managed_rates = attributes[:'use_ultracart_managed_rates']
218
228
  end
229
+
230
+ if attributes.key?(:'vat_threshold')
231
+ self.vat_threshold = attributes[:'vat_threshold']
232
+ end
233
+
234
+ if attributes.key?(:'vat_threshold_currency')
235
+ self.vat_threshold_currency = attributes[:'vat_threshold_currency']
236
+ end
219
237
  end
220
238
 
221
239
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -253,7 +271,9 @@ module UltracartClient
253
271
  tax_rate == o.tax_rate &&
254
272
  tax_rate_formatted == o.tax_rate_formatted &&
255
273
  tax_shipping == o.tax_shipping &&
256
- use_ultracart_managed_rates == o.use_ultracart_managed_rates
274
+ use_ultracart_managed_rates == o.use_ultracart_managed_rates &&
275
+ vat_threshold == o.vat_threshold &&
276
+ vat_threshold_currency == o.vat_threshold_currency
257
277
  end
258
278
 
259
279
  # @see the `==` method
@@ -265,7 +285,7 @@ module UltracartClient
265
285
  # Calculates hash code according to all attributes.
266
286
  # @return [Integer] Hash code
267
287
  def hash
268
- [accounting_code, counties, country_oid, dont_collect_city, dont_collect_county, dont_collect_postal_code, dont_collect_state, exempt_digital_items, exempt_physical_items, exempt_service_items, state_code, state_oid, tax_gift_charge, tax_gift_wrap, tax_rate, tax_rate_formatted, tax_shipping, use_ultracart_managed_rates].hash
288
+ [accounting_code, counties, country_oid, dont_collect_city, dont_collect_county, dont_collect_postal_code, dont_collect_state, exempt_digital_items, exempt_physical_items, exempt_service_items, state_code, state_oid, tax_gift_charge, tax_gift_wrap, tax_rate, tax_rate_formatted, tax_shipping, use_ultracart_managed_rates, vat_threshold, vat_threshold_currency].hash
269
289
  end
270
290
 
271
291
  # 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.1.121'
14
+ VERSION = '4.1.124'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -64,10 +64,12 @@ require 'ultracart_api/models/auto_order_item_option'
64
64
  require 'ultracart_api/models/auto_order_item_simple_schedule'
65
65
  require 'ultracart_api/models/auto_order_log'
66
66
  require 'ultracart_api/models/auto_order_management'
67
+ require 'ultracart_api/models/auto_order_payment_update_request'
67
68
  require 'ultracart_api/models/auto_order_properties_update_request'
68
69
  require 'ultracart_api/models/auto_order_property'
69
70
  require 'ultracart_api/models/auto_order_query'
70
71
  require 'ultracart_api/models/auto_order_query_batch'
72
+ require 'ultracart_api/models/auto_order_rebill_response'
71
73
  require 'ultracart_api/models/auto_order_response'
72
74
  require 'ultracart_api/models/auto_orders_request'
73
75
  require 'ultracart_api/models/auto_orders_response'
@@ -453,6 +455,9 @@ require 'ultracart_api/models/customer_edi'
453
455
  require 'ultracart_api/models/customer_editor_values'
454
456
  require 'ultracart_api/models/customer_email'
455
457
  require 'ultracart_api/models/customer_email_list_changes'
458
+ require 'ultracart_api/models/customer_email_suppression_request'
459
+ require 'ultracart_api/models/customer_email_suppression_response'
460
+ require 'ultracart_api/models/customer_email_suppression_result'
456
461
  require 'ultracart_api/models/customer_loyalty'
457
462
  require 'ultracart_api/models/customer_loyalty_ledger'
458
463
  require 'ultracart_api/models/customer_loyalty_redemption'
@@ -600,6 +605,7 @@ require 'ultracart_api/models/email_step_stat_request'
600
605
  require 'ultracart_api/models/email_step_stat_response'
601
606
  require 'ultracart_api/models/email_step_waiting_request'
602
607
  require 'ultracart_api/models/email_step_waiting_response'
608
+ require 'ultracart_api/models/email_suppression_surfaces'
603
609
  require 'ultracart_api/models/email_template'
604
610
  require 'ultracart_api/models/email_templates_response'
605
611
  require 'ultracart_api/models/email_third_party_list'
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.1.121
4
+ version: 4.1.124
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-15 00:00:00.000000000 Z
11
+ date: 2026-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -110,10 +110,12 @@ files:
110
110
  - docs/AutoOrderItemSimpleSchedule.md
111
111
  - docs/AutoOrderLog.md
112
112
  - docs/AutoOrderManagement.md
113
+ - docs/AutoOrderPaymentUpdateRequest.md
113
114
  - docs/AutoOrderPropertiesUpdateRequest.md
114
115
  - docs/AutoOrderProperty.md
115
116
  - docs/AutoOrderQuery.md
116
117
  - docs/AutoOrderQueryBatch.md
118
+ - docs/AutoOrderRebillResponse.md
117
119
  - docs/AutoOrderResponse.md
118
120
  - docs/AutoOrdersRequest.md
119
121
  - docs/AutoOrdersResponse.md
@@ -506,6 +508,9 @@ files:
506
508
  - docs/CustomerEditorValues.md
507
509
  - docs/CustomerEmail.md
508
510
  - docs/CustomerEmailListChanges.md
511
+ - docs/CustomerEmailSuppressionRequest.md
512
+ - docs/CustomerEmailSuppressionResponse.md
513
+ - docs/CustomerEmailSuppressionResult.md
509
514
  - docs/CustomerLoyalty.md
510
515
  - docs/CustomerLoyaltyLedger.md
511
516
  - docs/CustomerLoyaltyRedemption.md
@@ -654,6 +659,7 @@ files:
654
659
  - docs/EmailStepStatResponse.md
655
660
  - docs/EmailStepWaitingRequest.md
656
661
  - docs/EmailStepWaitingResponse.md
662
+ - docs/EmailSuppressionSurfaces.md
657
663
  - docs/EmailTemplate.md
658
664
  - docs/EmailTemplatesResponse.md
659
665
  - docs/EmailThirdPartyList.md
@@ -1190,10 +1196,12 @@ files:
1190
1196
  - lib/ultracart_api/models/auto_order_item_simple_schedule.rb
1191
1197
  - lib/ultracart_api/models/auto_order_log.rb
1192
1198
  - lib/ultracart_api/models/auto_order_management.rb
1199
+ - lib/ultracart_api/models/auto_order_payment_update_request.rb
1193
1200
  - lib/ultracart_api/models/auto_order_properties_update_request.rb
1194
1201
  - lib/ultracart_api/models/auto_order_property.rb
1195
1202
  - lib/ultracart_api/models/auto_order_query.rb
1196
1203
  - lib/ultracart_api/models/auto_order_query_batch.rb
1204
+ - lib/ultracart_api/models/auto_order_rebill_response.rb
1197
1205
  - lib/ultracart_api/models/auto_order_response.rb
1198
1206
  - lib/ultracart_api/models/auto_orders_request.rb
1199
1207
  - lib/ultracart_api/models/auto_orders_response.rb
@@ -1579,6 +1587,9 @@ files:
1579
1587
  - lib/ultracart_api/models/customer_editor_values.rb
1580
1588
  - lib/ultracart_api/models/customer_email.rb
1581
1589
  - lib/ultracart_api/models/customer_email_list_changes.rb
1590
+ - lib/ultracart_api/models/customer_email_suppression_request.rb
1591
+ - lib/ultracart_api/models/customer_email_suppression_response.rb
1592
+ - lib/ultracart_api/models/customer_email_suppression_result.rb
1582
1593
  - lib/ultracart_api/models/customer_loyalty.rb
1583
1594
  - lib/ultracart_api/models/customer_loyalty_ledger.rb
1584
1595
  - lib/ultracart_api/models/customer_loyalty_redemption.rb
@@ -1726,6 +1737,7 @@ files:
1726
1737
  - lib/ultracart_api/models/email_step_stat_response.rb
1727
1738
  - lib/ultracart_api/models/email_step_waiting_request.rb
1728
1739
  - lib/ultracart_api/models/email_step_waiting_response.rb
1740
+ - lib/ultracart_api/models/email_suppression_surfaces.rb
1729
1741
  - lib/ultracart_api/models/email_template.rb
1730
1742
  - lib/ultracart_api/models/email_templates_response.rb
1731
1743
  - lib/ultracart_api/models/email_third_party_list.rb