@amos.com/node 0.1.27 → 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 +138 -5
- package/dist/index.d.ts +138 -5
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +137 -4
- 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;
|
|
@@ -598,7 +616,10 @@ export interface paths {
|
|
|
598
616
|
path?: never;
|
|
599
617
|
cookie?: never;
|
|
600
618
|
};
|
|
601
|
-
/**
|
|
619
|
+
/**
|
|
620
|
+
* List all payment methods
|
|
621
|
+
* @description Filter by exactly one of customer_id or payment_intent_id.
|
|
622
|
+
*/
|
|
602
623
|
get: operations["ListPaymentMethods"];
|
|
603
624
|
put?: never;
|
|
604
625
|
post?: never;
|
|
@@ -1194,6 +1215,8 @@ export interface components {
|
|
|
1194
1215
|
account_holder_type?: string;
|
|
1195
1216
|
account_type?: string;
|
|
1196
1217
|
bank_name?: string;
|
|
1218
|
+
/** @enum {string|null} */
|
|
1219
|
+
failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | null;
|
|
1197
1220
|
fingerprint?: string | null;
|
|
1198
1221
|
last4?: string;
|
|
1199
1222
|
routing_number?: string;
|
|
@@ -1253,6 +1276,8 @@ export interface components {
|
|
|
1253
1276
|
cvc_check_message?: string | null;
|
|
1254
1277
|
exp_month?: number;
|
|
1255
1278
|
exp_year?: number;
|
|
1279
|
+
/** @enum {string|null} */
|
|
1280
|
+
failure_reason?: "authorization_failed" | "avs_blocked" | "brand_not_allowed" | "brand_not_found" | "cvc_blocked" | "processing_error" | "vault_failed" | null;
|
|
1256
1281
|
first6?: string;
|
|
1257
1282
|
funding?: string | null;
|
|
1258
1283
|
fingerprint?: string | null;
|
|
@@ -1948,6 +1973,29 @@ export interface components {
|
|
|
1948
1973
|
CreatePaymentLinkRequest: {
|
|
1949
1974
|
payment_link: components["schemas"]["CreatePaymentLinkInput"];
|
|
1950
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
|
+
};
|
|
1951
1999
|
PaymentLink: {
|
|
1952
2000
|
/** Format: uuid */
|
|
1953
2001
|
id?: string;
|
|
@@ -2030,6 +2078,8 @@ export interface components {
|
|
|
2030
2078
|
currency?: string;
|
|
2031
2079
|
direction?: components["schemas"]["PayoutDirectionType"];
|
|
2032
2080
|
metadata?: components["schemas"]["Metadata"];
|
|
2081
|
+
/** Format: uuid */
|
|
2082
|
+
organization_id?: string;
|
|
2033
2083
|
prefix?: string;
|
|
2034
2084
|
public_id?: string;
|
|
2035
2085
|
state?: components["schemas"]["PayoutStateType"];
|
|
@@ -2429,6 +2479,8 @@ export interface components {
|
|
|
2429
2479
|
ParentTransactionIdQuery: string;
|
|
2430
2480
|
/** @description The ID of the payment intent to filter by */
|
|
2431
2481
|
PaymentIntentIdQuery: string;
|
|
2482
|
+
/** @description The ID of the customer to filter by. Mutually exclusive with payment_intent_id. */
|
|
2483
|
+
PaymentMethodCustomerIdQuery: string;
|
|
2432
2484
|
/** @description The ID of the payment method to filter by */
|
|
2433
2485
|
PaymentMethodIdQuery: string;
|
|
2434
2486
|
/** @description The ID of the payment transaction to filter by */
|
|
@@ -3603,6 +3655,83 @@ export interface operations {
|
|
|
3603
3655
|
};
|
|
3604
3656
|
};
|
|
3605
3657
|
};
|
|
3658
|
+
GetPaymentLink: {
|
|
3659
|
+
parameters: {
|
|
3660
|
+
query?: never;
|
|
3661
|
+
header?: never;
|
|
3662
|
+
path: {
|
|
3663
|
+
/** @description The ID of the payment link to retrieve */
|
|
3664
|
+
id: string;
|
|
3665
|
+
};
|
|
3666
|
+
cookie?: never;
|
|
3667
|
+
};
|
|
3668
|
+
requestBody?: never;
|
|
3669
|
+
responses: {
|
|
3670
|
+
/** @description Payment link retrieved successfully */
|
|
3671
|
+
200: {
|
|
3672
|
+
headers: {
|
|
3673
|
+
[name: string]: unknown;
|
|
3674
|
+
};
|
|
3675
|
+
content: {
|
|
3676
|
+
"application/json": components["schemas"]["PaymentLink"];
|
|
3677
|
+
};
|
|
3678
|
+
};
|
|
3679
|
+
/** @description Payment link not found */
|
|
3680
|
+
404: {
|
|
3681
|
+
headers: {
|
|
3682
|
+
[name: string]: unknown;
|
|
3683
|
+
};
|
|
3684
|
+
content: {
|
|
3685
|
+
"application/json": components["schemas"]["Error"];
|
|
3686
|
+
};
|
|
3687
|
+
};
|
|
3688
|
+
};
|
|
3689
|
+
};
|
|
3690
|
+
UpdatePaymentLink: {
|
|
3691
|
+
parameters: {
|
|
3692
|
+
query?: never;
|
|
3693
|
+
header?: never;
|
|
3694
|
+
path: {
|
|
3695
|
+
/** @description The ID of the payment link to update */
|
|
3696
|
+
id: string;
|
|
3697
|
+
};
|
|
3698
|
+
cookie?: never;
|
|
3699
|
+
};
|
|
3700
|
+
requestBody: {
|
|
3701
|
+
content: {
|
|
3702
|
+
"application/json": components["schemas"]["UpdatePaymentLinkRequest"];
|
|
3703
|
+
};
|
|
3704
|
+
};
|
|
3705
|
+
responses: {
|
|
3706
|
+
/** @description Payment link updated successfully */
|
|
3707
|
+
200: {
|
|
3708
|
+
headers: {
|
|
3709
|
+
[name: string]: unknown;
|
|
3710
|
+
};
|
|
3711
|
+
content: {
|
|
3712
|
+
"application/json": components["schemas"]["PaymentLink"];
|
|
3713
|
+
};
|
|
3714
|
+
};
|
|
3715
|
+
/** @description Payment link not found */
|
|
3716
|
+
404: {
|
|
3717
|
+
headers: {
|
|
3718
|
+
[name: string]: unknown;
|
|
3719
|
+
};
|
|
3720
|
+
content: {
|
|
3721
|
+
"application/json": components["schemas"]["Error"];
|
|
3722
|
+
};
|
|
3723
|
+
};
|
|
3724
|
+
/** @description Error updating payment link */
|
|
3725
|
+
422: {
|
|
3726
|
+
headers: {
|
|
3727
|
+
[name: string]: unknown;
|
|
3728
|
+
};
|
|
3729
|
+
content: {
|
|
3730
|
+
"application/json": components["schemas"]["Error"];
|
|
3731
|
+
};
|
|
3732
|
+
};
|
|
3733
|
+
};
|
|
3734
|
+
};
|
|
3606
3735
|
GetPaymentIntent: {
|
|
3607
3736
|
parameters: {
|
|
3608
3737
|
query?: never;
|
|
@@ -3692,13 +3821,15 @@ export interface operations {
|
|
|
3692
3821
|
};
|
|
3693
3822
|
ListPaymentMethods: {
|
|
3694
3823
|
parameters: {
|
|
3695
|
-
query
|
|
3824
|
+
query?: {
|
|
3696
3825
|
/** @description The page of results to retrieve. */
|
|
3697
3826
|
page?: components["parameters"]["PageQuery"];
|
|
3698
3827
|
/** @description Number of results per page. */
|
|
3699
3828
|
per_page?: components["parameters"]["PerPageQuery"];
|
|
3700
|
-
/** @description The ID of the customer to filter by */
|
|
3701
|
-
customer_id
|
|
3829
|
+
/** @description The ID of the customer to filter by. Mutually exclusive with payment_intent_id. */
|
|
3830
|
+
customer_id?: components["parameters"]["PaymentMethodCustomerIdQuery"];
|
|
3831
|
+
/** @description The ID of the payment intent to filter by */
|
|
3832
|
+
payment_intent_id?: components["parameters"]["PaymentIntentIdQuery"];
|
|
3702
3833
|
};
|
|
3703
3834
|
header?: never;
|
|
3704
3835
|
path?: never;
|
|
@@ -4993,6 +5124,8 @@ type ReadonlyArray<T> = [
|
|
|
4993
5124
|
] extends [
|
|
4994
5125
|
unknown[]
|
|
4995
5126
|
] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
|
|
5127
|
+
export const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]> = ["activation_failed", "processing_error", "vault_failed"];
|
|
5128
|
+
export const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]> = ["authorization_failed", "avs_blocked", "brand_not_allowed", "brand_not_found", "cvc_blocked", "processing_error", "vault_failed"];
|
|
4996
5129
|
export const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]> = ["void", "refund"];
|
|
4997
5130
|
export const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]> = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
|
|
4998
5131
|
export const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]> = ["external_card", "external_bank_account"];
|