@integrahub/vergefy-client 0.27.0 → 0.29.0

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.
Files changed (132) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/AIIAMPPMPPPaymentApi.d.ts +33 -31
  3. package/dist/apis/AIIAMPPMPPPaymentApi.js +50 -46
  4. package/dist/apis/AIIUCPCUCPConfigurationApi.d.ts +2 -2
  5. package/dist/apis/AIIUCPCUCPConfigurationApi.js +2 -2
  6. package/dist/apis/APIAGRGoodsReceiptApi.d.ts +2 -2
  7. package/dist/apis/APIAGRGoodsReceiptApi.js +2 -2
  8. package/dist/apis/APIAIHDIntegrationHelpdeskApi.d.ts +86 -0
  9. package/dist/apis/APIAIHDIntegrationHelpdeskApi.js +232 -0
  10. package/dist/apis/APIAINIntegrationApi.d.ts +5 -0
  11. package/dist/apis/APIAINIntegrationApi.js +5 -0
  12. package/dist/apis/APIAPAPaymentApi.d.ts +29 -4
  13. package/dist/apis/APIAPAPaymentApi.js +76 -5
  14. package/dist/apis/APIARTReturnApi.d.ts +3 -2
  15. package/dist/apis/APIARTReturnApi.js +5 -2
  16. package/dist/apis/APIIntegrationConfigurationApi.d.ts +1 -0
  17. package/dist/apis/APIIntegrationConfigurationApi.js +1 -0
  18. package/dist/apis/PLATFORMLPCPlatformPaymentCheckoutApi.d.ts +21 -0
  19. package/dist/apis/PLATFORMLPCPlatformPaymentCheckoutApi.js +63 -0
  20. package/dist/apis/index.d.ts +1 -0
  21. package/dist/apis/index.js +1 -0
  22. package/dist/esm/apis/AIIAMPPMPPPaymentApi.js +50 -46
  23. package/dist/esm/apis/AIIUCPCUCPConfigurationApi.js +2 -2
  24. package/dist/esm/apis/APIAGRGoodsReceiptApi.js +2 -2
  25. package/dist/esm/apis/APIAIHDIntegrationHelpdeskApi.js +228 -0
  26. package/dist/esm/apis/APIAINIntegrationApi.js +5 -0
  27. package/dist/esm/apis/APIAPAPaymentApi.js +76 -5
  28. package/dist/esm/apis/APIARTReturnApi.js +5 -2
  29. package/dist/esm/apis/APIIntegrationConfigurationApi.js +1 -0
  30. package/dist/esm/apis/PLATFORMLPCPlatformPaymentCheckoutApi.js +63 -0
  31. package/dist/esm/apis/index.js +1 -0
  32. package/dist/esm/ext/telemetry.js +1 -1
  33. package/dist/esm/models/AvailableProviderDTO.js +12 -0
  34. package/dist/esm/models/ChannelResult.js +1 -0
  35. package/dist/esm/models/ConnectorListingDTO.js +2 -0
  36. package/dist/esm/models/EdgeGatewayDTO.js +1 -0
  37. package/dist/esm/models/HelpdeskContactDTO.js +57 -0
  38. package/dist/esm/models/HelpdeskContextDTO.js +82 -0
  39. package/dist/esm/models/HelpdeskLookupKeyDTO.js +57 -0
  40. package/dist/esm/models/HelpdeskOrderDTO.js +76 -0
  41. package/dist/esm/models/HelpdeskOrderLineDTO.js +51 -0
  42. package/dist/esm/models/HelpdeskSidebarKeyDTO.js +67 -0
  43. package/dist/esm/models/HelpdeskSidebarKeyStateDTO.js +64 -0
  44. package/dist/esm/models/HostedCheckoutAddressDTO.js +49 -0
  45. package/dist/esm/models/HostedCheckoutBasketItemDTO.js +49 -0
  46. package/dist/esm/models/HostedCheckoutRequestDTO.js +71 -0
  47. package/dist/esm/models/HostedCheckoutResultDTO.js +45 -0
  48. package/dist/esm/models/ImportJobDTO.js +1 -0
  49. package/dist/esm/models/IntegrationConfigurationCreateDTO.js +2 -0
  50. package/dist/esm/models/IntegrationConfigurationDTO.js +2 -0
  51. package/dist/esm/models/IntegrationHealthSummaryDTO.js +2 -0
  52. package/dist/esm/models/InvoiceApiDTO.js +2 -1
  53. package/dist/esm/models/{MppPaymentSessionCreateApiDTO.js → MppChallengeOpenApiDTO.js} +18 -10
  54. package/dist/{models/MppPaymentSessionCreateApiDTO.js → esm/models/MppChallengePaymentApiDTO.js} +24 -17
  55. package/dist/esm/models/OrderReturnSummaryDTO.js +66 -0
  56. package/dist/esm/models/OrderShipmentSummaryDTO.js +68 -0
  57. package/dist/esm/models/PaymentConfigurationDTO.js +2 -1
  58. package/dist/esm/models/PaymentIntentDTO.js +27 -9
  59. package/dist/esm/models/PrincipalDTO.js +2 -1
  60. package/dist/esm/models/ProviderHealthStatusDTO.js +1 -0
  61. package/dist/esm/models/ReturnRequestDTO.js +2 -0
  62. package/dist/esm/models/SocialConnectionRegisterDTO.js +1 -0
  63. package/dist/esm/models/SocialProviderCredentialReadinessDTO.js +1 -0
  64. package/dist/esm/models/index.js +15 -1
  65. package/dist/ext/telemetry.d.ts +1 -1
  66. package/dist/ext/telemetry.js +1 -1
  67. package/dist/models/AvailableProviderDTO.d.ts +17 -0
  68. package/dist/models/AvailableProviderDTO.js +13 -1
  69. package/dist/models/ChannelResult.d.ts +1 -0
  70. package/dist/models/ChannelResult.js +1 -0
  71. package/dist/models/ConnectorListingDTO.d.ts +2 -0
  72. package/dist/models/ConnectorListingDTO.js +2 -0
  73. package/dist/models/EdgeGatewayDTO.d.ts +1 -0
  74. package/dist/models/EdgeGatewayDTO.js +1 -0
  75. package/dist/models/HelpdeskContactDTO.d.ts +74 -0
  76. package/dist/models/HelpdeskContactDTO.js +64 -0
  77. package/dist/models/HelpdeskContextDTO.d.ts +87 -0
  78. package/dist/models/HelpdeskContextDTO.js +90 -0
  79. package/dist/models/HelpdeskLookupKeyDTO.d.ts +49 -0
  80. package/dist/models/HelpdeskLookupKeyDTO.js +65 -0
  81. package/dist/models/HelpdeskOrderDTO.d.ts +125 -0
  82. package/dist/models/HelpdeskOrderDTO.js +83 -0
  83. package/dist/models/HelpdeskOrderLineDTO.d.ts +56 -0
  84. package/dist/models/HelpdeskOrderLineDTO.js +58 -0
  85. package/dist/models/HelpdeskSidebarKeyDTO.d.ts +68 -0
  86. package/dist/models/HelpdeskSidebarKeyDTO.js +74 -0
  87. package/dist/models/HelpdeskSidebarKeyStateDTO.d.ts +72 -0
  88. package/dist/models/HelpdeskSidebarKeyStateDTO.js +72 -0
  89. package/dist/models/HostedCheckoutAddressDTO.d.ts +56 -0
  90. package/dist/models/HostedCheckoutAddressDTO.js +56 -0
  91. package/dist/models/HostedCheckoutBasketItemDTO.d.ts +56 -0
  92. package/dist/models/HostedCheckoutBasketItemDTO.js +56 -0
  93. package/dist/models/HostedCheckoutRequestDTO.d.ts +118 -0
  94. package/dist/models/HostedCheckoutRequestDTO.js +78 -0
  95. package/dist/models/{MppPaymentSessionCreateApiDTO.d.ts → HostedCheckoutResultDTO.d.ts} +18 -12
  96. package/dist/models/HostedCheckoutResultDTO.js +52 -0
  97. package/dist/models/ImportJobDTO.d.ts +1 -0
  98. package/dist/models/ImportJobDTO.js +1 -0
  99. package/dist/models/IntegrationConfigurationCreateDTO.d.ts +2 -0
  100. package/dist/models/IntegrationConfigurationCreateDTO.js +2 -0
  101. package/dist/models/IntegrationConfigurationDTO.d.ts +2 -0
  102. package/dist/models/IntegrationConfigurationDTO.js +2 -0
  103. package/dist/models/IntegrationHealthSummaryDTO.d.ts +2 -0
  104. package/dist/models/IntegrationHealthSummaryDTO.js +2 -0
  105. package/dist/models/InvoiceApiDTO.d.ts +1 -0
  106. package/dist/models/InvoiceApiDTO.js +2 -1
  107. package/dist/models/MppChallengeOpenApiDTO.d.ts +50 -0
  108. package/dist/models/MppChallengeOpenApiDTO.js +60 -0
  109. package/dist/models/MppChallengePaymentApiDTO.d.ts +56 -0
  110. package/dist/models/MppChallengePaymentApiDTO.js +66 -0
  111. package/dist/models/OrderReturnSummaryDTO.d.ts +78 -0
  112. package/dist/models/OrderReturnSummaryDTO.js +74 -0
  113. package/dist/models/OrderShipmentSummaryDTO.d.ts +92 -0
  114. package/dist/models/OrderShipmentSummaryDTO.js +76 -0
  115. package/dist/models/PaymentConfigurationDTO.d.ts +1 -0
  116. package/dist/models/PaymentConfigurationDTO.js +2 -1
  117. package/dist/models/PaymentIntentDTO.d.ts +9 -9
  118. package/dist/models/PaymentIntentDTO.js +27 -9
  119. package/dist/models/PrincipalDTO.d.ts +1 -0
  120. package/dist/models/PrincipalDTO.js +2 -1
  121. package/dist/models/ProviderHealthStatusDTO.d.ts +1 -0
  122. package/dist/models/ProviderHealthStatusDTO.js +1 -0
  123. package/dist/models/ReturnRequestDTO.d.ts +6 -0
  124. package/dist/models/ReturnRequestDTO.js +2 -0
  125. package/dist/models/SocialConnectionRegisterDTO.d.ts +1 -0
  126. package/dist/models/SocialConnectionRegisterDTO.js +1 -0
  127. package/dist/models/SocialProviderCredentialReadinessDTO.d.ts +1 -0
  128. package/dist/models/SocialProviderCredentialReadinessDTO.js +1 -0
  129. package/dist/models/UcpWebhookRegistrationDTO.d.ts +1 -1
  130. package/dist/models/index.d.ts +15 -1
  131. package/dist/models/index.js +15 -1
  132. package/package.json +1 -1
