ultracart_api 4.1.103 → 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.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/docs/ConversationPbxCustomerSnapshotRequest.md +2 -0
- data/docs/ConversationPbxCustomerSnapshotResponse.md +3 -1
- data/docs/ZohoDeskTicketSummary.md +44 -0
- data/lib/ultracart_api/models/conversation_pbx_customer_snapshot_request.rb +10 -1
- data/lib/ultracart_api/models/conversation_pbx_customer_snapshot_response.rb +15 -4
- data/lib/ultracart_api/models/zoho_desk_ticket_summary.rb +350 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1aed3ce285397cd79eafa104fa368f1a55af7cc36a5be76b65d1a7893cfe4aba
|
|
4
|
+
data.tar.gz: 727fbd89752c3bcfcf44b995eb07303682b408df2b121e956e419a785b44e5ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c8a160ca31cf8784d25bb85690ff1c59ac544a331f6ebfd8f8b7adc5f7af75954ad6085dcd83d287a165ea08f71cbb532c023f5172b3a5c90e19975bbb8d3ba
|
|
7
|
+
data.tar.gz: 922091e73213b45e193330cab77263c653db2edc70a6267e9610207fc4d96fece4fb560a3f525a8a4ebafe38b1b65528a976d1b3062e3f2a5888796aebf80750
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Note: Every method has a sample for every language. See https://github.com/Ultr
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: 2.0.0
|
|
10
|
-
- Package version: 4.1.
|
|
10
|
+
- Package version: 4.1.104
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
- For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
|
|
|
16
16
|
gemfile:
|
|
17
17
|
|
|
18
18
|
```shell
|
|
19
|
-
gem 'ultracart_api', '4.1.
|
|
19
|
+
gem 'ultracart_api', '4.1.104'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
install:
|
|
@@ -1715,6 +1715,7 @@ Class | Method | HTTP request | Description
|
|
|
1715
1715
|
- [UltracartClient::WorkflowUser](docs/WorkflowUser.md)
|
|
1716
1716
|
- [UltracartClient::WorkflowUserResponse](docs/WorkflowUserResponse.md)
|
|
1717
1717
|
- [UltracartClient::WorkflowUsersResponse](docs/WorkflowUsersResponse.md)
|
|
1718
|
+
- [UltracartClient::ZohoDeskTicketSummary](docs/ZohoDeskTicketSummary.md)
|
|
1718
1719
|
|
|
1719
1720
|
|
|
1720
1721
|
## Documentation for Authorization
|
|
@@ -1792,6 +1793,7 @@ Not every change is committed to every SDK.
|
|
|
1792
1793
|
|
|
1793
1794
|
| Version | Date | Comments |
|
|
1794
1795
|
| --: | :-: | --- |
|
|
1796
|
+
| 4.1.104 | 06/30/2026 | conversations - customer snapshot zoho desk tickets included |
|
|
1795
1797
|
| 4.1.103 | 06/18/2026 | affiliate api alpha |
|
|
1796
1798
|
| 4.1.102 | 06/17/2026 | storefront communications - new single email enrollment method |
|
|
1797
1799
|
| 4.1.101 | 06/10/2026 | conversation pbx call notes fields |
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
| **order_expand** | **String** | | [optional] |
|
|
12
12
|
| **phone_number** | **String** | | [optional] |
|
|
13
13
|
| **search_linked_accounts** | **Boolean** | | [optional] |
|
|
14
|
+
| **search_zoho_desk_tickets** | **Boolean** | | [optional] |
|
|
14
15
|
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
|
15
16
|
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
|
16
17
|
|
|
@@ -27,6 +28,7 @@ instance = UltracartClient::ConversationPbxCustomerSnapshotRequest.new(
|
|
|
27
28
|
order_expand: null,
|
|
28
29
|
phone_number: null,
|
|
29
30
|
search_linked_accounts: null,
|
|
31
|
+
search_zoho_desk_tickets: null,
|
|
30
32
|
success: null,
|
|
31
33
|
warning: null
|
|
32
34
|
)
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
| **orders** | [**Array<Order>**](Order.md) | | [optional] |
|
|
12
12
|
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
|
13
13
|
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
|
14
|
+
| **zoho_desk_tickets** | [**Array<ZohoDeskTicketSummary>**](ZohoDeskTicketSummary.md) | | [optional] |
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,7 +25,8 @@ instance = UltracartClient::ConversationPbxCustomerSnapshotResponse.new(
|
|
|
24
25
|
metadata: null,
|
|
25
26
|
orders: null,
|
|
26
27
|
success: null,
|
|
27
|
-
warning: null
|
|
28
|
+
warning: null,
|
|
29
|
+
zoho_desk_tickets: null
|
|
28
30
|
)
|
|
29
31
|
```
|
|
30
32
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# UltracartClient::ZohoDeskTicketSummary
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **assignee_id** | **String** | Assigned agent ID, if any | [optional] |
|
|
8
|
+
| **assignee_name** | **String** | Assigned agent display name, if any | [optional] |
|
|
9
|
+
| **channel** | **String** | Source channel (Phone, Email, Chat, ...) | [optional] |
|
|
10
|
+
| **created_time** | **String** | Creation timestamp in ISO 8601 | [optional] |
|
|
11
|
+
| **department_id** | **String** | Department ID | [optional] |
|
|
12
|
+
| **department_name** | **String** | Department display name | [optional] |
|
|
13
|
+
| **id** | **String** | Unique ticket ID | [optional] |
|
|
14
|
+
| **modified_time** | **String** | Last modification timestamp in ISO 8601 | [optional] |
|
|
15
|
+
| **priority** | **String** | Priority | [optional] |
|
|
16
|
+
| **status** | **String** | Current status (e.g. Open, Closed) | [optional] |
|
|
17
|
+
| **status_type** | **String** | Status category (Open/Closed/OnHold) | [optional] |
|
|
18
|
+
| **subject** | **String** | Ticket subject | [optional] |
|
|
19
|
+
| **ticket_number** | **String** | Human-readable ticket number | [optional] |
|
|
20
|
+
| **web_url** | **String** | Direct link to the ticket in Zoho Desk | [optional] |
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require 'ultracart_api'
|
|
26
|
+
|
|
27
|
+
instance = UltracartClient::ZohoDeskTicketSummary.new(
|
|
28
|
+
assignee_id: null,
|
|
29
|
+
assignee_name: null,
|
|
30
|
+
channel: null,
|
|
31
|
+
created_time: null,
|
|
32
|
+
department_id: null,
|
|
33
|
+
department_name: null,
|
|
34
|
+
id: null,
|
|
35
|
+
modified_time: null,
|
|
36
|
+
priority: null,
|
|
37
|
+
status: null,
|
|
38
|
+
status_type: null,
|
|
39
|
+
subject: null,
|
|
40
|
+
ticket_number: null,
|
|
41
|
+
web_url: null
|
|
42
|
+
)
|
|
43
|
+
```
|
|
44
|
+
|
|
@@ -29,6 +29,8 @@ module UltracartClient
|
|
|
29
29
|
|
|
30
30
|
attr_accessor :search_linked_accounts
|
|
31
31
|
|
|
32
|
+
attr_accessor :search_zoho_desk_tickets
|
|
33
|
+
|
|
32
34
|
# Indicates if API call was successful
|
|
33
35
|
attr_accessor :success
|
|
34
36
|
|
|
@@ -44,6 +46,7 @@ module UltracartClient
|
|
|
44
46
|
:'order_expand' => :'order_expand',
|
|
45
47
|
:'phone_number' => :'phone_number',
|
|
46
48
|
:'search_linked_accounts' => :'search_linked_accounts',
|
|
49
|
+
:'search_zoho_desk_tickets' => :'search_zoho_desk_tickets',
|
|
47
50
|
:'success' => :'success',
|
|
48
51
|
:'warning' => :'warning'
|
|
49
52
|
}
|
|
@@ -64,6 +67,7 @@ module UltracartClient
|
|
|
64
67
|
:'order_expand' => :'String',
|
|
65
68
|
:'phone_number' => :'String',
|
|
66
69
|
:'search_linked_accounts' => :'Boolean',
|
|
70
|
+
:'search_zoho_desk_tickets' => :'Boolean',
|
|
67
71
|
:'success' => :'Boolean',
|
|
68
72
|
:'warning' => :'Warning'
|
|
69
73
|
}
|
|
@@ -118,6 +122,10 @@ module UltracartClient
|
|
|
118
122
|
self.search_linked_accounts = attributes[:'search_linked_accounts']
|
|
119
123
|
end
|
|
120
124
|
|
|
125
|
+
if attributes.key?(:'search_zoho_desk_tickets')
|
|
126
|
+
self.search_zoho_desk_tickets = attributes[:'search_zoho_desk_tickets']
|
|
127
|
+
end
|
|
128
|
+
|
|
121
129
|
if attributes.key?(:'success')
|
|
122
130
|
self.success = attributes[:'success']
|
|
123
131
|
end
|
|
@@ -152,6 +160,7 @@ module UltracartClient
|
|
|
152
160
|
order_expand == o.order_expand &&
|
|
153
161
|
phone_number == o.phone_number &&
|
|
154
162
|
search_linked_accounts == o.search_linked_accounts &&
|
|
163
|
+
search_zoho_desk_tickets == o.search_zoho_desk_tickets &&
|
|
155
164
|
success == o.success &&
|
|
156
165
|
warning == o.warning
|
|
157
166
|
end
|
|
@@ -165,7 +174,7 @@ module UltracartClient
|
|
|
165
174
|
# Calculates hash code according to all attributes.
|
|
166
175
|
# @return [Integer] Hash code
|
|
167
176
|
def hash
|
|
168
|
-
[auto_order_expand, customer_expand, error, metadata, order_expand, phone_number, search_linked_accounts, success, warning].hash
|
|
177
|
+
[auto_order_expand, customer_expand, error, metadata, order_expand, phone_number, search_linked_accounts, search_zoho_desk_tickets, success, warning].hash
|
|
169
178
|
end
|
|
170
179
|
|
|
171
180
|
# Builds the object from hash
|
|
@@ -30,6 +30,8 @@ module UltracartClient
|
|
|
30
30
|
|
|
31
31
|
attr_accessor :warning
|
|
32
32
|
|
|
33
|
+
attr_accessor :zoho_desk_tickets
|
|
34
|
+
|
|
33
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
36
|
def self.attribute_map
|
|
35
37
|
{
|
|
@@ -39,7 +41,8 @@ module UltracartClient
|
|
|
39
41
|
:'metadata' => :'metadata',
|
|
40
42
|
:'orders' => :'orders',
|
|
41
43
|
:'success' => :'success',
|
|
42
|
-
:'warning' => :'warning'
|
|
44
|
+
:'warning' => :'warning',
|
|
45
|
+
:'zoho_desk_tickets' => :'zoho_desk_tickets'
|
|
43
46
|
}
|
|
44
47
|
end
|
|
45
48
|
|
|
@@ -57,7 +60,8 @@ module UltracartClient
|
|
|
57
60
|
:'metadata' => :'ResponseMetadata',
|
|
58
61
|
:'orders' => :'Array<Order>',
|
|
59
62
|
:'success' => :'Boolean',
|
|
60
|
-
:'warning' => :'Warning'
|
|
63
|
+
:'warning' => :'Warning',
|
|
64
|
+
:'zoho_desk_tickets' => :'Array<ZohoDeskTicketSummary>'
|
|
61
65
|
}
|
|
62
66
|
end
|
|
63
67
|
|
|
@@ -115,6 +119,12 @@ module UltracartClient
|
|
|
115
119
|
if attributes.key?(:'warning')
|
|
116
120
|
self.warning = attributes[:'warning']
|
|
117
121
|
end
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'zoho_desk_tickets')
|
|
124
|
+
if (value = attributes[:'zoho_desk_tickets']).is_a?(Array)
|
|
125
|
+
self.zoho_desk_tickets = value
|
|
126
|
+
end
|
|
127
|
+
end
|
|
118
128
|
end
|
|
119
129
|
|
|
120
130
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -141,7 +151,8 @@ module UltracartClient
|
|
|
141
151
|
metadata == o.metadata &&
|
|
142
152
|
orders == o.orders &&
|
|
143
153
|
success == o.success &&
|
|
144
|
-
warning == o.warning
|
|
154
|
+
warning == o.warning &&
|
|
155
|
+
zoho_desk_tickets == o.zoho_desk_tickets
|
|
145
156
|
end
|
|
146
157
|
|
|
147
158
|
# @see the `==` method
|
|
@@ -153,7 +164,7 @@ module UltracartClient
|
|
|
153
164
|
# Calculates hash code according to all attributes.
|
|
154
165
|
# @return [Integer] Hash code
|
|
155
166
|
def hash
|
|
156
|
-
[auto_orders, customers, error, metadata, orders, success, warning].hash
|
|
167
|
+
[auto_orders, customers, error, metadata, orders, success, warning, zoho_desk_tickets].hash
|
|
157
168
|
end
|
|
158
169
|
|
|
159
170
|
# Builds the object from hash
|
|
@@ -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
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -1030,6 +1030,7 @@ require 'ultracart_api/models/workflow_tasks_response'
|
|
|
1030
1030
|
require 'ultracart_api/models/workflow_user'
|
|
1031
1031
|
require 'ultracart_api/models/workflow_user_response'
|
|
1032
1032
|
require 'ultracart_api/models/workflow_users_response'
|
|
1033
|
+
require 'ultracart_api/models/zoho_desk_ticket_summary'
|
|
1033
1034
|
|
|
1034
1035
|
# APIs
|
|
1035
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.
|
|
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-
|
|
11
|
+
date: 2026-06-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -1096,6 +1096,7 @@ files:
|
|
|
1096
1096
|
- docs/WorkflowUser.md
|
|
1097
1097
|
- docs/WorkflowUserResponse.md
|
|
1098
1098
|
- docs/WorkflowUsersResponse.md
|
|
1099
|
+
- docs/ZohoDeskTicketSummary.md
|
|
1099
1100
|
- git_push.sh
|
|
1100
1101
|
- lib/ultracart_api.rb
|
|
1101
1102
|
- lib/ultracart_api/api/affiliate_api.rb
|
|
@@ -2136,6 +2137,7 @@ files:
|
|
|
2136
2137
|
- lib/ultracart_api/models/workflow_user.rb
|
|
2137
2138
|
- lib/ultracart_api/models/workflow_user_response.rb
|
|
2138
2139
|
- lib/ultracart_api/models/workflow_users_response.rb
|
|
2140
|
+
- lib/ultracart_api/models/zoho_desk_ticket_summary.rb
|
|
2139
2141
|
- lib/ultracart_api/version.rb
|
|
2140
2142
|
- spec/api_client_spec.rb
|
|
2141
2143
|
- spec/configuration_spec.rb
|