@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/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
- /** Confirm a payment intent with a new payment method */
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;
@@ -890,6 +913,26 @@ export interface paths {
890
913
  patch?: never;
891
914
  trace?: never;
892
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
+ };
893
936
  "/embed/setup_intents/{id}/confirm_with_payment_method": {
894
937
  parameters: {
895
938
  query?: never;
@@ -899,7 +942,10 @@ export interface paths {
899
942
  };
900
943
  get?: never;
901
944
  put?: never;
902
- /** Confirm a setup intent with a new payment method */
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
+ */
903
949
  post: operations["ConfirmSetupIntentWithPaymentMethod"];
904
950
  delete?: never;
905
951
  options?: never;
@@ -3699,6 +3745,60 @@ export interface operations {
3699
3745
  };
3700
3746
  };
3701
3747
  };
3748
+ ConfirmEmbedPaymentIntent: {
3749
+ parameters: {
3750
+ query?: never;
3751
+ header?: never;
3752
+ path: {
3753
+ /** @description The ID of the payment intent to confirm */
3754
+ id: string;
3755
+ };
3756
+ cookie?: never;
3757
+ };
3758
+ requestBody: {
3759
+ content: {
3760
+ "application/json": components["schemas"]["ConfirmPaymentIntentWithPaymentMethodRequest"];
3761
+ };
3762
+ };
3763
+ responses: {
3764
+ /** @description Confirmation completed after the processor authorized, sold, or declined */
3765
+ 200: {
3766
+ headers: {
3767
+ [name: string]: unknown;
3768
+ };
3769
+ content: {
3770
+ "application/json": components["schemas"]["PaymentIntent"];
3771
+ };
3772
+ };
3773
+ /** @description Already-started confirmation returned without a new processor request */
3774
+ 202: {
3775
+ headers: {
3776
+ [name: string]: unknown;
3777
+ };
3778
+ content: {
3779
+ "application/json": components["schemas"]["PaymentIntent"];
3780
+ };
3781
+ };
3782
+ /** @description Forbidden */
3783
+ 403: {
3784
+ headers: {
3785
+ [name: string]: unknown;
3786
+ };
3787
+ content: {
3788
+ "application/json": components["schemas"]["Error"];
3789
+ };
3790
+ };
3791
+ /** @description Unprocessable content */
3792
+ 422: {
3793
+ headers: {
3794
+ [name: string]: unknown;
3795
+ };
3796
+ content: {
3797
+ "application/json": components["schemas"]["Error"];
3798
+ };
3799
+ };
3800
+ };
3801
+ };
3702
3802
  ConfirmEmbedPaymentIntentWithPaymentMethod: {
3703
3803
  parameters: {
3704
3804
  query?: never;
@@ -3715,7 +3815,7 @@ export interface operations {
3715
3815
  };
3716
3816
  };
3717
3817
  responses: {
3718
- /** @description Successful confirmation of payment intent */
3818
+ /** @description Confirmation accepted; authorization or sale continues asynchronously */
3719
3819
  202: {
3720
3820
  headers: {
3721
3821
  [name: string]: unknown;
@@ -4628,6 +4728,60 @@ export interface operations {
4628
4728
  };
4629
4729
  };
4630
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
+ };
4631
4785
  ConfirmSetupIntentWithPaymentMethod: {
4632
4786
  parameters: {
4633
4787
  query?: never;
@@ -4644,7 +4798,7 @@ export interface operations {
4644
4798
  };
4645
4799
  };
4646
4800
  responses: {
4647
- /** @description Successful confirmation of setup intent */
4801
+ /** @description Confirmation accepted; card verification continues asynchronously */
4648
4802
  202: {
4649
4803
  headers: {
4650
4804
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amos.com/node",
3
- "version": "0.1.51",
3
+ "version": "0.1.53",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",