@@ -24,6 +24,8 @@ import * as runtime from '../runtime';
24
24
  import { DataResponseDTOPaymentConfigurationDTOFromJSON, } from '../models/DataResponseDTOPaymentConfigurationDTO';
25
25
  import { DataResponseDTOPaymentIntentDTOFromJSON, } from '../models/DataResponseDTOPaymentIntentDTO';
26
26
  import { DataResponseDTOPaymentMethodDTOFromJSON, } from '../models/DataResponseDTOPaymentMethodDTO';
27
+ import { HostedCheckoutRequestDTOToJSON, } from '../models/HostedCheckoutRequestDTO';
28
+ import { HostedCheckoutResultDTOFromJSON, } from '../models/HostedCheckoutResultDTO';
27
29
  import { PagePaymentConfigurationDTOFromJSON, } from '../models/PagePaymentConfigurationDTO';
28
30
  import { PagePaymentIntentDTOFromJSON, } from '../models/PagePaymentIntentDTO';
29
31
  import { PagePaymentMethodDTOFromJSON, } from '../models/PagePaymentMethodDTO';
@@ -140,7 +142,7 @@ export class APIAPAPaymentApi extends runtime.BaseAPI {
140
142
  });
141
143
  }
142
144
  /**
143
- * Captures a payment intent
145
+ * Captures a payment intent at its provider and records the provider\'s answer: paid, still settling, or declined. Read the intent (APA004) for its status.
144
146
  * APA002 - Capture Payment Intent
145
147
  */
