@amos.com/node 0.1.1 → 0.1.2
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 +287 -3
- package/dist/index.d.ts +287 -3
- package/openapi/schema.ts +287 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -68,7 +68,8 @@ interface paths {
|
|
|
68
68
|
};
|
|
69
69
|
/** Retrieve a charge */
|
|
70
70
|
get: operations["GetCharge"];
|
|
71
|
-
|
|
71
|
+
/** Update a charge */
|
|
72
|
+
put: operations["UpdateCharge"];
|
|
72
73
|
post?: never;
|
|
73
74
|
delete?: never;
|
|
74
75
|
options?: never;
|
|
@@ -524,6 +525,24 @@ interface paths {
|
|
|
524
525
|
patch?: never;
|
|
525
526
|
trace?: never;
|
|
526
527
|
};
|
|
528
|
+
"/payment_links": {
|
|
529
|
+
parameters: {
|
|
530
|
+
query?: never;
|
|
531
|
+
header?: never;
|
|
532
|
+
path?: never;
|
|
533
|
+
cookie?: never;
|
|
534
|
+
};
|
|
535
|
+
/** List payment links */
|
|
536
|
+
get: operations["ListPaymentLinks"];
|
|
537
|
+
put?: never;
|
|
538
|
+
/** Create a new payment link */
|
|
539
|
+
post: operations["CreatePaymentLink"];
|
|
540
|
+
delete?: never;
|
|
541
|
+
options?: never;
|
|
542
|
+
head?: never;
|
|
543
|
+
patch?: never;
|
|
544
|
+
trace?: never;
|
|
545
|
+
};
|
|
527
546
|
"/payment_intents/{id}": {
|
|
528
547
|
parameters: {
|
|
529
548
|
query?: never;
|
|
@@ -740,7 +759,8 @@ interface paths {
|
|
|
740
759
|
};
|
|
741
760
|
/** Retrieve a refund by ID */
|
|
742
761
|
get: operations["GetRefund"];
|
|
743
|
-
|
|
762
|
+
/** Update a refund */
|
|
763
|
+
put: operations["UpdateRefund"];
|
|
744
764
|
post?: never;
|
|
745
765
|
delete?: never;
|
|
746
766
|
options?: never;
|
|
@@ -982,7 +1002,8 @@ interface paths {
|
|
|
982
1002
|
};
|
|
983
1003
|
/** Retrieve a void by ID */
|
|
984
1004
|
get: operations["GetVoid"];
|
|
985
|
-
|
|
1005
|
+
/** Update a void */
|
|
1006
|
+
put: operations["UpdateVoid"];
|
|
986
1007
|
post?: never;
|
|
987
1008
|
delete?: never;
|
|
988
1009
|
options?: never;
|
|
@@ -1078,6 +1099,23 @@ interface paths {
|
|
|
1078
1099
|
patch?: never;
|
|
1079
1100
|
trace?: never;
|
|
1080
1101
|
};
|
|
1102
|
+
"/webhook_requests/{id}": {
|
|
1103
|
+
parameters: {
|
|
1104
|
+
query?: never;
|
|
1105
|
+
header?: never;
|
|
1106
|
+
path?: never;
|
|
1107
|
+
cookie?: never;
|
|
1108
|
+
};
|
|
1109
|
+
/** Get webhook request by ID */
|
|
1110
|
+
get: operations["RetrieveWebhookRequest"];
|
|
1111
|
+
put?: never;
|
|
1112
|
+
post?: never;
|
|
1113
|
+
delete?: never;
|
|
1114
|
+
options?: never;
|
|
1115
|
+
head?: never;
|
|
1116
|
+
patch?: never;
|
|
1117
|
+
trace?: never;
|
|
1118
|
+
};
|
|
1081
1119
|
}
|
|
1082
1120
|
type webhooks = Record<string, never>;
|
|
1083
1121
|
interface components {
|
|
@@ -1670,6 +1708,59 @@ interface components {
|
|
|
1670
1708
|
/** Format: date-time */
|
|
1671
1709
|
updated_at?: string;
|
|
1672
1710
|
};
|
|
1711
|
+
CreatePaymentLinkInput: {
|
|
1712
|
+
slug?: string;
|
|
1713
|
+
active?: boolean;
|
|
1714
|
+
/** @enum {string} */
|
|
1715
|
+
amount_type?: "fixed" | "open";
|
|
1716
|
+
amount?: number;
|
|
1717
|
+
/** Format: uri */
|
|
1718
|
+
image_url?: string;
|
|
1719
|
+
minimum_amount?: number;
|
|
1720
|
+
maximum_amount?: number;
|
|
1721
|
+
suggested_amounts?: number[];
|
|
1722
|
+
currency?: string;
|
|
1723
|
+
description?: string | null;
|
|
1724
|
+
statement_descriptor?: string;
|
|
1725
|
+
/** Format: uri */
|
|
1726
|
+
success_url?: string;
|
|
1727
|
+
title?: string;
|
|
1728
|
+
/** Format: uri */
|
|
1729
|
+
cancel_url?: string;
|
|
1730
|
+
allowed_payment_method_types?: string[];
|
|
1731
|
+
metadata?: components["schemas"]["Metadata"];
|
|
1732
|
+
};
|
|
1733
|
+
CreatePaymentLinkRequest: {
|
|
1734
|
+
payment_link: components["schemas"]["CreatePaymentLinkInput"];
|
|
1735
|
+
};
|
|
1736
|
+
PaymentLink: {
|
|
1737
|
+
/** Format: uuid */
|
|
1738
|
+
id?: string;
|
|
1739
|
+
/** Format: uuid */
|
|
1740
|
+
organization_id?: string;
|
|
1741
|
+
/** Format: uuid */
|
|
1742
|
+
account_id?: string;
|
|
1743
|
+
slug?: string;
|
|
1744
|
+
active?: boolean;
|
|
1745
|
+
/** @enum {string} */
|
|
1746
|
+
amount_type?: "fixed" | "open";
|
|
1747
|
+
amount?: number;
|
|
1748
|
+
/** Format: uri */
|
|
1749
|
+
image_url?: string;
|
|
1750
|
+
minimum_amount?: number;
|
|
1751
|
+
maximum_amount?: number;
|
|
1752
|
+
suggested_amounts?: number[];
|
|
1753
|
+
currency?: string;
|
|
1754
|
+
description?: string | null;
|
|
1755
|
+
statement_descriptor?: string;
|
|
1756
|
+
/** Format: uri */
|
|
1757
|
+
success_url?: string;
|
|
1758
|
+
title?: string;
|
|
1759
|
+
/** Format: uri */
|
|
1760
|
+
cancel_url?: string;
|
|
1761
|
+
allowed_payment_method_types?: string[];
|
|
1762
|
+
metadata?: components["schemas"]["Metadata"];
|
|
1763
|
+
};
|
|
1673
1764
|
PaymentMethod: {
|
|
1674
1765
|
/** Format: uuid */
|
|
1675
1766
|
id?: string;
|
|
@@ -1796,6 +1887,13 @@ interface components {
|
|
|
1796
1887
|
CreateRefundRequest: {
|
|
1797
1888
|
refund: components["schemas"]["CreateRefundInput"];
|
|
1798
1889
|
};
|
|
1890
|
+
UpdateRefundInput: {
|
|
1891
|
+
description?: string;
|
|
1892
|
+
metadata?: components["schemas"]["Metadata"];
|
|
1893
|
+
};
|
|
1894
|
+
UpdateRefundRequest: {
|
|
1895
|
+
refund: components["schemas"]["UpdateRefundInput"];
|
|
1896
|
+
};
|
|
1799
1897
|
Refund: {
|
|
1800
1898
|
/** Format: uuid */
|
|
1801
1899
|
id?: string;
|
|
@@ -1952,6 +2050,13 @@ interface components {
|
|
|
1952
2050
|
CreateSubscriptionPlanRequest: {
|
|
1953
2051
|
subscription_plan: components["schemas"]["CreateSubscriptionPlanInput"];
|
|
1954
2052
|
};
|
|
2053
|
+
UpdateChargeInput: {
|
|
2054
|
+
description?: string;
|
|
2055
|
+
metadata?: components["schemas"]["Metadata"];
|
|
2056
|
+
};
|
|
2057
|
+
UpdateChargeRequest: {
|
|
2058
|
+
charge: components["schemas"]["UpdateChargeInput"];
|
|
2059
|
+
};
|
|
1955
2060
|
SubscriptionPlan: {
|
|
1956
2061
|
/** Format: uuid */
|
|
1957
2062
|
id?: string;
|
|
@@ -1987,6 +2092,13 @@ interface components {
|
|
|
1987
2092
|
CreateVoidRequest: {
|
|
1988
2093
|
void: components["schemas"]["CreateVoidInput"];
|
|
1989
2094
|
};
|
|
2095
|
+
UpdateVoidInput: {
|
|
2096
|
+
description?: string;
|
|
2097
|
+
metadata?: components["schemas"]["Metadata"];
|
|
2098
|
+
};
|
|
2099
|
+
UpdateVoidRequest: {
|
|
2100
|
+
void: components["schemas"]["UpdateVoidInput"];
|
|
2101
|
+
};
|
|
1990
2102
|
Void: {
|
|
1991
2103
|
/** Format: uuid */
|
|
1992
2104
|
id?: string;
|
|
@@ -2245,6 +2357,35 @@ interface operations {
|
|
|
2245
2357
|
};
|
|
2246
2358
|
};
|
|
2247
2359
|
};
|
|
2360
|
+
UpdateCharge: {
|
|
2361
|
+
parameters: {
|
|
2362
|
+
query?: never;
|
|
2363
|
+
header: {
|
|
2364
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
2365
|
+
"X-Account-Id": components["parameters"]["XAccountIdHeader"];
|
|
2366
|
+
};
|
|
2367
|
+
path: {
|
|
2368
|
+
id: string;
|
|
2369
|
+
};
|
|
2370
|
+
cookie?: never;
|
|
2371
|
+
};
|
|
2372
|
+
requestBody: {
|
|
2373
|
+
content: {
|
|
2374
|
+
"application/json": components["schemas"]["UpdateChargeRequest"];
|
|
2375
|
+
};
|
|
2376
|
+
};
|
|
2377
|
+
responses: {
|
|
2378
|
+
/** @description Charge updated successfully */
|
|
2379
|
+
200: {
|
|
2380
|
+
headers: {
|
|
2381
|
+
[name: string]: unknown;
|
|
2382
|
+
};
|
|
2383
|
+
content: {
|
|
2384
|
+
"application/json": components["schemas"]["Charge"];
|
|
2385
|
+
};
|
|
2386
|
+
};
|
|
2387
|
+
};
|
|
2388
|
+
};
|
|
2248
2389
|
ListCustomers: {
|
|
2249
2390
|
parameters: {
|
|
2250
2391
|
query?: {
|
|
@@ -3166,6 +3307,64 @@ interface operations {
|
|
|
3166
3307
|
};
|
|
3167
3308
|
};
|
|
3168
3309
|
};
|
|
3310
|
+
ListPaymentLinks: {
|
|
3311
|
+
parameters: {
|
|
3312
|
+
query?: {
|
|
3313
|
+
/** @description The page of results to retrieve. */
|
|
3314
|
+
page?: components["parameters"]["PageQuery"];
|
|
3315
|
+
/** @description Number of results per page. */
|
|
3316
|
+
per_page?: components["parameters"]["PerPageQuery"];
|
|
3317
|
+
};
|
|
3318
|
+
header: {
|
|
3319
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
3320
|
+
"X-Account-Id": components["parameters"]["XAccountIdHeader"];
|
|
3321
|
+
};
|
|
3322
|
+
path?: never;
|
|
3323
|
+
cookie?: never;
|
|
3324
|
+
};
|
|
3325
|
+
requestBody?: never;
|
|
3326
|
+
responses: {
|
|
3327
|
+
/** @description A list of payment links */
|
|
3328
|
+
200: {
|
|
3329
|
+
headers: {
|
|
3330
|
+
[name: string]: unknown;
|
|
3331
|
+
};
|
|
3332
|
+
content: {
|
|
3333
|
+
"application/json": {
|
|
3334
|
+
data?: components["schemas"]["PaymentLink"][];
|
|
3335
|
+
meta?: components["schemas"]["Meta"];
|
|
3336
|
+
};
|
|
3337
|
+
};
|
|
3338
|
+
};
|
|
3339
|
+
};
|
|
3340
|
+
};
|
|
3341
|
+
CreatePaymentLink: {
|
|
3342
|
+
parameters: {
|
|
3343
|
+
query?: never;
|
|
3344
|
+
header: {
|
|
3345
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
3346
|
+
"X-Account-Id": components["parameters"]["XAccountIdHeader"];
|
|
3347
|
+
};
|
|
3348
|
+
path?: never;
|
|
3349
|
+
cookie?: never;
|
|
3350
|
+
};
|
|
3351
|
+
requestBody: {
|
|
3352
|
+
content: {
|
|
3353
|
+
"application/json": components["schemas"]["CreatePaymentLinkRequest"];
|
|
3354
|
+
};
|
|
3355
|
+
};
|
|
3356
|
+
responses: {
|
|
3357
|
+
/** @description Payment link created successfully */
|
|
3358
|
+
201: {
|
|
3359
|
+
headers: {
|
|
3360
|
+
[name: string]: unknown;
|
|
3361
|
+
};
|
|
3362
|
+
content: {
|
|
3363
|
+
"application/json": components["schemas"]["PaymentLink"];
|
|
3364
|
+
};
|
|
3365
|
+
};
|
|
3366
|
+
};
|
|
3367
|
+
};
|
|
3169
3368
|
GetPaymentIntent: {
|
|
3170
3369
|
parameters: {
|
|
3171
3370
|
query?: never;
|
|
@@ -3685,6 +3884,36 @@ interface operations {
|
|
|
3685
3884
|
};
|
|
3686
3885
|
};
|
|
3687
3886
|
};
|
|
3887
|
+
UpdateRefund: {
|
|
3888
|
+
parameters: {
|
|
3889
|
+
query?: never;
|
|
3890
|
+
header: {
|
|
3891
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
3892
|
+
"X-Account-Id": components["parameters"]["XAccountIdHeader"];
|
|
3893
|
+
};
|
|
3894
|
+
path: {
|
|
3895
|
+
/** @description The ID of the refund to update */
|
|
3896
|
+
id: string;
|
|
3897
|
+
};
|
|
3898
|
+
cookie?: never;
|
|
3899
|
+
};
|
|
3900
|
+
requestBody: {
|
|
3901
|
+
content: {
|
|
3902
|
+
"application/json": components["schemas"]["UpdateRefundRequest"];
|
|
3903
|
+
};
|
|
3904
|
+
};
|
|
3905
|
+
responses: {
|
|
3906
|
+
/** @description Refund updated successfully */
|
|
3907
|
+
200: {
|
|
3908
|
+
headers: {
|
|
3909
|
+
[name: string]: unknown;
|
|
3910
|
+
};
|
|
3911
|
+
content: {
|
|
3912
|
+
"application/json": components["schemas"]["Refund"];
|
|
3913
|
+
};
|
|
3914
|
+
};
|
|
3915
|
+
};
|
|
3916
|
+
};
|
|
3688
3917
|
CancelRefund: {
|
|
3689
3918
|
parameters: {
|
|
3690
3919
|
query?: never;
|
|
@@ -4191,6 +4420,36 @@ interface operations {
|
|
|
4191
4420
|
};
|
|
4192
4421
|
};
|
|
4193
4422
|
};
|
|
4423
|
+
UpdateVoid: {
|
|
4424
|
+
parameters: {
|
|
4425
|
+
query?: never;
|
|
4426
|
+
header: {
|
|
4427
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
4428
|
+
"X-Account-Id": components["parameters"]["XAccountIdHeader"];
|
|
4429
|
+
};
|
|
4430
|
+
path: {
|
|
4431
|
+
/** @description The ID of the void to update */
|
|
4432
|
+
id: string;
|
|
4433
|
+
};
|
|
4434
|
+
cookie?: never;
|
|
4435
|
+
};
|
|
4436
|
+
requestBody: {
|
|
4437
|
+
content: {
|
|
4438
|
+
"application/json": components["schemas"]["UpdateVoidRequest"];
|
|
4439
|
+
};
|
|
4440
|
+
};
|
|
4441
|
+
responses: {
|
|
4442
|
+
/** @description Void updated successfully */
|
|
4443
|
+
200: {
|
|
4444
|
+
headers: {
|
|
4445
|
+
[name: string]: unknown;
|
|
4446
|
+
};
|
|
4447
|
+
content: {
|
|
4448
|
+
"application/json": components["schemas"]["Void"];
|
|
4449
|
+
};
|
|
4450
|
+
};
|
|
4451
|
+
};
|
|
4452
|
+
};
|
|
4194
4453
|
ListWebhookAttempts: {
|
|
4195
4454
|
parameters: {
|
|
4196
4455
|
query: {
|
|
@@ -4406,6 +4665,31 @@ interface operations {
|
|
|
4406
4665
|
};
|
|
4407
4666
|
};
|
|
4408
4667
|
};
|
|
4668
|
+
RetrieveWebhookRequest: {
|
|
4669
|
+
parameters: {
|
|
4670
|
+
query?: never;
|
|
4671
|
+
header: {
|
|
4672
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
4673
|
+
};
|
|
4674
|
+
path: {
|
|
4675
|
+
/** @description The ID of the webhook request to retrieve */
|
|
4676
|
+
id: string;
|
|
4677
|
+
};
|
|
4678
|
+
cookie?: never;
|
|
4679
|
+
};
|
|
4680
|
+
requestBody?: never;
|
|
4681
|
+
responses: {
|
|
4682
|
+
/** @description Webhook request retrieved successfully */
|
|
4683
|
+
200: {
|
|
4684
|
+
headers: {
|
|
4685
|
+
[name: string]: unknown;
|
|
4686
|
+
};
|
|
4687
|
+
content: {
|
|
4688
|
+
"application/json": components["schemas"]["WebhookRequest"];
|
|
4689
|
+
};
|
|
4690
|
+
};
|
|
4691
|
+
};
|
|
4692
|
+
};
|
|
4409
4693
|
}
|
|
4410
4694
|
|
|
4411
4695
|
declare const PAY_API_BASE_URL_PRODUCTION = "https://pay.subfi.com";
|
package/dist/index.d.ts
CHANGED
|
@@ -68,7 +68,8 @@ interface paths {
|
|
|
68
68
|
};
|
|
69
69
|
/** Retrieve a charge */
|
|
70
70
|
get: operations["GetCharge"];
|
|
71
|
-
|
|
71
|
+
/** Update a charge */
|
|
72
|
+
put: operations["UpdateCharge"];
|
|
72
73
|
post?: never;
|
|
73
74
|
delete?: never;
|
|
74
75
|
options?: never;
|
|
@@ -524,6 +525,24 @@ interface paths {
|
|
|
524
525
|
patch?: never;
|
|
525
526
|
trace?: never;
|
|
526
527
|
};
|
|
528
|
+
"/payment_links": {
|
|
529
|
+
parameters: {
|
|
530
|
+
query?: never;
|
|
531
|
+
header?: never;
|
|
532
|
+
path?: never;
|
|
533
|
+
cookie?: never;
|
|
534
|
+
};
|
|
535
|
+
/** List payment links */
|
|
536
|
+
get: operations["ListPaymentLinks"];
|
|
537
|
+
put?: never;
|
|
538
|
+
/** Create a new payment link */
|
|
539
|
+
post: operations["CreatePaymentLink"];
|
|
540
|
+
delete?: never;
|
|
541
|
+
options?: never;
|
|
542
|
+
head?: never;
|
|
543
|
+
patch?: never;
|
|
544
|
+
trace?: never;
|
|
545
|
+
};
|
|
527
546
|
"/payment_intents/{id}": {
|
|
528
547
|
parameters: {
|
|
529
548
|
query?: never;
|
|
@@ -740,7 +759,8 @@ interface paths {
|
|
|
740
759
|
};
|
|
741
760
|
/** Retrieve a refund by ID */
|
|
742
761
|
get: operations["GetRefund"];
|
|
743
|
-
|
|
762
|
+
/** Update a refund */
|
|
763
|
+
put: operations["UpdateRefund"];
|
|
744
764
|
post?: never;
|
|
745
765
|
delete?: never;
|
|
746
766
|
options?: never;
|
|
@@ -982,7 +1002,8 @@ interface paths {
|
|
|
982
1002
|
};
|
|
983
1003
|
/** Retrieve a void by ID */
|
|
984
1004
|
get: operations["GetVoid"];
|
|
985
|
-
|
|
1005
|
+
/** Update a void */
|
|
1006
|
+
put: operations["UpdateVoid"];
|
|
986
1007
|
post?: never;
|
|
987
1008
|
delete?: never;
|
|
988
1009
|
options?: never;
|
|
@@ -1078,6 +1099,23 @@ interface paths {
|
|
|
1078
1099
|
patch?: never;
|
|
1079
1100
|
trace?: never;
|
|
1080
1101
|
};
|
|
1102
|
+
"/webhook_requests/{id}": {
|
|
1103
|
+
parameters: {
|
|
1104
|
+
query?: never;
|
|
1105
|
+
header?: never;
|
|
1106
|
+
path?: never;
|
|
1107
|
+
cookie?: never;
|
|
1108
|
+
};
|
|
1109
|
+
/** Get webhook request by ID */
|
|
1110
|
+
get: operations["RetrieveWebhookRequest"];
|
|
1111
|
+
put?: never;
|
|
1112
|
+
post?: never;
|
|
1113
|
+
delete?: never;
|
|
1114
|
+
options?: never;
|
|
1115
|
+
head?: never;
|
|
1116
|
+
patch?: never;
|
|
1117
|
+
trace?: never;
|
|
1118
|
+
};
|
|
1081
1119
|
}
|
|
1082
1120
|
type webhooks = Record<string, never>;
|
|
1083
1121
|
interface components {
|
|
@@ -1670,6 +1708,59 @@ interface components {
|
|
|
1670
1708
|
/** Format: date-time */
|
|
1671
1709
|
updated_at?: string;
|
|
1672
1710
|
};
|
|
1711
|
+
CreatePaymentLinkInput: {
|
|
1712
|
+
slug?: string;
|
|
1713
|
+
active?: boolean;
|
|
1714
|
+
/** @enum {string} */
|
|
1715
|
+
amount_type?: "fixed" | "open";
|
|
1716
|
+
amount?: number;
|
|
1717
|
+
/** Format: uri */
|
|
1718
|
+
image_url?: string;
|
|
1719
|
+
minimum_amount?: number;
|
|
1720
|
+
maximum_amount?: number;
|
|
1721
|
+
suggested_amounts?: number[];
|
|
1722
|
+
currency?: string;
|
|
1723
|
+
description?: string | null;
|
|
1724
|
+
statement_descriptor?: string;
|
|
1725
|
+
/** Format: uri */
|
|
1726
|
+
success_url?: string;
|
|
1727
|
+
title?: string;
|
|
1728
|
+
/** Format: uri */
|
|
1729
|
+
cancel_url?: string;
|
|
1730
|
+
allowed_payment_method_types?: string[];
|
|
1731
|
+
metadata?: components["schemas"]["Metadata"];
|
|
1732
|
+
};
|
|
1733
|
+
CreatePaymentLinkRequest: {
|
|
1734
|
+
payment_link: components["schemas"]["CreatePaymentLinkInput"];
|
|
1735
|
+
};
|
|
1736
|
+
PaymentLink: {
|
|
1737
|
+
/** Format: uuid */
|
|
1738
|
+
id?: string;
|
|
1739
|
+
/** Format: uuid */
|
|
1740
|
+
organization_id?: string;
|
|
1741
|
+
/** Format: uuid */
|
|
1742
|
+
account_id?: string;
|
|
1743
|
+
slug?: string;
|
|
1744
|
+
active?: boolean;
|
|
1745
|
+
/** @enum {string} */
|
|
1746
|
+
amount_type?: "fixed" | "open";
|
|
1747
|
+
amount?: number;
|
|
1748
|
+
/** Format: uri */
|
|
1749
|
+
image_url?: string;
|
|
1750
|
+
minimum_amount?: number;
|
|
1751
|
+
maximum_amount?: number;
|
|
1752
|
+
suggested_amounts?: number[];
|
|
1753
|
+
currency?: string;
|
|
1754
|
+
description?: string | null;
|
|
1755
|
+
statement_descriptor?: string;
|
|
1756
|
+
/** Format: uri */
|
|
1757
|
+
success_url?: string;
|
|
1758
|
+
title?: string;
|
|
1759
|
+
/** Format: uri */
|
|
1760
|
+
cancel_url?: string;
|
|
1761
|
+
allowed_payment_method_types?: string[];
|
|
1762
|
+
metadata?: components["schemas"]["Metadata"];
|
|
1763
|
+
};
|
|
1673
1764
|
PaymentMethod: {
|
|
1674
1765
|
/** Format: uuid */
|
|
1675
1766
|
id?: string;
|
|
@@ -1796,6 +1887,13 @@ interface components {
|
|
|
1796
1887
|
CreateRefundRequest: {
|
|
1797
1888
|
refund: components["schemas"]["CreateRefundInput"];
|
|
1798
1889
|
};
|
|
1890
|
+
UpdateRefundInput: {
|
|
1891
|
+
description?: string;
|
|
1892
|
+
metadata?: components["schemas"]["Metadata"];
|
|
1893
|
+
};
|
|
1894
|
+
UpdateRefundRequest: {
|
|
1895
|
+
refund: components["schemas"]["UpdateRefundInput"];
|
|
1896
|
+
};
|
|
1799
1897
|
Refund: {
|
|
1800
1898
|
/** Format: uuid */
|
|
1801
1899
|
id?: string;
|
|
@@ -1952,6 +2050,13 @@ interface components {
|
|
|
1952
2050
|
CreateSubscriptionPlanRequest: {
|
|
1953
2051
|
subscription_plan: components["schemas"]["CreateSubscriptionPlanInput"];
|
|
1954
2052
|
};
|
|
2053
|
+
UpdateChargeInput: {
|
|
2054
|
+
description?: string;
|
|
2055
|
+
metadata?: components["schemas"]["Metadata"];
|
|
2056
|
+
};
|
|
2057
|
+
UpdateChargeRequest: {
|
|
2058
|
+
charge: components["schemas"]["UpdateChargeInput"];
|
|
2059
|
+
};
|
|
1955
2060
|
SubscriptionPlan: {
|
|
1956
2061
|
/** Format: uuid */
|
|
1957
2062
|
id?: string;
|
|
@@ -1987,6 +2092,13 @@ interface components {
|
|
|
1987
2092
|
CreateVoidRequest: {
|
|
1988
2093
|
void: components["schemas"]["CreateVoidInput"];
|
|
1989
2094
|
};
|
|
2095
|
+
UpdateVoidInput: {
|
|
2096
|
+
description?: string;
|
|
2097
|
+
metadata?: components["schemas"]["Metadata"];
|
|
2098
|
+
};
|
|
2099
|
+
UpdateVoidRequest: {
|
|
2100
|
+
void: components["schemas"]["UpdateVoidInput"];
|
|
2101
|
+
};
|
|
1990
2102
|
Void: {
|
|
1991
2103
|
/** Format: uuid */
|
|
1992
2104
|
id?: string;
|
|
@@ -2245,6 +2357,35 @@ interface operations {
|
|
|
2245
2357
|
};
|
|
2246
2358
|
};
|
|
2247
2359
|
};
|
|
2360
|
+
UpdateCharge: {
|
|
2361
|
+
parameters: {
|
|
2362
|
+
query?: never;
|
|
2363
|
+
header: {
|
|
2364
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
2365
|
+
"X-Account-Id": components["parameters"]["XAccountIdHeader"];
|
|
2366
|
+
};
|
|
2367
|
+
path: {
|
|
2368
|
+
id: string;
|
|
2369
|
+
};
|
|
2370
|
+
cookie?: never;
|
|
2371
|
+
};
|
|
2372
|
+
requestBody: {
|
|
2373
|
+
content: {
|
|
2374
|
+
"application/json": components["schemas"]["UpdateChargeRequest"];
|
|
2375
|
+
};
|
|
2376
|
+
};
|
|
2377
|
+
responses: {
|
|
2378
|
+
/** @description Charge updated successfully */
|
|
2379
|
+
200: {
|
|
2380
|
+
headers: {
|
|
2381
|
+
[name: string]: unknown;
|
|
2382
|
+
};
|
|
2383
|
+
content: {
|
|
2384
|
+
"application/json": components["schemas"]["Charge"];
|
|
2385
|
+
};
|
|
2386
|
+
};
|
|
2387
|
+
};
|
|
2388
|
+
};
|
|
2248
2389
|
ListCustomers: {
|
|
2249
2390
|
parameters: {
|
|
2250
2391
|
query?: {
|
|
@@ -3166,6 +3307,64 @@ interface operations {
|
|
|
3166
3307
|
};
|
|
3167
3308
|
};
|
|
3168
3309
|
};
|
|
3310
|
+
ListPaymentLinks: {
|
|
3311
|
+
parameters: {
|
|
3312
|
+
query?: {
|
|
3313
|
+
/** @description The page of results to retrieve. */
|
|
3314
|
+
page?: components["parameters"]["PageQuery"];
|
|
3315
|
+
/** @description Number of results per page. */
|
|
3316
|
+
per_page?: components["parameters"]["PerPageQuery"];
|
|
3317
|
+
};
|
|
3318
|
+
header: {
|
|
3319
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
3320
|
+
"X-Account-Id": components["parameters"]["XAccountIdHeader"];
|
|
3321
|
+
};
|
|
3322
|
+
path?: never;
|
|
3323
|
+
cookie?: never;
|
|
3324
|
+
};
|
|
3325
|
+
requestBody?: never;
|
|
3326
|
+
responses: {
|
|
3327
|
+
/** @description A list of payment links */
|
|
3328
|
+
200: {
|
|
3329
|
+
headers: {
|
|
3330
|
+
[name: string]: unknown;
|
|
3331
|
+
};
|
|
3332
|
+
content: {
|
|
3333
|
+
"application/json": {
|
|
3334
|
+
data?: components["schemas"]["PaymentLink"][];
|
|
3335
|
+
meta?: components["schemas"]["Meta"];
|
|
3336
|
+
};
|
|
3337
|
+
};
|
|
3338
|
+
};
|
|
3339
|
+
};
|
|
3340
|
+
};
|
|
3341
|
+
CreatePaymentLink: {
|
|
3342
|
+
parameters: {
|
|
3343
|
+
query?: never;
|
|
3344
|
+
header: {
|
|
3345
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
3346
|
+
"X-Account-Id": components["parameters"]["XAccountIdHeader"];
|
|
3347
|
+
};
|
|
3348
|
+
path?: never;
|
|
3349
|
+
cookie?: never;
|
|
3350
|
+
};
|
|
3351
|
+
requestBody: {
|
|
3352
|
+
content: {
|
|
3353
|
+
"application/json": components["schemas"]["CreatePaymentLinkRequest"];
|
|
3354
|
+
};
|
|
3355
|
+
};
|
|
3356
|
+
responses: {
|
|
3357
|
+
/** @description Payment link created successfully */
|
|
3358
|
+
201: {
|
|
3359
|
+
headers: {
|
|
3360
|
+
[name: string]: unknown;
|
|
3361
|
+
};
|
|
3362
|
+
content: {
|
|
3363
|
+
"application/json": components["schemas"]["PaymentLink"];
|
|
3364
|
+
};
|
|
3365
|
+
};
|
|
3366
|
+
};
|
|
3367
|
+
};
|
|
3169
3368
|
GetPaymentIntent: {
|
|
3170
3369
|
parameters: {
|
|
3171
3370
|
query?: never;
|
|
@@ -3685,6 +3884,36 @@ interface operations {
|
|
|
3685
3884
|
};
|
|
3686
3885
|
};
|
|
3687
3886
|
};
|
|
3887
|
+
UpdateRefund: {
|
|
3888
|
+
parameters: {
|
|
3889
|
+
query?: never;
|
|
3890
|
+
header: {
|
|
3891
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
3892
|
+
"X-Account-Id": components["parameters"]["XAccountIdHeader"];
|
|
3893
|
+
};
|
|
3894
|
+
path: {
|
|
3895
|
+
/** @description The ID of the refund to update */
|
|
3896
|
+
id: string;
|
|
3897
|
+
};
|
|
3898
|
+
cookie?: never;
|
|
3899
|
+
};
|
|
3900
|
+
requestBody: {
|
|
3901
|
+
content: {
|
|
3902
|
+
"application/json": components["schemas"]["UpdateRefundRequest"];
|
|
3903
|
+
};
|
|
3904
|
+
};
|
|
3905
|
+
responses: {
|
|
3906
|
+
/** @description Refund updated successfully */
|
|
3907
|
+
200: {
|
|
3908
|
+
headers: {
|
|
3909
|
+
[name: string]: unknown;
|
|
3910
|
+
};
|
|
3911
|
+
content: {
|
|
3912
|
+
"application/json": components["schemas"]["Refund"];
|
|
3913
|
+
};
|
|
3914
|
+
};
|
|
3915
|
+
};
|
|
3916
|
+
};
|
|
3688
3917
|
CancelRefund: {
|
|
3689
3918
|
parameters: {
|
|
3690
3919
|
query?: never;
|
|
@@ -4191,6 +4420,36 @@ interface operations {
|
|
|
4191
4420
|
};
|
|
4192
4421
|
};
|
|
4193
4422
|
};
|
|
4423
|
+
UpdateVoid: {
|
|
4424
|
+
parameters: {
|
|
4425
|
+
query?: never;
|
|
4426
|
+
header: {
|
|
4427
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
4428
|
+
"X-Account-Id": components["parameters"]["XAccountIdHeader"];
|
|
4429
|
+
};
|
|
4430
|
+
path: {
|
|
4431
|
+
/** @description The ID of the void to update */
|
|
4432
|
+
id: string;
|
|
4433
|
+
};
|
|
4434
|
+
cookie?: never;
|
|
4435
|
+
};
|
|
4436
|
+
requestBody: {
|
|
4437
|
+
content: {
|
|
4438
|
+
"application/json": components["schemas"]["UpdateVoidRequest"];
|
|
4439
|
+
};
|
|
4440
|
+
};
|
|
4441
|
+
responses: {
|
|
4442
|
+
/** @description Void updated successfully */
|
|
4443
|
+
200: {
|
|
4444
|
+
headers: {
|
|
4445
|
+
[name: string]: unknown;
|
|
4446
|
+
};
|
|
4447
|
+
content: {
|
|
4448
|
+
"application/json": components["schemas"]["Void"];
|
|
4449
|
+
};
|
|
4450
|
+
};
|
|
4451
|
+
};
|
|
4452
|
+
};
|
|
4194
4453
|
ListWebhookAttempts: {
|
|
4195
4454
|
parameters: {
|
|
4196
4455
|
query: {
|
|
@@ -4406,6 +4665,31 @@ interface operations {
|
|
|
4406
4665
|
};
|
|
4407
4666
|
};
|
|
4408
4667
|
};
|
|
4668
|
+
RetrieveWebhookRequest: {
|
|
4669
|
+
parameters: {
|
|
4670
|
+
query?: never;
|
|
4671
|
+
header: {
|
|
4672
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
4673
|
+
};
|
|
4674
|
+
path: {
|
|
4675
|
+
/** @description The ID of the webhook request to retrieve */
|
|
4676
|
+
id: string;
|
|
4677
|
+
};
|
|
4678
|
+
cookie?: never;
|
|
4679
|
+
};
|
|
4680
|
+
requestBody?: never;
|
|
4681
|
+
responses: {
|
|
4682
|
+
/** @description Webhook request retrieved successfully */
|
|
4683
|
+
200: {
|
|
4684
|
+
headers: {
|
|
4685
|
+
[name: string]: unknown;
|
|
4686
|
+
};
|
|
4687
|
+
content: {
|
|
4688
|
+
"application/json": components["schemas"]["WebhookRequest"];
|
|
4689
|
+
};
|
|
4690
|
+
};
|
|
4691
|
+
};
|
|
4692
|
+
};
|
|
4409
4693
|
}
|
|
4410
4694
|
|
|
4411
4695
|
declare const PAY_API_BASE_URL_PRODUCTION = "https://pay.subfi.com";
|
package/openapi/schema.ts
CHANGED
|
@@ -65,7 +65,8 @@ export interface paths {
|
|
|
65
65
|
};
|
|
66
66
|
/** Retrieve a charge */
|
|
67
67
|
get: operations["GetCharge"];
|
|
68
|
-
|
|
68
|
+
/** Update a charge */
|
|
69
|
+
put: operations["UpdateCharge"];
|
|
69
70
|
post?: never;
|
|
70
71
|
delete?: never;
|
|
71
72
|
options?: never;
|
|
@@ -521,6 +522,24 @@ export interface paths {
|
|
|
521
522
|
patch?: never;
|
|
522
523
|
trace?: never;
|
|
523
524
|
};
|
|
525
|
+
"/payment_links": {
|
|
526
|
+
parameters: {
|
|
527
|
+
query?: never;
|
|
528
|
+
header?: never;
|
|
529
|
+
path?: never;
|
|
530
|
+
cookie?: never;
|
|
531
|
+
};
|
|
532
|
+
/** List payment links */
|
|
533
|
+
get: operations["ListPaymentLinks"];
|
|
534
|
+
put?: never;
|
|
535
|
+
/** Create a new payment link */
|
|
536
|
+
post: operations["CreatePaymentLink"];
|
|
537
|
+
delete?: never;
|
|
538
|
+
options?: never;
|
|
539
|
+
head?: never;
|
|
540
|
+
patch?: never;
|
|
541
|
+
trace?: never;
|
|
542
|
+
};
|
|
524
543
|
"/payment_intents/{id}": {
|
|
525
544
|
parameters: {
|
|
526
545
|
query?: never;
|
|
@@ -737,7 +756,8 @@ export interface paths {
|
|
|
737
756
|
};
|
|
738
757
|
/** Retrieve a refund by ID */
|
|
739
758
|
get: operations["GetRefund"];
|
|
740
|
-
|
|
759
|
+
/** Update a refund */
|
|
760
|
+
put: operations["UpdateRefund"];
|
|
741
761
|
post?: never;
|
|
742
762
|
delete?: never;
|
|
743
763
|
options?: never;
|
|
@@ -979,7 +999,8 @@ export interface paths {
|
|
|
979
999
|
};
|
|
980
1000
|
/** Retrieve a void by ID */
|
|
981
1001
|
get: operations["GetVoid"];
|
|
982
|
-
|
|
1002
|
+
/** Update a void */
|
|
1003
|
+
put: operations["UpdateVoid"];
|
|
983
1004
|
post?: never;
|
|
984
1005
|
delete?: never;
|
|
985
1006
|
options?: never;
|
|
@@ -1075,6 +1096,23 @@ export interface paths {
|
|
|
1075
1096
|
patch?: never;
|
|
1076
1097
|
trace?: never;
|
|
1077
1098
|
};
|
|
1099
|
+
"/webhook_requests/{id}": {
|
|
1100
|
+
parameters: {
|
|
1101
|
+
query?: never;
|
|
1102
|
+
header?: never;
|
|
1103
|
+
path?: never;
|
|
1104
|
+
cookie?: never;
|
|
1105
|
+
};
|
|
1106
|
+
/** Get webhook request by ID */
|
|
1107
|
+
get: operations["RetrieveWebhookRequest"];
|
|
1108
|
+
put?: never;
|
|
1109
|
+
post?: never;
|
|
1110
|
+
delete?: never;
|
|
1111
|
+
options?: never;
|
|
1112
|
+
head?: never;
|
|
1113
|
+
patch?: never;
|
|
1114
|
+
trace?: never;
|
|
1115
|
+
};
|
|
1078
1116
|
}
|
|
1079
1117
|
export type webhooks = Record<string, never>;
|
|
1080
1118
|
export interface components {
|
|
@@ -1667,6 +1705,59 @@ export interface components {
|
|
|
1667
1705
|
/** Format: date-time */
|
|
1668
1706
|
updated_at?: string;
|
|
1669
1707
|
};
|
|
1708
|
+
CreatePaymentLinkInput: {
|
|
1709
|
+
slug?: string;
|
|
1710
|
+
active?: boolean;
|
|
1711
|
+
/** @enum {string} */
|
|
1712
|
+
amount_type?: "fixed" | "open";
|
|
1713
|
+
amount?: number;
|
|
1714
|
+
/** Format: uri */
|
|
1715
|
+
image_url?: string;
|
|
1716
|
+
minimum_amount?: number;
|
|
1717
|
+
maximum_amount?: number;
|
|
1718
|
+
suggested_amounts?: number[];
|
|
1719
|
+
currency?: string;
|
|
1720
|
+
description?: string | null;
|
|
1721
|
+
statement_descriptor?: string;
|
|
1722
|
+
/** Format: uri */
|
|
1723
|
+
success_url?: string;
|
|
1724
|
+
title?: string;
|
|
1725
|
+
/** Format: uri */
|
|
1726
|
+
cancel_url?: string;
|
|
1727
|
+
allowed_payment_method_types?: string[];
|
|
1728
|
+
metadata?: components["schemas"]["Metadata"];
|
|
1729
|
+
};
|
|
1730
|
+
CreatePaymentLinkRequest: {
|
|
1731
|
+
payment_link: components["schemas"]["CreatePaymentLinkInput"];
|
|
1732
|
+
};
|
|
1733
|
+
PaymentLink: {
|
|
1734
|
+
/** Format: uuid */
|
|
1735
|
+
id?: string;
|
|
1736
|
+
/** Format: uuid */
|
|
1737
|
+
organization_id?: string;
|
|
1738
|
+
/** Format: uuid */
|
|
1739
|
+
account_id?: string;
|
|
1740
|
+
slug?: string;
|
|
1741
|
+
active?: boolean;
|
|
1742
|
+
/** @enum {string} */
|
|
1743
|
+
amount_type?: "fixed" | "open";
|
|
1744
|
+
amount?: number;
|
|
1745
|
+
/** Format: uri */
|
|
1746
|
+
image_url?: string;
|
|
1747
|
+
minimum_amount?: number;
|
|
1748
|
+
maximum_amount?: number;
|
|
1749
|
+
suggested_amounts?: number[];
|
|
1750
|
+
currency?: string;
|
|
1751
|
+
description?: string | null;
|
|
1752
|
+
statement_descriptor?: string;
|
|
1753
|
+
/** Format: uri */
|
|
1754
|
+
success_url?: string;
|
|
1755
|
+
title?: string;
|
|
1756
|
+
/** Format: uri */
|
|
1757
|
+
cancel_url?: string;
|
|
1758
|
+
allowed_payment_method_types?: string[];
|
|
1759
|
+
metadata?: components["schemas"]["Metadata"];
|
|
1760
|
+
};
|
|
1670
1761
|
PaymentMethod: {
|
|
1671
1762
|
/** Format: uuid */
|
|
1672
1763
|
id?: string;
|
|
@@ -1793,6 +1884,13 @@ export interface components {
|
|
|
1793
1884
|
CreateRefundRequest: {
|
|
1794
1885
|
refund: components["schemas"]["CreateRefundInput"];
|
|
1795
1886
|
};
|
|
1887
|
+
UpdateRefundInput: {
|
|
1888
|
+
description?: string;
|
|
1889
|
+
metadata?: components["schemas"]["Metadata"];
|
|
1890
|
+
};
|
|
1891
|
+
UpdateRefundRequest: {
|
|
1892
|
+
refund: components["schemas"]["UpdateRefundInput"];
|
|
1893
|
+
};
|
|
1796
1894
|
Refund: {
|
|
1797
1895
|
/** Format: uuid */
|
|
1798
1896
|
id?: string;
|
|
@@ -1949,6 +2047,13 @@ export interface components {
|
|
|
1949
2047
|
CreateSubscriptionPlanRequest: {
|
|
1950
2048
|
subscription_plan: components["schemas"]["CreateSubscriptionPlanInput"];
|
|
1951
2049
|
};
|
|
2050
|
+
UpdateChargeInput: {
|
|
2051
|
+
description?: string;
|
|
2052
|
+
metadata?: components["schemas"]["Metadata"];
|
|
2053
|
+
};
|
|
2054
|
+
UpdateChargeRequest: {
|
|
2055
|
+
charge: components["schemas"]["UpdateChargeInput"];
|
|
2056
|
+
};
|
|
1952
2057
|
SubscriptionPlan: {
|
|
1953
2058
|
/** Format: uuid */
|
|
1954
2059
|
id?: string;
|
|
@@ -1984,6 +2089,13 @@ export interface components {
|
|
|
1984
2089
|
CreateVoidRequest: {
|
|
1985
2090
|
void: components["schemas"]["CreateVoidInput"];
|
|
1986
2091
|
};
|
|
2092
|
+
UpdateVoidInput: {
|
|
2093
|
+
description?: string;
|
|
2094
|
+
metadata?: components["schemas"]["Metadata"];
|
|
2095
|
+
};
|
|
2096
|
+
UpdateVoidRequest: {
|
|
2097
|
+
void: components["schemas"]["UpdateVoidInput"];
|
|
2098
|
+
};
|
|
1987
2099
|
Void: {
|
|
1988
2100
|
/** Format: uuid */
|
|
1989
2101
|
id?: string;
|
|
@@ -2242,6 +2354,35 @@ export interface operations {
|
|
|
2242
2354
|
};
|
|
2243
2355
|
};
|
|
2244
2356
|
};
|
|
2357
|
+
UpdateCharge: {
|
|
2358
|
+
parameters: {
|
|
2359
|
+
query?: never;
|
|
2360
|
+
header: {
|
|
2361
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
2362
|
+
"X-Account-Id": components["parameters"]["XAccountIdHeader"];
|
|
2363
|
+
};
|
|
2364
|
+
path: {
|
|
2365
|
+
id: string;
|
|
2366
|
+
};
|
|
2367
|
+
cookie?: never;
|
|
2368
|
+
};
|
|
2369
|
+
requestBody: {
|
|
2370
|
+
content: {
|
|
2371
|
+
"application/json": components["schemas"]["UpdateChargeRequest"];
|
|
2372
|
+
};
|
|
2373
|
+
};
|
|
2374
|
+
responses: {
|
|
2375
|
+
/** @description Charge updated successfully */
|
|
2376
|
+
200: {
|
|
2377
|
+
headers: {
|
|
2378
|
+
[name: string]: unknown;
|
|
2379
|
+
};
|
|
2380
|
+
content: {
|
|
2381
|
+
"application/json": components["schemas"]["Charge"];
|
|
2382
|
+
};
|
|
2383
|
+
};
|
|
2384
|
+
};
|
|
2385
|
+
};
|
|
2245
2386
|
ListCustomers: {
|
|
2246
2387
|
parameters: {
|
|
2247
2388
|
query?: {
|
|
@@ -3163,6 +3304,64 @@ export interface operations {
|
|
|
3163
3304
|
};
|
|
3164
3305
|
};
|
|
3165
3306
|
};
|
|
3307
|
+
ListPaymentLinks: {
|
|
3308
|
+
parameters: {
|
|
3309
|
+
query?: {
|
|
3310
|
+
/** @description The page of results to retrieve. */
|
|
3311
|
+
page?: components["parameters"]["PageQuery"];
|
|
3312
|
+
/** @description Number of results per page. */
|
|
3313
|
+
per_page?: components["parameters"]["PerPageQuery"];
|
|
3314
|
+
};
|
|
3315
|
+
header: {
|
|
3316
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
3317
|
+
"X-Account-Id": components["parameters"]["XAccountIdHeader"];
|
|
3318
|
+
};
|
|
3319
|
+
path?: never;
|
|
3320
|
+
cookie?: never;
|
|
3321
|
+
};
|
|
3322
|
+
requestBody?: never;
|
|
3323
|
+
responses: {
|
|
3324
|
+
/** @description A list of payment links */
|
|
3325
|
+
200: {
|
|
3326
|
+
headers: {
|
|
3327
|
+
[name: string]: unknown;
|
|
3328
|
+
};
|
|
3329
|
+
content: {
|
|
3330
|
+
"application/json": {
|
|
3331
|
+
data?: components["schemas"]["PaymentLink"][];
|
|
3332
|
+
meta?: components["schemas"]["Meta"];
|
|
3333
|
+
};
|
|
3334
|
+
};
|
|
3335
|
+
};
|
|
3336
|
+
};
|
|
3337
|
+
};
|
|
3338
|
+
CreatePaymentLink: {
|
|
3339
|
+
parameters: {
|
|
3340
|
+
query?: never;
|
|
3341
|
+
header: {
|
|
3342
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
3343
|
+
"X-Account-Id": components["parameters"]["XAccountIdHeader"];
|
|
3344
|
+
};
|
|
3345
|
+
path?: never;
|
|
3346
|
+
cookie?: never;
|
|
3347
|
+
};
|
|
3348
|
+
requestBody: {
|
|
3349
|
+
content: {
|
|
3350
|
+
"application/json": components["schemas"]["CreatePaymentLinkRequest"];
|
|
3351
|
+
};
|
|
3352
|
+
};
|
|
3353
|
+
responses: {
|
|
3354
|
+
/** @description Payment link created successfully */
|
|
3355
|
+
201: {
|
|
3356
|
+
headers: {
|
|
3357
|
+
[name: string]: unknown;
|
|
3358
|
+
};
|
|
3359
|
+
content: {
|
|
3360
|
+
"application/json": components["schemas"]["PaymentLink"];
|
|
3361
|
+
};
|
|
3362
|
+
};
|
|
3363
|
+
};
|
|
3364
|
+
};
|
|
3166
3365
|
GetPaymentIntent: {
|
|
3167
3366
|
parameters: {
|
|
3168
3367
|
query?: never;
|
|
@@ -3682,6 +3881,36 @@ export interface operations {
|
|
|
3682
3881
|
};
|
|
3683
3882
|
};
|
|
3684
3883
|
};
|
|
3884
|
+
UpdateRefund: {
|
|
3885
|
+
parameters: {
|
|
3886
|
+
query?: never;
|
|
3887
|
+
header: {
|
|
3888
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
3889
|
+
"X-Account-Id": components["parameters"]["XAccountIdHeader"];
|
|
3890
|
+
};
|
|
3891
|
+
path: {
|
|
3892
|
+
/** @description The ID of the refund to update */
|
|
3893
|
+
id: string;
|
|
3894
|
+
};
|
|
3895
|
+
cookie?: never;
|
|
3896
|
+
};
|
|
3897
|
+
requestBody: {
|
|
3898
|
+
content: {
|
|
3899
|
+
"application/json": components["schemas"]["UpdateRefundRequest"];
|
|
3900
|
+
};
|
|
3901
|
+
};
|
|
3902
|
+
responses: {
|
|
3903
|
+
/** @description Refund updated successfully */
|
|
3904
|
+
200: {
|
|
3905
|
+
headers: {
|
|
3906
|
+
[name: string]: unknown;
|
|
3907
|
+
};
|
|
3908
|
+
content: {
|
|
3909
|
+
"application/json": components["schemas"]["Refund"];
|
|
3910
|
+
};
|
|
3911
|
+
};
|
|
3912
|
+
};
|
|
3913
|
+
};
|
|
3685
3914
|
CancelRefund: {
|
|
3686
3915
|
parameters: {
|
|
3687
3916
|
query?: never;
|
|
@@ -4188,6 +4417,36 @@ export interface operations {
|
|
|
4188
4417
|
};
|
|
4189
4418
|
};
|
|
4190
4419
|
};
|
|
4420
|
+
UpdateVoid: {
|
|
4421
|
+
parameters: {
|
|
4422
|
+
query?: never;
|
|
4423
|
+
header: {
|
|
4424
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
4425
|
+
"X-Account-Id": components["parameters"]["XAccountIdHeader"];
|
|
4426
|
+
};
|
|
4427
|
+
path: {
|
|
4428
|
+
/** @description The ID of the void to update */
|
|
4429
|
+
id: string;
|
|
4430
|
+
};
|
|
4431
|
+
cookie?: never;
|
|
4432
|
+
};
|
|
4433
|
+
requestBody: {
|
|
4434
|
+
content: {
|
|
4435
|
+
"application/json": components["schemas"]["UpdateVoidRequest"];
|
|
4436
|
+
};
|
|
4437
|
+
};
|
|
4438
|
+
responses: {
|
|
4439
|
+
/** @description Void updated successfully */
|
|
4440
|
+
200: {
|
|
4441
|
+
headers: {
|
|
4442
|
+
[name: string]: unknown;
|
|
4443
|
+
};
|
|
4444
|
+
content: {
|
|
4445
|
+
"application/json": components["schemas"]["Void"];
|
|
4446
|
+
};
|
|
4447
|
+
};
|
|
4448
|
+
};
|
|
4449
|
+
};
|
|
4191
4450
|
ListWebhookAttempts: {
|
|
4192
4451
|
parameters: {
|
|
4193
4452
|
query: {
|
|
@@ -4403,4 +4662,29 @@ export interface operations {
|
|
|
4403
4662
|
};
|
|
4404
4663
|
};
|
|
4405
4664
|
};
|
|
4665
|
+
RetrieveWebhookRequest: {
|
|
4666
|
+
parameters: {
|
|
4667
|
+
query?: never;
|
|
4668
|
+
header: {
|
|
4669
|
+
"X-Api-Version": components["parameters"]["XApiVersionHeader"];
|
|
4670
|
+
};
|
|
4671
|
+
path: {
|
|
4672
|
+
/** @description The ID of the webhook request to retrieve */
|
|
4673
|
+
id: string;
|
|
4674
|
+
};
|
|
4675
|
+
cookie?: never;
|
|
4676
|
+
};
|
|
4677
|
+
requestBody?: never;
|
|
4678
|
+
responses: {
|
|
4679
|
+
/** @description Webhook request retrieved successfully */
|
|
4680
|
+
200: {
|
|
4681
|
+
headers: {
|
|
4682
|
+
[name: string]: unknown;
|
|
4683
|
+
};
|
|
4684
|
+
content: {
|
|
4685
|
+
"application/json": components["schemas"]["WebhookRequest"];
|
|
4686
|
+
};
|
|
4687
|
+
};
|
|
4688
|
+
};
|
|
4689
|
+
};
|
|
4406
4690
|
}
|