ultracart_api 4.1.102 → 4.1.104

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,350 @@
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 ZohoDeskTicketSummary
18
+ # Assigned agent ID, if any
19
+ attr_accessor :assignee_id
20
+
21
+ # Assigned agent display name, if any
22
+ attr_accessor :assignee_name
23
+
24
+ # Source channel (Phone, Email, Chat, ...)
25
+ attr_accessor :channel
26
+
27
+ # Creation timestamp in ISO 8601
28
+ attr_accessor :created_time
29
+
30
+ # Department ID
31
+ attr_accessor :department_id
32
+
33
+ # Department display name
34
+ attr_accessor :department_name
35
+
36
+ # Unique ticket ID
37
+ attr_accessor :id
38
+
39
+ # Last modification timestamp in ISO 8601
40
+ attr_accessor :modified_time
41
+
42
+ # Priority
43
+ attr_accessor :priority
44
+
45
+ # Current status (e.g. Open, Closed)
46
+ attr_accessor :status
47
+
48
+ # Status category (Open/Closed/OnHold)
49
+ attr_accessor :status_type
50
+
51
+ # Ticket subject
52
+ attr_accessor :subject
53
+
54
+ # Human-readable ticket number
55
+ attr_accessor :ticket_number
56
+
57
+ # Direct link to the ticket in Zoho Desk
58
+ attr_accessor :web_url
59
+
60
+ # Attribute mapping from ruby-style variable name to JSON key.
61
+ def self.attribute_map
62
+ {
63
+ :'assignee_id' => :'assignee_id',
64
+ :'assignee_name' => :'assignee_name',
65
+ :'channel' => :'channel',
66
+ :'created_time' => :'created_time',
67
+ :'department_id' => :'department_id',
68
+ :'department_name' => :'department_name',
69
+ :'id' => :'id',
70
+ :'modified_time' => :'modified_time',
71
+ :'priority' => :'priority',
72
+ :'status' => :'status',
73
+ :'status_type' => :'status_type',
74
+ :'subject' => :'subject',
75
+ :'ticket_number' => :'ticket_number',
76
+ :'web_url' => :'web_url'
77
+ }
78
+ end
79
+
80
+ # Returns all the JSON keys this model knows about
81
+ def self.acceptable_attributes
82
+ attribute_map.values
83
+ end
84
+
85
+ # Attribute type mapping.
86
+ def self.openapi_types
87
+ {
88
+ :'assignee_id' => :'String',
89
+ :'assignee_name' => :'String',
90
+ :'channel' => :'String',
91
+ :'created_time' => :'String',
92
+ :'department_id' => :'String',
93
+ :'department_name' => :'String',
94
+ :'id' => :'String',
95
+ :'modified_time' => :'String',
96
+ :'priority' => :'String',
97
+ :'status' => :'String',
98
+ :'status_type' => :'String',
99
+ :'subject' => :'String',
100
+ :'ticket_number' => :'String',
101
+ :'web_url' => :'String'
102
+ }
103
+ end
104
+
105
+ # List of attributes with nullable: true
106
+ def self.openapi_nullable
107
+ Set.new([
108
+ ])
109
+ end
110
+
111
+ # Initializes the object
112
+ # @param [Hash] attributes Model attributes in the form of hash
113
+ def initialize(attributes = {})
114
+ if (!attributes.is_a?(Hash))
115
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ZohoDeskTicketSummary` initialize method"
116
+ end
117
+
118
+ # check to see if the attribute exists and convert string to symbol for hash key
119
+ attributes = attributes.each_with_object({}) { |(k, v), h|
120
+ if (!self.class.attribute_map.key?(k.to_sym))
121
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ZohoDeskTicketSummary`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
122
+ end
123
+ h[k.to_sym] = v
124
+ }
125
+
126
+ if attributes.key?(:'assignee_id')
127
+ self.assignee_id = attributes[:'assignee_id']
128
+ end
129
+
130
+ if attributes.key?(:'assignee_name')
131
+ self.assignee_name = attributes[:'assignee_name']
132
+ end
133
+
134
+ if attributes.key?(:'channel')
135
+ self.channel = attributes[:'channel']
136
+ end
137
+
138
+ if attributes.key?(:'created_time')
139
+ self.created_time = attributes[:'created_time']
140
+ end
141
+
142
+ if attributes.key?(:'department_id')
143
+ self.department_id = attributes[:'department_id']
144
+ end
145
+
146
+ if attributes.key?(:'department_name')
147
+ self.department_name = attributes[:'department_name']
148
+ end
149
+
150
+ if attributes.key?(:'id')
151
+ self.id = attributes[:'id']
152
+ end
153
+
154
+ if attributes.key?(:'modified_time')
155
+ self.modified_time = attributes[:'modified_time']
156
+ end
157
+
158
+ if attributes.key?(:'priority')
159
+ self.priority = attributes[:'priority']
160
+ end
161
+
162
+ if attributes.key?(:'status')
163
+ self.status = attributes[:'status']
164
+ end
165
+
166
+ if attributes.key?(:'status_type')
167
+ self.status_type = attributes[:'status_type']
168
+ end
169
+
170
+ if attributes.key?(:'subject')
171
+ self.subject = attributes[:'subject']
172
+ end
173
+
174
+ if attributes.key?(:'ticket_number')
175
+ self.ticket_number = attributes[:'ticket_number']
176
+ end
177
+
178
+ if attributes.key?(:'web_url')
179
+ self.web_url = attributes[:'web_url']
180
+ end
181
+ end
182
+
183
+ # Show invalid properties with the reasons. Usually used together with valid?
184
+ # @return Array for valid properties with the reasons
185
+ def list_invalid_properties
186
+ invalid_properties = Array.new
187
+ invalid_properties
188
+ end
189
+
190
+ # Check to see if the all the properties in the model are valid
191
+ # @return true if the model is valid
192
+ def valid?
193
+ true
194
+ end
195
+
196
+ # Checks equality by comparing each attribute.
197
+ # @param [Object] Object to be compared
198
+ def ==(o)
199
+ return true if self.equal?(o)
200
+ self.class == o.class &&
201
+ assignee_id == o.assignee_id &&
202
+ assignee_name == o.assignee_name &&
203
+ channel == o.channel &&
204
+ created_time == o.created_time &&
205
+ department_id == o.department_id &&
206
+ department_name == o.department_name &&
207
+ id == o.id &&
208
+ modified_time == o.modified_time &&
209
+ priority == o.priority &&
210
+ status == o.status &&
211
+ status_type == o.status_type &&
212
+ subject == o.subject &&
213
+ ticket_number == o.ticket_number &&
214
+ web_url == o.web_url
215
+ end
216
+
217
+ # @see the `==` method
218
+ # @param [Object] Object to be compared
219
+ def eql?(o)
220
+ self == o
221
+ end
222
+
223
+ # Calculates hash code according to all attributes.
224
+ # @return [Integer] Hash code
225
+ def hash
226
+ [assignee_id, assignee_name, channel, created_time, department_id, department_name, id, modified_time, priority, status, status_type, subject, ticket_number, web_url].hash
227
+ end
228
+
229
+ # Builds the object from hash
230
+ # @param [Hash] attributes Model attributes in the form of hash
231
+ # @return [Object] Returns the model itself
232
+ def self.build_from_hash(attributes)
233
+ new.build_from_hash(attributes)
234
+ end
235
+
236
+ # Builds the object from hash
237
+ # @param [Hash] attributes Model attributes in the form of hash
238
+ # @return [Object] Returns the model itself
239
+ def build_from_hash(attributes)
240
+ return nil unless attributes.is_a?(Hash)
241
+ attributes = attributes.transform_keys(&:to_sym)
242
+ self.class.openapi_types.each_pair do |key, type|
243
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
244
+ self.send("#{key}=", nil)
245
+ elsif type =~ /\AArray<(.*)>/i
246
+ # check to ensure the input is an array given that the attribute
247
+ # is documented as an array but the input is not
248
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
249
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
250
+ end
251
+ elsif !attributes[self.class.attribute_map[key]].nil?
252
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
253
+ end
254
+ end
255
+
256
+ self
257
+ end
258
+
259
+ # Deserializes the data based on type
260
+ # @param string type Data type
261
+ # @param string value Value to be deserialized
262
+ # @return [Object] Deserialized data
263
+ def _deserialize(type, value)
264
+ case type.to_sym
265
+ when :Time
266
+ Time.parse(value)
267
+ when :Date
268
+ Date.parse(value)
269
+ when :String
270
+ value.to_s
271
+ when :Integer
272
+ value.to_i
273
+ when :Float
274
+ value.to_f
275
+ when :Boolean
276
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
277
+ true
278
+ else
279
+ false
280
+ end
281
+ when :Object
282
+ # generic object (usually a Hash), return directly
283
+ value
284
+ when /\AArray<(?<inner_type>.+)>\z/
285
+ inner_type = Regexp.last_match[:inner_type]
286
+ value.map { |v| _deserialize(inner_type, v) }
287
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
288
+ k_type = Regexp.last_match[:k_type]
289
+ v_type = Regexp.last_match[:v_type]
290
+ {}.tap do |hash|
291
+ value.each do |k, v|
292
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
293
+ end
294
+ end
295
+ else # model
296
+ # models (e.g. Pet) or oneOf
297
+ klass = UltracartClient.const_get(type)
298
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
299
+ end
300
+ end
301
+
302
+ # Returns the string representation of the object
303
+ # @return [String] String presentation of the object
304
+ def to_s
305
+ to_hash.to_s
306
+ end
307
+
308
+ # to_body is an alias to to_hash (backward compatibility)
309
+ # @return [Hash] Returns the object in the form of hash
310
+ def to_body
311
+ to_hash
312
+ end
313
+
314
+ # Returns the object in the form of hash
315
+ # @return [Hash] Returns the object in the form of hash
316
+ def to_hash
317
+ hash = {}
318
+ self.class.attribute_map.each_pair do |attr, param|
319
+ value = self.send(attr)
320
+ if value.nil?
321
+ is_nullable = self.class.openapi_nullable.include?(attr)
322
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
323
+ end
324
+
325
+ hash[param] = _to_hash(value)
326
+ end
327
+ hash
328
+ end
329
+
330
+ # Outputs non-array value in the form of hash
331
+ # For object, use to_hash. Otherwise, just return the value
332
+ # @param [Object] value Any valid value
333
+ # @return [Hash] Returns the value in the form of hash
334
+ def _to_hash(value)
335
+ if value.is_a?(Array)
336
+ value.compact.map { |v| _to_hash(v) }
337
+ elsif value.is_a?(Hash)
338
+ {}.tap do |hash|
339
+ value.each { |k, v| hash[k] = _to_hash(v) }
340
+ end
341
+ elsif value.respond_to? :to_hash
342
+ value.to_hash
343
+ else
344
+ value
345
+ end
346
+ end
347
+
348
+ end
349
+
350
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.1.102'
14
+ VERSION = '4.1.104'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -29,6 +29,8 @@ require 'ultracart_api/models/activity'
29
29
  require 'ultracart_api/models/add_library_item_request'