146
148
  aPA002Raw(requestParameters, initOverrides) {
@@ -151,7 +153,7 @@ export class APIAPAPaymentApi extends runtime.BaseAPI {
151
153
  });
152
154
  }
153
155
  /**
154
- * Captures a payment intent
156
+ * Captures a payment intent at its provider and records the provider\'s answer: paid, still settling, or declined. Read the intent (APA004) for its status.
155
157
  * APA002 - Capture Payment Intent
156
158
  */
157
159
  aPA002(requestParameters, initOverrides) {
@@ -202,7 +204,7 @@ export class APIAPAPaymentApi extends runtime.BaseAPI {
202
204
  });
203
205
  }
204
206
  /**
205
- * Cancels a payment intent
207
+ * Cancels a payment intent at its provider and records the provider\'s answer. A paid intent stays paid. Read the intent (APA004) for its status.
206
208
  * APA003 - Cancel Payment Intent
207
209
  */
208
210
  aPA003Raw(requestParameters, initOverrides) {
@@ -213,7 +215,7 @@ export class APIAPAPaymentApi extends runtime.BaseAPI {
213
215
  });
214
216
  }
215
217
  /**
216
- * Cancels a payment intent
218
+ * Cancels a payment intent at its provider and records the provider\'s answer. A paid intent stays paid. Read the intent (APA004) for its status.
217
219
  * APA003 - Cancel Payment Intent
218
220
  */
219
221
  aPA003(requestParameters, initOverrides) {
@@ -1079,6 +1081,74 @@ export class APIAPAPaymentApi extends runtime.BaseAPI {
1079
1081
  return yield response.value();
1080
1082
  });
1081
1083
  }
