@amos.com/node 0.1.50 → 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;
@@ -1355,6 +1378,8 @@ interface components {
1355
1378
  /** Format: uuid */
1356
1379
  processor_id?: string;
1357
1380
  worldpay_mid?: string;
1381
+ /** @description ACH verification threshold in cents for this account, taken from the merchant. When the organization sets ach_threshold, that value is used instead. Amounts at or above this require Plaid verification when the render template enables it. */
1382
+ ach_threshold?: number;
1358
1383
  /** Format: date-time */
1359
1384
  created_at?: string;
1360
1385
  /** Format: date-time */
@@ -1691,7 +1716,7 @@ interface components {
1691
1716
  moto?: boolean;
1692
1717
  };
1693
1718
  AllowedBankAccountPaymentMethodOptions: {
1694
- /** @description When true, this surface collects bank account verification (Plaid) for ACH at or above the merchant ACH threshold. Only supported on render templates. */
1719
+ /** @description When true, this surface collects bank account verification (Plaid) for ACH at or above the merchant ACH threshold. When omitted or false, verification is off. Only supported on render templates. */
1695
1720
  verification?: boolean;
1696
1721
  };
1697
1722
  /** @description No configurable options for Google Pay payment methods. */
@@ -3700,6 +3725,60 @@ interface operations {
3700
3725
  };
3701
3726
  };
3702
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
+ };
3703
3782
  ConfirmEmbedPaymentIntentWithPaymentMethod: {
3704
3783
  parameters: {
3705
3784
  query?: never;
@@ -3716,7 +3795,7 @@ interface operations {
3716
3795
  };
3717
3796
  };
3718
3797
  responses: {
3719
- /** @description Successful confirmation of payment intent */
3798
+ /** @description Confirmation accepted; authorization or sale continues asynchronously */
3720
3799
  202: {
3721
3800
  headers: {
3722
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;
@@ -1355,6 +1378,8 @@ interface components {
1355
1378
  /** Format: uuid */
1356
1379
  processor_id?: string;
1357
1380
  worldpay_mid?: string;
1381
+ /** @description ACH verification threshold in cents for this account, taken from the merchant. When the organization sets ach_threshold, that value is used instead. Amounts at or above this require Plaid verification when the render template enables it. */
1382
+ ach_threshold?: number;
1358
1383
  /** Format: date-time */
1359
1384
  created_at?: string;
1360
1385
  /** Format: date-time */
@@ -1691,7 +1716,7 @@ interface components {
1691
1716
  moto?: boolean;
1692
1717
  };
1693
1718
  AllowedBankAccountPaymentMethodOptions: {
1694
- /** @description When true, this surface collects bank account verification (Plaid) for ACH at or above the merchant ACH threshold. Only supported on render templates. */
1719
+ /** @description When true, this surface collects bank account verification (Plaid) for ACH at or above the merchant ACH threshold. When omitted or false, verification is off. Only supported on render templates. */
1695
1720
  verification?: boolean;
1696
1721
  };
1697
1722
  /** @description No configurable options for Google Pay payment methods. */
@@ -3700,6 +3725,60 @@ interface operations {
3700
3725
  };
3701
3726
  };
3702
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
+ };
3703
3782
  ConfirmEmbedPaymentIntentWithPaymentMethod: {
3704
3783
  parameters: {
3705
3784
  query?: never;
@@ -3716,7 +3795,7 @@ interface operations {
3716
3795
  };
3717
3796
  };
3718
3797
  responses: {
3719
- /** @description Successful confirmation of payment intent */
3798
+ /** @description Confirmation accepted; authorization or sale continues asynchronously */
3720
3799
  202: {
3721
3800
  headers: {
3722
3801
  [name: string]: unknown;