@amos.com/node 0.1.50 → 0.1.52
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/dist/index.d.mts +82 -3
- package/dist/index.d.ts +82 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +82 -3
- package/package.json +1 -1
package/openapi/schema.ts
CHANGED
|
@@ -505,6 +505,26 @@ export interface paths {
|
|
|
505
505
|
patch?: never;
|
|
506
506
|
trace?: never;
|
|
507
507
|
};
|
|
508
|
+
"/embed/payment_intents/{id}/confirm": {
|
|
509
|
+
parameters: {
|
|
510
|
+
query?: never;
|
|
511
|
+
header?: never;
|
|
512
|
+
path?: never;
|
|
513
|
+
cookie?: never;
|
|
514
|
+
};
|
|
515
|
+
get?: never;
|
|
516
|
+
put?: never;
|
|
517
|
+
/**
|
|
518
|
+
* Confirm a payment intent and wait for processor authorization or sale
|
|
519
|
+
* @description Confirms the payment intent and blocks until the processor approves or declines the authorization or sale. Returns 200 with the post-processor state (for example succeeded, requires_payment_method, or requires_capture). Capture for automatic_async intents may still complete asynchronously after authorization.
|
|
520
|
+
*/
|
|
521
|
+
post: operations["ConfirmEmbedPaymentIntent"];
|
|
522
|
+
delete?: never;
|
|
523
|
+
options?: never;
|
|
524
|
+
head?: never;
|
|
525
|
+
patch?: never;
|
|
526
|
+
trace?: never;
|
|
527
|
+
};
|
|
508
528
|
"/embed/payment_intents/{id}/confirm_with_payment_method": {
|
|
509
529
|
parameters: {
|
|
510
530
|
query?: never;
|
|
@@ -514,7 +534,10 @@ export interface paths {
|
|
|
514
534
|
};
|
|
515
535
|
get?: never;
|
|
516
536
|
put?: never;
|
|
517
|
-
/**
|
|
537
|
+
/**
|
|
538
|
+
* Confirm a payment intent with a new payment method (async)
|
|
539
|
+
* @description Legacy async confirmation for migration. Accepts a payment method, enqueues authorization or sale work, and returns 202 with processing_authorization or processing_sale. Prefer POST /embed/payment_intents/{id}/confirm for synchronous processor confirmation.
|
|
540
|
+
*/
|
|
518
541
|
post: operations["ConfirmEmbedPaymentIntentWithPaymentMethod"];
|
|
519
542
|
delete?: never;
|
|
520
543
|
options?: never;
|
|
@@ -1352,6 +1375,8 @@ export interface components {
|
|
|
1352
1375
|
/** Format: uuid */
|
|
1353
1376
|
processor_id?: string;
|
|
1354
1377
|
worldpay_mid?: string;
|
|
1378
|
+
/** @description ACH verification threshold in cents for this account, taken from the merchant. When the organization sets ach_threshold, that value is used instead. Amounts at or above this require Plaid verification when the render template enables it. */
|
|
1379
|
+
ach_threshold?: number;
|
|
1355
1380
|
/** Format: date-time */
|
|
1356
1381
|
created_at?: string;
|
|
1357
1382
|
/** Format: date-time */
|
|
@@ -1688,7 +1713,7 @@ export interface components {
|
|
|
1688
1713
|
moto?: boolean;
|
|
1689
1714
|
};
|
|
1690
1715
|
AllowedBankAccountPaymentMethodOptions: {
|
|
1691
|
-
/** @description When true, this surface collects bank account verification (Plaid) for ACH at or above the merchant ACH threshold. Only supported on render templates. */
|
|
1716
|
+
/** @description When true, this surface collects bank account verification (Plaid) for ACH at or above the merchant ACH threshold. When omitted or false, verification is off. Only supported on render templates. */
|
|
1692
1717
|
verification?: boolean;
|
|
1693
1718
|
};
|
|
1694
1719
|
/** @description No configurable options for Google Pay payment methods. */
|
|
@@ -3697,6 +3722,60 @@ export interface operations {
|
|
|
3697
3722
|
};
|
|
3698
3723
|
};
|
|
3699
3724
|
};
|
|
3725
|
+
ConfirmEmbedPaymentIntent: {
|
|
3726
|
+
parameters: {
|
|
3727
|
+
query?: never;
|
|
3728
|
+
header?: never;
|
|
3729
|
+
path: {
|
|
3730
|
+
/** @description The ID of the payment intent to confirm */
|
|
3731
|
+
id: string;
|
|
3732
|
+
};
|
|
3733
|
+
cookie?: never;
|
|
3734
|
+
};
|
|
3735
|
+
requestBody: {
|
|
3736
|
+
content: {
|
|
3737
|
+
"application/json": components["schemas"]["ConfirmPaymentIntentWithPaymentMethodRequest"];
|
|
3738
|
+
};
|
|
3739
|
+
};
|
|
3740
|
+
responses: {
|
|
3741
|
+
/** @description Confirmation completed after the processor authorized, sold, or declined */
|
|
3742
|
+
200: {
|
|
3743
|
+
headers: {
|
|
3744
|
+
[name: string]: unknown;
|
|
3745
|
+
};
|
|
3746
|
+
content: {
|
|
3747
|
+
"application/json": components["schemas"]["PaymentIntent"];
|
|
3748
|
+
};
|
|
3749
|
+
};
|
|
3750
|
+
/** @description Already-started confirmation returned without a new processor request */
|
|
3751
|
+
202: {
|
|
3752
|
+
headers: {
|
|
3753
|
+
[name: string]: unknown;
|
|
3754
|
+
};
|
|
3755
|
+
content: {
|
|
3756
|
+
"application/json": components["schemas"]["PaymentIntent"];
|
|
3757
|
+
};
|
|
3758
|
+
};
|
|
3759
|
+
/** @description Forbidden */
|
|
3760
|
+
403: {
|
|
3761
|
+
headers: {
|
|
3762
|
+
[name: string]: unknown;
|
|
3763
|
+
};
|
|
3764
|
+
content: {
|
|
3765
|
+
"application/json": components["schemas"]["Error"];
|
|
3766
|
+
};
|
|
3767
|
+
};
|
|
3768
|
+
/** @description Unprocessable content */
|
|
3769
|
+
422: {
|
|
3770
|
+
headers: {
|
|
3771
|
+
[name: string]: unknown;
|
|
3772
|
+
};
|
|
3773
|
+
content: {
|
|
3774
|
+
"application/json": components["schemas"]["Error"];
|
|
3775
|
+
};
|
|
3776
|
+
};
|
|
3777
|
+
};
|
|
3778
|
+
};
|
|
3700
3779
|
ConfirmEmbedPaymentIntentWithPaymentMethod: {
|
|
3701
3780
|
parameters: {
|
|
3702
3781
|
query?: never;
|
|
@@ -3713,7 +3792,7 @@ export interface operations {
|
|
|
3713
3792
|
};
|
|
3714
3793
|
};
|
|
3715
3794
|
responses: {
|
|
3716
|
-
/** @description
|
|
3795
|
+
/** @description Confirmation accepted; authorization or sale continues asynchronously */
|
|
3717
3796
|
202: {
|
|
3718
3797
|
headers: {
|
|
3719
3798
|
[name: string]: unknown;
|