@amos.com/node 0.1.51 → 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 +79 -2
- package/dist/index.d.ts +79 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +79 -2
- 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;
|
|
@@ -3699,6 +3722,60 @@ export interface operations {
|
|
|
3699
3722
|
};
|
|
3700
3723
|
};
|
|
3701
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
|
+
};
|
|
3702
3779
|
ConfirmEmbedPaymentIntentWithPaymentMethod: {
|
|
3703
3780
|
parameters: {
|
|
3704
3781
|
query?: never;
|
|
@@ -3715,7 +3792,7 @@ export interface operations {
|
|
|
3715
3792
|
};
|
|
3716
3793
|
};
|
|
3717
3794
|
responses: {
|
|
3718
|
-
/** @description
|
|
3795
|
+
/** @description Confirmation accepted; authorization or sale continues asynchronously */
|
|
3719
3796
|
202: {
|
|
3720
3797
|
headers: {
|
|
3721
3798
|
[name: string]: unknown;
|