ultracart_api 4.1.73 → 4.1.76

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,270 @@
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 ConversationEmbedPbxAuthResponse
18
+ # Merchant identifier the agent belongs to.
19
+ attr_accessor :merchant_id
20
+
21
+ # True if this agent has PBX admin privileges.
22
+ attr_accessor :pbx_admin
23
+
24
+ # JWT used by the softphone widget to authenticate to the PBX WebSocket relay.
25
+ attr_accessor :pbx_jwt
26
+
27
+ # True if this agent has PBX supervisor privileges.
28
+ attr_accessor :pbx_supervisor
29
+
30
+ # True if this agent has baseline PBX access.
31
+ attr_accessor :pbx_user
32
+
33
+ # Voice identity string identifying this agent to the PBX (e.g., client:user_123).
34
+ attr_accessor :pbx_voice_identity
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+ :'merchant_id' => :'merchant_id',
40
+ :'pbx_admin' => :'pbx_admin',
41
+ :'pbx_jwt' => :'pbx_jwt',
42
+ :'pbx_supervisor' => :'pbx_supervisor',
43
+ :'pbx_user' => :'pbx_user',
44
+ :'pbx_voice_identity' => :'pbx_voice_identity'
45
+ }
46
+ end
47
+
48
+ # Returns all the JSON keys this model knows about
49
+ def self.acceptable_attributes
50
+ attribute_map.values
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.openapi_types
55
+ {
56
+ :'merchant_id' => :'String',
57
+ :'pbx_admin' => :'Boolean',
58
+ :'pbx_jwt' => :'String',
59
+ :'pbx_supervisor' => :'Boolean',
60
+ :'pbx_user' => :'Boolean',
61
+ :'pbx_voice_identity' => :'String'
62
+ }
63
+ end
64
+
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ ])
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ConversationEmbedPbxAuthResponse` initialize method"
76
+ end
77
+
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ attributes = attributes.each_with_object({}) { |(k, v), h|
80
+ if (!self.class.attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ConversationEmbedPbxAuthResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
+ end
83
+ h[k.to_sym] = v
84
+ }
85
+
86
+ if attributes.key?(:'merchant_id')
87
+ self.merchant_id = attributes[:'merchant_id']
88
+ end
89
+
90
+ if attributes.key?(:'pbx_admin')
91
+ self.pbx_admin = attributes[:'pbx_admin']
92
+ end
93
+
94
+ if attributes.key?(:'pbx_jwt')
95
+ self.pbx_jwt = attributes[:'pbx_jwt']
96
+ end
97
+
98
+ if attributes.key?(:'pbx_supervisor')
99
+ self.pbx_supervisor = attributes[:'pbx_supervisor']
100
+ end
101
+
102
+ if attributes.key?(:'pbx_user')
103
+ self.pbx_user = attributes[:'pbx_user']
104
+ end
105
+
106
+ if attributes.key?(:'pbx_voice_identity')
107
+ self.pbx_voice_identity = attributes[:'pbx_voice_identity']
108
+ end
109
+ end
110
+
111
+ # Show invalid properties with the reasons. Usually used together with valid?
112
+ # @return Array for valid properties with the reasons
113
+ def list_invalid_properties
114
+ invalid_properties = Array.new
115
+ invalid_properties
116
+ end
117
+
118
+ # Check to see if the all the properties in the model are valid
119
+ # @return true if the model is valid
120
+ def valid?
121
+ true
122
+ end
123
+
124
+ # Checks equality by comparing each attribute.
125
+ # @param [Object] Object to be compared
126
+ def ==(o)
127
+ return true if self.equal?(o)
128
+ self.class == o.class &&
129
+ merchant_id == o.merchant_id &&
130
+ pbx_admin == o.pbx_admin &&
131
+ pbx_jwt == o.pbx_jwt &&
132
+ pbx_supervisor == o.pbx_supervisor &&
133
+ pbx_user == o.pbx_user &&
134
+ pbx_voice_identity == o.pbx_voice_identity
135
+ end
136
+
137
+ # @see the `==` method
138
+ # @param [Object] Object to be compared
139
+ def eql?(o)
140
+ self == o
141
+ end
142
+
143
+ # Calculates hash code according to all attributes.
144
+ # @return [Integer] Hash code
145
+ def hash
146
+ [merchant_id, pbx_admin, pbx_jwt, pbx_supervisor, pbx_user, pbx_voice_identity].hash
147
+ end
148
+
149
+ # Builds the object from hash
150
+ # @param [Hash] attributes Model attributes in the form of hash
151
+ # @return [Object] Returns the model itself
152
+ def self.build_from_hash(attributes)
153
+ new.build_from_hash(attributes)
154
+ end
155
+
156
+ # Builds the object from hash
157
+ # @param [Hash] attributes Model attributes in the form of hash
158
+ # @return [Object] Returns the model itself
159
+ def build_from_hash(attributes)
160
+ return nil unless attributes.is_a?(Hash)
161
+ attributes = attributes.transform_keys(&:to_sym)
162
+ self.class.openapi_types.each_pair do |key, type|
163
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
164
+ self.send("#{key}=", nil)
165
+ elsif type =~ /\AArray<(.*)>/i
166
+ # check to ensure the input is an array given that the attribute
167
+ # is documented as an array but the input is not
168
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
169
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
170
+ end
171
+ elsif !attributes[self.class.attribute_map[key]].nil?
172
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
173
+ end
174
+ end
175
+
176
+ self
177
+ end
178
+
179
+ # Deserializes the data based on type
180
+ # @param string type Data type
181
+ # @param string value Value to be deserialized
182
+ # @return [Object] Deserialized data
183
+ def _deserialize(type, value)
184
+ case type.to_sym
185
+ when :Time
186
+ Time.parse(value)
187
+ when :Date
188
+ Date.parse(value)
189
+ when :String
190
+ value.to_s
191
+ when :Integer
192
+ value.to_i
193
+ when :Float
194
+ value.to_f
195
+ when :Boolean
196
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
197
+ true
198
+ else
199
+ false
200
+ end
201
+ when :Object
202
+ # generic object (usually a Hash), return directly
203
+ value
204
+ when /\AArray<(?<inner_type>.+)>\z/
205
+ inner_type = Regexp.last_match[:inner_type]
206
+ value.map { |v| _deserialize(inner_type, v) }
207
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
208
+ k_type = Regexp.last_match[:k_type]
209
+ v_type = Regexp.last_match[:v_type]
210
+ {}.tap do |hash|
211
+ value.each do |k, v|
212
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
213
+ end
214
+ end
215
+ else # model
216
+ # models (e.g. Pet) or oneOf
217
+ klass = UltracartClient.const_get(type)
218
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
219
+ end
220
+ end
221
+
222
+ # Returns the string representation of the object
223
+ # @return [String] String presentation of the object
224
+ def to_s
225
+ to_hash.to_s
226
+ end
227
+
228
+ # to_body is an alias to to_hash (backward compatibility)
229
+ # @return [Hash] Returns the object in the form of hash
230
+ def to_body
231
+ to_hash
232
+ end
233
+
234
+ # Returns the object in the form of hash
235
+ # @return [Hash] Returns the object in the form of hash
236
+ def to_hash
237
+ hash = {}
238
+ self.class.attribute_map.each_pair do |attr, param|
239
+ value = self.send(attr)
240
+ if value.nil?
241
+ is_nullable = self.class.openapi_nullable.include?(attr)
242
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
243
+ end
244
+
245
+ hash[param] = _to_hash(value)
246
+ end
247
+ hash
248
+ end
249
+
250
+ # Outputs non-array value in the form of hash
251
+ # For object, use to_hash. Otherwise, just return the value
252
+ # @param [Object] value Any valid value
253
+ # @return [Hash] Returns the value in the form of hash
254
+ def _to_hash(value)
255
+ if value.is_a?(Array)
256
+ value.compact.map { |v| _to_hash(v) }
257
+ elsif value.is_a?(Hash)
258
+ {}.tap do |hash|
259
+ value.each { |k, v| hash[k] = _to_hash(v) }
260
+ end
261
+ elsif value.respond_to? :to_hash
262
+ value.to_hash
263
+ else
264
+ value
265
+ end
266
+ end
267
+
268
+ end
269
+
270
+ end
@@ -63,6 +63,9 @@ module UltracartClient
63
63
  # True to translate the order into the native language of the customer
64
64
  attr_accessor :translate
65
65
 
66
+ # True to render phone numbers as <phone-number-format> web components in the HTML output. Only honored by the div format. Default false preserves legacy scalar rendering for receipts and unauthenticated consumers.
67
+ attr_accessor :use_phone_number_web_component
68
+
66
69
  class EnumAttributeValidator
67
70
  attr_reader :datatype
68
71
  attr_reader :allowable_values
@@ -103,7 +106,8 @@ module UltracartClient
103
106
  :'show_merchant_notes' => :'show_merchant_notes',
104
107
  :'show_non_sensitive_payment_info' => :'show_non_sensitive_payment_info',
105
108
  :'show_payment_info' => :'show_payment_info',
106
- :'translate' => :'translate'
109
+ :'translate' => :'translate',
110
+ :'use_phone_number_web_component' => :'use_phone_number_web_component'
107
111
  }
108
112
  end
109
113
 
@@ -130,7 +134,8 @@ module UltracartClient
130
134
  :'show_merchant_notes' => :'Boolean',
131
135
  :'show_non_sensitive_payment_info' => :'Boolean',
132
136
  :'show_payment_info' => :'Boolean',
133
- :'translate' => :'Boolean'
137
+ :'translate' => :'Boolean',
138
+ :'use_phone_number_web_component' => :'Boolean'
134
139
  }
135
140
  end
136
141
 
@@ -218,6 +223,10 @@ module UltracartClient
218
223
  if attributes.key?(:'translate')
219
224
  self.translate = attributes[:'translate']
220
225
  end
226
+
227
+ if attributes.key?(:'use_phone_number_web_component')
228
+ self.use_phone_number_web_component = attributes[:'use_phone_number_web_component']
229
+ end
221
230
  end
222
231
 
223
232
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -265,7 +274,8 @@ module UltracartClient
265
274
  show_merchant_notes == o.show_merchant_notes &&
266
275
  show_non_sensitive_payment_info == o.show_non_sensitive_payment_info &&
267
276
  show_payment_info == o.show_payment_info &&
268
- translate == o.translate
277
+ translate == o.translate &&
278
+ use_phone_number_web_component == o.use_phone_number_web_component
269
279
  end
270
280
 
271
281
  # @see the `==` method
@@ -277,7 +287,7 @@ module UltracartClient
277
287
  # Calculates hash code according to all attributes.
278
288
  # @return [Integer] Hash code
279
289
  def hash
280
- [context, dont_link_email_to_search, email_as_link, filter_distribution_center_oid, filter_to_items_in_container_oid, format, hide_bill_to_address, hide_price_information, link_file_attachments, show_contact_info, show_in_merchant_currency, show_internal_information, show_merchant_notes, show_non_sensitive_payment_info, show_payment_info, translate].hash
290
+ [context, dont_link_email_to_search, email_as_link, filter_distribution_center_oid, filter_to_items_in_container_oid, format, hide_bill_to_address, hide_price_information, link_file_attachments, show_contact_info, show_in_merchant_currency, show_internal_information, show_merchant_notes, show_non_sensitive_payment_info, show_payment_info, translate, use_phone_number_web_component].hash
281
291
  end
282
292
 
283
293
  # 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.73'
14
+ VERSION = '4.1.76'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -45,6 +45,7 @@ require 'ultracart_api/models/auto_order_addon_item_option'
45
45
  require 'ultracart_api/models/auto_order_addon_items_update_request'
46
46
  require 'ultracart_api/models/auto_order_consolidate'
47
47
  require 'ultracart_api/models/auto_order_item'
48
+ require 'ultracart_api/models/auto_order_item_cancel_request'
48
49
  require 'ultracart_api/models/auto_order_item_future_schedule'
49
50
  require 'ultracart_api/models/auto_order_item_option'
50
51
  require 'ultracart_api/models/auto_order_item_simple_schedule'
@@ -167,6 +168,7 @@ require 'ultracart_api/models/conversation_department_member'
167
168
  require 'ultracart_api/models/conversation_department_members_response'
168
169
  require 'ultracart_api/models/conversation_department_response'
169
170
  require 'ultracart_api/models/conversation_departments_response'
171
+ require 'ultracart_api/models/conversation_embed_pbx_auth_response'
170
172
  require 'ultracart_api/models/conversation_engagement'
171
173
  require 'ultracart_api/models/conversation_engagement_equation'
172
174
  require 'ultracart_api/models/conversation_engagement_equation_function'
@@ -976,6 +978,7 @@ require 'ultracart_api/api/auto_order_api'
976
978
  require 'ultracart_api/api/channel_partner_api'
977
979
  require 'ultracart_api/api/checkout_api'
978
980
  require 'ultracart_api/api/conversation_api'
981
+ require 'ultracart_api/api/conversation_embed_api'
979
982
  require 'ultracart_api/api/coupon_api'
980
983
  require 'ultracart_api/api/customer_api'
981
984
  require 'ultracart_api/api/datawarehouse_api'
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.73
4
+ version: 4.1.76
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-13 00:00:00.000000000 Z
11
+ date: 2026-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -91,6 +91,7 @@ files:
91
91
  - docs/AutoOrderApi.md
92
92
  - docs/AutoOrderConsolidate.md
93
93
  - docs/AutoOrderItem.md
94
+ - docs/AutoOrderItemCancelRequest.md
94
95
  - docs/AutoOrderItemFutureSchedule.md
95
96
  - docs/AutoOrderItemOption.md
96
97
  - docs/AutoOrderItemSimpleSchedule.md
@@ -216,6 +217,8 @@ files:
216
217
  - docs/ConversationDepartmentMembersResponse.md
217
218
  - docs/ConversationDepartmentResponse.md
218
219
  - docs/ConversationDepartmentsResponse.md
220
+ - docs/ConversationEmbedApi.md
221
+ - docs/ConversationEmbedPbxAuthResponse.md
219
222
  - docs/ConversationEngagement.md
220
223
  - docs/ConversationEngagementEquation.md
221
224
  - docs/ConversationEngagementEquationFunction.md
@@ -1040,6 +1043,7 @@ files:
1040
1043
  - lib/ultracart_api/api/channel_partner_api.rb
1041
1044
  - lib/ultracart_api/api/checkout_api.rb
1042
1045
  - lib/ultracart_api/api/conversation_api.rb
1046
+ - lib/ultracart_api/api/conversation_embed_api.rb
1043
1047
  - lib/ultracart_api/api/coupon_api.rb
1044
1048
  - lib/ultracart_api/api/customer_api.rb
1045
1049
  - lib/ultracart_api/api/datawarehouse_api.rb
@@ -1086,6 +1090,7 @@ files:
1086
1090
  - lib/ultracart_api/models/auto_order_addon_items_update_request.rb
1087
1091
  - lib/ultracart_api/models/auto_order_consolidate.rb
1088
1092
  - lib/ultracart_api/models/auto_order_item.rb
1093
+ - lib/ultracart_api/models/auto_order_item_cancel_request.rb
1089
1094
  - lib/ultracart_api/models/auto_order_item_future_schedule.rb
1090
1095
  - lib/ultracart_api/models/auto_order_item_option.rb
1091
1096
  - lib/ultracart_api/models/auto_order_item_simple_schedule.rb
@@ -1208,6 +1213,7 @@ files:
1208
1213
  - lib/ultracart_api/models/conversation_department_members_response.rb
1209
1214
  - lib/ultracart_api/models/conversation_department_response.rb
1210
1215
  - lib/ultracart_api/models/conversation_departments_response.rb
1216
+ - lib/ultracart_api/models/conversation_embed_pbx_auth_response.rb
1211
1217
  - lib/ultracart_api/models/conversation_engagement.rb
1212
1218
  - lib/ultracart_api/models/conversation_engagement_equation.rb
1213
1219
  - lib/ultracart_api/models/conversation_engagement_equation_function.rb