@amos.com/node 0.1.52 → 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 +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/dist/index.d.mts
CHANGED
|
@@ -916,6 +916,26 @@ interface paths {
|
|
|
916
916
|
patch?: never;
|
|
917
917
|
trace?: never;
|
|
918
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
|
+
};
|
|
919
939
|
"/embed/setup_intents/{id}/confirm_with_payment_method": {
|
|
920
940
|
parameters: {
|
|
921
941
|
query?: never;
|
|
@@ -925,7 +945,10 @@ interface paths {
|
|
|
925
945
|
};
|
|
926
946
|
get?: never;
|
|
927
947
|
put?: never;
|
|
928
|
-
/**
|
|
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
|
+
*/
|
|
929
952
|
post: operations["ConfirmSetupIntentWithPaymentMethod"];
|
|
930
953
|
delete?: never;
|
|
931
954
|
options?: never;
|
|
@@ -4708,6 +4731,60 @@ interface operations {
|
|
|
4708
4731
|
};
|
|
4709
4732
|
};
|
|
4710
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
|
+
};
|
|
4711
4788
|
ConfirmSetupIntentWithPaymentMethod: {
|
|
4712
4789
|
parameters: {
|
|
4713
4790
|
query?: never;
|
|
@@ -4724,7 +4801,7 @@ interface operations {
|
|
|
4724
4801
|
};
|
|
4725
4802
|
};
|
|
4726
4803
|
responses: {
|
|
4727
|
-
/** @description
|
|
4804
|
+
/** @description Confirmation accepted; card verification continues asynchronously */
|
|
4728
4805
|
202: {
|
|
4729
4806
|
headers: {
|
|
4730
4807
|
[name: string]: unknown;
|
package/dist/index.d.ts
CHANGED
|
@@ -916,6 +916,26 @@ interface paths {
|
|
|
916
916
|
patch?: never;
|
|
917
917
|
trace?: never;
|
|
918
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
|
+
};
|
|
919
939
|
"/embed/setup_intents/{id}/confirm_with_payment_method": {
|
|
920
940
|
parameters: {
|
|
921
941
|
query?: never;
|
|
@@ -925,7 +945,10 @@ interface paths {
|
|
|
925
945
|
};
|
|
926
946
|
get?: never;
|
|
927
947
|
put?: never;
|
|
928
|
-
/**
|
|
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
|
+
*/
|
|
929
952
|
post: operations["ConfirmSetupIntentWithPaymentMethod"];
|
|
930
953
|
delete?: never;
|
|
931
954
|
options?: never;
|
|
@@ -4708,6 +4731,60 @@ interface operations {
|
|
|
4708
4731
|
};
|
|
4709
4732
|
};
|
|
4710
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
|
+
};
|
|
4711
4788
|
ConfirmSetupIntentWithPaymentMethod: {
|
|
4712
4789
|
parameters: {
|
|
4713
4790
|
query?: never;
|
|
@@ -4724,7 +4801,7 @@ interface operations {
|
|
|
4724
4801
|
};
|
|
4725
4802
|
};
|
|
4726
4803
|
responses: {
|
|
4727
|
-
/** @description
|
|
4804
|
+
/** @description Confirmation accepted; card verification continues asynchronously */
|
|
4728
4805
|
202: {
|
|
4729
4806
|
headers: {
|
|
4730
4807
|
[name: string]: unknown;
|