@amos.com/node 0.1.28 → 0.1.30
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 +119 -0
- package/dist/index.d.ts +119 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +119 -0
- package/package.json +1 -1
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,11 +1976,35 @@ 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;
|
|
1964
2005
|
/** Format: uuid */
|
|
1965
2006
|
organization_id?: string;
|
|
2007
|
+
organization_slug?: string;
|
|
1966
2008
|
/** Format: uuid */
|
|
1967
2009
|
account_id?: string;
|
|
1968
2010
|
slug?: string;
|
|
@@ -3617,6 +3659,83 @@ interface operations {
|
|
|
3617
3659
|
};
|
|
3618
3660
|
};
|
|
3619
3661
|
};
|
|
3662
|
+
GetPaymentLink: {
|
|
3663
|
+
parameters: {
|
|
3664
|
+
query?: never;
|
|
3665
|
+
header?: never;
|
|
3666
|
+
path: {
|
|
3667
|
+
/** @description The ID of the payment link to retrieve */
|
|
3668
|
+
id: string;
|
|
3669
|
+
};
|
|
3670
|
+
cookie?: never;
|
|
3671
|
+
};
|
|
3672
|
+
requestBody?: never;
|
|
3673
|
+
responses: {
|
|
3674
|
+
/** @description Payment link retrieved successfully */
|
|
3675
|
+
200: {
|
|
3676
|
+
headers: {
|
|
3677
|
+
[name: string]: unknown;
|
|
3678
|
+
};
|
|
3679
|
+
content: {
|
|
3680
|
+
"application/json": components["schemas"]["PaymentLink"];
|
|
3681
|
+
};
|
|
3682
|
+
};
|
|
3683
|
+
/** @description Payment link not found */
|
|
3684
|
+
404: {
|
|
3685
|
+
headers: {
|
|
3686
|
+
[name: string]: unknown;
|
|
3687
|
+
};
|
|
3688
|
+
content: {
|
|
3689
|
+
"application/json": components["schemas"]["Error"];
|
|
3690
|
+
};
|
|
3691
|
+
};
|
|
3692
|
+
};
|
|
3693
|
+
};
|
|
3694
|
+
UpdatePaymentLink: {
|
|
3695
|
+
parameters: {
|
|
3696
|
+
query?: never;
|
|
3697
|
+
header?: never;
|
|
3698
|
+
path: {
|
|
3699
|
+
/** @description The ID of the payment link to update */
|
|
3700
|
+
id: string;
|
|
3701
|
+
};
|
|
3702
|
+
cookie?: never;
|
|
3703
|
+
};
|
|
3704
|
+
requestBody: {
|
|
3705
|
+
content: {
|
|
3706
|
+
"application/json": components["schemas"]["UpdatePaymentLinkRequest"];
|
|
3707
|
+
};
|
|
3708
|
+
};
|
|
3709
|
+
responses: {
|
|
3710
|
+
/** @description Payment link updated successfully */
|
|
3711
|
+
200: {
|
|
3712
|
+
headers: {
|
|
3713
|
+
[name: string]: unknown;
|
|
3714
|
+
};
|
|
3715
|
+
content: {
|
|
3716
|
+
"application/json": components["schemas"]["PaymentLink"];
|
|
3717
|
+
};
|
|
3718
|
+
};
|
|
3719
|
+
/** @description Payment link not found */
|
|
3720
|
+
404: {
|
|
3721
|
+
headers: {
|
|
3722
|
+
[name: string]: unknown;
|
|
3723
|
+
};
|
|
3724
|
+
content: {
|
|
3725
|
+
"application/json": components["schemas"]["Error"];
|
|
3726
|
+
};
|
|
3727
|
+
};
|
|
3728
|
+
/** @description Error updating payment link */
|
|
3729
|
+
422: {
|
|
3730
|
+
headers: {
|
|
3731
|
+
[name: string]: unknown;
|
|
3732
|
+
};
|
|
3733
|
+
content: {
|
|
3734
|
+
"application/json": components["schemas"]["Error"];
|
|
3735
|
+
};
|
|
3736
|
+
};
|
|
3737
|
+
};
|
|
3738
|
+
};
|
|
3620
3739
|
GetPaymentIntent: {
|
|
3621
3740
|
parameters: {
|
|
3622
3741
|
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,11 +1976,35 @@ 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;
|
|
1964
2005
|
/** Format: uuid */
|
|
1965
2006
|
organization_id?: string;
|
|
2007
|
+
organization_slug?: string;
|
|
1966
2008
|
/** Format: uuid */
|
|
1967
2009
|
account_id?: string;
|
|
1968
2010
|
slug?: string;
|
|
@@ -3617,6 +3659,83 @@ interface operations {
|
|
|
3617
3659
|
};
|
|
3618
3660
|
};
|
|
3619
3661
|
};
|
|
3662
|
+
GetPaymentLink: {
|
|
3663
|
+
parameters: {
|
|
3664
|
+
query?: never;
|
|
3665
|
+
header?: never;
|
|
3666
|
+
path: {
|
|
3667
|
+
/** @description The ID of the payment link to retrieve */
|
|
3668
|
+
id: string;
|
|
3669
|
+
};
|
|
3670
|
+
cookie?: never;
|
|
3671
|
+
};
|
|
3672
|
+
requestBody?: never;
|
|
3673
|
+
responses: {
|
|
3674
|
+
/** @description Payment link retrieved successfully */
|
|
3675
|
+
200: {
|
|
3676
|
+
headers: {
|
|
3677
|
+
[name: string]: unknown;
|
|
3678
|
+
};
|
|
3679
|
+
content: {
|
|
3680
|
+
"application/json": components["schemas"]["PaymentLink"];
|
|
3681
|
+
};
|
|
3682
|
+
};
|
|
3683
|
+
/** @description Payment link not found */
|
|
3684
|
+
404: {
|
|
3685
|
+
headers: {
|
|
3686
|
+
[name: string]: unknown;
|
|
3687
|
+
};
|
|
3688
|
+
content: {
|
|
3689
|
+
"application/json": components["schemas"]["Error"];
|
|
3690
|
+
};
|
|
3691
|
+
};
|
|
3692
|
+
};
|
|
3693
|
+
};
|
|
3694
|
+
UpdatePaymentLink: {
|
|
3695
|
+
parameters: {
|
|
3696
|
+
query?: never;
|
|
3697
|
+
header?: never;
|
|
3698
|
+
path: {
|
|
3699
|
+
/** @description The ID of the payment link to update */
|
|
3700
|
+
id: string;
|
|
3701
|
+
};
|
|
3702
|
+
cookie?: never;
|
|
3703
|
+
};
|
|
3704
|
+
requestBody: {
|
|
3705
|
+
content: {
|
|
3706
|
+
"application/json": components["schemas"]["UpdatePaymentLinkRequest"];
|
|
3707
|
+
};
|
|
3708
|
+
};
|
|
3709
|
+
responses: {
|
|
3710
|
+
/** @description Payment link updated successfully */
|
|
3711
|
+
200: {
|
|
3712
|
+
headers: {
|
|
3713
|
+
[name: string]: unknown;
|
|
3714
|
+
};
|
|
3715
|
+
content: {
|
|
3716
|
+
"application/json": components["schemas"]["PaymentLink"];
|
|
3717
|
+
};
|
|
3718
|
+
};
|
|
3719
|
+
/** @description Payment link not found */
|
|
3720
|
+
404: {
|
|
3721
|
+
headers: {
|
|
3722
|
+
[name: string]: unknown;
|
|
3723
|
+
};
|
|
3724
|
+
content: {
|
|
3725
|
+
"application/json": components["schemas"]["Error"];
|
|
3726
|
+
};
|
|
3727
|
+
};
|
|
3728
|
+
/** @description Error updating payment link */
|
|
3729
|
+
422: {
|
|
3730
|
+
headers: {
|
|
3731
|
+
[name: string]: unknown;
|
|
3732
|
+
};
|
|
3733
|
+
content: {
|
|
3734
|
+
"application/json": components["schemas"]["Error"];
|
|
3735
|
+
};
|
|
3736
|
+
};
|
|
3737
|
+
};
|
|
3738
|
+
};
|
|
3620
3739
|
GetPaymentIntent: {
|
|
3621
3740
|
parameters: {
|
|
3622
3741
|
query?: never;
|