ultracart_rest_api_v2_typescript 4.1.103 → 4.1.105

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.
@@ -1039,6 +1039,7 @@ src/models/WorkflowTasksResponse.ts
1039
1039
  src/models/WorkflowUser.ts
1040
1040
  src/models/WorkflowUserResponse.ts
1041
1041
  src/models/WorkflowUsersResponse.ts
1042
+ src/models/ZohoDeskTicketSummary.ts
1042
1043
  src/models/index.ts
1043
1044
  src/runtime.ts
1044
1045
  tsconfig.json
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # UltraCart Typescript SDK
2
- ## ultracart_rest_api_v2_typescript@4.1.103
2
+ ## ultracart_rest_api_v2_typescript@4.1.105
3
3
 
4
4
  Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
5
5
 
6
6
  Installation
7
7
 
8
8
  ```
9
- npm install ultracart_rest_api_v2_typescript@4.1.103 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.105 --save
10
10
  ```
11
11
 
12
12
  ```typescript
@@ -85,6 +85,8 @@ Not every change is committed to every SDK.
85
85
 
86
86
  | Version | Date | Comments |
87
87
  | --: | :-: | --- |
88
+ | 4.1.105 | 07/01/2026 | conversation - updatePbxCall support additional zoho desk values |
89
+ | 4.1.104 | 06/30/2026 | conversations - customer snapshot zoho desk tickets included |
88
90
  | 4.1.103 | 06/18/2026 | affiliate api alpha |
89
91
  | 4.1.102 | 06/17/2026 | storefront communications - new single email enrollment method |
90
92
  | 4.1.101 | 06/10/2026 | conversation pbx call notes fields |
@@ -27,6 +27,18 @@ export interface ConversationPbxCallUpdateRequest {
27
27
  * @memberof ConversationPbxCallUpdateRequest
28
28
  */
29
29
  notes?: string;
30
+ /**
31
+ * Existing zoho desk ticket id to associate this call with.
32
+ * @type {string}
33
+ * @memberof ConversationPbxCallUpdateRequest
34
+ */
35
+ zoho_desk_ticket_id?: string;
36
+ /**
37
+ * Existing zoho desk ticket URL
38
+ * @type {string}
39
+ * @memberof ConversationPbxCallUpdateRequest
40
+ */
41
+ zoho_desk_ticket_url?: string;
30
42
  }
31
43
  /**
32
44
  * Check if a given object implements the ConversationPbxCallUpdateRequest interface.
@@ -34,6 +34,8 @@ function ConversationPbxCallUpdateRequestFromJSONTyped(json, ignoreDiscriminator
34
34
  return {
35
35
  'finalize': !(0, runtime_1.exists)(json, 'finalize') ? undefined : json['finalize'],
36
36
  'notes': !(0, runtime_1.exists)(json, 'notes') ? undefined : json['notes'],
37
+ 'zoho_desk_ticket_id': !(0, runtime_1.exists)(json, 'zoho_desk_ticket_id') ? undefined : json['zoho_desk_ticket_id'],
38
+ 'zoho_desk_ticket_url': !(0, runtime_1.exists)(json, 'zoho_desk_ticket_url') ? undefined : json['zoho_desk_ticket_url'],
37
39
  };
38
40
  }
39
41
  exports.ConversationPbxCallUpdateRequestFromJSONTyped = ConversationPbxCallUpdateRequestFromJSONTyped;
@@ -47,6 +49,8 @@ function ConversationPbxCallUpdateRequestToJSON(value) {
47
49
  return {
48
50
  'finalize': value.finalize,
49
51
  'notes': value.notes,
52
+ 'zoho_desk_ticket_id': value.zoho_desk_ticket_id,
53
+ 'zoho_desk_ticket_url': value.zoho_desk_ticket_url,
50
54
  };
51
55
  }
52
56
  exports.ConversationPbxCallUpdateRequestToJSON = ConversationPbxCallUpdateRequestToJSON;
@@ -60,6 +60,12 @@ export interface ConversationPbxCustomerSnapshotRequest {
60
60
  * @memberof ConversationPbxCustomerSnapshotRequest
61
61
  */
62
62
  search_linked_accounts?: boolean;
63
+ /**
64
+ *
65
+ * @type {boolean}
66
+ * @memberof ConversationPbxCustomerSnapshotRequest
67
+ */
68
+ search_zoho_desk_tickets?: boolean;
63
69
  /**
64
70
  * Indicates if API call was successful
65
71
  * @type {boolean}
@@ -42,6 +42,7 @@ function ConversationPbxCustomerSnapshotRequestFromJSONTyped(json, ignoreDiscrim
42
42
  'order_expand': !(0, runtime_1.exists)(json, 'order_expand') ? undefined : json['order_expand'],
43
43
  'phone_number': !(0, runtime_1.exists)(json, 'phone_number') ? undefined : json['phone_number'],
44
44
  'search_linked_accounts': !(0, runtime_1.exists)(json, 'search_linked_accounts') ? undefined : json['search_linked_accounts'],
45
+ 'search_zoho_desk_tickets': !(0, runtime_1.exists)(json, 'search_zoho_desk_tickets') ? undefined : json['search_zoho_desk_tickets'],
45
46
  'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
46
47
  'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
47
48
  };
@@ -62,6 +63,7 @@ function ConversationPbxCustomerSnapshotRequestToJSON(value) {
62
63
  'order_expand': value.order_expand,
63
64
  'phone_number': value.phone_number,
64
65
  'search_linked_accounts': value.search_linked_accounts,
66
+ 'search_zoho_desk_tickets': value.search_zoho_desk_tickets,
65
67
  'success': value.success,
66
68
  'warning': (0, Warning_1.WarningToJSON)(value.warning),
67
69
  };
@@ -15,6 +15,7 @@ import { ModelError } from './ModelError';
15
15
  import { Order } from './Order';
16
16
  import { ResponseMetadata } from './ResponseMetadata';
17
17
  import { Warning } from './Warning';
18
+ import { ZohoDeskTicketSummary } from './ZohoDeskTicketSummary';
18
19
  /**
19
20
  *
20
21
  * @export
@@ -63,6 +64,12 @@ export interface ConversationPbxCustomerSnapshotResponse {
63
64
  * @memberof ConversationPbxCustomerSnapshotResponse
64
65
  */
65
66
  warning?: Warning;
67
+ /**
68
+ *
69
+ * @type {Array<ZohoDeskTicketSummary>}
70
+ * @memberof ConversationPbxCustomerSnapshotResponse
71
+ */
72
+ zoho_desk_tickets?: Array<ZohoDeskTicketSummary>;
66
73
  }
67
74
  /**
68
75
  * Check if a given object implements the ConversationPbxCustomerSnapshotResponse interface.
@@ -21,6 +21,7 @@ var ModelError_1 = require("./ModelError");
21
21
  var Order_1 = require("./Order");
22
22
  var ResponseMetadata_1 = require("./ResponseMetadata");
23
23
  var Warning_1 = require("./Warning");
24
+ var ZohoDeskTicketSummary_1 = require("./ZohoDeskTicketSummary");
24
25
  /**
25
26
  * Check if a given object implements the ConversationPbxCustomerSnapshotResponse interface.
26
27
  */
@@ -45,6 +46,7 @@ function ConversationPbxCustomerSnapshotResponseFromJSONTyped(json, ignoreDiscri
45
46
  'orders': !(0, runtime_1.exists)(json, 'orders') ? undefined : (json['orders'].map(Order_1.OrderFromJSON)),
46
47
  'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
47
48
  'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
49
+ 'zoho_desk_tickets': !(0, runtime_1.exists)(json, 'zoho_desk_tickets') ? undefined : (json['zoho_desk_tickets'].map(ZohoDeskTicketSummary_1.ZohoDeskTicketSummaryFromJSON)),
48
50
  };
49
51
  }
50
52
  exports.ConversationPbxCustomerSnapshotResponseFromJSONTyped = ConversationPbxCustomerSnapshotResponseFromJSONTyped;
@@ -63,6 +65,7 @@ function ConversationPbxCustomerSnapshotResponseToJSON(value) {
63
65
  'orders': value.orders === undefined ? undefined : (value.orders.map(Order_1.OrderToJSON)),
64
66
  'success': value.success,
65
67
  'warning': (0, Warning_1.WarningToJSON)(value.warning),
68
+ 'zoho_desk_tickets': value.zoho_desk_tickets === undefined ? undefined : (value.zoho_desk_tickets.map(ZohoDeskTicketSummary_1.ZohoDeskTicketSummaryToJSON)),
66
69
  };
67
70
  }
68
71
  exports.ConversationPbxCustomerSnapshotResponseToJSON = ConversationPbxCustomerSnapshotResponseToJSON;
@@ -0,0 +1,109 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ZohoDeskTicketSummary
16
+ */
17
+ export interface ZohoDeskTicketSummary {
18
+ /**
19
+ * Assigned agent ID, if any
20
+ * @type {string}
21
+ * @memberof ZohoDeskTicketSummary
22
+ */
23
+ assignee_id?: string;
24
+ /**
25
+ * Assigned agent display name, if any
26
+ * @type {string}
27
+ * @memberof ZohoDeskTicketSummary
28
+ */
29
+ assignee_name?: string;
30
+ /**
31
+ * Source channel (Phone, Email, Chat, ...)
32
+ * @type {string}
33
+ * @memberof ZohoDeskTicketSummary
34
+ */
35
+ channel?: string;
36
+ /**
37
+ * Creation timestamp in ISO 8601
38
+ * @type {string}
39
+ * @memberof ZohoDeskTicketSummary
40
+ */
41
+ created_time?: string;
42
+ /**
43
+ * Department ID
44
+ * @type {string}
45
+ * @memberof ZohoDeskTicketSummary
46
+ */
47
+ department_id?: string;
48
+ /**
49
+ * Department display name
50
+ * @type {string}
51
+ * @memberof ZohoDeskTicketSummary
52
+ */
53
+ department_name?: string;
54
+ /**
55
+ * Unique ticket ID
56
+ * @type {string}
57
+ * @memberof ZohoDeskTicketSummary
58
+ */
59
+ id?: string;
60
+ /**
61
+ * Last modification timestamp in ISO 8601
62
+ * @type {string}
63
+ * @memberof ZohoDeskTicketSummary
64
+ */
65
+ modified_time?: string;
66
+ /**
67
+ * Priority
68
+ * @type {string}
69
+ * @memberof ZohoDeskTicketSummary
70
+ */
71
+ priority?: string;
72
+ /**
73
+ * Current status (e.g. Open, Closed)
74
+ * @type {string}
75
+ * @memberof ZohoDeskTicketSummary
76
+ */
77
+ status?: string;
78
+ /**
79
+ * Status category (Open/Closed/OnHold)
80
+ * @type {string}
81
+ * @memberof ZohoDeskTicketSummary
82
+ */
83
+ status_type?: string;
84
+ /**
85
+ * Ticket subject
86
+ * @type {string}
87
+ * @memberof ZohoDeskTicketSummary
88
+ */
89
+ subject?: string;
90
+ /**
91
+ * Human-readable ticket number
92
+ * @type {string}
93
+ * @memberof ZohoDeskTicketSummary
94
+ */
95
+ ticket_number?: string;
96
+ /**
97
+ * Direct link to the ticket in Zoho Desk
98
+ * @type {string}
99
+ * @memberof ZohoDeskTicketSummary
100
+ */
101
+ web_url?: string;
102
+ }
103
+ /**
104
+ * Check if a given object implements the ZohoDeskTicketSummary interface.
105
+ */
106
+ export declare function instanceOfZohoDeskTicketSummary(value: object): boolean;
107
+ export declare function ZohoDeskTicketSummaryFromJSON(json: any): ZohoDeskTicketSummary;
108
+ export declare function ZohoDeskTicketSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZohoDeskTicketSummary;
109
+ export declare function ZohoDeskTicketSummaryToJSON(value?: ZohoDeskTicketSummary | null): any;
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ZohoDeskTicketSummaryToJSON = exports.ZohoDeskTicketSummaryFromJSONTyped = exports.ZohoDeskTicketSummaryFromJSON = exports.instanceOfZohoDeskTicketSummary = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the ZohoDeskTicketSummary interface.
20
+ */
21
+ function instanceOfZohoDeskTicketSummary(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfZohoDeskTicketSummary = instanceOfZohoDeskTicketSummary;
26
+ function ZohoDeskTicketSummaryFromJSON(json) {
27
+ return ZohoDeskTicketSummaryFromJSONTyped(json, false);
28
+ }
29
+ exports.ZohoDeskTicketSummaryFromJSON = ZohoDeskTicketSummaryFromJSON;
30
+ function ZohoDeskTicketSummaryFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'assignee_id': !(0, runtime_1.exists)(json, 'assignee_id') ? undefined : json['assignee_id'],
36
+ 'assignee_name': !(0, runtime_1.exists)(json, 'assignee_name') ? undefined : json['assignee_name'],
37
+ 'channel': !(0, runtime_1.exists)(json, 'channel') ? undefined : json['channel'],
38
+ 'created_time': !(0, runtime_1.exists)(json, 'created_time') ? undefined : json['created_time'],
39
+ 'department_id': !(0, runtime_1.exists)(json, 'department_id') ? undefined : json['department_id'],
40
+ 'department_name': !(0, runtime_1.exists)(json, 'department_name') ? undefined : json['department_name'],
41
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
42
+ 'modified_time': !(0, runtime_1.exists)(json, 'modified_time') ? undefined : json['modified_time'],
43
+ 'priority': !(0, runtime_1.exists)(json, 'priority') ? undefined : json['priority'],
44
+ 'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
45
+ 'status_type': !(0, runtime_1.exists)(json, 'status_type') ? undefined : json['status_type'],
46
+ 'subject': !(0, runtime_1.exists)(json, 'subject') ? undefined : json['subject'],
47
+ 'ticket_number': !(0, runtime_1.exists)(json, 'ticket_number') ? undefined : json['ticket_number'],
48
+ 'web_url': !(0, runtime_1.exists)(json, 'web_url') ? undefined : json['web_url'],
49
+ };
50
+ }
51
+ exports.ZohoDeskTicketSummaryFromJSONTyped = ZohoDeskTicketSummaryFromJSONTyped;
52
+ function ZohoDeskTicketSummaryToJSON(value) {
53
+ if (value === undefined) {
54
+ return undefined;
55
+ }
56
+ if (value === null) {
57
+ return null;
58
+ }
59
+ return {
60
+ 'assignee_id': value.assignee_id,
61
+ 'assignee_name': value.assignee_name,
62
+ 'channel': value.channel,
63
+ 'created_time': value.created_time,
64
+ 'department_id': value.department_id,
65
+ 'department_name': value.department_name,
66
+ 'id': value.id,
67
+ 'modified_time': value.modified_time,
68
+ 'priority': value.priority,
69
+ 'status': value.status,
70
+ 'status_type': value.status_type,
71
+ 'subject': value.subject,
72
+ 'ticket_number': value.ticket_number,
73
+ 'web_url': value.web_url,
74
+ };
75
+ }
76
+ exports.ZohoDeskTicketSummaryToJSON = ZohoDeskTicketSummaryToJSON;
@@ -1011,3 +1011,4 @@ export * from './WorkflowTasksResponse';
1011
1011
  export * from './WorkflowUser';
1012
1012
  export * from './WorkflowUserResponse';
1013
1013
  export * from './WorkflowUsersResponse';
1014
+ export * from './ZohoDeskTicketSummary';
@@ -1029,3 +1029,4 @@ __exportStar(require("./WorkflowTasksResponse"), exports);
1029
1029
  __exportStar(require("./WorkflowUser"), exports);
1030
1030
  __exportStar(require("./WorkflowUserResponse"), exports);
1031
1031
  __exportStar(require("./WorkflowUsersResponse"), exports);
1032
+ __exportStar(require("./ZohoDeskTicketSummary"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.1.103",
3
+ "version": "4.1.105",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -31,6 +31,18 @@ export interface ConversationPbxCallUpdateRequest {
31
31
  * @memberof ConversationPbxCallUpdateRequest
32
32
  */
33
33
  notes?: string;
34
+ /**
35
+ * Existing zoho desk ticket id to associate this call with.
36
+ * @type {string}
37
+ * @memberof ConversationPbxCallUpdateRequest
38
+ */
39
+ zoho_desk_ticket_id?: string;
40
+ /**
41
+ * Existing zoho desk ticket URL
42
+ * @type {string}
43
+ * @memberof ConversationPbxCallUpdateRequest
44
+ */
45
+ zoho_desk_ticket_url?: string;
34
46
  }
35
47
 
36
48
 
@@ -56,6 +68,8 @@ export function ConversationPbxCallUpdateRequestFromJSONTyped(json: any, ignoreD
56
68
 
57
69
  'finalize': !exists(json, 'finalize') ? undefined : json['finalize'],
58
70
  'notes': !exists(json, 'notes') ? undefined : json['notes'],
71
+ 'zoho_desk_ticket_id': !exists(json, 'zoho_desk_ticket_id') ? undefined : json['zoho_desk_ticket_id'],
72
+ 'zoho_desk_ticket_url': !exists(json, 'zoho_desk_ticket_url') ? undefined : json['zoho_desk_ticket_url'],
59
73
  };
60
74
  }
61
75
 
@@ -70,6 +84,8 @@ export function ConversationPbxCallUpdateRequestToJSON(value?: ConversationPbxCa
70
84
 
71
85
  'finalize': value.finalize,
72
86
  'notes': value.notes,
87
+ 'zoho_desk_ticket_id': value.zoho_desk_ticket_id,
88
+ 'zoho_desk_ticket_url': value.zoho_desk_ticket_url,
73
89
  };
74
90
  }
75
91
 
@@ -80,6 +80,12 @@ export interface ConversationPbxCustomerSnapshotRequest {
80
80
  * @memberof ConversationPbxCustomerSnapshotRequest
81
81
  */
82
82
  search_linked_accounts?: boolean;
83
+ /**
84
+ *
85
+ * @type {boolean}
86
+ * @memberof ConversationPbxCustomerSnapshotRequest
87
+ */
88
+ search_zoho_desk_tickets?: boolean;
83
89
  /**
84
90
  * Indicates if API call was successful
85
91
  * @type {boolean}
@@ -122,6 +128,7 @@ export function ConversationPbxCustomerSnapshotRequestFromJSONTyped(json: any, i
122
128
  'order_expand': !exists(json, 'order_expand') ? undefined : json['order_expand'],
123
129
  'phone_number': !exists(json, 'phone_number') ? undefined : json['phone_number'],
124
130
  'search_linked_accounts': !exists(json, 'search_linked_accounts') ? undefined : json['search_linked_accounts'],
131
+ 'search_zoho_desk_tickets': !exists(json, 'search_zoho_desk_tickets') ? undefined : json['search_zoho_desk_tickets'],
125
132
  'success': !exists(json, 'success') ? undefined : json['success'],
126
133
  'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
127
134
  };
@@ -143,6 +150,7 @@ export function ConversationPbxCustomerSnapshotRequestToJSON(value?: Conversatio
143
150
  'order_expand': value.order_expand,
144
151
  'phone_number': value.phone_number,
145
152
  'search_linked_accounts': value.search_linked_accounts,
153
+ 'search_zoho_desk_tickets': value.search_zoho_desk_tickets,
146
154
  'success': value.success,
147
155
  'warning': WarningToJSON(value.warning),
148
156
  };
@@ -49,6 +49,12 @@ import {
49
49
  WarningFromJSONTyped,
50
50
  WarningToJSON,
51
51
  } from './Warning';
52
+ import {
53
+ ZohoDeskTicketSummary,
54
+ ZohoDeskTicketSummaryFromJSON,
55
+ ZohoDeskTicketSummaryFromJSONTyped,
56
+ ZohoDeskTicketSummaryToJSON,
57
+ } from './ZohoDeskTicketSummary';
52
58
 
53
59
  /**
54
60
  *
@@ -98,6 +104,12 @@ export interface ConversationPbxCustomerSnapshotResponse {
98
104
  * @memberof ConversationPbxCustomerSnapshotResponse
99
105
  */
100
106
  warning?: Warning;
107
+ /**
108
+ *
109
+ * @type {Array<ZohoDeskTicketSummary>}
110
+ * @memberof ConversationPbxCustomerSnapshotResponse
111
+ */
112
+ zoho_desk_tickets?: Array<ZohoDeskTicketSummary>;
101
113
  }
102
114
 
103
115
 
@@ -128,6 +140,7 @@ export function ConversationPbxCustomerSnapshotResponseFromJSONTyped(json: any,
128
140
  'orders': !exists(json, 'orders') ? undefined : ((json['orders'] as Array<any>).map(OrderFromJSON)),
129
141
  'success': !exists(json, 'success') ? undefined : json['success'],
130
142
  'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
143
+ 'zoho_desk_tickets': !exists(json, 'zoho_desk_tickets') ? undefined : ((json['zoho_desk_tickets'] as Array<any>).map(ZohoDeskTicketSummaryFromJSON)),
131
144
  };
132
145
  }
133
146
 
@@ -147,6 +160,7 @@ export function ConversationPbxCustomerSnapshotResponseToJSON(value?: Conversati
147
160
  'orders': value.orders === undefined ? undefined : ((value.orders as Array<any>).map(OrderToJSON)),
148
161
  'success': value.success,
149
162
  'warning': WarningToJSON(value.warning),
163
+ 'zoho_desk_tickets': value.zoho_desk_tickets === undefined ? undefined : ((value.zoho_desk_tickets as Array<any>).map(ZohoDeskTicketSummaryToJSON)),
150
164
  };
151
165
  }
152
166
 
@@ -0,0 +1,171 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ZohoDeskTicketSummary
20
+ */
21
+ export interface ZohoDeskTicketSummary {
22
+ /**
23
+ * Assigned agent ID, if any
24
+ * @type {string}
25
+ * @memberof ZohoDeskTicketSummary
26
+ */
27
+ assignee_id?: string;
28
+ /**
29
+ * Assigned agent display name, if any
30
+ * @type {string}
31
+ * @memberof ZohoDeskTicketSummary
32
+ */
33
+ assignee_name?: string;
34
+ /**
35
+ * Source channel (Phone, Email, Chat, ...)
36
+ * @type {string}
37
+ * @memberof ZohoDeskTicketSummary
38
+ */
39
+ channel?: string;
40
+ /**
41
+ * Creation timestamp in ISO 8601
42
+ * @type {string}
43
+ * @memberof ZohoDeskTicketSummary
44
+ */
45
+ created_time?: string;
46
+ /**
47
+ * Department ID
48
+ * @type {string}
49
+ * @memberof ZohoDeskTicketSummary
50
+ */
51
+ department_id?: string;
52
+ /**
53
+ * Department display name
54
+ * @type {string}
55
+ * @memberof ZohoDeskTicketSummary
56
+ */
57
+ department_name?: string;
58
+ /**
59
+ * Unique ticket ID
60
+ * @type {string}
61
+ * @memberof ZohoDeskTicketSummary
62
+ */
63
+ id?: string;
64
+ /**
65
+ * Last modification timestamp in ISO 8601
66
+ * @type {string}
67
+ * @memberof ZohoDeskTicketSummary
68
+ */
69
+ modified_time?: string;
70
+ /**
71
+ * Priority
72
+ * @type {string}
73
+ * @memberof ZohoDeskTicketSummary
74
+ */
75
+ priority?: string;
76
+ /**
77
+ * Current status (e.g. Open, Closed)
78
+ * @type {string}
79
+ * @memberof ZohoDeskTicketSummary
80
+ */
81
+ status?: string;
82
+ /**
83
+ * Status category (Open/Closed/OnHold)
84
+ * @type {string}
85
+ * @memberof ZohoDeskTicketSummary
86
+ */
87
+ status_type?: string;
88
+ /**
89
+ * Ticket subject
90
+ * @type {string}
91
+ * @memberof ZohoDeskTicketSummary
92
+ */
93
+ subject?: string;
94
+ /**
95
+ * Human-readable ticket number
96
+ * @type {string}
97
+ * @memberof ZohoDeskTicketSummary
98
+ */
99
+ ticket_number?: string;
100
+ /**
101
+ * Direct link to the ticket in Zoho Desk
102
+ * @type {string}
103
+ * @memberof ZohoDeskTicketSummary
104
+ */
105
+ web_url?: string;
106
+ }
107
+
108
+
109
+
110
+ /**
111
+ * Check if a given object implements the ZohoDeskTicketSummary interface.
112
+ */
113
+ export function instanceOfZohoDeskTicketSummary(value: object): boolean {
114
+ let isInstance = true;
115
+
116
+ return isInstance;
117
+ }
118
+
119
+ export function ZohoDeskTicketSummaryFromJSON(json: any): ZohoDeskTicketSummary {
120
+ return ZohoDeskTicketSummaryFromJSONTyped(json, false);
121
+ }
122
+
123
+ export function ZohoDeskTicketSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZohoDeskTicketSummary {
124
+ if ((json === undefined) || (json === null)) {
125
+ return json;
126
+ }
127
+ return {
128
+
129
+ 'assignee_id': !exists(json, 'assignee_id') ? undefined : json['assignee_id'],
130
+ 'assignee_name': !exists(json, 'assignee_name') ? undefined : json['assignee_name'],
131
+ 'channel': !exists(json, 'channel') ? undefined : json['channel'],
132
+ 'created_time': !exists(json, 'created_time') ? undefined : json['created_time'],
133
+ 'department_id': !exists(json, 'department_id') ? undefined : json['department_id'],
134
+ 'department_name': !exists(json, 'department_name') ? undefined : json['department_name'],
135
+ 'id': !exists(json, 'id') ? undefined : json['id'],
136
+ 'modified_time': !exists(json, 'modified_time') ? undefined : json['modified_time'],
137
+ 'priority': !exists(json, 'priority') ? undefined : json['priority'],
138
+ 'status': !exists(json, 'status') ? undefined : json['status'],
139
+ 'status_type': !exists(json, 'status_type') ? undefined : json['status_type'],
140
+ 'subject': !exists(json, 'subject') ? undefined : json['subject'],
141
+ 'ticket_number': !exists(json, 'ticket_number') ? undefined : json['ticket_number'],
142
+ 'web_url': !exists(json, 'web_url') ? undefined : json['web_url'],
143
+ };
144
+ }
145
+
146
+ export function ZohoDeskTicketSummaryToJSON(value?: ZohoDeskTicketSummary | null): any {
147
+ if (value === undefined) {
148
+ return undefined;
149
+ }
150
+ if (value === null) {
151
+ return null;
152
+ }
153
+ return {
154
+
155
+ 'assignee_id': value.assignee_id,
156
+ 'assignee_name': value.assignee_name,
157
+ 'channel': value.channel,
158
+ 'created_time': value.created_time,
159
+ 'department_id': value.department_id,
160
+ 'department_name': value.department_name,
161
+ 'id': value.id,
162
+ 'modified_time': value.modified_time,
163
+ 'priority': value.priority,
164
+ 'status': value.status,
165
+ 'status_type': value.status_type,
166
+ 'subject': value.subject,
167
+ 'ticket_number': value.ticket_number,
168
+ 'web_url': value.web_url,
169
+ };
170
+ }
171
+
@@ -1013,3 +1013,4 @@ export * from './WorkflowTasksResponse';
1013
1013
  export * from './WorkflowUser';
1014
1014
  export * from './WorkflowUserResponse';
1015
1015
  export * from './WorkflowUsersResponse';
1016
+ export * from './ZohoDeskTicketSummary';