@integrahub/vergefy-client 0.26.0 → 0.28.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.
- package/README.md +2 -2
- package/dist/apis/AIIAMPPMPPPaymentApi.d.ts +33 -31
- package/dist/apis/AIIAMPPMPPPaymentApi.js +50 -46
- package/dist/apis/APIAIHDIntegrationHelpdeskApi.d.ts +86 -0
- package/dist/apis/APIAIHDIntegrationHelpdeskApi.js +232 -0
- package/dist/apis/APIAINIntegrationApi.d.ts +5 -0
- package/dist/apis/APIAINIntegrationApi.js +5 -0
- package/dist/apis/APIAPAPaymentApi.d.ts +29 -4
- package/dist/apis/APIAPAPaymentApi.js +76 -5
- package/dist/apis/APIARTReturnApi.d.ts +3 -2
- package/dist/apis/APIARTReturnApi.js +5 -2
- package/dist/apis/APIIntegrationConfigurationApi.d.ts +1 -0
- package/dist/apis/APIIntegrationConfigurationApi.js +1 -0
- package/dist/apis/AUTHUAUIdentityAuthenticationApi.d.ts +3 -3
- package/dist/apis/AUTHUAUIdentityAuthenticationApi.js +2 -5
- package/dist/apis/PLATFORMLTNPTenantPrincipalsApi.d.ts +25 -0
- package/dist/apis/PLATFORMLTNPTenantPrincipalsApi.js +73 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AIIAMPPMPPPaymentApi.js +50 -46
- package/dist/esm/apis/APIAIHDIntegrationHelpdeskApi.js +228 -0
- package/dist/esm/apis/APIAINIntegrationApi.js +5 -0
- package/dist/esm/apis/APIAPAPaymentApi.js +76 -5
- package/dist/esm/apis/APIARTReturnApi.js +5 -2
- package/dist/esm/apis/APIIntegrationConfigurationApi.js +1 -0
- package/dist/esm/apis/AUTHUAUIdentityAuthenticationApi.js +2 -5
- package/dist/esm/apis/PLATFORMLTNPTenantPrincipalsApi.js +73 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/ext/telemetry.js +1 -1
- package/dist/esm/models/AvailableProviderDTO.js +12 -0
- package/dist/esm/models/ChannelResult.js +1 -0
- package/dist/esm/models/ConnectorListingDTO.js +2 -0
- package/dist/esm/models/DataResponseDTOPagePrincipalAuditEventDTO.js +42 -0
- package/dist/esm/models/EdgeGatewayDTO.js +1 -0
- package/dist/esm/models/HelpdeskContactDTO.js +57 -0
- package/dist/esm/models/HelpdeskContextDTO.js +82 -0
- package/dist/esm/models/HelpdeskLookupKeyDTO.js +57 -0
- package/dist/esm/models/HelpdeskOrderDTO.js +76 -0
- package/dist/esm/models/HelpdeskOrderLineDTO.js +51 -0
- package/dist/esm/models/HelpdeskSidebarKeyDTO.js +67 -0
- package/dist/esm/models/HelpdeskSidebarKeyStateDTO.js +64 -0
- package/dist/esm/models/HostedCheckoutAddressDTO.js +49 -0
- package/dist/esm/models/HostedCheckoutBasketItemDTO.js +49 -0
- package/dist/esm/models/HostedCheckoutRequestDTO.js +71 -0
- package/dist/esm/models/HostedCheckoutResultDTO.js +45 -0
- package/dist/esm/models/ImportJobDTO.js +1 -0
- package/dist/esm/models/IntegrationConfigurationCreateDTO.js +2 -0
- package/dist/esm/models/IntegrationConfigurationDTO.js +2 -0
- package/dist/esm/models/IntegrationHealthSummaryDTO.js +2 -0
- package/dist/esm/models/InvoiceApiDTO.js +2 -1
- package/dist/esm/models/{MppPaymentSessionCreateApiDTO.js → MppChallengeOpenApiDTO.js} +18 -10
- package/dist/{models/MppPaymentSessionCreateApiDTO.js → esm/models/MppChallengePaymentApiDTO.js} +24 -17
- package/dist/esm/models/OrderReturnSummaryDTO.js +66 -0
- package/dist/esm/models/OrderShipmentSummaryDTO.js +68 -0
- package/dist/esm/models/PagePrincipalAuditEventDTO.js +64 -0
- package/dist/esm/models/PaymentConfigurationDTO.js +2 -1
- package/dist/esm/models/PrincipalDTO.js +2 -1
- package/dist/esm/models/ProviderHealthStatusDTO.js +1 -0
- package/dist/esm/models/ReturnRequestDTO.js +2 -0
- package/dist/esm/models/SocialConnectionRegisterDTO.js +1 -0
- package/dist/esm/models/SocialProviderCredentialReadinessDTO.js +1 -0
- package/dist/esm/models/index.js +17 -1
- package/dist/ext/telemetry.d.ts +1 -1
- package/dist/ext/telemetry.js +1 -1
- package/dist/models/AvailableProviderDTO.d.ts +17 -0
- package/dist/models/AvailableProviderDTO.js +13 -1
- package/dist/models/ChannelResult.d.ts +1 -0
- package/dist/models/ChannelResult.js +1 -0
- package/dist/models/ConnectorListingDTO.d.ts +2 -0
- package/dist/models/ConnectorListingDTO.js +2 -0
- package/dist/models/DataResponseDTOPagePrincipalAuditEventDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOPagePrincipalAuditEventDTO.js +49 -0
- package/dist/models/EdgeGatewayDTO.d.ts +1 -0
- package/dist/models/EdgeGatewayDTO.js +1 -0
- package/dist/models/HelpdeskContactDTO.d.ts +74 -0
- package/dist/models/HelpdeskContactDTO.js +64 -0
- package/dist/models/HelpdeskContextDTO.d.ts +87 -0
- package/dist/models/HelpdeskContextDTO.js +90 -0
- package/dist/models/HelpdeskLookupKeyDTO.d.ts +49 -0
- package/dist/models/HelpdeskLookupKeyDTO.js +65 -0
- package/dist/models/HelpdeskOrderDTO.d.ts +125 -0
- package/dist/models/HelpdeskOrderDTO.js +83 -0
- package/dist/models/HelpdeskOrderLineDTO.d.ts +56 -0
- package/dist/models/HelpdeskOrderLineDTO.js +58 -0
- package/dist/models/HelpdeskSidebarKeyDTO.d.ts +68 -0
- package/dist/models/HelpdeskSidebarKeyDTO.js +74 -0
- package/dist/models/HelpdeskSidebarKeyStateDTO.d.ts +72 -0
- package/dist/models/HelpdeskSidebarKeyStateDTO.js +72 -0
- package/dist/models/HostedCheckoutAddressDTO.d.ts +56 -0
- package/dist/models/HostedCheckoutAddressDTO.js +56 -0
- package/dist/models/HostedCheckoutBasketItemDTO.d.ts +56 -0
- package/dist/models/HostedCheckoutBasketItemDTO.js +56 -0
- package/dist/models/HostedCheckoutRequestDTO.d.ts +118 -0
- package/dist/models/HostedCheckoutRequestDTO.js +78 -0
- package/dist/models/{MppPaymentSessionCreateApiDTO.d.ts → HostedCheckoutResultDTO.d.ts} +18 -12
- package/dist/models/HostedCheckoutResultDTO.js +52 -0
- package/dist/models/ImportJobDTO.d.ts +1 -0
- package/dist/models/ImportJobDTO.js +1 -0
- package/dist/models/IntegrationConfigurationCreateDTO.d.ts +2 -0
- package/dist/models/IntegrationConfigurationCreateDTO.js +2 -0
- package/dist/models/IntegrationConfigurationDTO.d.ts +2 -0
- package/dist/models/IntegrationConfigurationDTO.js +2 -0
- package/dist/models/IntegrationHealthSummaryDTO.d.ts +2 -0
- package/dist/models/IntegrationHealthSummaryDTO.js +2 -0
- package/dist/models/InvoiceApiDTO.d.ts +1 -0
- package/dist/models/InvoiceApiDTO.js +2 -1
- package/dist/models/MppChallengeOpenApiDTO.d.ts +50 -0
- package/dist/models/MppChallengeOpenApiDTO.js +60 -0
- package/dist/models/MppChallengePaymentApiDTO.d.ts +56 -0
- package/dist/models/MppChallengePaymentApiDTO.js +66 -0
- package/dist/models/OrderReturnSummaryDTO.d.ts +78 -0
- package/dist/models/OrderReturnSummaryDTO.js +74 -0
- package/dist/models/OrderShipmentSummaryDTO.d.ts +92 -0
- package/dist/models/OrderShipmentSummaryDTO.js +76 -0
- package/dist/models/PagePrincipalAuditEventDTO.d.ts +95 -0
- package/dist/models/PagePrincipalAuditEventDTO.js +71 -0
- package/dist/models/PaymentConfigurationDTO.d.ts +1 -0
- package/dist/models/PaymentConfigurationDTO.js +2 -1
- package/dist/models/PrincipalDTO.d.ts +1 -0
- package/dist/models/PrincipalDTO.js +2 -1
- package/dist/models/ProviderHealthStatusDTO.d.ts +1 -0
- package/dist/models/ProviderHealthStatusDTO.js +1 -0
- package/dist/models/ReturnRequestDTO.d.ts +6 -0
- package/dist/models/ReturnRequestDTO.js +2 -0
- package/dist/models/SocialConnectionRegisterDTO.d.ts +1 -0
- package/dist/models/SocialConnectionRegisterDTO.js +1 -0
- package/dist/models/SocialProviderCredentialReadinessDTO.d.ts +1 -0
- package/dist/models/SocialProviderCredentialReadinessDTO.js +1 -0
- package/dist/models/index.d.ts +17 -1
- package/dist/models/index.js +17 -1
- package/package.json +1 -1
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Vergefy API
|
|
6
|
+
* <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>
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2026-05-30
|
|
9
|
+
* Contact: support@integrahub.co
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.APIAIHDIntegrationHelpdeskApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const HelpdeskContextDTO_1 = require("../models/HelpdeskContextDTO");
|
|
28
|
+
const HelpdeskSidebarKeyDTO_1 = require("../models/HelpdeskSidebarKeyDTO");
|
|
29
|
+
const HelpdeskSidebarKeyStateDTO_1 = require("../models/HelpdeskSidebarKeyStateDTO");
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
class APIAIHDIntegrationHelpdeskApi extends runtime.BaseAPI {
|
|
34
|
+
/**
|
|
35
|
+
* Creates request options for aIHD001 without sending the request
|
|
36
|
+
*/
|
|
37
|
+
aIHD001RequestOpts(requestParameters) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
40
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aIHD001().');
|
|
41
|
+
}
|
|
42
|
+
const queryParameters = {};
|
|
43
|
+
if (requestParameters['contactId'] != null) {
|
|
44
|
+
queryParameters['contactId'] = requestParameters['contactId'];
|
|
45
|
+
}
|
|
46
|
+
if (requestParameters['email'] != null) {
|
|
47
|
+
queryParameters['email'] = requestParameters['email'];
|
|
48
|
+
}
|
|
49
|
+
if (requestParameters['orderNumber'] != null) {
|
|
50
|
+
queryParameters['orderNumber'] = requestParameters['orderNumber'];
|
|
51
|
+
}
|
|
52
|
+
const headerParameters = {};
|
|
53
|
+
if (requestParameters['xHelpdeskAgentEmail'] != null) {
|
|
54
|
+
headerParameters['X-Helpdesk-Agent-Email'] = String(requestParameters['xHelpdeskAgentEmail']);
|
|
55
|
+
}
|
|
56
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
57
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
58
|
+
}
|
|
59
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
60
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
61
|
+
}
|
|
62
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
63
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
64
|
+
}
|
|
65
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
66
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
67
|
+
}
|
|
68
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
69
|
+
const token = this.configuration.accessToken;
|
|
70
|
+
const tokenString = yield token("BearerAuth", []);
|
|
71
|
+
if (tokenString) {
|
|
72
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
let urlPath = `/api/integrations/helpdesk/context`;
|
|
76
|
+
return {
|
|
77
|
+
path: urlPath,
|
|
78
|
+
method: 'GET',
|
|
79
|
+
headers: headerParameters,
|
|
80
|
+
query: queryParameters,
|
|
81
|
+
};
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* What Vergefy knows about a helpdesk ticket\'s requester, in one call: the matched contact (or up to 5 candidates sharing the e-mail), their latest 10 orders with lines, shipments, returns and stock on hand, money as decimal strings. Keys are tried most specific first: contactId, orderNumber (a Vergefy order number, then a marketplace\'s own order id, Amazon\'s included, then the number the marketplace showed its customer, Shopify\'s #1042 for one), email. No match is a 200 with empty lists and the keys tried. A section the caller may not read is left out and named in omittedSections, never an error.
|
|
86
|
+
* AIHD001 - Get Helpdesk Order Context
|
|
87
|
+
*/
|
|
88
|
+
aIHD001Raw(requestParameters, initOverrides) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const requestOptions = yield this.aIHD001RequestOpts(requestParameters);
|
|
91
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
92
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, HelpdeskContextDTO_1.HelpdeskContextDTOFromJSON)(jsonValue));
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* What Vergefy knows about a helpdesk ticket\'s requester, in one call: the matched contact (or up to 5 candidates sharing the e-mail), their latest 10 orders with lines, shipments, returns and stock on hand, money as decimal strings. Keys are tried most specific first: contactId, orderNumber (a Vergefy order number, then a marketplace\'s own order id, Amazon\'s included, then the number the marketplace showed its customer, Shopify\'s #1042 for one), email. No match is a 200 with empty lists and the keys tried. A section the caller may not read is left out and named in omittedSections, never an error.
|
|
97
|
+
* AIHD001 - Get Helpdesk Order Context
|
|
98
|
+
*/
|
|
99
|
+
aIHD001(requestParameters, initOverrides) {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
+
const response = yield this.aIHD001Raw(requestParameters, initOverrides);
|
|
102
|
+
return yield response.value();
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Creates request options for aIHD002 without sending the request
|
|
107
|
+
*/
|
|
108
|
+
aIHD002RequestOpts(requestParameters) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
if (requestParameters['id'] == null) {
|
|
111
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aIHD002().');
|
|
112
|
+
}
|
|
113
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
114
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aIHD002().');
|
|
115
|
+
}
|
|
116
|
+
const queryParameters = {};
|
|
117
|
+
const headerParameters = {};
|
|
118
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
119
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
120
|
+
}
|
|
121
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
122
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
123
|
+
}
|
|
124
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
125
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
126
|
+
}
|
|
127
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
128
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
129
|
+
}
|
|
130
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
131
|
+
const token = this.configuration.accessToken;
|
|
132
|
+
const tokenString = yield token("BearerAuth", []);
|
|
133
|
+
if (tokenString) {
|
|
134
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
let urlPath = `/api/integrations/helpdesk/connections/{id}/sidebar-key`;
|
|
138
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
139
|
+
return {
|
|
140
|
+
path: urlPath,
|
|
141
|
+
method: 'GET',
|
|
142
|
+
headers: headerParameters,
|
|
143
|
+
query: queryParameters,
|
|
144
|
+
};
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Where a helpdesk connection\'s sidebar key stands: never issued, working, revoked (replaced, or the connection was switched off) or switched off with its principal, with the key\'s prefix and dates. Never returns the key itself.
|
|
149
|
+
* AIHD002 - Get Helpdesk Sidebar Key Status
|
|
150
|
+
*/
|
|
151
|
+
aIHD002Raw(requestParameters, initOverrides) {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
const requestOptions = yield this.aIHD002RequestOpts(requestParameters);
|
|
154
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
155
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, HelpdeskSidebarKeyStateDTO_1.HelpdeskSidebarKeyStateDTOFromJSON)(jsonValue));
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Where a helpdesk connection\'s sidebar key stands: never issued, working, revoked (replaced, or the connection was switched off) or switched off with its principal, with the key\'s prefix and dates. Never returns the key itself.
|
|
160
|
+
* AIHD002 - Get Helpdesk Sidebar Key Status
|
|
161
|
+
*/
|
|
162
|
+
aIHD002(requestParameters, initOverrides) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
const response = yield this.aIHD002Raw(requestParameters, initOverrides);
|
|
165
|
+
return yield response.value();
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Creates request options for aIHD100 without sending the request
|
|
170
|
+
*/
|
|
171
|
+
aIHD100RequestOpts(requestParameters) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
173
|
+
if (requestParameters['id'] == null) {
|
|
174
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aIHD100().');
|
|
175
|
+
}
|
|
176
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
177
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aIHD100().');
|
|
178
|
+
}
|
|
179
|
+
const queryParameters = {};
|
|
180
|
+
const headerParameters = {};
|
|
181
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
182
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
183
|
+
}
|
|
184
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
185
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
186
|
+
}
|
|
187
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
188
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
189
|
+
}
|
|
190
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
191
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
192
|
+
}
|
|
193
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
194
|
+
const token = this.configuration.accessToken;
|
|
195
|
+
const tokenString = yield token("BearerAuth", []);
|
|
196
|
+
if (tokenString) {
|
|
197
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
let urlPath = `/api/integrations/helpdesk/connections/{id}/sidebar-key`;
|
|
201
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
202
|
+
return {
|
|
203
|
+
path: urlPath,
|
|
204
|
+
method: 'POST',
|
|
205
|
+
headers: headerParameters,
|
|
206
|
+
query: queryParameters,
|
|
207
|
+
};
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Issues the helpdesk sidebar\'s key for a helpdesk connection, or replaces it: the previous key stops working at once. The key belongs to the connection\'s own service principal and may only read contacts, orders, shipments, returns and stock, and create returns. The secret is returned only in this response. The caller must be a person holding all of those permissions.
|
|
212
|
+
* AIHD100 - Issue Helpdesk Sidebar Key
|
|
213
|
+
*/
|
|
214
|
+
aIHD100Raw(requestParameters, initOverrides) {
|
|
215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
+
const requestOptions = yield this.aIHD100RequestOpts(requestParameters);
|
|
217
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
218
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, HelpdeskSidebarKeyDTO_1.HelpdeskSidebarKeyDTOFromJSON)(jsonValue));
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Issues the helpdesk sidebar\'s key for a helpdesk connection, or replaces it: the previous key stops working at once. The key belongs to the connection\'s own service principal and may only read contacts, orders, shipments, returns and stock, and create returns. The secret is returned only in this response. The caller must be a person holding all of those permissions.
|
|
223
|
+
* AIHD100 - Issue Helpdesk Sidebar Key
|
|
224
|
+
*/
|
|
225
|
+
aIHD100(requestParameters, initOverrides) {
|
|
226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
+
const response = yield this.aIHD100Raw(requestParameters, initOverrides);
|
|
228
|
+
return yield response.value();
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
exports.APIAIHDIntegrationHelpdeskApi = APIAIHDIntegrationHelpdeskApi;
|
|
@@ -736,6 +736,7 @@ export declare const AIN103ProviderTypeEnum: {
|
|
|
736
736
|
readonly Aws: "AWS";
|
|
737
737
|
readonly BambuCloud: "BAMBU_CLOUD";
|
|
738
738
|
readonly EdgeAgent: "EDGE_AGENT";
|
|
739
|
+
readonly Zendesk: "ZENDESK";
|
|
739
740
|
readonly Custom: "CUSTOM";
|
|
740
741
|
};
|
|
741
742
|
export type AIN103ProviderTypeEnum = typeof AIN103ProviderTypeEnum[keyof typeof AIN103ProviderTypeEnum];
|
|
@@ -761,6 +762,7 @@ export declare const AIN104CategoryTypeEnum: {
|
|
|
761
762
|
readonly Storage: "STORAGE";
|
|
762
763
|
readonly Identity: "IDENTITY";
|
|
763
764
|
readonly DeviceConnectivity: "DEVICE_CONNECTIVITY";
|
|
765
|
+
readonly Helpdesk: "HELPDESK";
|
|
764
766
|
readonly Custom: "CUSTOM";
|
|
765
767
|
};
|
|
766
768
|
export type AIN104CategoryTypeEnum = typeof AIN104CategoryTypeEnum[keyof typeof AIN104CategoryTypeEnum];
|
|
@@ -786,6 +788,7 @@ export declare const AIN105CategoryTypeEnum: {
|
|
|
786
788
|
readonly Storage: "STORAGE";
|
|
787
789
|
readonly Identity: "IDENTITY";
|
|
788
790
|
readonly DeviceConnectivity: "DEVICE_CONNECTIVITY";
|
|
791
|
+
readonly Helpdesk: "HELPDESK";
|
|
789
792
|
readonly Custom: "CUSTOM";
|
|
790
793
|
};
|
|
791
794
|
export type AIN105CategoryTypeEnum = typeof AIN105CategoryTypeEnum[keyof typeof AIN105CategoryTypeEnum];
|
|
@@ -847,6 +850,7 @@ export declare const AIN106ProviderTypeEnum: {
|
|
|
847
850
|
readonly Aws: "AWS";
|
|
848
851
|
readonly BambuCloud: "BAMBU_CLOUD";
|
|
849
852
|
readonly EdgeAgent: "EDGE_AGENT";
|
|
853
|
+
readonly Zendesk: "ZENDESK";
|
|
850
854
|
readonly Custom: "CUSTOM";
|
|
851
855
|
};
|
|
852
856
|
export type AIN106ProviderTypeEnum = typeof AIN106ProviderTypeEnum[keyof typeof AIN106ProviderTypeEnum];
|
|
@@ -872,6 +876,7 @@ export declare const AIN106CategoryTypeEnum: {
|
|
|
872
876
|
readonly Storage: "STORAGE";
|
|
873
877
|
readonly Identity: "IDENTITY";
|
|
874
878
|
readonly DeviceConnectivity: "DEVICE_CONNECTIVITY";
|
|
879
|
+
readonly Helpdesk: "HELPDESK";
|
|
875
880
|
readonly Custom: "CUSTOM";
|
|
876
881
|
};
|
|
877
882
|
export type AIN106CategoryTypeEnum = typeof AIN106CategoryTypeEnum[keyof typeof AIN106CategoryTypeEnum];
|
|
@@ -2043,6 +2043,7 @@ exports.AIN103ProviderTypeEnum = {
|
|
|
2043
2043
|
Aws: 'AWS',
|
|
2044
2044
|
BambuCloud: 'BAMBU_CLOUD',
|
|
2045
2045
|
EdgeAgent: 'EDGE_AGENT',
|
|
2046
|
+
Zendesk: 'ZENDESK',
|
|
2046
2047
|
Custom: 'CUSTOM'
|
|
2047
2048
|
};
|
|
2048
2049
|
/**
|
|
@@ -2067,6 +2068,7 @@ exports.AIN104CategoryTypeEnum = {
|
|
|
2067
2068
|
Storage: 'STORAGE',
|
|
2068
2069
|
Identity: 'IDENTITY',
|
|
2069
2070
|
DeviceConnectivity: 'DEVICE_CONNECTIVITY',
|
|
2071
|
+
Helpdesk: 'HELPDESK',
|
|
2070
2072
|
Custom: 'CUSTOM'
|
|
2071
2073
|
};
|
|
2072
2074
|
/**
|
|
@@ -2091,6 +2093,7 @@ exports.AIN105CategoryTypeEnum = {
|
|
|
2091
2093
|
Storage: 'STORAGE',
|
|
2092
2094
|
Identity: 'IDENTITY',
|
|
2093
2095
|
DeviceConnectivity: 'DEVICE_CONNECTIVITY',
|
|
2096
|
+
Helpdesk: 'HELPDESK',
|
|
2094
2097
|
Custom: 'CUSTOM'
|
|
2095
2098
|
};
|
|
2096
2099
|
/**
|
|
@@ -2151,6 +2154,7 @@ exports.AIN106ProviderTypeEnum = {
|
|
|
2151
2154
|
Aws: 'AWS',
|
|
2152
2155
|
BambuCloud: 'BAMBU_CLOUD',
|
|
2153
2156
|
EdgeAgent: 'EDGE_AGENT',
|
|
2157
|
+
Zendesk: 'ZENDESK',
|
|
2154
2158
|
Custom: 'CUSTOM'
|
|
2155
2159
|
};
|
|
2156
2160
|
/**
|
|
@@ -2175,6 +2179,7 @@ exports.AIN106CategoryTypeEnum = {
|
|
|
2175
2179
|
Storage: 'STORAGE',
|
|
2176
2180
|
Identity: 'IDENTITY',
|
|
2177
2181
|
DeviceConnectivity: 'DEVICE_CONNECTIVITY',
|
|
2182
|
+
Helpdesk: 'HELPDESK',
|
|
2178
2183
|
Custom: 'CUSTOM'
|
|
2179
2184
|
};
|
|
2180
2185
|
/**
|
|
@@ -13,6 +13,8 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import { type DataResponseDTOPaymentConfigurationDTO } from '../models/DataResponseDTOPaymentConfigurationDTO';
|
|
14
14
|
import { type DataResponseDTOPaymentIntentDTO } from '../models/DataResponseDTOPaymentIntentDTO';
|
|
15
15
|
import { type DataResponseDTOPaymentMethodDTO } from '../models/DataResponseDTOPaymentMethodDTO';
|
|
16
|
+
import { type HostedCheckoutRequestDTO } from '../models/HostedCheckoutRequestDTO';
|
|
17
|
+
import { type HostedCheckoutResultDTO } from '../models/HostedCheckoutResultDTO';
|
|
16
18
|
import { type PagePaymentConfigurationDTO } from '../models/PagePaymentConfigurationDTO';
|
|
17
19
|
import { type PagePaymentIntentDTO } from '../models/PagePaymentIntentDTO';
|
|
18
20
|
import { type PagePaymentMethodDTO } from '../models/PagePaymentMethodDTO';
|
|
@@ -159,6 +161,14 @@ export interface APA015Request {
|
|
|
159
161
|
vergefyVersion?: string;
|
|
160
162
|
acceptTimezone?: string;
|
|
161
163
|
}
|
|
164
|
+
export interface APA016Request {
|
|
165
|
+
paymentIntentId: string;
|
|
166
|
+
xAppAccountId: string;
|
|
167
|
+
hostedCheckoutRequestDTO: HostedCheckoutRequestDTO;
|
|
168
|
+
acceptLanguage?: string;
|
|
169
|
+
vergefyVersion?: string;
|
|
170
|
+
acceptTimezone?: string;
|
|
171
|
+
}
|
|
162
172
|
/**
|
|
163
173
|
*
|
|
164
174
|
*/
|
|
@@ -182,12 +192,12 @@ export declare class APIAPAPaymentApi extends runtime.BaseAPI {
|
|
|
182
192
|
*/
|
|
183
193
|
aPA002RequestOpts(requestParameters: APA002Request): Promise<runtime.RequestOpts>;
|
|
184
194
|
/**
|
|
185
|
-
* Captures a payment intent
|
|
195
|
+
* 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.
|
|
186
196
|
* APA002 - Capture Payment Intent
|
|
187
197
|
*/
|
|
188
198
|
aPA002Raw(requestParameters: APA002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
189
199
|
/**
|
|
190
|
-
* Captures a payment intent
|
|
200
|
+
* 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.
|
|
191
201
|
* APA002 - Capture Payment Intent
|
|
192
202
|
*/
|
|
193
203
|
aPA002(requestParameters: APA002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -196,12 +206,12 @@ export declare class APIAPAPaymentApi extends runtime.BaseAPI {
|
|
|
196
206
|
*/
|
|
197
207
|
aPA003RequestOpts(requestParameters: APA003Request): Promise<runtime.RequestOpts>;
|
|
198
208
|
/**
|
|
199
|
-
* Cancels a payment intent
|
|
209
|
+
* 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.
|
|
200
210
|
* APA003 - Cancel Payment Intent
|
|
201
211
|
*/
|
|
202
212
|
aPA003Raw(requestParameters: APA003Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
203
213
|
/**
|
|
204
|
-
* Cancels a payment intent
|
|
214
|
+
* 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.
|
|
205
215
|
* APA003 - Cancel Payment Intent
|
|
206
216
|
*/
|
|
207
217
|
aPA003(requestParameters: APA003Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -373,6 +383,20 @@ export declare class APIAPAPaymentApi extends runtime.BaseAPI {
|
|
|
373
383
|
* APA015 - Search Payment Configurations
|
|
374
384
|
*/
|
|
375
385
|
aPA015(requestParameters: APA015Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagePaymentConfigurationDTO>;
|
|
386
|
+
/**
|
|
387
|
+
* Creates request options for aPA016 without sending the request
|
|
388
|
+
*/
|
|
389
|
+
aPA016RequestOpts(requestParameters: APA016Request): Promise<runtime.RequestOpts>;
|
|
390
|
+
/**
|
|
391
|
+
* Creates an Iyzico hosted checkout form for a payment intent and returns its payment page URL
|
|
392
|
+
* APA016 - Create Hosted Checkout
|
|
393
|
+
*/
|
|
394
|
+
aPA016Raw(requestParameters: APA016Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HostedCheckoutResultDTO>>;
|
|
395
|
+
/**
|
|
396
|
+
* Creates an Iyzico hosted checkout form for a payment intent and returns its payment page URL
|
|
397
|
+
* APA016 - Create Hosted Checkout
|
|
398
|
+
*/
|
|
399
|
+
aPA016(requestParameters: APA016Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HostedCheckoutResultDTO>;
|
|
376
400
|
}
|
|
377
401
|
/**
|
|
378
402
|
* @export
|
|
@@ -414,5 +438,6 @@ export type APA010EntityStatusesEnum = typeof APA010EntityStatusesEnum[keyof typ
|
|
|
414
438
|
export declare const APA015ProviderTypeEnum: {
|
|
415
439
|
readonly Custom: "CUSTOM";
|
|
416
440
|
readonly Stripe: "STRIPE";
|
|
441
|
+
readonly Iyzico: "IYZICO";
|
|
417
442
|
};
|
|
418
443
|
export type APA015ProviderTypeEnum = typeof APA015ProviderTypeEnum[keyof typeof APA015ProviderTypeEnum];
|
|
@@ -27,6 +27,8 @@ const runtime = require("../runtime");
|
|
|
27
27
|
const DataResponseDTOPaymentConfigurationDTO_1 = require("../models/DataResponseDTOPaymentConfigurationDTO");
|
|
28
28
|
const DataResponseDTOPaymentIntentDTO_1 = require("../models/DataResponseDTOPaymentIntentDTO");
|
|
29
29
|
const DataResponseDTOPaymentMethodDTO_1 = require("../models/DataResponseDTOPaymentMethodDTO");
|
|
30
|
+
const HostedCheckoutRequestDTO_1 = require("../models/HostedCheckoutRequestDTO");
|
|
31
|
+
const HostedCheckoutResultDTO_1 = require("../models/HostedCheckoutResultDTO");
|
|
30
32
|
const PagePaymentConfigurationDTO_1 = require("../models/PagePaymentConfigurationDTO");
|
|
31
33
|
const PagePaymentIntentDTO_1 = require("../models/PagePaymentIntentDTO");
|
|
32
34
|
const PagePaymentMethodDTO_1 = require("../models/PagePaymentMethodDTO");
|
|
@@ -143,7 +145,7 @@ class APIAPAPaymentApi extends runtime.BaseAPI {
|
|
|
143
145
|
});
|
|
144
146
|
}
|
|
145
147
|
/**
|
|
146
|
-
* Captures a payment intent
|
|
148
|
+
* 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.
|
|
147
149
|
* APA002 - Capture Payment Intent
|
|
148
150
|
*/
|
|
149
151
|
aPA002Raw(requestParameters, initOverrides) {
|
|
@@ -154,7 +156,7 @@ class APIAPAPaymentApi extends runtime.BaseAPI {
|
|
|
154
156
|
});
|
|
155
157
|
}
|
|
156
158
|
/**
|
|
157
|
-
* Captures a payment intent
|
|
159
|
+
* 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.
|
|
158
160
|
* APA002 - Capture Payment Intent
|
|
159
161
|
*/
|
|
160
162
|
aPA002(requestParameters, initOverrides) {
|
|
@@ -205,7 +207,7 @@ class APIAPAPaymentApi extends runtime.BaseAPI {
|
|
|
205
207
|
});
|
|
206
208
|
}
|
|
207
209
|
/**
|
|
208
|
-
* Cancels a payment intent
|
|
210
|
+
* 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.
|
|
209
211
|
* APA003 - Cancel Payment Intent
|
|
210
212
|
*/
|
|
211
213
|
aPA003Raw(requestParameters, initOverrides) {
|
|
@@ -216,7 +218,7 @@ class APIAPAPaymentApi extends runtime.BaseAPI {
|
|
|
216
218
|
});
|
|
217
219
|
}
|
|
218
220
|
/**
|
|
219
|
-
* Cancels a payment intent
|
|
221
|
+
* 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.
|
|
220
222
|
* APA003 - Cancel Payment Intent
|
|
221
223
|
*/
|
|
222
224
|
aPA003(requestParameters, initOverrides) {
|
|
@@ -1082,6 +1084,74 @@ class APIAPAPaymentApi extends runtime.BaseAPI {
|
|
|
1082
1084
|
return yield response.value();
|
|
1083
1085
|
});
|
|
1084
1086
|
}
|
|
1087
|
+
/**
|
|
1088
|
+
* Creates request options for aPA016 without sending the request
|
|
1089
|
+
*/
|
|
1090
|
+
aPA016RequestOpts(requestParameters) {
|
|
1091
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1092
|
+
if (requestParameters['paymentIntentId'] == null) {
|
|
1093
|
+
throw new runtime.RequiredError('paymentIntentId', 'Required parameter "paymentIntentId" was null or undefined when calling aPA016().');
|
|
1094
|
+
}
|
|
1095
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
1096
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aPA016().');
|
|
1097
|
+
}
|
|
1098
|
+
if (requestParameters['hostedCheckoutRequestDTO'] == null) {
|
|
1099
|
+
throw new runtime.RequiredError('hostedCheckoutRequestDTO', 'Required parameter "hostedCheckoutRequestDTO" was null or undefined when calling aPA016().');
|
|
1100
|
+
}
|
|
1101
|
+
const queryParameters = {};
|
|
1102
|
+
const headerParameters = {};
|
|
1103
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1104
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
1105
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
1106
|
+
}
|
|
1107
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
1108
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
1109
|
+
}
|
|
1110
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
1111
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
1112
|
+
}
|
|
1113
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
1114
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
1115
|
+
}
|
|
1116
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1117
|
+
const token = this.configuration.accessToken;
|
|
1118
|
+
const tokenString = yield token("BearerAuth", []);
|
|
1119
|
+
if (tokenString) {
|
|
1120
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
let urlPath = `/api/payments/intents/{paymentIntentId}/hosted-checkout`;
|
|
1124
|
+
urlPath = urlPath.replace('{paymentIntentId}', encodeURIComponent(String(requestParameters['paymentIntentId'])));
|
|
1125
|
+
return {
|
|
1126
|
+
path: urlPath,
|
|
1127
|
+
method: 'POST',
|
|
1128
|
+
headers: headerParameters,
|
|
1129
|
+
query: queryParameters,
|
|
1130
|
+
body: (0, HostedCheckoutRequestDTO_1.HostedCheckoutRequestDTOToJSON)(requestParameters['hostedCheckoutRequestDTO']),
|
|
1131
|
+
};
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
* Creates an Iyzico hosted checkout form for a payment intent and returns its payment page URL
|
|
1136
|
+
* APA016 - Create Hosted Checkout
|
|
1137
|
+
*/
|
|
1138
|
+
aPA016Raw(requestParameters, initOverrides) {
|
|
1139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1140
|
+
const requestOptions = yield this.aPA016RequestOpts(requestParameters);
|
|
1141
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1142
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, HostedCheckoutResultDTO_1.HostedCheckoutResultDTOFromJSON)(jsonValue));
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* Creates an Iyzico hosted checkout form for a payment intent and returns its payment page URL
|
|
1147
|
+
* APA016 - Create Hosted Checkout
|
|
1148
|
+
*/
|
|
1149
|
+
aPA016(requestParameters, initOverrides) {
|
|
1150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1151
|
+
const response = yield this.aPA016Raw(requestParameters, initOverrides);
|
|
1152
|
+
return yield response.value();
|
|
1153
|
+
});
|
|
1154
|
+
}
|
|
1085
1155
|
}
|
|
1086
1156
|
exports.APIAPAPaymentApi = APIAPAPaymentApi;
|
|
1087
1157
|
/**
|
|
@@ -1120,5 +1190,6 @@ exports.APA010EntityStatusesEnum = {
|
|
|
1120
1190
|
*/
|
|
1121
1191
|
exports.APA015ProviderTypeEnum = {
|
|
1122
1192
|
Custom: 'CUSTOM',
|
|
1123
|
-
Stripe: 'STRIPE'
|
|
1193
|
+
Stripe: 'STRIPE',
|
|
1194
|
+
Iyzico: 'IYZICO'
|
|
1124
1195
|
};
|
|
@@ -17,6 +17,7 @@ import { type ReturnSearchDTO } from '../models/ReturnSearchDTO';
|
|
|
17
17
|
export interface ART001Request {
|
|
18
18
|
xAppAccountId: string;
|
|
19
19
|
returnRequestDTO: ReturnRequestDTO;
|
|
20
|
+
idempotencyKey?: string;
|
|
20
21
|
acceptLanguage?: string;
|
|
21
22
|
vergefyVersion?: string;
|
|
22
23
|
acceptTimezone?: string;
|
|
@@ -139,12 +140,12 @@ export declare class APIARTReturnApi extends runtime.BaseAPI {
|
|
|
139
140
|
*/
|
|
140
141
|
aRT001RequestOpts(requestParameters: ART001Request): Promise<runtime.RequestOpts>;
|
|
141
142
|
/**
|
|
142
|
-
* Submit a new RMA (Return Merchandise Authorization) request for a purchase order
|
|
143
|
+
* 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>.
|
|
143
144
|
* ART001 - Create return request
|
|
144
145
|
*/
|
|
145
146
|
aRT001Raw(requestParameters: ART001Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOReturnRequestDTO>>;
|
|
146
147
|
/**
|
|
147
|
-
* Submit a new RMA (Return Merchandise Authorization) request for a purchase order
|
|
148
|
+
* 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>.
|
|
148
149
|
* ART001 - Create return request
|
|
149
150
|
*/
|
|
150
151
|
aRT001(requestParameters: ART001Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOReturnRequestDTO>;
|
|
@@ -46,6 +46,9 @@ class APIARTReturnApi extends runtime.BaseAPI {
|
|
|
46
46
|
const queryParameters = {};
|
|
47
47
|
const headerParameters = {};
|
|
48
48
|
headerParameters['Content-Type'] = 'application/json';
|
|
49
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
50
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
51
|
+
}
|
|
49
52
|
if (requestParameters['acceptLanguage'] != null) {
|
|
50
53
|
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
51
54
|
}
|
|
@@ -76,7 +79,7 @@ class APIARTReturnApi extends runtime.BaseAPI {
|
|
|
76
79
|
});
|
|
77
80
|
}
|
|
78
81
|
/**
|
|
79
|
-
* Submit a new RMA (Return Merchandise Authorization) request for a purchase order
|
|
82
|
+
* 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>.
|
|
80
83
|
* ART001 - Create return request
|
|
81
84
|
*/
|
|
82
85
|
aRT001Raw(requestParameters, initOverrides) {
|
|
@@ -87,7 +90,7 @@ class APIARTReturnApi extends runtime.BaseAPI {
|
|
|
87
90
|
});
|
|
88
91
|
}
|
|
89
92
|
/**
|
|
90
|
-
* Submit a new RMA (Return Merchandise Authorization) request for a purchase order
|
|
93
|
+
* 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>.
|
|
91
94
|
* ART001 - Create return request
|
|
92
95
|
*/
|
|
93
96
|
aRT001(requestParameters, initOverrides) {
|
|
@@ -80,6 +80,7 @@ export declare const AIN150CategoryEnum: {
|
|
|
80
80
|
readonly Storage: "STORAGE";
|
|
81
81
|
readonly Identity: "IDENTITY";
|
|
82
82
|
readonly DeviceConnectivity: "DEVICE_CONNECTIVITY";
|
|
83
|
+
readonly Helpdesk: "HELPDESK";
|
|
83
84
|
readonly Custom: "CUSTOM";
|
|
84
85
|
};
|
|
85
86
|
export type AIN150CategoryEnum = typeof AIN150CategoryEnum[keyof typeof AIN150CategoryEnum];
|
|
@@ -68,8 +68,8 @@ export interface UAU006Request {
|
|
|
68
68
|
acceptTimezone?: string;
|
|
69
69
|
}
|
|
70
70
|
export interface UAU007Request {
|
|
71
|
-
token: string;
|
|
72
71
|
xAppAccountId: string;
|
|
72
|
+
token?: string;
|
|
73
73
|
acceptLanguage?: string;
|
|
74
74
|
vergefyVersion?: string;
|
|
75
75
|
acceptTimezone?: string;
|
|
@@ -210,12 +210,12 @@ export declare class AUTHUAUIdentityAuthenticationApi extends runtime.BaseAPI {
|
|
|
210
210
|
*/
|
|
211
211
|
uAU007RequestOpts(requestParameters: UAU007Request): Promise<runtime.RequestOpts>;
|
|
212
212
|
/**
|
|
213
|
-
* Signs out from all devices
|
|
213
|
+
* Signs out from all devices by revoking the session of the access token sent as `Authorization: Bearer <token>`. The `token` query parameter is deprecated and is read only when no bearer token is sent.
|
|
214
214
|
* UAU007 - Global Sign Out
|
|
215
215
|
*/
|
|
216
216
|
uAU007Raw(requestParameters: UAU007Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
217
217
|
/**
|
|
218
|
-
* Signs out from all devices
|
|
218
|
+
* Signs out from all devices by revoking the session of the access token sent as `Authorization: Bearer <token>`. The `token` query parameter is deprecated and is read only when no bearer token is sent.
|
|
219
219
|
* UAU007 - Global Sign Out
|
|
220
220
|
*/
|
|
221
221
|
uAU007(requestParameters: UAU007Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -430,9 +430,6 @@ class AUTHUAUIdentityAuthenticationApi extends runtime.BaseAPI {
|
|
|
430
430
|
*/
|
|
431
431
|
uAU007RequestOpts(requestParameters) {
|
|
432
432
|
return __awaiter(this, void 0, void 0, function* () {
|
|
433
|
-
if (requestParameters['token'] == null) {
|
|
434
|
-
throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling uAU007().');
|
|
435
|
-
}
|
|
436
433
|
if (requestParameters['xAppAccountId'] == null) {
|
|
437
434
|
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling uAU007().');
|
|
438
435
|
}
|
|
@@ -470,7 +467,7 @@ class AUTHUAUIdentityAuthenticationApi extends runtime.BaseAPI {
|
|
|
470
467
|
});
|
|
471
468
|
}
|
|
472
469
|
/**
|
|
473
|
-
* Signs out from all devices
|
|
470
|
+
* Signs out from all devices by revoking the session of the access token sent as `Authorization: Bearer <token>`. The `token` query parameter is deprecated and is read only when no bearer token is sent.
|
|
474
471
|
* UAU007 - Global Sign Out
|
|
475
472
|
*/
|
|
476
473
|
uAU007Raw(requestParameters, initOverrides) {
|
|
@@ -481,7 +478,7 @@ class AUTHUAUIdentityAuthenticationApi extends runtime.BaseAPI {
|
|
|
481
478
|
});
|
|
482
479
|
}
|
|
483
480
|
/**
|
|
484
|
-
* Signs out from all devices
|
|
481
|
+
* Signs out from all devices by revoking the session of the access token sent as `Authorization: Bearer <token>`. The `token` query parameter is deprecated and is read only when no bearer token is sent.
|
|
485
482
|
* UAU007 - Global Sign Out
|
|
486
483
|
*/
|
|
487
484
|
uAU007(requestParameters, initOverrides) {
|