@amos.com/node 0.1.28 → 0.1.29

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
@@ -543,6 +543,24 @@ interface paths {
543
543
  patch?: never;
544
544
  trace?: never;
545
545
  };
546
+ "/payment_links/{id}": {
547
+ parameters: {
548
+ query?: never;
549
+ header?: never;
550
+ path?: never;
551
+ cookie?: never;
552
+ };
553
+ /** Retrieve a payment link by ID */
554
+ get: operations["GetPaymentLink"];
555
+ /** Update a payment link by ID */
556
+ put: operations["UpdatePaymentLink"];
557
+ post?: never;
558
+ delete?: never;
559
+ options?: never;
560
+ head?: never;
561
+ patch?: never;
562
+ trace?: never;
563
+ };
546
564
  "/payment_intents/{id}": {
547
565
  parameters: {
548
566
  query?: never;
@@ -1958,6 +1976,29 @@ interface components {
1958
1976
  CreatePaymentLinkRequest: {
1959
1977
  payment_link: components["schemas"]["CreatePaymentLinkInput"];
1960
1978
  };
1979
+ UpdatePaymentLinkInput: {
1980
+ active?: boolean;
1981
+ amount_type?: components["schemas"]["PaymentLinkAmountType"];
1982
+ amount?: number;
1983
+ /** Format: uri */
1984
+ image_url?: string;
1985
+ minimum_amount?: number;
1986
+ maximum_amount?: number;
1987
+ suggested_amounts?: number[];
1988
+ currency?: string;
1989
+ description?: string | null;
1990
+ statement_descriptor?: string;
1991
+ /** Format: uri */
1992
+ success_url?: string;
1993
+ title?: string;
1994
+ /** Format: uri */
1995
+ cancel_url?: string;
1996
+ allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
1997
+ metadata?: components["schemas"]["Metadata"];
1998
+ };
1999
+ UpdatePaymentLinkRequest: {
2000
+ payment_link: components["schemas"]["UpdatePaymentLinkInput"];
2001
+ };
1961
2002
  PaymentLink: {
1962
2003
  /** Format: uuid */
1963
2004
  id?: string;
@@ -3617,6 +3658,83 @@ interface operations {
3617
3658
  };
3618
3659
  };
3619
3660
  };
3661
+ GetPaymentLink: {
3662
+ parameters: {
3663
+ query?: never;
3664
+ header?: never;
3665
+ path: {
3666
+ /** @description The ID of the payment link to retrieve */
3667
+ id: string;
3668
+ };
3669
+ cookie?: never;
3670
+ };
3671
+ requestBody?: never;
3672
+ responses: {
3673
+ /** @description Payment link retrieved successfully */
3674
+ 200: {
3675
+ headers: {
3676
+ [name: string]: unknown;
3677
+ };
3678
+ content: {
3679
+ "application/json": components["schemas"]["PaymentLink"];
3680
+ };
3681
+ };
3682
+ /** @description Payment link not found */
3683
+ 404: {
3684
+ headers: {
3685
+ [name: string]: unknown;
3686
+ };
3687
+ content: {
3688
+ "application/json": components["schemas"]["Error"];
3689
+ };
3690
+ };
3691
+ };
3692
+ };
3693
+ UpdatePaymentLink: {
3694
+ parameters: {
3695
+ query?: never;
3696
+ header?: never;
3697
+ path: {
3698
+ /** @description The ID of the payment link to update */
3699
+ id: string;
3700
+ };
3701
+ cookie?: never;
3702
+ };
3703
+ requestBody: {
3704
+ content: {
3705
+ "application/json": components["schemas"]["UpdatePaymentLinkRequest"];
3706
+ };
3707
+ };
3708
+ responses: {
3709
+ /** @description Payment link updated successfully */
3710
+ 200: {
3711
+ headers: {
3712
+ [name: string]: unknown;
3713
+ };
3714
+ content: {
3715
+ "application/json": components["schemas"]["PaymentLink"];
3716
+ };
3717
+ };
3718
+ /** @description Payment link not found */
3719
+ 404: {
3720
+ headers: {
3721
+ [name: string]: unknown;
3722
+ };
3723
+ content: {
3724
+ "application/json": components["schemas"]["Error"];
3725
+ };
3726
+ };
3727
+ /** @description Error updating payment link */
3728
+ 422: {
3729
+ headers: {
3730
+ [name: string]: unknown;
3731
+ };
3732
+ content: {
3733
+ "application/json": components["schemas"]["Error"];
3734
+ };
3735
+ };
3736
+ };
3737
+ };
3620
3738
  GetPaymentIntent: {
3621
3739
  parameters: {
3622
3740
  query?: never;
package/dist/index.d.ts CHANGED
@@ -543,6 +543,24 @@ interface paths {
543
543
  patch?: never;
544
544
  trace?: never;
545
545
  };
546
+ "/payment_links/{id}": {
547
+ parameters: {
548
+ query?: never;
549
+ header?: never;
550
+ path?: never;
551
+ cookie?: never;
552
+ };
553
+ /** Retrieve a payment link by ID */
554
+ get: operations["GetPaymentLink"];
555
+ /** Update a payment link by ID */
556
+ put: operations["UpdatePaymentLink"];
557
+ post?: never;
558
+ delete?: never;
559
+ options?: never;
560
+ head?: never;
561
+ patch?: never;
562
+ trace?: never;
563
+ };
546
564
  "/payment_intents/{id}": {
547
565
  parameters: {
548
566
  query?: never;
@@ -1958,6 +1976,29 @@ interface components {
1958
1976
  CreatePaymentLinkRequest: {
1959
1977
  payment_link: components["schemas"]["CreatePaymentLinkInput"];
1960
1978
  };
1979
+ UpdatePaymentLinkInput: {
1980
+ active?: boolean;
1981
+ amount_type?: components["schemas"]["PaymentLinkAmountType"];
1982
+ amount?: number;
1983
+ /** Format: uri */
1984
+ image_url?: string;
1985
+ minimum_amount?: number;
1986
+ maximum_amount?: number;
1987
+ suggested_amounts?: number[];
1988
+ currency?: string;
1989
+ description?: string | null;
1990
+ statement_descriptor?: string;
1991
+ /** Format: uri */
1992
+ success_url?: string;
1993
+ title?: string;
1994
+ /** Format: uri */
1995
+ cancel_url?: string;
1996
+ allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
1997
+ metadata?: components["schemas"]["Metadata"];
1998
+ };
1999
+ UpdatePaymentLinkRequest: {
2000
+ payment_link: components["schemas"]["UpdatePaymentLinkInput"];
2001
+ };
1961
2002
  PaymentLink: {
1962
2003
  /** Format: uuid */
1963
2004
  id?: string;
@@ -3617,6 +3658,83 @@ interface operations {
3617
3658
  };
3618
3659
  };
3619
3660
  };
3661
+ GetPaymentLink: {
3662
+ parameters: {
3663
+ query?: never;
3664
+ header?: never;
3665
+ path: {
3666
+ /** @description The ID of the payment link to retrieve */
3667
+ id: string;
3668
+ };
3669
+ cookie?: never;
3670
+ };
3671
+ requestBody?: never;
3672
+ responses: {
3673
+ /** @description Payment link retrieved successfully */
3674
+ 200: {
3675
+ headers: {
3676
+ [name: string]: unknown;
3677
+ };
3678
+ content: {
3679
+ "application/json": components["schemas"]["PaymentLink"];
3680
+ };
3681
+ };
3682
+ /** @description Payment link not found */
3683
+ 404: {
3684
+ headers: {
3685
+ [name: string]: unknown;
3686
+ };
3687
+ content: {
3688
+ "application/json": components["schemas"]["Error"];
3689
+ };
3690
+ };
3691
+ };
3692
+ };
3693
+ UpdatePaymentLink: {
3694
+ parameters: {
3695
+ query?: never;
3696
+ header?: never;
3697
+ path: {
3698
+ /** @description The ID of the payment link to update */
3699
+ id: string;
3700
+ };
3701
+ cookie?: never;
3702
+ };
3703
+ requestBody: {
3704
+ content: {
3705
+ "application/json": components["schemas"]["UpdatePaymentLinkRequest"];
3706
+ };
3707
+ };
3708
+ responses: {
3709
+ /** @description Payment link updated successfully */
3710
+ 200: {
3711
+ headers: {
3712
+ [name: string]: unknown;
3713
+ };
3714
+ content: {
3715
+ "application/json": components["schemas"]["PaymentLink"];
3716
+ };
3717
+ };
3718
+ /** @description Payment link not found */
3719
+ 404: {
3720
+ headers: {
3721
+ [name: string]: unknown;
3722
+ };
3723
+ content: {
3724
+ "application/json": components["schemas"]["Error"];
3725
+ };
3726
+ };
3727
+ /** @description Error updating payment link */
3728
+ 422: {
3729
+ headers: {
3730
+ [name: string]: unknown;
3731
+ };
3732
+ content: {
3733
+ "application/json": components["schemas"]["Error"];
3734
+ };
3735
+ };
3736
+ };
3737
+ };
3620
3738
  GetPaymentIntent: {
3621
3739
  parameters: {
3622
3740
  query?: never;