1084
+ /**
1085
+ * Creates request options for aPA016 without sending the request
1086
+ */
1087
+ aPA016RequestOpts(requestParameters) {
1088
+ return __awaiter(this, void 0, void 0, function* () {
1089
+ if (requestParameters['paymentIntentId'] == null) {
1090
+ throw new runtime.RequiredError('paymentIntentId', 'Required parameter "paymentIntentId" was null or undefined when calling aPA016().');
1091
+ }
1092
+ if (requestParameters['xAppAccountId'] == null) {
1093
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aPA016().');
1094
+ }
1095
+ if (requestParameters['hostedCheckoutRequestDTO'] == null) {
1096
+ throw new runtime.RequiredError('hostedCheckoutRequestDTO', 'Required parameter "hostedCheckoutRequestDTO" was null or undefined when calling aPA016().');
1097
+ }
1098
+ const queryParameters = {};
1099
+ const headerParameters = {};
1100
+ headerParameters['Content-Type'] = 'application/json';
1101
+ if (requestParameters['acceptLanguage'] != null) {
1102
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
1103
+ }
1104
+ if (requestParameters['xAppAccountId'] != null) {
1105
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
1106
+ }
1107
+ if (requestParameters['vergefyVersion'] != null) {
1108
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
1109
+ }
1110
+ if (requestParameters['acceptTimezone'] != null) {
1111
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
1112
+ }
1113
+ if (this.configuration && this.configuration.accessToken) {
1114
+ const token = this.configuration.accessToken;
1115
+ const tokenString = yield token("BearerAuth", []);
1116
+ if (tokenString) {
1117
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1118
+ }
1119
+ }
1120
+ let urlPath = `/api/payments/intents/{paymentIntentId}/hosted-checkout`;
1121
+ urlPath = urlPath.replace('{paymentIntentId}', encodeURIComponent(String(requestParameters['paymentIntentId'])));
1122
+ return {
1123
+ path: urlPath,
1124
+ method: 'POST',
1125
+ headers: headerParameters,
1126
+ query: queryParameters,
1127
+ body: HostedCheckoutRequestDTOToJSON(requestParameters['hostedCheckoutRequestDTO']),
1128
+ };
1129
+ });
1130
+ }
1131
+ /**
1132
+ * Creates an Iyzico hosted checkout form for a payment intent and returns its payment page URL
1133
+ * APA016 - Create Hosted Checkout
1134
+ */
1135
+ aPA016Raw(requestParameters, initOverrides) {
1136
+ return __awaiter(this, void 0, void 0, function* () {
1137
+ const requestOptions = yield this.aPA016RequestOpts(requestParameters);
1138
+ const response = yield this.request(requestOptions, initOverrides);
1139
+ return new runtime.JSONApiResponse(response, (jsonValue) => HostedCheckoutResultDTOFromJSON(jsonValue));
1140
+ });
1141
+ }
1142
+ /**
1143
+ * Creates an Iyzico hosted checkout form for a payment intent and returns its payment page URL
1144
+ * APA016 - Create Hosted Checkout
1145
+ */
1146
+ aPA016(requestParameters, initOverrides) {
1147
+ return __awaiter(this, void 0, void 0, function* () {
1148
+ const response = yield this.aPA016Raw(requestParameters, initOverrides);
1149
+ return yield response.value();
1150
+ });
1151
+ }
1082
1152
  }
1083
1153
  /**
1084
1154
  * @export
@@ -1116,5 +1186,6 @@ export const APA010EntityStatusesEnum = {
1116
1186
  */
1117
1187
  export const APA015ProviderTypeEnum = {
1118
1188
  Custom: 'CUSTOM',
1119
- Stripe: 'STRIPE'
1189
+ Stripe: 'STRIPE',
1190
+ Iyzico: 'IYZICO'
1120
1191
  };
@@ -43,6 +43,9 @@ export class APIARTReturnApi extends runtime.BaseAPI {
43
43
  const queryParameters = {};
44
44
  const headerParameters = {};
45
45
  headerParameters['Content-Type'] = 'application/json';
46
+ if (requestParameters['idempotencyKey'] != null) {
47
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
48
+ }
46
49
  if (requestParameters['acceptLanguage'] != null) {
47
50
  headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
48
51
  }
@@ -73,7 +76,7 @@ export class APIARTReturnApi extends runtime.BaseAPI {
73
76
  });
74
77
  }
75
78
  /**
76
- * Submit a new RMA (Return Merchandise Authorization) request for a purchase order
79
+ * Submit a new RMA (Return Merchandise Authorization) request for a purchase order. Send the optional Idempotency-Key header to make the call safe to retry: the first call creates the return (201); a retry with the same key and the same body returns that original return (200) instead of creating a second one; the same key with a different body is refused (422). Keys are scoped to the tenant. The optional sourceReference records where the return was opened from, e.g. zendesk:<subdomain>:<ticketId>.
77
80
  * ART001 - Create return request
78
81
  */
79
82
  aRT001Raw(requestParameters, initOverrides) {
@@ -84,7 +87,7 @@ export class APIARTReturnApi extends runtime.BaseAPI {
84
87
  });
85
88
  }
86
89
  /**
87
- * Submit a new RMA (Return Merchandise Authorization) request for a purchase order
90
+ * Submit a new RMA (Return Merchandise Authorization) request for a purchase order. Send the optional Idempotency-Key header to make the call safe to retry: the first call creates the return (201); a retry with the same key and the same body returns that original return (200) instead of creating a second one; the same key with a different body is refused (422). Keys are scoped to the tenant. The optional sourceReference records where the return was opened from, e.g. zendesk:<subdomain>:<ticketId>.
88
91
  * ART001 - Create return request
89
92
  */
