@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 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
- /** Confirm a payment intent with a new payment method */
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;
@@ -3702,6 +3725,60 @@ interface operations {
3702
3725
  };
3703
3726
  };
3704
3727
  };
3728
+ ConfirmEmbedPaymentIntent: {
3729
+ parameters: {
3730
+ query?: never;
3731
+ header?: never;
3732
+ path: {
3733
+ /** @description The ID of the payment intent to confirm */
3734
+ id: string;
3735
+ };
3736
+ cookie?: never;
3737
+ };
3738
+ requestBody: {
3739
+ content: {
3740
+ "application/json": components["schemas"]["ConfirmPaymentIntentWithPaymentMethodRequest"];
3741
+ };
3742
+ };
3743
+ responses: {
3744
+ /** @description Confirmation completed after the processor authorized, sold, or declined */
3745
+ 200: {
3746
+ headers: {
3747
+ [name: string]: unknown;
3748
+ };
3749
+ content: {
3750
+ "application/json": components["schemas"]["PaymentIntent"];
3751
+ };
3752
+ };
3753
+ /** @description Already-started confirmation returned without a new processor request */
3754
+ 202: {
3755
+ headers: {
3756
+ [name: string]: unknown;
3757
+ };
3758
+ content: {
3759
+ "application/json": components["schemas"]["PaymentIntent"];
3760
+ };
3761
+ };
3762
+ /** @description Forbidden */
3763
+ 403: {
3764
+ headers: {
3765
+ [name: string]: unknown;
3766
+ };
3767
+ content: {
3768
+ "application/json": components["schemas"]["Error"];
3769
+ };
3770
+ };
3771
+ /** @description Unprocessable content */
3772
+ 422: {
3773
+ headers: {
3774
+ [name: string]: unknown;
3775
+ };
3776
+ content: {
3777
+ "application/json": components["schemas"]["Error"];
3778
+ };
3779
+ };
3780
+ };
3781
+ };
3705
3782
  ConfirmEmbedPaymentIntentWithPaymentMethod: {
3706
3783
  parameters: {
3707
3784
  query?: never;
@@ -3718,7 +3795,7 @@ interface operations {
3718
3795
  };
3719
3796
  };
3720
3797
  responses: {
3721
- /** @description Successful confirmation of payment intent */
3798
+ /** @description Confirmation accepted; authorization or sale continues asynchronously */
3722
3799
  202: {
3723
3800
  headers: {
3724
3801
  [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
- /** Confirm a payment intent with a new payment method */
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;
@@ -3702,6 +3725,60 @@ interface operations {
3702
3725
  };
3703
3726
  };
3704
3727
  };
3728
+ ConfirmEmbedPaymentIntent: {
3729
+ parameters: {
3730
+ query?: never;
3731
+ header?: never;
3732
+ path: {
3733
+ /** @description The ID of the payment intent to confirm */
3734
+ id: string;
3735
+ };
3736
+ cookie?: never;
3737
+ };
3738
+ requestBody: {
3739
+ content: {
3740
+ "application/json": components["schemas"]["ConfirmPaymentIntentWithPaymentMethodRequest"];
3741
+ };
3742
+ };
3743
+ responses: {
3744
+ /** @description Confirmation completed after the processor authorized, sold, or declined */
3745
+ 200: {
3746
+ headers: {
3747
+ [name: string]: unknown;
3748
+ };
3749
+ content: {
3750
+ "application/json": components["schemas"]["PaymentIntent"];
3751
+ };
3752
+ };
3753
+ /** @description Already-started confirmation returned without a new processor request */
3754
+ 202: {
3755
+ headers: {
3756
+ [name: string]: unknown;
3757
+ };
3758
+ content: {
3759
+ "application/json": components["schemas"]["PaymentIntent"];
3760
+ };
3761
+ };
3762
+ /** @description Forbidden */
3763
+ 403: {
3764
+ headers: {
3765
+ [name: string]: unknown;
3766
+ };
3767
+ content: {
3768
+ "application/json": components["schemas"]["Error"];
3769
+ };
3770
+ };
3771
+ /** @description Unprocessable content */
3772
+ 422: {
3773
+ headers: {
3774
+ [name: string]: unknown;
3775
+ };
3776
+ content: {
3777
+ "application/json": components["schemas"]["Error"];
3778
+ };
3779
+ };
3780
+ };
3781
+ };
3705
3782
  ConfirmEmbedPaymentIntentWithPaymentMethod: {
3706
3783
  parameters: {
3707
3784
  query?: never;
@@ -3718,7 +3795,7 @@ interface operations {
3718
3795
  };
3719
3796
  };
3720
3797
  responses: {
3721
- /** @description Successful confirmation of payment intent */
3798
+ /** @description Confirmation accepted; authorization or sale continues asynchronously */
3722
3799
  202: {
3723
3800
  headers: {
3724
3801
  [name: string]: unknown;