30
30
  require 'ultracart_api/models/adjust_internal_certificate_request'
31
31
  require 'ultracart_api/models/adjust_internal_certificate_response'
32
+ require 'ultracart_api/models/affiliate'
33
+ require 'ultracart_api/models/affiliate_attribute'
32
34
  require 'ultracart_api/models/affiliate_click'
33
35
  require 'ultracart_api/models/affiliate_click_query'
34
36
  require 'ultracart_api/models/affiliate_clicks_response'
@@ -36,6 +38,11 @@ require 'ultracart_api/models/affiliate_ledger'
36
38
  require 'ultracart_api/models/affiliate_ledger_query'
37
39
  require 'ultracart_api/models/affiliate_ledgers_response'
38
40
  require 'ultracart_api/models/affiliate_link'
41
+ require 'ultracart_api/models/affiliate_marketing_strategy'
42
+ require 'ultracart_api/models/affiliate_query'
43
+ require 'ultracart_api/models/affiliate_response'
44
+ require 'ultracart_api/models/affiliate_tier_relationship'
45
+ require 'ultracart_api/models/affiliates_response'
39
46
  require 'ultracart_api/models/agent_summary'
40
47
  require 'ultracart_api/models/api_user_application_profile'
41
48
  require 'ultracart_api/models/apply_library_item_request'