90
93
  aRT001(requestParameters, initOverrides) {
@@ -171,5 +171,6 @@ export const AIN150CategoryEnum = {
171
171
  Storage: 'STORAGE',
172
172
  Identity: 'IDENTITY',
173
173
  DeviceConnectivity: 'DEVICE_CONNECTIVITY',
174
+ Helpdesk: 'HELPDESK',
174
175
  Custom: 'CUSTOM'
175
176
  };
@@ -356,6 +356,69 @@ export class PLATFORMLPCPlatformPaymentCheckoutApi extends runtime.BaseAPI {
356
356
  return yield response.value();
357
357
  });
358
358
  }
359
+ /**
360
+ * Creates request options for lPC057 without sending the request
361
+ */
362
+ lPC057RequestOpts(requestParameters) {
363
+ return __awaiter(this, void 0, void 0, function* () {
364
+ if (requestParameters['platformPurchaseOrderId'] == null) {
365
+ throw new runtime.RequiredError('platformPurchaseOrderId', 'Required parameter "platformPurchaseOrderId" was null or undefined when calling lPC057().');
366
+ }
367
+ if (requestParameters['xAppAccountId'] == null) {
368
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lPC057().');
369
+ }
370
+ const queryParameters = {};
371
+ const headerParameters = {};
372
+ if (requestParameters['acceptLanguage'] != null) {
373
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
374
+ }
375
+ if (requestParameters['xAppAccountId'] != null) {
376
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
377
+ }
378
+ if (requestParameters['vergefyVersion'] != null) {
379
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
380
+ }
381
+ if (requestParameters['acceptTimezone'] != null) {
382
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
383
+ }
384
+ if (this.configuration && this.configuration.accessToken) {
385
+ const token = this.configuration.accessToken;
386
+ const tokenString = yield token("BearerAuth", []);
387
+ if (tokenString) {
388
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
389
+ }
390
+ }
391
+ let urlPath = `/platform/payments/checkouts/{platformPurchaseOrderId}/pay`;
392
+ urlPath = urlPath.replace('{platformPurchaseOrderId}', encodeURIComponent(String(requestParameters['platformPurchaseOrderId'])));
393
+ return {
394
+ path: urlPath,
395
+ method: 'POST',
396
+ headers: headerParameters,
397
+ query: queryParameters,
398
+ };
399
+ });
400
+ }
401
+ /**
402
+ * Pays the caller\'s own platform purchase order. Returns the order\'s open payment, or creates one, with the client secret the customer confirms it with in the browser and the platform\'s Stripe publishable key. Refused (422) while a plan checkout holds the order, and once the order\'s payment has been confirmed.
403
+ * LPC057 - Pay Platform Purchase Order
404
+ */
405
+ lPC057Raw(requestParameters, initOverrides) {
406
+ return __awaiter(this, void 0, void 0, function* () {
407
+ const requestOptions = yield this.lPC057RequestOpts(requestParameters);
408
+ const response = yield this.request(requestOptions, initOverrides);
409
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOPlatformCheckoutDTOFromJSON(jsonValue));
410
+ });
411
+ }
412
+ /**
413
+ * Pays the caller\'s own platform purchase order. Returns the order\'s open payment, or creates one, with the client secret the customer confirms it with in the browser and the platform\'s Stripe publishable key. Refused (422) while a plan checkout holds the order, and once the order\'s payment has been confirmed.
414
+ * LPC057 - Pay Platform Purchase Order
415
+ */
416
+ lPC057(requestParameters, initOverrides) {
417
+ return __awaiter(this, void 0, void 0, function* () {
418
+ const response = yield this.lPC057Raw(requestParameters, initOverrides);
419
+ return yield response.value();
420
+ });
421
+ }
359
422
  }
360
423
  /**
361
424
  * @export
@@ -90,6 +90,7 @@ export * from './APIAFTFilterApi';
90
90
  export * from './APIAGMGamificationApi';
91
91
  export * from './APIAGRGoodsReceiptApi';
92
92
  export * from './APIAIADIntegrationAdvertisingApi';
93
+ export * from './APIAIHDIntegrationHelpdeskApi';
93
94
  export * from './APIAIMIntegrationMarketDataApi';
94
95
  export * from './APIAINIntegrationApi';
95
96
  export * from './APIAINIntegrationAmazonApi';
@@ -8,7 +8,7 @@
8
8
  * Mirrors the canonical Java `ext/Telemetry`.
9
9
  */
10
10
  /** Kept in sync with `vergefySdkVersion` (the published artifact version). */
11
- export const VERSION = '0.27.0';
11
+ export const VERSION = '0.29.0';
12
12
  const NAME = 'vergefy-typescript-client';
13
13
  /** The `User-Agent` value, e.g. `vergefy-typescript-client/0.1.0`. */
