@integrahub/vergefy-client 0.28.0 → 0.30.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/AIIUCPCUCPConfigurationApi.d.ts +2 -2
- package/dist/apis/AIIUCPCUCPConfigurationApi.js +2 -2
- package/dist/apis/APIAGRGoodsReceiptApi.d.ts +2 -2
- package/dist/apis/APIAGRGoodsReceiptApi.js +2 -2
- package/dist/apis/APIAINIntegrationApi.d.ts +2 -0
- package/dist/apis/APIAINIntegrationApi.js +2 -0
- package/dist/apis/PLATFORMLPCPlatformPaymentCheckoutApi.d.ts +21 -0
- package/dist/apis/PLATFORMLPCPlatformPaymentCheckoutApi.js +63 -0
- package/dist/esm/apis/AIIUCPCUCPConfigurationApi.js +2 -2
- package/dist/esm/apis/APIAGRGoodsReceiptApi.js +2 -2
- package/dist/esm/apis/APIAINIntegrationApi.js +2 -0
- package/dist/esm/apis/PLATFORMLPCPlatformPaymentCheckoutApi.js +63 -0
- package/dist/esm/ext/telemetry.js +1 -1
- package/dist/esm/models/AvailableProviderDTO.js +1 -0
- package/dist/esm/models/ChannelResult.js +1 -0
- package/dist/esm/models/ConnectorListingDTO.js +1 -0
- package/dist/esm/models/EdgeGatewayDTO.js +1 -0
- package/dist/esm/models/ImportJobDTO.js +1 -0
- package/dist/esm/models/IntegrationConfigurationCreateDTO.js +1 -0
- package/dist/esm/models/IntegrationConfigurationDTO.js +1 -0
- package/dist/esm/models/IntegrationHealthSummaryDTO.js +1 -0
- package/dist/esm/models/PaymentIntentDTO.js +27 -9
- package/dist/esm/models/PlatformCheckoutDTO.js +2 -0
- package/dist/esm/models/ProviderHealthStatusDTO.js +1 -0
- package/dist/esm/models/SocialConnectionRegisterDTO.js +1 -0
- package/dist/esm/models/SocialProviderCredentialReadinessDTO.js +1 -0
- package/dist/ext/telemetry.d.ts +1 -1
- package/dist/ext/telemetry.js +1 -1
- package/dist/models/AvailableProviderDTO.d.ts +1 -0
- package/dist/models/AvailableProviderDTO.js +1 -0
- package/dist/models/ChannelResult.d.ts +1 -0
- package/dist/models/ChannelResult.js +1 -0
- package/dist/models/ConnectorListingDTO.d.ts +1 -0
- package/dist/models/ConnectorListingDTO.js +1 -0
- package/dist/models/EdgeGatewayDTO.d.ts +1 -0
- package/dist/models/EdgeGatewayDTO.js +1 -0
- package/dist/models/ImportJobDTO.d.ts +1 -0
- package/dist/models/ImportJobDTO.js +1 -0
- package/dist/models/IntegrationConfigurationCreateDTO.d.ts +1 -0
- package/dist/models/IntegrationConfigurationCreateDTO.js +1 -0
- package/dist/models/IntegrationConfigurationDTO.d.ts +1 -0
- package/dist/models/IntegrationConfigurationDTO.js +1 -0
- package/dist/models/IntegrationHealthSummaryDTO.d.ts +1 -0
- package/dist/models/IntegrationHealthSummaryDTO.js +1 -0
- package/dist/models/PaymentIntentDTO.d.ts +9 -9
- package/dist/models/PaymentIntentDTO.js +27 -9
- package/dist/models/PlatformCheckoutDTO.d.ts +6 -0
- package/dist/models/PlatformCheckoutDTO.js +2 -0
- package/dist/models/ProviderHealthStatusDTO.d.ts +1 -0
- package/dist/models/ProviderHealthStatusDTO.js +1 -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/UcpWebhookRegistrationDTO.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @integrahub/vergefy-client@0.
|
|
1
|
+
# @integrahub/vergefy-client@0.30.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the your-vergefy-host.invalid API.
|
|
4
4
|
|
|
@@ -90,7 +90,7 @@ and is automatically generated by the
|
|
|
90
90
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
91
91
|
|
|
92
92
|
- API version: `2026-05-30`
|
|
93
|
-
- Package version: `0.
|
|
93
|
+
- Package version: `0.30.0`
|
|
94
94
|
- Generator version: `7.22.0`
|
|
95
95
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
96
96
|
|
|
@@ -49,12 +49,12 @@ export declare class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
|
|
|
49
49
|
*/
|
|
50
50
|
iUCPC023RequestOpts(requestParameters: IUCPC023Request): Promise<runtime.RequestOpts>;
|
|
51
51
|
/**
|
|
52
|
-
* Registers
|
|
52
|
+
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top). It is compared character for character, so a different case, a trailing slash or a surrounding space names a different agent, and an order\'s events reach only the active registrations of the agent that placed it. `endpointUrl` must be a public https URL. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again replaces the subscribed events and returns the same registration.
|
|
53
53
|
* IUCPC023 - Register Agent Webhook
|
|
54
54
|
*/
|
|
55
55
|
iUCPC023Raw(requestParameters: IUCPC023Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOUcpWebhookRegistrationDTO>>;
|
|
56
56
|
/**
|
|
57
|
-
* Registers
|
|
57
|
+
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top). It is compared character for character, so a different case, a trailing slash or a surrounding space names a different agent, and an order\'s events reach only the active registrations of the agent that placed it. `endpointUrl` must be a public https URL. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again replaces the subscribed events and returns the same registration.
|
|
58
58
|
* IUCPC023 - Register Agent Webhook
|
|
59
59
|
*/
|
|
60
60
|
iUCPC023(requestParameters: IUCPC023Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOUcpWebhookRegistrationDTO>;
|
|
@@ -75,7 +75,7 @@ class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
|
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
|
-
* Registers
|
|
78
|
+
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top). It is compared character for character, so a different case, a trailing slash or a surrounding space names a different agent, and an order\'s events reach only the active registrations of the agent that placed it. `endpointUrl` must be a public https URL. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again replaces the subscribed events and returns the same registration.
|
|
79
79
|
* IUCPC023 - Register Agent Webhook
|
|
80
80
|
*/
|
|
81
81
|
iUCPC023Raw(requestParameters, initOverrides) {
|
|
@@ -86,7 +86,7 @@ class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
|
-
* Registers
|
|
89
|
+
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top). It is compared character for character, so a different case, a trailing slash or a surrounding space names a different agent, and an order\'s events reach only the active registrations of the agent that placed it. `endpointUrl` must be a public https URL. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again replaces the subscribed events and returns the same registration.
|
|
90
90
|
* IUCPC023 - Register Agent Webhook
|
|
91
91
|
*/
|
|
92
92
|
iUCPC023(requestParameters, initOverrides) {
|
|
@@ -70,12 +70,12 @@ export declare class APIAGRGoodsReceiptApi extends runtime.BaseAPI {
|
|
|
70
70
|
*/
|
|
71
71
|
aGR002RequestOpts(requestParameters: AGR002Request): Promise<runtime.RequestOpts>;
|
|
72
72
|
/**
|
|
73
|
-
* Receives the goods
|
|
73
|
+
* Receives the goods and puts each line away at its destination bin. With the PRO/PREMIUM lot-tracking entitlement each line creates a StockLot and increases on-hand (receiveNewLot); without it each line increases on-hand as plain stock, and a line carrying a lot number, an expiry date or a condition other than AVAILABLE is refused (402). Flips DRAFT -> RECEIVED / PUT_AWAY.
|
|
74
74
|
* AGR002 - Receive Goods Receipt
|
|
75
75
|
*/
|
|
76
76
|
aGR002Raw(requestParameters: AGR002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOGoodsReceiptDTO>>;
|
|
77
77
|
/**
|
|
78
|
-
* Receives the goods
|
|
78
|
+
* Receives the goods and puts each line away at its destination bin. With the PRO/PREMIUM lot-tracking entitlement each line creates a StockLot and increases on-hand (receiveNewLot); without it each line increases on-hand as plain stock, and a line carrying a lot number, an expiry date or a condition other than AVAILABLE is refused (402). Flips DRAFT -> RECEIVED / PUT_AWAY.
|
|
79
79
|
* AGR002 - Receive Goods Receipt
|
|
80
80
|
*/
|
|
81
81
|
aGR002(requestParameters: AGR002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOGoodsReceiptDTO>;
|
|
@@ -138,7 +138,7 @@ class APIAGRGoodsReceiptApi extends runtime.BaseAPI {
|
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
/**
|
|
141
|
-
* Receives the goods
|
|
141
|
+
* Receives the goods and puts each line away at its destination bin. With the PRO/PREMIUM lot-tracking entitlement each line creates a StockLot and increases on-hand (receiveNewLot); without it each line increases on-hand as plain stock, and a line carrying a lot number, an expiry date or a condition other than AVAILABLE is refused (402). Flips DRAFT -> RECEIVED / PUT_AWAY.
|
|
142
142
|
* AGR002 - Receive Goods Receipt
|
|
143
143
|
*/
|
|
144
144
|
aGR002Raw(requestParameters, initOverrides) {
|
|
@@ -149,7 +149,7 @@ class APIAGRGoodsReceiptApi extends runtime.BaseAPI {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
|
-
* Receives the goods
|
|
152
|
+
* Receives the goods and puts each line away at its destination bin. With the PRO/PREMIUM lot-tracking entitlement each line creates a StockLot and increases on-hand (receiveNewLot); without it each line increases on-hand as plain stock, and a line carrying a lot number, an expiry date or a condition other than AVAILABLE is refused (402). Flips DRAFT -> RECEIVED / PUT_AWAY.
|
|
153
153
|
* AGR002 - Receive Goods Receipt
|
|
154
154
|
*/
|
|
155
155
|
aGR002(requestParameters, initOverrides) {
|
|
@@ -737,6 +737,7 @@ export declare const AIN103ProviderTypeEnum: {
|
|
|
737
737
|
readonly BambuCloud: "BAMBU_CLOUD";
|
|
738
738
|
readonly EdgeAgent: "EDGE_AGENT";
|
|
739
739
|
readonly Zendesk: "ZENDESK";
|
|
740
|
+
readonly AiAgent: "AI_AGENT";
|
|
740
741
|
readonly Custom: "CUSTOM";
|
|
741
742
|
};
|
|
742
743
|
export type AIN103ProviderTypeEnum = typeof AIN103ProviderTypeEnum[keyof typeof AIN103ProviderTypeEnum];
|
|
@@ -851,6 +852,7 @@ export declare const AIN106ProviderTypeEnum: {
|
|
|
851
852
|
readonly BambuCloud: "BAMBU_CLOUD";
|
|
852
853
|
readonly EdgeAgent: "EDGE_AGENT";
|
|
853
854
|
readonly Zendesk: "ZENDESK";
|
|
855
|
+
readonly AiAgent: "AI_AGENT";
|
|
854
856
|
readonly Custom: "CUSTOM";
|
|
855
857
|
};
|
|
856
858
|
export type AIN106ProviderTypeEnum = typeof AIN106ProviderTypeEnum[keyof typeof AIN106ProviderTypeEnum];
|
|
@@ -2044,6 +2044,7 @@ exports.AIN103ProviderTypeEnum = {
|
|
|
2044
2044
|
BambuCloud: 'BAMBU_CLOUD',
|
|
2045
2045
|
EdgeAgent: 'EDGE_AGENT',
|
|
2046
2046
|
Zendesk: 'ZENDESK',
|
|
2047
|
+
AiAgent: 'AI_AGENT',
|
|
2047
2048
|
Custom: 'CUSTOM'
|
|
2048
2049
|
};
|
|
2049
2050
|
/**
|
|
@@ -2155,6 +2156,7 @@ exports.AIN106ProviderTypeEnum = {
|
|
|
2155
2156
|
BambuCloud: 'BAMBU_CLOUD',
|
|
2156
2157
|
EdgeAgent: 'EDGE_AGENT',
|
|
2157
2158
|
Zendesk: 'ZENDESK',
|
|
2159
|
+
AiAgent: 'AI_AGENT',
|
|
2158
2160
|
Custom: 'CUSTOM'
|
|
2159
2161
|
};
|
|
2160
2162
|
/**
|
|
@@ -52,6 +52,13 @@ export interface LPC056Request {
|
|
|
52
52
|
vergefyVersion?: string;
|
|
53
53
|
acceptTimezone?: string;
|
|
54
54
|
}
|
|
55
|
+
export interface LPC057Request {
|
|
56
|
+
platformPurchaseOrderId: string;
|
|
57
|
+
xAppAccountId: string;
|
|
58
|
+
acceptLanguage?: string;
|
|
59
|
+
vergefyVersion?: string;
|
|
60
|
+
acceptTimezone?: string;
|
|
61
|
+
}
|
|
55
62
|
/**
|
|
56
63
|
*
|
|
57
64
|
*/
|
|
@@ -126,6 +133,20 @@ export declare class PLATFORMLPCPlatformPaymentCheckoutApi extends runtime.BaseA
|
|
|
126
133
|
* LPC056 - Create Tenant Payment Method Setup Intent
|
|
127
134
|
*/
|
|
128
135
|
lPC056(requestParameters: LPC056Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOPlatformCheckoutDTO>;
|
|
136
|
+
/**
|
|
137
|
+
* Creates request options for lPC057 without sending the request
|
|
138
|
+
*/
|
|
139
|
+
lPC057RequestOpts(requestParameters: LPC057Request): Promise<runtime.RequestOpts>;
|
|
140
|
+
/**
|
|
141
|
+
* 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.
|
|
142
|
+
* LPC057 - Pay Platform Purchase Order
|
|
143
|
+
*/
|
|
144
|
+
lPC057Raw(requestParameters: LPC057Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOPlatformCheckoutDTO>>;
|
|
145
|
+
/**
|
|
146
|
+
* 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.
|
|
147
|
+
* LPC057 - Pay Platform Purchase Order
|
|
148
|
+
*/
|
|
149
|
+
lPC057(requestParameters: LPC057Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOPlatformCheckoutDTO>;
|
|
129
150
|
}
|
|
130
151
|
/**
|
|
131
152
|
* @export
|
|
@@ -359,6 +359,69 @@ class PLATFORMLPCPlatformPaymentCheckoutApi extends runtime.BaseAPI {
|
|
|
359
359
|
return yield response.value();
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
+
/**
|
|
363
|
+
* Creates request options for lPC057 without sending the request
|
|
364
|
+
*/
|
|
365
|
+
lPC057RequestOpts(requestParameters) {
|
|
366
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
367
|
+
if (requestParameters['platformPurchaseOrderId'] == null) {
|
|
368
|
+
throw new runtime.RequiredError('platformPurchaseOrderId', 'Required parameter "platformPurchaseOrderId" was null or undefined when calling lPC057().');
|
|
369
|
+
}
|
|
370
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
371
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lPC057().');
|
|
372
|
+
}
|
|
373
|
+
const queryParameters = {};
|
|
374
|
+
const headerParameters = {};
|
|
375
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
376
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
377
|
+
}
|
|
378
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
379
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
380
|
+
}
|
|
381
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
382
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
383
|
+
}
|
|
384
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
385
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
386
|
+
}
|
|
387
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
388
|
+
const token = this.configuration.accessToken;
|
|
389
|
+
const tokenString = yield token("BearerAuth", []);
|
|
390
|
+
if (tokenString) {
|
|
391
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
let urlPath = `/platform/payments/checkouts/{platformPurchaseOrderId}/pay`;
|
|
395
|
+
urlPath = urlPath.replace('{platformPurchaseOrderId}', encodeURIComponent(String(requestParameters['platformPurchaseOrderId'])));
|
|
396
|
+
return {
|
|
397
|
+
path: urlPath,
|
|
398
|
+
method: 'POST',
|
|
399
|
+
headers: headerParameters,
|
|
400
|
+
query: queryParameters,
|
|
401
|
+
};
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* 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.
|
|
406
|
+
* LPC057 - Pay Platform Purchase Order
|
|
407
|
+
*/
|
|
408
|
+
lPC057Raw(requestParameters, initOverrides) {
|
|
409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
410
|
+
const requestOptions = yield this.lPC057RequestOpts(requestParameters);
|
|
411
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
412
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOPlatformCheckoutDTO_1.DataResponseDTOPlatformCheckoutDTOFromJSON)(jsonValue));
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* 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.
|
|
417
|
+
* LPC057 - Pay Platform Purchase Order
|
|
418
|
+
*/
|
|
419
|
+
lPC057(requestParameters, initOverrides) {
|
|
420
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
421
|
+
const response = yield this.lPC057Raw(requestParameters, initOverrides);
|
|
422
|
+
return yield response.value();
|
|
423
|
+
});
|
|
424
|
+
}
|
|
362
425
|
}
|
|
363
426
|
exports.PLATFORMLPCPlatformPaymentCheckoutApi = PLATFORMLPCPlatformPaymentCheckoutApi;
|
|
364
427
|
/**
|
|
@@ -72,7 +72,7 @@ export class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
|
-
* Registers
|
|
75
|
+
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top). It is compared character for character, so a different case, a trailing slash or a surrounding space names a different agent, and an order\'s events reach only the active registrations of the agent that placed it. `endpointUrl` must be a public https URL. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again replaces the subscribed events and returns the same registration.
|
|
76
76
|
* IUCPC023 - Register Agent Webhook
|
|
77
77
|
*/
|
|
78
78
|
iUCPC023Raw(requestParameters, initOverrides) {
|
|
@@ -83,7 +83,7 @@ export class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
|
-
* Registers
|
|
86
|
+
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top). It is compared character for character, so a different case, a trailing slash or a surrounding space names a different agent, and an order\'s events reach only the active registrations of the agent that placed it. `endpointUrl` must be a public https URL. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again replaces the subscribed events and returns the same registration.
|
|
87
87
|
* IUCPC023 - Register Agent Webhook
|
|
88
88
|
*/
|
|
89
89
|
iUCPC023(requestParameters, initOverrides) {
|
|
@@ -135,7 +135,7 @@ export class APIAGRGoodsReceiptApi extends runtime.BaseAPI {
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
|
-
* Receives the goods
|
|
138
|
+
* Receives the goods and puts each line away at its destination bin. With the PRO/PREMIUM lot-tracking entitlement each line creates a StockLot and increases on-hand (receiveNewLot); without it each line increases on-hand as plain stock, and a line carrying a lot number, an expiry date or a condition other than AVAILABLE is refused (402). Flips DRAFT -> RECEIVED / PUT_AWAY.
|
|
139
139
|
* AGR002 - Receive Goods Receipt
|
|
140
140
|
*/
|
|
141
141
|
aGR002Raw(requestParameters, initOverrides) {
|
|
@@ -146,7 +146,7 @@ export class APIAGRGoodsReceiptApi extends runtime.BaseAPI {
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
|
-
* Receives the goods
|
|
149
|
+
* Receives the goods and puts each line away at its destination bin. With the PRO/PREMIUM lot-tracking entitlement each line creates a StockLot and increases on-hand (receiveNewLot); without it each line increases on-hand as plain stock, and a line carrying a lot number, an expiry date or a condition other than AVAILABLE is refused (402). Flips DRAFT -> RECEIVED / PUT_AWAY.
|
|
150
150
|
* AGR002 - Receive Goods Receipt
|
|
151
151
|
*/
|
|
152
152
|
aGR002(requestParameters, initOverrides) {
|
|
@@ -2040,6 +2040,7 @@ export const AIN103ProviderTypeEnum = {
|
|
|
2040
2040
|
BambuCloud: 'BAMBU_CLOUD',
|
|
2041
2041
|
EdgeAgent: 'EDGE_AGENT',
|
|
2042
2042
|
Zendesk: 'ZENDESK',
|
|
2043
|
+
AiAgent: 'AI_AGENT',
|
|
2043
2044
|
Custom: 'CUSTOM'
|
|
2044
2045
|
};
|
|
2045
2046
|
/**
|
|
@@ -2151,6 +2152,7 @@ export const AIN106ProviderTypeEnum = {
|
|
|
2151
2152
|
BambuCloud: 'BAMBU_CLOUD',
|
|
2152
2153
|
EdgeAgent: 'EDGE_AGENT',
|
|
2153
2154
|
Zendesk: 'ZENDESK',
|
|
2155
|
+
AiAgent: 'AI_AGENT',
|
|
2154
2156
|
Custom: 'CUSTOM'
|
|
2155
2157
|
};
|
|
2156
2158
|
/**
|
|
@@ -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
|
|
@@ -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.
|
|
11
|
+
export const VERSION = '0.30.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() {
|
|
@@ -64,6 +64,24 @@ export const PaymentIntentDTOStatusEnum = {
|
|
|
64
64
|
* Check if a given object implements the PaymentIntentDTO interface.
|
|
65
65
|
*/
|
|
66
66
|
export function instanceOfPaymentIntentDTO(value) {
|
|
67
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('amountCapturable' in value) || value['amountCapturable'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
if (!('amountReceived' in value) || value['amountReceived'] === undefined)
|
|
72
|
+
return false;
|
|
73
|
+
if (!('captureMethod' in value) || value['captureMethod'] === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
if (!('confirmationMethod' in value) || value['confirmationMethod'] === undefined)
|
|
76
|
+
return false;
|
|
77
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
78
|
+
return false;
|
|
79
|
+
if (!('offSession' in value) || value['offSession'] === undefined)
|
|
80
|
+
return false;
|
|
81
|
+
if (!('setupFutureUsage' in value) || value['setupFutureUsage'] === undefined)
|
|
82
|
+
return false;
|
|
83
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
84
|
+
return false;
|
|
67
85
|
return true;
|
|
68
86
|
}
|
|
69
87
|
export function PaymentIntentDTOFromJSON(json) {
|
|
@@ -74,19 +92,19 @@ export function PaymentIntentDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
92
|
return json;
|
|
75
93
|
}
|
|
76
94
|
return {
|
|
77
|
-
'amount': json['amount']
|
|
78
|
-
'amountCapturable': json['amountCapturable']
|
|
79
|
-
'amountReceived': json['amountReceived']
|
|
95
|
+
'amount': json['amount'],
|
|
96
|
+
'amountCapturable': json['amountCapturable'],
|
|
97
|
+
'amountReceived': json['amountReceived'],
|
|
80
98
|
'cancellationReason': json['cancellationReason'] == null ? undefined : json['cancellationReason'],
|
|
81
99
|
'cancelledDate': json['cancelledDate'] == null ? undefined : (new Date(json['cancelledDate'])),
|
|
82
|
-
'captureMethod': json['captureMethod']
|
|
100
|
+
'captureMethod': json['captureMethod'],
|
|
83
101
|
'clientSecret': json['clientSecret'] == null ? undefined : json['clientSecret'],
|
|
84
102
|
'confirm': json['confirm'] == null ? undefined : json['confirm'],
|
|
85
|
-
'confirmationMethod': json['confirmationMethod']
|
|
103
|
+
'confirmationMethod': json['confirmationMethod'],
|
|
86
104
|
'contact': json['contact'] == null ? undefined : ContactDTOFromJSON(json['contact']),
|
|
87
105
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
88
106
|
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
89
|
-
'currencyCode': json['currencyCode']
|
|
107
|
+
'currencyCode': json['currencyCode'],
|
|
90
108
|
'customId': json['customId'] == null ? undefined : json['customId'],
|
|
91
109
|
'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
|
|
92
110
|
'detail': json['detail'] == null ? undefined : json['detail'],
|
|
@@ -100,7 +118,7 @@ export function PaymentIntentDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
100
118
|
'latestCharge': json['latestCharge'] == null ? undefined : json['latestCharge'],
|
|
101
119
|
'latestChargeError': json['latestChargeError'] == null ? undefined : json['latestChargeError'],
|
|
102
120
|
'namespaceKey': json['namespaceKey'] == null ? undefined : json['namespaceKey'],
|
|
103
|
-
'offSession': json['offSession']
|
|
121
|
+
'offSession': json['offSession'],
|
|
104
122
|
'onBehalfOfContact': json['onBehalfOfContact'] == null ? undefined : ContactDTOFromJSON(json['onBehalfOfContact']),
|
|
105
123
|
'orderNumber': json['orderNumber'] == null ? undefined : json['orderNumber'],
|
|
106
124
|
'paymentMethod': json['paymentMethod'] == null ? undefined : PaymentMethodDTOFromJSON(json['paymentMethod']),
|
|
@@ -108,8 +126,8 @@ export function PaymentIntentDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
108
126
|
'purchaseOrder': json['purchaseOrder'] == null ? undefined : PurchaseOrderDTOFromJSON(json['purchaseOrder']),
|
|
109
127
|
'receiptEmail': json['receiptEmail'] == null ? undefined : json['receiptEmail'],
|
|
110
128
|
'review': json['review'] == null ? undefined : ReviewDTOFromJSON(json['review']),
|
|
111
|
-
'setupFutureUsage': json['setupFutureUsage']
|
|
112
|
-
'status': json['status']
|
|
129
|
+
'setupFutureUsage': json['setupFutureUsage'],
|
|
130
|
+
'status': json['status'],
|
|
113
131
|
'version': json['version'] == null ? undefined : json['version'],
|
|
114
132
|
};
|
|
115
133
|
}
|
|
@@ -27,6 +27,7 @@ export function PlatformCheckoutDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
return {
|
|
28
28
|
'orderId': json['orderId'] == null ? undefined : json['orderId'],
|
|
29
29
|
'publishableKey': json['publishableKey'] == null ? undefined : json['publishableKey'],
|
|
30
|
+
'requestedBy': json['requestedBy'] == null ? undefined : json['requestedBy'],
|
|
30
31
|
'secret': json['secret'] == null ? undefined : json['secret'],
|
|
31
32
|
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
32
33
|
};
|
|
@@ -41,6 +42,7 @@ export function PlatformCheckoutDTOToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
41
42
|
return {
|
|
42
43
|
'orderId': value['orderId'],
|
|
43
44
|
'publishableKey': value['publishableKey'],
|
|
45
|
+
'requestedBy': value['requestedBy'],
|
|
44
46
|
'secret': value['secret'],
|
|
45
47
|
'subscriptionId': value['subscriptionId'],
|
|
46
48
|
};
|
package/dist/ext/telemetry.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Mirrors the canonical Java `ext/Telemetry`.
|
|
7
7
|
*/
|
|
8
8
|
/** Kept in sync with `vergefySdkVersion` (the published artifact version). */
|
|
9
|
-
export declare const VERSION = "0.
|
|
9
|
+
export declare const VERSION = "0.30.0";
|
|
10
10
|
/** The `User-Agent` value, e.g. `vergefy-typescript-client/0.1.0`. */
|
|
11
11
|
export declare function userAgent(): string;
|
|
12
12
|
/** The structured `X-Vergefy-Client-User-Agent` JSON header value. */
|
package/dist/ext/telemetry.js
CHANGED
|
@@ -14,7 +14,7 @@ exports.userAgent = userAgent;
|
|
|
14
14
|
exports.clientInfo = clientInfo;
|
|
15
15
|
exports.telemetryHeaders = telemetryHeaders;
|
|
16
16
|
/** Kept in sync with `vergefySdkVersion` (the published artifact version). */
|
|
17
|
-
exports.VERSION = '0.
|
|
17
|
+
exports.VERSION = '0.30.0';
|
|
18
18
|
const NAME = 'vergefy-typescript-client';
|
|
19
19
|
/** The `User-Agent` value, e.g. `vergefy-typescript-client/0.1.0`. */
|
|
20
20
|
function userAgent() {
|
|
@@ -164,6 +164,7 @@ export declare const AvailableProviderDTOProviderTypeEnum: {
|
|
|
164
164
|
readonly BambuCloud: "BAMBU_CLOUD";
|
|
165
165
|
readonly EdgeAgent: "EDGE_AGENT";
|
|
166
166
|
readonly Zendesk: "ZENDESK";
|
|
167
|
+
readonly AiAgent: "AI_AGENT";
|
|
167
168
|
readonly Custom: "CUSTOM";
|
|
168
169
|
};
|
|
169
170
|
export type AvailableProviderDTOProviderTypeEnum = typeof AvailableProviderDTOProviderTypeEnum[keyof typeof AvailableProviderDTOProviderTypeEnum];
|
|
@@ -100,6 +100,7 @@ export declare const ChannelResultProviderTypeEnum: {
|
|
|
100
100
|
readonly BambuCloud: "BAMBU_CLOUD";
|
|
101
101
|
readonly EdgeAgent: "EDGE_AGENT";
|
|
102
102
|
readonly Zendesk: "ZENDESK";
|
|
103
|
+
readonly AiAgent: "AI_AGENT";
|
|
103
104
|
readonly Custom: "CUSTOM";
|
|
104
105
|
};
|
|
105
106
|
export type ChannelResultProviderTypeEnum = typeof ChannelResultProviderTypeEnum[keyof typeof ChannelResultProviderTypeEnum];
|
|
@@ -155,6 +155,7 @@ export declare const ConnectorListingDTOProviderTypeEnum: {
|
|
|
155
155
|
readonly BambuCloud: "BAMBU_CLOUD";
|
|
156
156
|
readonly EdgeAgent: "EDGE_AGENT";
|
|
157
157
|
readonly Zendesk: "ZENDESK";
|
|
158
|
+
readonly AiAgent: "AI_AGENT";
|
|
158
159
|
readonly Custom: "CUSTOM";
|
|
159
160
|
};
|
|
160
161
|
export type ConnectorListingDTOProviderTypeEnum = typeof ConnectorListingDTOProviderTypeEnum[keyof typeof ConnectorListingDTOProviderTypeEnum];
|
|
@@ -237,6 +237,7 @@ export declare const EdgeGatewayDTOProviderTypeEnum: {
|
|
|
237
237
|
readonly BambuCloud: "BAMBU_CLOUD";
|
|
238
238
|
readonly EdgeAgent: "EDGE_AGENT";
|
|
239
239
|
readonly Zendesk: "ZENDESK";
|
|
240
|
+
readonly AiAgent: "AI_AGENT";
|
|
240
241
|
readonly Custom: "CUSTOM";
|
|
241
242
|
};
|
|
242
243
|
export type EdgeGatewayDTOProviderTypeEnum = typeof EdgeGatewayDTOProviderTypeEnum[keyof typeof EdgeGatewayDTOProviderTypeEnum];
|
|
@@ -319,6 +319,7 @@ export declare const ImportJobDTOProviderTypeEnum: {
|
|
|
319
319
|
readonly BambuCloud: "BAMBU_CLOUD";
|
|
320
320
|
readonly EdgeAgent: "EDGE_AGENT";
|
|
321
321
|
readonly Zendesk: "ZENDESK";
|
|
322
|
+
readonly AiAgent: "AI_AGENT";
|
|
322
323
|
readonly Custom: "CUSTOM";
|
|
323
324
|
};
|
|
324
325
|
export type ImportJobDTOProviderTypeEnum = typeof ImportJobDTOProviderTypeEnum[keyof typeof ImportJobDTOProviderTypeEnum];
|
|
@@ -239,6 +239,7 @@ export declare const IntegrationConfigurationCreateDTOProviderTypeEnum: {
|
|
|
239
239
|
readonly BambuCloud: "BAMBU_CLOUD";
|
|
240
240
|
readonly EdgeAgent: "EDGE_AGENT";
|
|
241
241
|
readonly Zendesk: "ZENDESK";
|
|
242
|
+
readonly AiAgent: "AI_AGENT";
|
|
242
243
|
readonly Custom: "CUSTOM";
|
|
243
244
|
};
|
|
244
245
|
export type IntegrationConfigurationCreateDTOProviderTypeEnum = typeof IntegrationConfigurationCreateDTOProviderTypeEnum[keyof typeof IntegrationConfigurationCreateDTOProviderTypeEnum];
|
|
@@ -347,6 +347,7 @@ export declare const IntegrationConfigurationDTOProviderTypeEnum: {
|
|
|
347
347
|
readonly BambuCloud: "BAMBU_CLOUD";
|
|
348
348
|
readonly EdgeAgent: "EDGE_AGENT";
|
|
349
349
|
readonly Zendesk: "ZENDESK";
|
|
350
|
+
readonly AiAgent: "AI_AGENT";
|
|
350
351
|
readonly Custom: "CUSTOM";
|
|
351
352
|
};
|
|
352
353
|
export type IntegrationConfigurationDTOProviderTypeEnum = typeof IntegrationConfigurationDTOProviderTypeEnum[keyof typeof IntegrationConfigurationDTOProviderTypeEnum];
|
|
@@ -194,6 +194,7 @@ export declare const IntegrationHealthSummaryDTOProviderTypeEnum: {
|
|
|
194
194
|
readonly BambuCloud: "BAMBU_CLOUD";
|
|
195
195
|
readonly EdgeAgent: "EDGE_AGENT";
|
|
196
196
|
readonly Zendesk: "ZENDESK";
|
|
197
|
+
readonly AiAgent: "AI_AGENT";
|
|
197
198
|
readonly Custom: "CUSTOM";
|
|
198
199
|
};
|
|
199
200
|
export type IntegrationHealthSummaryDTOProviderTypeEnum = typeof IntegrationHealthSummaryDTOProviderTypeEnum[keyof typeof IntegrationHealthSummaryDTOProviderTypeEnum];
|
|
@@ -26,19 +26,19 @@ export interface PaymentIntentDTO {
|
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof PaymentIntentDTO
|
|
28
28
|
*/
|
|
29
|
-
amount
|
|
29
|
+
amount: number;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof PaymentIntentDTO
|
|
34
34
|
*/
|
|
35
|
-
amountCapturable
|
|
35
|
+
amountCapturable: number;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof PaymentIntentDTO
|
|
40
40
|
*/
|
|
41
|
-
amountReceived
|
|
41
|
+
amountReceived: number;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -56,7 +56,7 @@ export interface PaymentIntentDTO {
|
|
|
56
56
|
* @type {PaymentIntentDTOCaptureMethodEnum}
|
|
57
57
|
* @memberof PaymentIntentDTO
|
|
58
58
|
*/
|
|
59
|
-
captureMethod
|
|
59
|
+
captureMethod: PaymentIntentDTOCaptureMethodEnum;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
@@ -74,7 +74,7 @@ export interface PaymentIntentDTO {
|
|
|
74
74
|
* @type {PaymentIntentDTOConfirmationMethodEnum}
|
|
75
75
|
* @memberof PaymentIntentDTO
|
|
76
76
|
*/
|
|
77
|
-
confirmationMethod
|
|
77
|
+
confirmationMethod: PaymentIntentDTOConfirmationMethodEnum;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {ContactDTO}
|
|
@@ -98,7 +98,7 @@ export interface PaymentIntentDTO {
|
|
|
98
98
|
* @type {string}
|
|
99
99
|
* @memberof PaymentIntentDTO
|
|
100
100
|
*/
|
|
101
|
-
currencyCode
|
|
101
|
+
currencyCode: string;
|
|
102
102
|
/**
|
|
103
103
|
*
|
|
104
104
|
* @type {string}
|
|
@@ -182,7 +182,7 @@ export interface PaymentIntentDTO {
|
|
|
182
182
|
* @type {boolean}
|
|
183
183
|
* @memberof PaymentIntentDTO
|
|
184
184
|
*/
|
|
185
|
-
offSession
|
|
185
|
+
offSession: boolean;
|
|
186
186
|
/**
|
|
187
187
|
*
|
|
188
188
|
* @type {ContactDTO}
|
|
@@ -230,13 +230,13 @@ export interface PaymentIntentDTO {
|
|
|
230
230
|
* @type {PaymentIntentDTOSetupFutureUsageEnum}
|
|
231
231
|
* @memberof PaymentIntentDTO
|
|
232
232
|
*/
|
|
233
|
-
setupFutureUsage
|
|
233
|
+
setupFutureUsage: PaymentIntentDTOSetupFutureUsageEnum;
|
|
234
234
|
/**
|
|
235
235
|
*
|
|
236
236
|
* @type {PaymentIntentDTOStatusEnum}
|
|
237
237
|
* @memberof PaymentIntentDTO
|
|
238
238
|
*/
|
|
239
|
-
status
|
|
239
|
+
status: PaymentIntentDTOStatusEnum;
|
|
240
240
|
/**
|
|
241
241
|
*
|
|
242
242
|
* @type {number}
|
|
@@ -72,6 +72,24 @@ exports.PaymentIntentDTOStatusEnum = {
|
|
|
72
72
|
* Check if a given object implements the PaymentIntentDTO interface.
|
|
73
73
|
*/
|
|
74
74
|
function instanceOfPaymentIntentDTO(value) {
|
|
75
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
76
|
+
return false;
|
|
77
|
+
if (!('amountCapturable' in value) || value['amountCapturable'] === undefined)
|
|
78
|
+
return false;
|
|
79
|
+
if (!('amountReceived' in value) || value['amountReceived'] === undefined)
|
|
80
|
+
return false;
|
|
81
|
+
if (!('captureMethod' in value) || value['captureMethod'] === undefined)
|
|
82
|
+
return false;
|
|
83
|
+
if (!('confirmationMethod' in value) || value['confirmationMethod'] === undefined)
|
|
84
|
+
return false;
|
|
85
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
86
|
+
return false;
|
|
87
|
+
if (!('offSession' in value) || value['offSession'] === undefined)
|
|
88
|
+
return false;
|
|
89
|
+
if (!('setupFutureUsage' in value) || value['setupFutureUsage'] === undefined)
|
|
90
|
+
return false;
|
|
91
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
92
|
+
return false;
|
|
75
93
|
return true;
|
|
76
94
|
}
|
|
77
95
|
function PaymentIntentDTOFromJSON(json) {
|
|
@@ -82,19 +100,19 @@ function PaymentIntentDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
100
|
return json;
|
|
83
101
|
}
|
|
84
102
|
return {
|
|
85
|
-
'amount': json['amount']
|
|
86
|
-
'amountCapturable': json['amountCapturable']
|
|
87
|
-
'amountReceived': json['amountReceived']
|
|
103
|
+
'amount': json['amount'],
|
|
104
|
+
'amountCapturable': json['amountCapturable'],
|
|
105
|
+
'amountReceived': json['amountReceived'],
|
|
88
106
|
'cancellationReason': json['cancellationReason'] == null ? undefined : json['cancellationReason'],
|
|
89
107
|
'cancelledDate': json['cancelledDate'] == null ? undefined : (new Date(json['cancelledDate'])),
|
|
90
|
-
'captureMethod': json['captureMethod']
|
|
108
|
+
'captureMethod': json['captureMethod'],
|
|
91
109
|
'clientSecret': json['clientSecret'] == null ? undefined : json['clientSecret'],
|
|
92
110
|
'confirm': json['confirm'] == null ? undefined : json['confirm'],
|
|
93
|
-
'confirmationMethod': json['confirmationMethod']
|
|
111
|
+
'confirmationMethod': json['confirmationMethod'],
|
|
94
112
|
'contact': json['contact'] == null ? undefined : (0, ContactDTO_1.ContactDTOFromJSON)(json['contact']),
|
|
95
113
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
96
114
|
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
97
|
-
'currencyCode': json['currencyCode']
|
|
115
|
+
'currencyCode': json['currencyCode'],
|
|
98
116
|
'customId': json['customId'] == null ? undefined : json['customId'],
|
|
99
117
|
'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
|
|
100
118
|
'detail': json['detail'] == null ? undefined : json['detail'],
|
|
@@ -108,7 +126,7 @@ function PaymentIntentDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
108
126
|
'latestCharge': json['latestCharge'] == null ? undefined : json['latestCharge'],
|
|
109
127
|
'latestChargeError': json['latestChargeError'] == null ? undefined : json['latestChargeError'],
|
|
110
128
|
'namespaceKey': json['namespaceKey'] == null ? undefined : json['namespaceKey'],
|
|
111
|
-
'offSession': json['offSession']
|
|
129
|
+
'offSession': json['offSession'],
|
|
112
130
|
'onBehalfOfContact': json['onBehalfOfContact'] == null ? undefined : (0, ContactDTO_1.ContactDTOFromJSON)(json['onBehalfOfContact']),
|
|
113
131
|
'orderNumber': json['orderNumber'] == null ? undefined : json['orderNumber'],
|
|
114
132
|
'paymentMethod': json['paymentMethod'] == null ? undefined : (0, PaymentMethodDTO_1.PaymentMethodDTOFromJSON)(json['paymentMethod']),
|
|
@@ -116,8 +134,8 @@ function PaymentIntentDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
116
134
|
'purchaseOrder': json['purchaseOrder'] == null ? undefined : (0, PurchaseOrderDTO_1.PurchaseOrderDTOFromJSON)(json['purchaseOrder']),
|
|
117
135
|
'receiptEmail': json['receiptEmail'] == null ? undefined : json['receiptEmail'],
|
|
118
136
|
'review': json['review'] == null ? undefined : (0, ReviewDTO_1.ReviewDTOFromJSON)(json['review']),
|
|
119
|
-
'setupFutureUsage': json['setupFutureUsage']
|
|
120
|
-
'status': json['status']
|
|
137
|
+
'setupFutureUsage': json['setupFutureUsage'],
|
|
138
|
+
'status': json['status'],
|
|
121
139
|
'version': json['version'] == null ? undefined : json['version'],
|
|
122
140
|
};
|
|
123
141
|
}
|
|
@@ -27,6 +27,12 @@ export interface PlatformCheckoutDTO {
|
|
|
27
27
|
* @memberof PlatformCheckoutDTO
|
|
28
28
|
*/
|
|
29
29
|
publishableKey?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The name of the platform staff member who opened this order payment on the customer's behalf. Null when the customer opened the payment itself, and on subscription checkouts.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PlatformCheckoutDTO
|
|
34
|
+
*/
|
|
35
|
+
requestedBy?: string;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {string}
|
|
@@ -34,6 +34,7 @@ function PlatformCheckoutDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return {
|
|
35
35
|
'orderId': json['orderId'] == null ? undefined : json['orderId'],
|
|
36
36
|
'publishableKey': json['publishableKey'] == null ? undefined : json['publishableKey'],
|
|
37
|
+
'requestedBy': json['requestedBy'] == null ? undefined : json['requestedBy'],
|
|
37
38
|
'secret': json['secret'] == null ? undefined : json['secret'],
|
|
38
39
|
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
39
40
|
};
|
|
@@ -48,6 +49,7 @@ function PlatformCheckoutDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
49
|
return {
|
|
49
50
|
'orderId': value['orderId'],
|
|
50
51
|
'publishableKey': value['publishableKey'],
|
|
52
|
+
'requestedBy': value['requestedBy'],
|
|
51
53
|
'secret': value['secret'],
|
|
52
54
|
'subscriptionId': value['subscriptionId'],
|
|
53
55
|
};
|
|
@@ -101,6 +101,7 @@ export declare const ProviderHealthStatusDTOProviderTypeEnum: {
|
|
|
101
101
|
readonly BambuCloud: "BAMBU_CLOUD";
|
|
102
102
|
readonly EdgeAgent: "EDGE_AGENT";
|
|
103
103
|
readonly Zendesk: "ZENDESK";
|
|
104
|
+
readonly AiAgent: "AI_AGENT";
|
|
104
105
|
readonly Custom: "CUSTOM";
|
|
105
106
|
};
|
|
106
107
|
export type ProviderHealthStatusDTOProviderTypeEnum = typeof ProviderHealthStatusDTOProviderTypeEnum[keyof typeof ProviderHealthStatusDTOProviderTypeEnum];
|
|
@@ -93,6 +93,7 @@ export declare const SocialConnectionRegisterDTOProviderTypeEnum: {
|
|
|
93
93
|
readonly BambuCloud: "BAMBU_CLOUD";
|
|
94
94
|
readonly EdgeAgent: "EDGE_AGENT";
|
|
95
95
|
readonly Zendesk: "ZENDESK";
|
|
96
|
+
readonly AiAgent: "AI_AGENT";
|
|
96
97
|
readonly Custom: "CUSTOM";
|
|
97
98
|
};
|
|
98
99
|
export type SocialConnectionRegisterDTOProviderTypeEnum = typeof SocialConnectionRegisterDTOProviderTypeEnum[keyof typeof SocialConnectionRegisterDTOProviderTypeEnum];
|
|
@@ -87,6 +87,7 @@ export declare const SocialProviderCredentialReadinessDTOProviderTypeEnum: {
|
|
|
87
87
|
readonly BambuCloud: "BAMBU_CLOUD";
|
|
88
88
|
readonly EdgeAgent: "EDGE_AGENT";
|
|
89
89
|
readonly Zendesk: "ZENDESK";
|
|
90
|
+
readonly AiAgent: "AI_AGENT";
|
|
90
91
|
readonly Custom: "CUSTOM";
|
|
91
92
|
};
|
|
92
93
|
export type SocialProviderCredentialReadinessDTOProviderTypeEnum = typeof SocialProviderCredentialReadinessDTOProviderTypeEnum[keyof typeof SocialProviderCredentialReadinessDTOProviderTypeEnum];
|
|
@@ -22,7 +22,7 @@ export interface UcpWebhookRegistrationDTO {
|
|
|
22
22
|
*/
|
|
23
23
|
active?: boolean;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* The agent's profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session. Compared character for character: a different case, a trailing slash or a surrounding space names a different agent.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UcpWebhookRegistrationDTO
|
|
28
28
|
*/
|
package/package.json
CHANGED