@@ -1023,6 +1030,7 @@ require 'ultracart_api/models/workflow_tasks_response'
1023
1030
  require 'ultracart_api/models/workflow_user'
1024
1031
  require 'ultracart_api/models/workflow_user_response'
1025
1032
  require 'ultracart_api/models/workflow_users_response'
1033
+ require 'ultracart_api/models/zoho_desk_ticket_summary'
1026
1034
 
1027
1035
  # APIs
1028
1036
  require 'ultracart_api/api/affiliate_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.102
4
+ version: 4.1.104
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-17 00:00:00.000000000 Z
11
+ date: 2026-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -73,7 +73,9 @@ files:
73
73
  - docs/AddLibraryItemRequest.md
74
74
  - docs/AdjustInternalCertificateRequest.md
75
75
  - docs/AdjustInternalCertificateResponse.md
76
+ - docs/Affiliate.md
76
77
  - docs/AffiliateApi.md
78
+ - docs/AffiliateAttribute.md
77
79
  - docs/AffiliateClick.md
78
80
  - docs/AffiliateClickQuery.md
79
81
  - docs/AffiliateClicksResponse.md
@@ -81,6 +83,11 @@ files:
81
83
  - docs/AffiliateLedgerQuery.md
82
84
  - docs/AffiliateLedgersResponse.md