14
14
  export function userAgent() {
@@ -33,8 +33,17 @@ export const AvailableProviderDTOCategoryEnum = {
33
33
  Storage: 'STORAGE',
34
34
  Identity: 'IDENTITY',
35
35
  DeviceConnectivity: 'DEVICE_CONNECTIVITY',
36
+ Helpdesk: 'HELPDESK',
36
37
  Custom: 'CUSTOM'
37
38
  };
39
+ /**
40
+ * @export
41
+ */
42
+ export const AvailableProviderDTOListingStatusEnum = {
43
+ Live: 'LIVE',
44
+ InDevelopment: 'IN_DEVELOPMENT',
45
+ Planned: 'PLANNED'
46
+ };
38
47
  /**
39
48
  * @export
40
49
  */
@@ -93,6 +102,7 @@ export const AvailableProviderDTOProviderTypeEnum = {
93
102
  Aws: 'AWS',
94
103
  BambuCloud: 'BAMBU_CLOUD',
95
104
  EdgeAgent: 'EDGE_AGENT',
105
+ Zendesk: 'ZENDESK',
96
106
  Custom: 'CUSTOM'
97
107
  };
98
108
  /**
@@ -113,6 +123,7 @@ export function AvailableProviderDTOFromJSONTyped(json, ignoreDiscriminator) {
113
123
  'category': json['category'] == null ? undefined : json['category'],
114
124
  'displayName': json['displayName'] == null ? undefined : json['displayName'],
115
125
  'isActive': json['isActive'] == null ? undefined : json['isActive'],
126
+ 'listingStatus': json['listingStatus'] == null ? undefined : json['listingStatus'],
116
127
  'optionalCredentialFields': json['optionalCredentialFields'] == null ? undefined : json['optionalCredentialFields'],
117
128
  'providerType': json['providerType'] == null ? undefined : json['providerType'],
118
129
  'requiredCredentialFields': json['requiredCredentialFields'] == null ? undefined : json['requiredCredentialFields'],
@@ -131,6 +142,7 @@ export function AvailableProviderDTOToJSONTyped(value, ignoreDiscriminator = fal
131
142
  'category': value['category'],
132
143
  'displayName': value['displayName'],
133
144
  'isActive': value['isActive'],
145
+ 'listingStatus': value['listingStatus'],
134
146
  'optionalCredentialFields': value['optionalCredentialFields'],
135
147
  'providerType': value['providerType'],
136
148
  'requiredCredentialFields': value['requiredCredentialFields'],
@@ -70,6 +70,7 @@ export const ChannelResultProviderTypeEnum = {
70
70
  Aws: 'AWS',
71
71
  BambuCloud: 'BAMBU_CLOUD',
72
72
  EdgeAgent: 'EDGE_AGENT',
73
+ Zendesk: 'ZENDESK',
73
74
  Custom: 'CUSTOM'
74
75
  };
75
76
  /**
@@ -33,6 +33,7 @@ export const ConnectorListingDTOCategoryEnum = {
33
33
  Storage: 'STORAGE',
34
34
  Identity: 'IDENTITY',
35
35
  DeviceConnectivity: 'DEVICE_CONNECTIVITY',
36
+ Helpdesk: 'HELPDESK',
36
37
  Custom: 'CUSTOM'
37
38
  };
38
39
  /**
@@ -93,6 +94,7 @@ export const ConnectorListingDTOProviderTypeEnum = {
93
94
  Aws: 'AWS',
94
95
  BambuCloud: 'BAMBU_CLOUD',
95
96
  EdgeAgent: 'EDGE_AGENT',
97
+ Zendesk: 'ZENDESK',
96
98
  Custom: 'CUSTOM'
97
99
  };
98
100
  /**
@@ -80,6 +80,7 @@ export const EdgeGatewayDTOProviderTypeEnum = {
80
80
  Aws: 'AWS',
81
81
  BambuCloud: 'BAMBU_CLOUD',
82
82
  EdgeAgent: 'EDGE_AGENT',
83
+ Zendesk: 'ZENDESK',
83
84
  Custom: 'CUSTOM'
84
85
  };
85
86
  /**
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Vergefy API
5
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
6
+ *
7
+ * The version of the OpenAPI document: 2026-05-30
8
+ * Contact: support@integrahub.co
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
+ * Check if a given object implements the HelpdeskContactDTO interface.
16
+ */
17
+ export function instanceOfHelpdeskContactDTO(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function HelpdeskContactDTOFromJSON(json) {
23
+ return HelpdeskContactDTOFromJSONTyped(json, false);
24
+ }
25
+ export function HelpdeskContactDTOFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'city': json['city'] == null ? undefined : json['city'],
31
+ 'customerSince': json['customerSince'] == null ? undefined : (new Date(json['customerSince'])),
32
+ 'email': json['email'] == null ? undefined : json['email'],
33
+ 'id': json['id'],
34
+ 'lastOrderAt': json['lastOrderAt'] == null ? undefined : (new Date(json['lastOrderAt'])),
35
+ 'name': json['name'] == null ? undefined : json['name'],
36
+ 'orderCount': json['orderCount'] == null ? undefined : json['orderCount'],
37
+ 'phone': json['phone'] == null ? undefined : json['phone'],
38
+ };
39
+ }
40
+ export function HelpdeskContactDTOToJSON(json) {
41
+ return HelpdeskContactDTOToJSONTyped(json, false);
42
+ }
43
+ export function HelpdeskContactDTOToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'city': value['city'],
49
+ 'customerSince': value['customerSince'] == null ? value['customerSince'] : value['customerSince'].toISOString(),
50
+ 'email': value['email'],
51
+ 'id': value['id'],
52
+ 'lastOrderAt': value['lastOrderAt'] == null ? value['lastOrderAt'] : value['lastOrderAt'].toISOString(),
53
+ 'name': value['name'],
54
+ 'orderCount': value['orderCount'],
55
+ 'phone': value['phone'],
56
+ };
57
+ }
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Vergefy API
5
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
6
+ *
7
+ * The version of the OpenAPI document: 2026-05-30
8
+ * Contact: support@integrahub.co
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
+ import { HelpdeskOrderDTOFromJSON, HelpdeskOrderDTOToJSON, } from './HelpdeskOrderDTO';
15
+ import { HelpdeskContactDTOFromJSON, HelpdeskContactDTOToJSON, } from './HelpdeskContactDTO';
16
+ import { HelpdeskLookupKeyDTOFromJSON, HelpdeskLookupKeyDTOToJSON, } from './HelpdeskLookupKeyDTO';
17
+ /**
18
+ * @export
19
+ */
20
+ export const HelpdeskContextDTOMatchedByEnum = {
21
+ ContactId: 'CONTACT_ID',
22
+ Email: 'EMAIL',
23
+ OrderNumber: 'ORDER_NUMBER',
24
+ MarketplaceOrderId: 'MARKETPLACE_ORDER_ID',
25
+ MarketplaceOrderNumber: 'MARKETPLACE_ORDER_NUMBER'
26
+ };
27
+ /**
28
+ * @export
29
+ */
30
+ export const HelpdeskContextDTOOmittedSectionsEnum = {
31
+ Contacts: 'CONTACTS',
32
+ Orders: 'ORDERS',
33
+ Shipments: 'SHIPMENTS',
34
+ Returns: 'RETURNS',
35
+ Stock: 'STOCK'
36
+ };
37
+ /**
38
+ * Check if a given object implements the HelpdeskContextDTO interface.
39
+ */
40
+ export function instanceOfHelpdeskContextDTO(value) {
41
+ if (!('contacts' in value) || value['contacts'] === undefined)
42
+ return false;
43
+ if (!('keysTried' in value) || value['keysTried'] === undefined)
44
+ return false;
45
+ if (!('omittedSections' in value) || value['omittedSections'] === undefined)
46
+ return false;
47
+ if (!('orders' in value) || value['orders'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ export function HelpdeskContextDTOFromJSON(json) {
52
+ return HelpdeskContextDTOFromJSONTyped(json, false);
53
+ }
54
+ export function HelpdeskContextDTOFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'contacts': (json['contacts'].map(HelpdeskContactDTOFromJSON)),
60
+ 'keysTried': (json['keysTried'].map(HelpdeskLookupKeyDTOFromJSON)),
61
+ 'matchedBy': json['matchedBy'] == null ? undefined : json['matchedBy'],
62
+ 'omittedSections': json['omittedSections'],
63
+ 'orders': (json['orders'].map(HelpdeskOrderDTOFromJSON)),
64
+ 'totalOrders': json['totalOrders'] == null ? undefined : json['totalOrders'],
65
+ };
66
+ }
67
+ export function HelpdeskContextDTOToJSON(json) {
68
+ return HelpdeskContextDTOToJSONTyped(json, false);
69
+ }
70
+ export function HelpdeskContextDTOToJSONTyped(value, ignoreDiscriminator = false) {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'contacts': (value['contacts'].map(HelpdeskContactDTOToJSON)),
76
+ 'keysTried': (value['keysTried'].map(HelpdeskLookupKeyDTOToJSON)),
77
+ 'matchedBy': value['matchedBy'],
78
+ 'omittedSections': value['omittedSections'],
79
+ 'orders': (value['orders'].map(HelpdeskOrderDTOToJSON)),
80
+ 'totalOrders': value['totalOrders'],
81
+ };
82
+ }
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Vergefy API
5
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
6
+ *
7
+ * The version of the OpenAPI document: 2026-05-30
8
+ * Contact: support@integrahub.co
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
+ * @export
16
+ */
17
+ export const HelpdeskLookupKeyDTOTypeEnum = {
18
+ ContactId: 'CONTACT_ID',
19
+ Email: 'EMAIL',
20
+ OrderNumber: 'ORDER_NUMBER',
21
+ MarketplaceOrderId: 'MARKETPLACE_ORDER_ID',
22
+ MarketplaceOrderNumber: 'MARKETPLACE_ORDER_NUMBER'
23
+ };
24
+ /**
25
+ * Check if a given object implements the HelpdeskLookupKeyDTO interface.
26
+ */
27
+ export function instanceOfHelpdeskLookupKeyDTO(value) {
28
+ if (!('type' in value) || value['type'] === undefined)
29
+ return false;
30
+ if (!('value' in value) || value['value'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function HelpdeskLookupKeyDTOFromJSON(json) {
35
+ return HelpdeskLookupKeyDTOFromJSONTyped(json, false);
36
+ }
37
+ export function HelpdeskLookupKeyDTOFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'type': json['type'],
43
+ 'value': json['value'],
44
+ };
45
+ }
46
+ export function HelpdeskLookupKeyDTOToJSON(json) {
47
+ return HelpdeskLookupKeyDTOToJSONTyped(json, false);
48
+ }
49
+ export function HelpdeskLookupKeyDTOToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'type': value['type'],
55
+ 'value': value['value'],
56
+ };
57
+ }
@@ -0,0 +1,76 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Vergefy API
5
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
6
+ *
7
+ * The version of the OpenAPI document: 2026-05-30
8
+ * Contact: support@integrahub.co
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
+ import { OrderReturnSummaryDTOFromJSON, OrderReturnSummaryDTOToJSON, } from './OrderReturnSummaryDTO';
15
+ import { HelpdeskOrderLineDTOFromJSON, HelpdeskOrderLineDTOToJSON, } from './HelpdeskOrderLineDTO';
16
+ import { OrderShipmentSummaryDTOFromJSON, OrderShipmentSummaryDTOToJSON, } from './OrderShipmentSummaryDTO';
17
+ /**
18
+ * Check if a given object implements the HelpdeskOrderDTO interface.
19
+ */
20
+ export function instanceOfHelpdeskOrderDTO(value) {
21
+ if (!('id' in value) || value['id'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function HelpdeskOrderDTOFromJSON(json) {
26
+ return HelpdeskOrderDTOFromJSONTyped(json, false);
27
+ }
28
+ export function HelpdeskOrderDTOFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'channel': json['channel'] == null ? undefined : json['channel'],
34
+ 'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
35
+ 'discount': json['discount'] == null ? undefined : json['discount'],
36
+ 'externalOrderNumber': json['externalOrderNumber'] == null ? undefined : json['externalOrderNumber'],
37
+ 'id': json['id'],
38
+ 'lines': json['lines'] == null ? undefined : (json['lines'].map(HelpdeskOrderLineDTOFromJSON)),
39
+ 'marketplaceOrderNumber': json['marketplaceOrderNumber'] == null ? undefined : json['marketplaceOrderNumber'],
40
+ 'orderNumber': json['orderNumber'] == null ? undefined : json['orderNumber'],
41
+ 'orderState': json['orderState'] == null ? undefined : json['orderState'],
42
+ 'orderedAt': json['orderedAt'] == null ? undefined : (new Date(json['orderedAt'])),
43
+ 'paymentState': json['paymentState'] == null ? undefined : json['paymentState'],
44
+ 'returns': json['returns'] == null ? undefined : (json['returns'].map(OrderReturnSummaryDTOFromJSON)),
45
+ 'shipments': json['shipments'] == null ? undefined : (json['shipments'].map(OrderShipmentSummaryDTOFromJSON)),
46
+ 'subtotal': json['subtotal'] == null ? undefined : json['subtotal'],
47
+ 'tax': json['tax'] == null ? undefined : json['tax'],
48
+ 'total': json['total'] == null ? undefined : json['total'],
49
+ };
50
+ }
51
+ export function HelpdeskOrderDTOToJSON(json) {
52
+ return HelpdeskOrderDTOToJSONTyped(json, false);
53
+ }
54
+ export function HelpdeskOrderDTOToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'channel': value['channel'],
60
+ 'currencyCode': value['currencyCode'],
61
+ 'discount': value['discount'],
62
+ 'externalOrderNumber': value['externalOrderNumber'],
63
+ 'id': value['id'],
64
+ 'lines': value['lines'] == null ? undefined : (value['lines'].map(HelpdeskOrderLineDTOToJSON)),
65
+ 'marketplaceOrderNumber': value['marketplaceOrderNumber'],
66
+ 'orderNumber': value['orderNumber'],
67
+ 'orderState': value['orderState'],
68
+ 'orderedAt': value['orderedAt'] == null ? value['orderedAt'] : value['orderedAt'].toISOString(),
69
+ 'paymentState': value['paymentState'],
70
+ 'returns': value['returns'] == null ? undefined : (value['returns'].map(OrderReturnSummaryDTOToJSON)),
71
+ 'shipments': value['shipments'] == null ? undefined : (value['shipments'].map(OrderShipmentSummaryDTOToJSON)),
72
+ 'subtotal': value['subtotal'],
73
+ 'tax': value['tax'],
74
+ 'total': value['total'],
75
+ };
76
+ }