@amos.com/node 0.1.51 → 0.1.53
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 +158 -4
- package/dist/index.d.ts +158 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +158 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -508,6 +508,26 @@ interface paths {
|
|
|
508
508
|
patch?: never;
|
|
509
509
|
trace?: never;
|
|
510
510
|
};
|
|
511
|
+
"/embed/payment_intents/{id}/confirm": {
|
|
512
|
+
parameters: {
|
|
513
|
+
query?: never;
|
|
514
|
+
header?: never;
|
|
515
|
+
path?: never;
|
|
516
|
+
cookie?: never;
|
|
517
|
+
};
|
|
518
|
+
get?: never;
|
|
519
|
+
put?: never;
|
|
520
|
+
/**
|
|
521
|
+
* Confirm a payment intent and wait for processor authorization or sale
|
|
522
|
+
* @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.
|
|
523
|
+
*/
|
|
524
|
+
post: operations["ConfirmEmbedPaymentIntent"];
|
|
525
|
+
delete?: never;
|
|
526
|
+
options?: never;
|
|
527
|
+
head?: never;
|
|
528
|
+
patch?: never;
|
|
529
|
+
trace?: never;
|
|
530
|
+
};
|
|
511
531
|
"/embed/payment_intents/{id}/confirm_with_payment_method": {
|
|
512
532
|
parameters: {
|
|
513
533
|
query?: never;
|
|
@@ -517,7 +537,10 @@ interface paths {
|
|
|
517
537
|
};
|
|
518
538
|
get?: never;
|
|
519
539
|
put?: never;
|
|
520
|
-
/**
|
|
540
|
+
/**
|
|
541
|
+
* Confirm a payment intent with a new payment method (async)
|
|
542
|
+
* @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.
|
|
543
|
+
*/
|
|
521
544
|
post: operations["ConfirmEmbedPaymentIntentWithPaymentMethod"];
|
|
522
545
|
delete?: never;
|
|
523
546
|
options?: never;
|
|
@@ -893,6 +916,26 @@ interface paths {
|
|
|
893
916
|
patch?: never;
|
|
894
917
|
trace?: never;
|
|
895
918
|
};
|
|
919
|
+
"/embed/setup_intents/{id}/confirm": {
|
|
920
|
+
parameters: {
|
|
921
|
+
query?: never;
|
|
922
|
+
header?: never;
|
|
923
|
+
path?: never;
|
|
924
|
+
cookie?: never;
|
|
925
|
+
};
|
|
926
|
+
get?: never;
|
|
927
|
+
put?: never;
|
|
928
|
+
/**
|
|
929
|
+
* Confirm a setup intent and wait for card verification
|
|
930
|
+
* @description Confirms the setup intent and, for cards, blocks until processor verification completes. Returns 200 with the post-verification state (for example succeeded, requires_payment_method, or requires_review). Bank account setups succeed without a processor authorization.
|
|
931
|
+
*/
|
|
932
|
+
post: operations["ConfirmEmbedSetupIntent"];
|
|
933
|
+
delete?: never;
|
|
934
|
+
options?: never;
|
|
935
|
+
head?: never;
|
|
936
|
+
patch?: never;
|
|
937
|
+
trace?: never;
|
|
938
|
+
};
|
|
896
939
|
"/embed/setup_intents/{id}/confirm_with_payment_method": {
|
|
897
940
|
parameters: {
|
|
898
941
|
query?: never;
|
|
@@ -902,7 +945,10 @@ interface paths {
|
|
|
902
945
|
};
|
|
903
946
|
get?: never;
|
|
904
947
|
put?: never;
|
|
905
|
-
/**
|
|
948
|
+
/**
|
|
949
|
+
* Confirm a setup intent with a new payment method (async)
|
|
950
|
+
* @description Legacy async confirmation for migration. Accepts a payment method and, for cards, enqueues verification. Returns 202 with verifying or succeeded. Prefer POST /embed/setup_intents/{id}/confirm for synchronous confirmation.
|
|
951
|
+
*/
|
|
906
952
|
post: operations["ConfirmSetupIntentWithPaymentMethod"];
|
|
907
953
|
delete?: never;
|
|
908
954
|
options?: never;
|
|
@@ -3702,6 +3748,60 @@ interface operations {
|
|
|
3702
3748
|
};
|
|
3703
3749
|
};
|
|
3704
3750
|
};
|
|
3751
|
+
ConfirmEmbedPaymentIntent: {
|
|
3752
|
+
parameters: {
|
|
3753
|
+
query?: never;
|
|
3754
|
+
header?: never;
|
|
3755
|
+
path: {
|
|
3756
|
+
/** @description The ID of the payment intent to confirm */
|
|
3757
|
+
id: string;
|
|
3758
|
+
};
|
|
3759
|
+
cookie?: never;
|
|
3760
|
+
};
|
|
3761
|
+
requestBody: {
|
|
3762
|
+
content: {
|
|
3763
|
+
"application/json": components["schemas"]["ConfirmPaymentIntentWithPaymentMethodRequest"];
|
|
3764
|
+
};
|
|
3765
|
+
};
|
|
3766
|
+
responses: {
|
|
3767
|
+
/** @description Confirmation completed after the processor authorized, sold, or declined */
|
|
3768
|
+
200: {
|
|
3769
|
+
headers: {
|
|
3770
|
+
[name: string]: unknown;
|
|
3771
|
+
};
|
|
3772
|
+
content: {
|
|
3773
|
+
"application/json": components["schemas"]["PaymentIntent"];
|
|
3774
|
+
};
|
|
3775
|
+
};
|
|
3776
|
+
/** @description Already-started confirmation returned without a new processor request */
|
|
3777
|
+
202: {
|
|
3778
|
+
headers: {
|
|
3779
|
+
[name: string]: unknown;
|
|
3780
|
+
};
|
|
3781
|
+
content: {
|
|
3782
|
+
"application/json": components["schemas"]["PaymentIntent"];
|
|
3783
|
+
};
|
|
3784
|
+
};
|
|
3785
|
+
/** @description Forbidden */
|
|
3786
|
+
403: {
|
|
3787
|
+
headers: {
|
|
3788
|
+
[name: string]: unknown;
|
|
3789
|
+
};
|
|
3790
|
+
content: {
|
|
3791
|
+
"application/json": components["schemas"]["Error"];
|
|
3792
|
+
};
|
|
3793
|
+
};
|
|
3794
|
+
/** @description Unprocessable content */
|
|
3795
|
+
422: {
|
|
3796
|
+
headers: {
|
|
3797
|
+
[name: string]: unknown;
|
|
3798
|
+
};
|
|
3799
|
+
content: {
|
|
3800
|
+
"application/json": components["schemas"]["Error"];
|
|
3801
|
+
};
|
|
3802
|
+
};
|
|
3803
|
+
};
|
|
3804
|
+
};
|
|
3705
3805
|
ConfirmEmbedPaymentIntentWithPaymentMethod: {
|
|
3706
3806
|
parameters: {
|
|
3707
3807
|
query?: never;
|
|
@@ -3718,7 +3818,7 @@ interface operations {
|
|
|
3718
3818
|
};
|
|
3719
3819
|
};
|
|
3720
3820
|
responses: {
|
|
3721
|
-
/** @description
|
|
3821
|
+
/** @description Confirmation accepted; authorization or sale continues asynchronously */
|
|
3722
3822
|
202: {
|
|
3723
3823
|
headers: {
|
|
3724
3824
|
[name: string]: unknown;
|
|
@@ -4631,6 +4731,60 @@ interface operations {
|
|
|
4631
4731
|
};
|
|
4632
4732
|
};
|
|
4633
4733
|
};
|
|
4734
|
+
ConfirmEmbedSetupIntent: {
|
|
4735
|
+
parameters: {
|
|
4736
|
+
query?: never;
|
|
4737
|
+
header?: never;
|
|
4738
|
+
path: {
|
|
4739
|
+
/** @description The ID of the setup intent to confirm */
|
|
4740
|
+
id: string;
|
|
4741
|
+
};
|
|
4742
|
+
cookie?: never;
|
|
4743
|
+
};
|
|
4744
|
+
requestBody: {
|
|
4745
|
+
content: {
|
|
4746
|
+
"application/json": components["schemas"]["ConfirmSetupIntentWithPaymentMethodRequest"];
|
|
4747
|
+
};
|
|
4748
|
+
};
|
|
4749
|
+
responses: {
|
|
4750
|
+
/** @description Confirmation completed after verification succeeded or failed */
|
|
4751
|
+
200: {
|
|
4752
|
+
headers: {
|
|
4753
|
+
[name: string]: unknown;
|
|
4754
|
+
};
|
|
4755
|
+
content: {
|
|
4756
|
+
"application/json": components["schemas"]["SetupIntent"];
|
|
4757
|
+
};
|
|
4758
|
+
};
|
|
4759
|
+
/** @description Already-started confirmation returned without a new processor request */
|
|
4760
|
+
202: {
|
|
4761
|
+
headers: {
|
|
4762
|
+
[name: string]: unknown;
|
|
4763
|
+
};
|
|
4764
|
+
content: {
|
|
4765
|
+
"application/json": components["schemas"]["SetupIntent"];
|
|
4766
|
+
};
|
|
4767
|
+
};
|
|
4768
|
+
/** @description Forbidden */
|
|
4769
|
+
403: {
|
|
4770
|
+
headers: {
|
|
4771
|
+
[name: string]: unknown;
|
|
4772
|
+
};
|
|
4773
|
+
content: {
|
|
4774
|
+
"application/json": components["schemas"]["Error"];
|
|
4775
|
+
};
|
|
4776
|
+
};
|
|
4777
|
+
/** @description Unprocessable content */
|
|
4778
|
+
422: {
|
|
4779
|
+
headers: {
|
|
4780
|
+
[name: string]: unknown;
|
|
4781
|
+
};
|
|
4782
|
+
content: {
|
|
4783
|
+
"application/json": components["schemas"]["Error"];
|
|
4784
|
+
};
|
|
4785
|
+
};
|
|
4786
|
+
};
|
|
4787
|
+
};
|
|
4634
4788
|
ConfirmSetupIntentWithPaymentMethod: {
|
|
4635
4789
|
parameters: {
|
|
4636
4790
|
query?: never;
|
|
@@ -4647,7 +4801,7 @@ interface operations {
|
|
|
4647
4801
|
};
|
|
4648
4802
|
};
|
|
4649
4803
|
responses: {
|
|
4650
|
-
/** @description
|
|
4804
|
+
/** @description Confirmation accepted; card verification continues asynchronously */
|
|
4651
4805
|
202: {
|
|
4652
4806
|
headers: {
|
|
4653
4807
|
[name: string]: unknown;
|
package/dist/index.d.ts
CHANGED
|
@@ -508,6 +508,26 @@ interface paths {
|
|
|
508
508
|
patch?: never;
|
|
509
509
|
trace?: never;
|
|
510
510
|
};
|
|
511
|
+
"/embed/payment_intents/{id}/confirm": {
|
|
512
|
+
parameters: {
|
|
513
|
+
query?: never;
|
|
514
|
+
header?: never;
|
|
515
|
+
path?: never;
|
|
516
|
+
cookie?: never;
|
|
517
|
+
};
|
|
518
|
+
get?: never;
|
|
519
|
+
put?: never;
|
|
520
|
+
/**
|
|
521
|
+
* Confirm a payment intent and wait for processor authorization or sale
|
|
522
|
+
* @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.
|
|
523
|
+
*/
|
|
524
|
+
post: operations["ConfirmEmbedPaymentIntent"];
|
|
525
|
+
delete?: never;
|
|
526
|
+
options?: never;
|
|
527
|
+
head?: never;
|
|
528
|
+
patch?: never;
|
|
529
|
+
trace?: never;
|
|
530
|
+
};
|
|
511
531
|
"/embed/payment_intents/{id}/confirm_with_payment_method": {
|
|
512
532
|
parameters: {
|
|
513
533
|
query?: never;
|
|
@@ -517,7 +537,10 @@ interface paths {
|
|
|
517
537
|
};
|
|
518
538
|
get?: never;
|
|
519
539
|
put?: never;
|
|
520
|
-
/**
|
|
540
|
+
/**
|
|
541
|
+
* Confirm a payment intent with a new payment method (async)
|
|
542
|
+
* @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.
|
|
543
|
+
*/
|
|
521
544
|
post: operations["ConfirmEmbedPaymentIntentWithPaymentMethod"];
|
|
522
545
|
delete?: never;
|
|
523
546
|
options?: never;
|
|
@@ -893,6 +916,26 @@ interface paths {
|
|
|
893
916
|
patch?: never;
|
|
894
917
|
trace?: never;
|
|
895
918
|
};
|
|
919
|
+
"/embed/setup_intents/{id}/confirm": {
|
|
920
|
+
parameters: {
|
|
921
|
+
query?: never;
|
|
922
|
+
header?: never;
|
|
923
|
+
path?: never;
|
|
924
|
+
cookie?: never;
|
|
925
|
+
};
|
|
926
|
+
get?: never;
|
|
927
|
+
put?: never;
|
|
928
|
+
/**
|
|
929
|
+
* Confirm a setup intent and wait for card verification
|
|
930
|
+
* @description Confirms the setup intent and, for cards, blocks until processor verification completes. Returns 200 with the post-verification state (for example succeeded, requires_payment_method, or requires_review). Bank account setups succeed without a processor authorization.
|
|
931
|
+
*/
|
|
932
|
+
post: operations["ConfirmEmbedSetupIntent"];
|
|
933
|
+
delete?: never;
|
|
934
|
+
options?: never;
|
|
935
|
+
head?: never;
|
|
936
|
+
patch?: never;
|
|
937
|
+
trace?: never;
|
|
938
|
+
};
|
|
896
939
|
"/embed/setup_intents/{id}/confirm_with_payment_method": {
|
|
897
940
|
parameters: {
|
|
898
941
|
query?: never;
|
|
@@ -902,7 +945,10 @@ interface paths {
|
|
|
902
945
|
};
|
|
903
946
|
get?: never;
|
|
904
947
|
put?: never;
|
|
905
|
-
/**
|
|
948
|
+
/**
|
|
949
|
+
* Confirm a setup intent with a new payment method (async)
|
|
950
|
+
* @description Legacy async confirmation for migration. Accepts a payment method and, for cards, enqueues verification. Returns 202 with verifying or succeeded. Prefer POST /embed/setup_intents/{id}/confirm for synchronous confirmation.
|
|
951
|
+
*/
|
|
906
952
|
post: operations["ConfirmSetupIntentWithPaymentMethod"];
|
|
907
953
|
delete?: never;
|
|
908
954
|
options?: never;
|
|
@@ -3702,6 +3748,60 @@ interface operations {
|
|
|
3702
3748
|
};
|
|
3703
3749
|
};
|
|
3704
3750
|
};
|
|
3751
|
+
ConfirmEmbedPaymentIntent: {
|
|
3752
|
+
parameters: {
|
|
3753
|
+
query?: never;
|
|
3754
|
+
header?: never;
|
|
3755
|
+
path: {
|
|
3756
|
+
/** @description The ID of the payment intent to confirm */
|
|
3757
|
+
id: string;
|
|
3758
|
+
};
|
|
3759
|
+
cookie?: never;
|
|
3760
|
+
};
|
|
3761
|
+
requestBody: {
|
|
3762
|
+
content: {
|
|
3763
|
+
"application/json": components["schemas"]["ConfirmPaymentIntentWithPaymentMethodRequest"];
|
|
3764
|
+
};
|
|
3765
|
+
};
|
|
3766
|
+
responses: {
|
|
3767
|
+
/** @description Confirmation completed after the processor authorized, sold, or declined */
|
|
3768
|
+
200: {
|
|
3769
|
+
headers: {
|
|
3770
|
+
[name: string]: unknown;
|
|
3771
|
+
};
|
|
3772
|
+
content: {
|
|
3773
|
+
"application/json": components["schemas"]["PaymentIntent"];
|
|
3774
|
+
};
|
|
3775
|
+
};
|
|
3776
|
+
/** @description Already-started confirmation returned without a new processor request */
|
|
3777
|
+
202: {
|
|
3778
|
+
headers: {
|
|
3779
|
+
[name: string]: unknown;
|
|
3780
|
+
};
|
|
3781
|
+
content: {
|
|
3782
|
+
"application/json": components["schemas"]["PaymentIntent"];
|
|
3783
|
+
};
|
|
3784
|
+
};
|
|
3785
|
+
/** @description Forbidden */
|
|
3786
|
+
403: {
|
|
3787
|
+
headers: {
|
|
3788
|
+
[name: string]: unknown;
|
|
3789
|
+
};
|
|
3790
|
+
content: {
|
|
3791
|
+
"application/json": components["schemas"]["Error"];
|
|
3792
|
+
};
|
|
3793
|
+
};
|
|
3794
|
+
/** @description Unprocessable content */
|
|
3795
|
+
422: {
|
|
3796
|
+
headers: {
|
|
3797
|
+
[name: string]: unknown;
|
|
3798
|
+
};
|
|
3799
|
+
content: {
|
|
3800
|
+
"application/json": components["schemas"]["Error"];
|
|
3801
|
+
};
|
|
3802
|
+
};
|
|
3803
|
+
};
|
|
3804
|
+
};
|
|
3705
3805
|
ConfirmEmbedPaymentIntentWithPaymentMethod: {
|
|
3706
3806
|
parameters: {
|
|
3707
3807
|
query?: never;
|
|
@@ -3718,7 +3818,7 @@ interface operations {
|
|
|
3718
3818
|
};
|
|
3719
3819
|
};
|
|
3720
3820
|
responses: {
|
|
3721
|
-
/** @description
|
|
3821
|
+
/** @description Confirmation accepted; authorization or sale continues asynchronously */
|
|
3722
3822
|
202: {
|
|
3723
3823
|
headers: {
|
|
3724
3824
|
[name: string]: unknown;
|
|
@@ -4631,6 +4731,60 @@ interface operations {
|
|
|
4631
4731
|
};
|
|
4632
4732
|
};
|
|
4633
4733
|
};
|
|
4734
|
+
ConfirmEmbedSetupIntent: {
|
|
4735
|
+
parameters: {
|
|
4736
|
+
query?: never;
|
|
4737
|
+
header?: never;
|
|
4738
|
+
path: {
|
|
4739
|
+
/** @description The ID of the setup intent to confirm */
|
|
4740
|
+
id: string;
|
|
4741
|
+
};
|
|
4742
|
+
cookie?: never;
|
|
4743
|
+
};
|
|
4744
|
+
requestBody: {
|
|
4745
|
+
content: {
|
|
4746
|
+
"application/json": components["schemas"]["ConfirmSetupIntentWithPaymentMethodRequest"];
|
|
4747
|
+
};
|
|
4748
|
+
};
|
|
4749
|
+
responses: {
|
|
4750
|
+
/** @description Confirmation completed after verification succeeded or failed */
|
|
4751
|
+
200: {
|
|
4752
|
+
headers: {
|
|
4753
|
+
[name: string]: unknown;
|
|
4754
|
+
};
|
|
4755
|
+
content: {
|
|
4756
|
+
"application/json": components["schemas"]["SetupIntent"];
|
|
4757
|
+
};
|
|
4758
|
+
};
|
|
4759
|
+
/** @description Already-started confirmation returned without a new processor request */
|
|
4760
|
+
202: {
|
|
4761
|
+
headers: {
|
|
4762
|
+
[name: string]: unknown;
|
|
4763
|
+
};
|
|
4764
|
+
content: {
|
|
4765
|
+
"application/json": components["schemas"]["SetupIntent"];
|
|
4766
|
+
};
|
|
4767
|
+
};
|
|
4768
|
+
/** @description Forbidden */
|
|
4769
|
+
403: {
|
|
4770
|
+
headers: {
|
|
4771
|
+
[name: string]: unknown;
|
|
4772
|
+
};
|
|
4773
|
+
content: {
|
|
4774
|
+
"application/json": components["schemas"]["Error"];
|
|
4775
|
+
};
|
|
4776
|
+
};
|
|
4777
|
+
/** @description Unprocessable content */
|
|
4778
|
+
422: {
|
|
4779
|
+
headers: {
|
|
4780
|
+
[name: string]: unknown;
|
|
4781
|
+
};
|
|
4782
|
+
content: {
|
|
4783
|
+
"application/json": components["schemas"]["Error"];
|
|
4784
|
+
};
|
|
4785
|
+
};
|
|
4786
|
+
};
|
|
4787
|
+
};
|
|
4634
4788
|
ConfirmSetupIntentWithPaymentMethod: {
|
|
4635
4789
|
parameters: {
|
|
4636
4790
|
query?: never;
|
|
@@ -4647,7 +4801,7 @@ interface operations {
|
|
|
4647
4801
|
};
|
|
4648
4802
|
};
|
|
4649
4803
|
responses: {
|
|
4650
|
-
/** @description
|
|
4804
|
+
/** @description Confirmation accepted; card verification continues asynchronously */
|
|
4651
4805
|
202: {
|
|
4652
4806
|
headers: {
|
|
4653
4807
|
[name: string]: unknown;
|