@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/openapi/schema.ts
CHANGED
|
@@ -913,6 +913,26 @@ export interface paths {
|
|
|
913
913
|
patch?: never;
|
|
914
914
|
trace?: never;
|
|
915
915
|
};
|
|
916
|
+
"/embed/setup_intents/{id}/confirm": {
|
|
917
|
+
parameters: {
|
|
918
|
+
query?: never;
|
|
919
|
+
header?: never;
|
|
920
|
+
path?: never;
|
|
921
|
+
cookie?: never;
|
|
922
|
+
};
|
|
923
|
+
get?: never;
|
|
924
|
+
put?: never;
|
|
925
|
+
/**
|
|
926
|
+
* Confirm a setup intent and wait for card verification
|
|
927
|
+
* @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.
|
|
928
|
+
*/
|
|
929
|
+
post: operations["ConfirmEmbedSetupIntent"];
|
|
930
|
+
delete?: never;
|
|
931
|
+
options?: never;
|
|
932
|
+
head?: never;
|
|
933
|
+
patch?: never;
|
|
934
|
+
trace?: never;
|
|
935
|
+
};
|
|
916
936
|
"/embed/setup_intents/{id}/confirm_with_payment_method": {
|
|
917
937
|
parameters: {
|
|
918
938
|
query?: never;
|
|
@@ -922,7 +942,10 @@ export interface paths {
|
|
|
922
942
|
};
|
|
923
943
|
get?: never;
|
|
924
944
|
put?: never;
|
|
925
|
-
/**
|
|
945
|
+
/**
|
|
946
|
+
* Confirm a setup intent with a new payment method (async)
|
|
947
|
+
* @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.
|
|
948
|
+
*/
|
|
926
949
|
post: operations["ConfirmSetupIntentWithPaymentMethod"];
|
|
927
950
|
delete?: never;
|
|
928
951
|
options?: never;
|
|
@@ -4705,6 +4728,60 @@ export interface operations {
|
|
|
4705
4728
|
};
|
|
4706
4729
|
};
|
|
4707
4730
|
};
|
|
4731
|
+
ConfirmEmbedSetupIntent: {
|
|
4732
|
+
parameters: {
|
|
4733
|
+
query?: never;
|
|
4734
|
+
header?: never;
|
|
4735
|
+
path: {
|
|
4736
|
+
/** @description The ID of the setup intent to confirm */
|
|
4737
|
+
id: string;
|
|
4738
|
+
};
|
|
4739
|
+
cookie?: never;
|
|
4740
|
+
};
|
|
4741
|
+
requestBody: {
|
|
4742
|
+
content: {
|
|
4743
|
+
"application/json": components["schemas"]["ConfirmSetupIntentWithPaymentMethodRequest"];
|
|
4744
|
+
};
|
|
4745
|
+
};
|
|
4746
|
+
responses: {
|
|
4747
|
+
/** @description Confirmation completed after verification succeeded or failed */
|
|
4748
|
+
200: {
|
|
4749
|
+
headers: {
|
|
4750
|
+
[name: string]: unknown;
|
|
4751
|
+
};
|
|
4752
|
+
content: {
|
|
4753
|
+
"application/json": components["schemas"]["SetupIntent"];
|
|
4754
|
+
};
|
|
4755
|
+
};
|
|
4756
|
+
/** @description Already-started confirmation returned without a new processor request */
|
|
4757
|
+
202: {
|
|
4758
|
+
headers: {
|
|
4759
|
+
[name: string]: unknown;
|
|
4760
|
+
};
|
|
4761
|
+
content: {
|
|
4762
|
+
"application/json": components["schemas"]["SetupIntent"];
|
|
4763
|
+
};
|
|
4764
|
+
};
|
|
4765
|
+
/** @description Forbidden */
|
|
4766
|
+
403: {
|
|
4767
|
+
headers: {
|
|
4768
|
+
[name: string]: unknown;
|
|
4769
|
+
};
|
|
4770
|
+
content: {
|
|
4771
|
+
"application/json": components["schemas"]["Error"];
|
|
4772
|
+
};
|
|
4773
|
+
};
|
|
4774
|
+
/** @description Unprocessable content */
|
|
4775
|
+
422: {
|
|
4776
|
+
headers: {
|
|
4777
|
+
[name: string]: unknown;
|
|
4778
|
+
};
|
|
4779
|
+
content: {
|
|
4780
|
+
"application/json": components["schemas"]["Error"];
|
|
4781
|
+
};
|
|
4782
|
+
};
|
|
4783
|
+
};
|
|
4784
|
+
};
|
|
4708
4785
|
ConfirmSetupIntentWithPaymentMethod: {
|
|
4709
4786
|
parameters: {
|
|
4710
4787
|
query?: never;
|
|
@@ -4721,7 +4798,7 @@ export interface operations {
|
|
|
4721
4798
|
};
|
|
4722
4799
|
};
|
|
4723
4800
|
responses: {
|
|
4724
|
-
/** @description
|
|
4801
|
+
/** @description Confirmation accepted; card verification continues asynchronously */
|
|
4725
4802
|
202: {
|
|
4726
4803
|
headers: {
|
|
4727
4804
|
[name: string]: unknown;
|