@integrahub/vergefy-client 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/PLATFORMLPCPlatformPaymentCheckoutApi.js +63 -0
- package/dist/esm/ext/telemetry.js +1 -1
- package/dist/esm/models/PaymentIntentDTO.js +27 -9
- package/dist/ext/telemetry.d.ts +1 -1
- package/dist/ext/telemetry.js +1 -1
- package/dist/models/PaymentIntentDTO.d.ts +9 -9
- package/dist/models/PaymentIntentDTO.js +27 -9
- 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.29.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.29.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) {
|
|
@@ -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) {
|
|
@@ -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.29.0';
|
|
12
12
|
const NAME = 'vergefy-typescript-client';
|
|
13
13
|
/** The `User-Agent` value, e.g. `vergefy-typescript-client/0.1.0`. */
|
|
14
14
|
export function userAgent() {
|
|
@@ -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
|
}
|
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.29.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.29.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() {
|
|
@@ -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
|
}
|
|
@@ -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