83
85
  - docs/AffiliateLink.md
86
+ - docs/AffiliateMarketingStrategy.md
87
+ - docs/AffiliateQuery.md
88
+ - docs/AffiliateResponse.md
89
+ - docs/AffiliateTierRelationship.md
90
+ - docs/AffiliatesResponse.md
84
91
  - docs/AgentSummary.md
85
92
  - docs/ApiUserApplicationProfile.md
86
93
  - docs/ApplyLibraryItemRequest.md
@@ -1089,6 +1096,7 @@ files:
1089
1096
  - docs/WorkflowUser.md
1090
1097
  - docs/WorkflowUserResponse.md
1091
1098
  - docs/WorkflowUsersResponse.md
1099
+ - docs/ZohoDeskTicketSummary.md
1092
1100
  - git_push.sh
1093
1101
  - lib/ultracart_api.rb
1094
1102
  - lib/ultracart_api/api/affiliate_api.rb
@@ -1128,6 +1136,8 @@ files:
1128
1136
  - lib/ultracart_api/models/add_library_item_request.rb
1129
1137
  - lib/ultracart_api/models/adjust_internal_certificate_request.rb
1130
1138
  - lib/ultracart_api/models/adjust_internal_certificate_response.rb
1139
+ - lib/ultracart_api/models/affiliate.rb
1140
+ - lib/ultracart_api/models/affiliate_attribute.rb
1131
1141
  - lib/ultracart_api/models/affiliate_click.rb
1132
1142
  - lib/ultracart_api/models/affiliate_click_query.rb
1133
1143
  - lib/ultracart_api/models/affiliate_clicks_response.rb
@@ -1135,6 +1145,11 @@ files:
1135
1145
  - lib/ultracart_api/models/affiliate_ledger_query.rb
1136
1146
  - lib/ultracart_api/models/affiliate_ledgers_response.rb
1137
1147
  - lib/ultracart_api/models/affiliate_link.rb
1148
+ - lib/ultracart_api/models/affiliate_marketing_strategy.rb
1149
+ - lib/ultracart_api/models/affiliate_query.rb
1150
+ - lib/ultracart_api/models/affiliate_response.rb
1151
+ - lib/ultracart_api/models/affiliate_tier_relationship.rb
1152
+ - lib/ultracart_api/models/affiliates_response.rb
1138
1153
  - lib/ultracart_api/models/agent_summary.rb
1139
1154
  - lib/ultracart_api/models/api_user_application_profile.rb
1140
1155
  - lib/ultracart_api/models/apply_library_item_request.rb
@@ -2122,6 +2137,7 @@ files:
2122
2137
  - lib/ultracart_api/models/workflow_user.rb
2123
2138
  - lib/ultracart_api/models/workflow_user_response.rb
2124
2139
  - lib/ultracart_api/models/workflow_users_response.rb
2140
+ - lib/ultracart_api/models/zoho_desk_ticket_summary.rb
2125
2141
  - lib/ultracart_api/version.rb
2126
2142
  - spec/api_client_spec.rb
2127
2143
  - spec/configuration_spec.rb