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