rebilly-js-sdk 62.236.2 → 62.237.0
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/CHANGELOG.md +1 -1
- package/dist/rebilly-js-sdk.d.cts +110 -14
- package/dist/rebilly-js-sdk.d.mts +110 -14
- package/dist/rebilly-js-sdk.d.ts +110 -14
- package/dist/rebilly-js-sdk.es.mjs +1 -1
- package/dist/rebilly-js-sdk.umd.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2960,7 +2960,8 @@ export interface corePaths {
|
|
|
2960
2960
|
* the file body is sent as the request body, with the appropriate `Content-Type`.
|
|
2961
2961
|
* No additional properties can be set with the request data.
|
|
2962
2962
|
*
|
|
2963
|
-
* Permitted file types: `.jpg`, `.png`, `.gif`, `.webp`, and `.pdf`.
|
|
2963
|
+
* Permitted file types: `.jpg`, `.png`, `.gif`, `.webp`, `.svg`, and `.pdf`.
|
|
2964
|
+
* Scripts, event handlers, and references to external files are removed from an SVG file before it is stored.
|
|
2964
2965
|
*
|
|
2965
2966
|
* When using a publishable API key, only private files can be created.
|
|
2966
2967
|
* The files can be modified at a later point or time,
|
|
@@ -8179,6 +8180,7 @@ export interface coreComponents {
|
|
|
8179
8180
|
| "image/jpeg"
|
|
8180
8181
|
| "image/gif"
|
|
8181
8182
|
| "image/webp"
|
|
8183
|
+
| "image/svg+xml"
|
|
8182
8184
|
| "application/pdf"
|
|
8183
8185
|
| "application/json"
|
|
8184
8186
|
| "application/zip"
|
|
@@ -8206,7 +8208,8 @@ export interface coreComponents {
|
|
|
8206
8208
|
updatedTime?: coreComponents["schemas"]["UpdatedTime"];
|
|
8207
8209
|
/**
|
|
8208
8210
|
* Specifies if the file is available publicly without authentication.
|
|
8209
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
8211
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
8212
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
8210
8213
|
*/
|
|
8211
8214
|
isPublic?: boolean;
|
|
8212
8215
|
/** Related links. */
|
|
@@ -8214,7 +8217,7 @@ export interface coreComponents {
|
|
|
8214
8217
|
/** Link URL. */
|
|
8215
8218
|
href?: string;
|
|
8216
8219
|
/** Type of link. */
|
|
8217
|
-
rel?: "self" | "download" | "signedLink" | "permalink";
|
|
8220
|
+
rel?: "self" | "download" | "signedLink" | "permalink" | "cdn";
|
|
8218
8221
|
}[];
|
|
8219
8222
|
};
|
|
8220
8223
|
FileCreateFromInline: {
|
|
@@ -8222,7 +8225,8 @@ export interface coreComponents {
|
|
|
8222
8225
|
file: string;
|
|
8223
8226
|
/**
|
|
8224
8227
|
* Specifies if the file is available publicly without authentication.
|
|
8225
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
8228
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
8229
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
8226
8230
|
*/
|
|
8227
8231
|
isPublic?: boolean;
|
|
8228
8232
|
/** File name used for downloading. */
|
|
@@ -8246,7 +8250,8 @@ export interface coreComponents {
|
|
|
8246
8250
|
url: string;
|
|
8247
8251
|
/**
|
|
8248
8252
|
* Specifies if the file is available publicly without authentication.
|
|
8249
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
8253
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
8254
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
8250
8255
|
*/
|
|
8251
8256
|
isPublic?: boolean;
|
|
8252
8257
|
/** File name used for downloading. */
|
|
@@ -14541,6 +14546,33 @@ export interface coreComponents {
|
|
|
14541
14546
|
*/
|
|
14542
14547
|
billingPortalToken?: string | null;
|
|
14543
14548
|
customFields?: coreComponents["schemas"]["ResourceCustomFields"];
|
|
14549
|
+
/** Order line items that queue until the next renewal, or interim, invoice is issued for the order. */
|
|
14550
|
+
lineItems?: {
|
|
14551
|
+
/** Type of invoice line item. */
|
|
14552
|
+
type?: "debit" | "credit";
|
|
14553
|
+
/** Description of the line item. */
|
|
14554
|
+
description?: string;
|
|
14555
|
+
/** Unit price of the line item. */
|
|
14556
|
+
unitPriceAmount?: number;
|
|
14557
|
+
unitPriceCurrency?: coreComponents["schemas"]["CurrencyCode"];
|
|
14558
|
+
/** Quantity of the line item. */
|
|
14559
|
+
quantity?: number;
|
|
14560
|
+
/** Date and time when the service period begins for this item. */
|
|
14561
|
+
periodStartTime?: string;
|
|
14562
|
+
/** Date and time when the service period ends for this item. */
|
|
14563
|
+
periodEndTime?: string;
|
|
14564
|
+
createdTime?: coreComponents["schemas"]["CreatedTime"];
|
|
14565
|
+
updatedTime?: coreComponents["schemas"]["UpdatedTime"];
|
|
14566
|
+
}[];
|
|
14567
|
+
/**
|
|
14568
|
+
* Subtotal of line items in this order (signed value).
|
|
14569
|
+
* If credits exceed debits, this value is a negative number.
|
|
14570
|
+
*/
|
|
14571
|
+
lineItemSubtotal?: {
|
|
14572
|
+
currency?: coreComponents["schemas"]["CurrencyCode"];
|
|
14573
|
+
/** Amount of the subtotal. */
|
|
14574
|
+
amount?: number;
|
|
14575
|
+
};
|
|
14544
14576
|
/** Monthly recurring revenue of the order. */
|
|
14545
14577
|
mrr?: number;
|
|
14546
14578
|
/**
|
|
@@ -33401,7 +33433,8 @@ export interface operations {
|
|
|
33401
33433
|
* the file body is sent as the request body, with the appropriate `Content-Type`.
|
|
33402
33434
|
* No additional properties can be set with the request data.
|
|
33403
33435
|
*
|
|
33404
|
-
* Permitted file types: `.jpg`, `.png`, `.gif`, `.webp`, and `.pdf`.
|
|
33436
|
+
* Permitted file types: `.jpg`, `.png`, `.gif`, `.webp`, `.svg`, and `.pdf`.
|
|
33437
|
+
* Scripts, event handlers, and references to external files are removed from an SVG file before it is stored.
|
|
33405
33438
|
*
|
|
33406
33439
|
* When using a publishable API key, only private files can be created.
|
|
33407
33440
|
* The files can be modified at a later point or time,
|
|
@@ -33534,6 +33567,7 @@ export interface operations {
|
|
|
33534
33567
|
"image/png": string;
|
|
33535
33568
|
"image/gif": string;
|
|
33536
33569
|
"image/webp": string;
|
|
33570
|
+
"image/svg+xml": string;
|
|
33537
33571
|
"text/csv": string;
|
|
33538
33572
|
};
|
|
33539
33573
|
};
|
|
@@ -48568,6 +48602,7 @@ export interface storefrontComponents {
|
|
|
48568
48602
|
| "image/jpeg"
|
|
48569
48603
|
| "image/gif"
|
|
48570
48604
|
| "image/webp"
|
|
48605
|
+
| "image/svg+xml"
|
|
48571
48606
|
| "application/pdf"
|
|
48572
48607
|
| "application/json"
|
|
48573
48608
|
| "application/zip"
|
|
@@ -48595,7 +48630,8 @@ export interface storefrontComponents {
|
|
|
48595
48630
|
updatedTime?: storefrontComponents["schemas"]["UpdatedTime"];
|
|
48596
48631
|
/**
|
|
48597
48632
|
* Specifies if the file is available publicly without authentication.
|
|
48598
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
48633
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
48634
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
48599
48635
|
*/
|
|
48600
48636
|
isPublic?: boolean;
|
|
48601
48637
|
/** Related links. */
|
|
@@ -48603,7 +48639,7 @@ export interface storefrontComponents {
|
|
|
48603
48639
|
/** Link URL. */
|
|
48604
48640
|
href?: string;
|
|
48605
48641
|
/** Type of link. */
|
|
48606
|
-
rel?: "self" | "download" | "signedLink" | "permalink";
|
|
48642
|
+
rel?: "self" | "download" | "signedLink" | "permalink" | "cdn";
|
|
48607
48643
|
}[];
|
|
48608
48644
|
};
|
|
48609
48645
|
FileCreateFromInline: {
|
|
@@ -48611,7 +48647,8 @@ export interface storefrontComponents {
|
|
|
48611
48647
|
file: string;
|
|
48612
48648
|
/**
|
|
48613
48649
|
* Specifies if the file is available publicly without authentication.
|
|
48614
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
48650
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
48651
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
48615
48652
|
*/
|
|
48616
48653
|
isPublic?: boolean;
|
|
48617
48654
|
/** File name used for downloading. */
|
|
@@ -48635,7 +48672,8 @@ export interface storefrontComponents {
|
|
|
48635
48672
|
url: string;
|
|
48636
48673
|
/**
|
|
48637
48674
|
* Specifies if the file is available publicly without authentication.
|
|
48638
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
48675
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
48676
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
48639
48677
|
*/
|
|
48640
48678
|
isPublic?: boolean;
|
|
48641
48679
|
/** File name used for downloading. */
|
|
@@ -54930,6 +54968,33 @@ export interface storefrontComponents {
|
|
|
54930
54968
|
*/
|
|
54931
54969
|
billingPortalToken?: string | null;
|
|
54932
54970
|
customFields?: storefrontComponents["schemas"]["ResourceCustomFields"];
|
|
54971
|
+
/** Order line items that queue until the next renewal, or interim, invoice is issued for the order. */
|
|
54972
|
+
lineItems?: {
|
|
54973
|
+
/** Type of invoice line item. */
|
|
54974
|
+
type?: "debit" | "credit";
|
|
54975
|
+
/** Description of the line item. */
|
|
54976
|
+
description?: string;
|
|
54977
|
+
/** Unit price of the line item. */
|
|
54978
|
+
unitPriceAmount?: number;
|
|
54979
|
+
unitPriceCurrency?: storefrontComponents["schemas"]["CurrencyCode"];
|
|
54980
|
+
/** Quantity of the line item. */
|
|
54981
|
+
quantity?: number;
|
|
54982
|
+
/** Date and time when the service period begins for this item. */
|
|
54983
|
+
periodStartTime?: string;
|
|
54984
|
+
/** Date and time when the service period ends for this item. */
|
|
54985
|
+
periodEndTime?: string;
|
|
54986
|
+
createdTime?: storefrontComponents["schemas"]["CreatedTime"];
|
|
54987
|
+
updatedTime?: storefrontComponents["schemas"]["UpdatedTime"];
|
|
54988
|
+
}[];
|
|
54989
|
+
/**
|
|
54990
|
+
* Subtotal of line items in this order (signed value).
|
|
54991
|
+
* If credits exceed debits, this value is a negative number.
|
|
54992
|
+
*/
|
|
54993
|
+
lineItemSubtotal?: {
|
|
54994
|
+
currency?: storefrontComponents["schemas"]["CurrencyCode"];
|
|
54995
|
+
/** Amount of the subtotal. */
|
|
54996
|
+
amount?: number;
|
|
54997
|
+
};
|
|
54933
54998
|
/** Monthly recurring revenue of the order. */
|
|
54934
54999
|
mrr?: number;
|
|
54935
55000
|
/**
|
|
@@ -76180,6 +76245,7 @@ export interface reportsComponents {
|
|
|
76180
76245
|
| "image/jpeg"
|
|
76181
76246
|
| "image/gif"
|
|
76182
76247
|
| "image/webp"
|
|
76248
|
+
| "image/svg+xml"
|
|
76183
76249
|
| "application/pdf"
|
|
76184
76250
|
| "application/json"
|
|
76185
76251
|
| "application/zip"
|
|
@@ -76207,7 +76273,8 @@ export interface reportsComponents {
|
|
|
76207
76273
|
updatedTime?: reportsComponents["schemas"]["UpdatedTime"];
|
|
76208
76274
|
/**
|
|
76209
76275
|
* Specifies if the file is available publicly without authentication.
|
|
76210
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
76276
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
76277
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
76211
76278
|
*/
|
|
76212
76279
|
isPublic?: boolean;
|
|
76213
76280
|
/** Related links. */
|
|
@@ -76215,7 +76282,7 @@ export interface reportsComponents {
|
|
|
76215
76282
|
/** Link URL. */
|
|
76216
76283
|
href?: string;
|
|
76217
76284
|
/** Type of link. */
|
|
76218
|
-
rel?: "self" | "download" | "signedLink" | "permalink";
|
|
76285
|
+
rel?: "self" | "download" | "signedLink" | "permalink" | "cdn";
|
|
76219
76286
|
}[];
|
|
76220
76287
|
};
|
|
76221
76288
|
FileCreateFromInline: {
|
|
@@ -76223,7 +76290,8 @@ export interface reportsComponents {
|
|
|
76223
76290
|
file: string;
|
|
76224
76291
|
/**
|
|
76225
76292
|
* Specifies if the file is available publicly without authentication.
|
|
76226
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
76293
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
76294
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
76227
76295
|
*/
|
|
76228
76296
|
isPublic?: boolean;
|
|
76229
76297
|
/** File name used for downloading. */
|
|
@@ -76247,7 +76315,8 @@ export interface reportsComponents {
|
|
|
76247
76315
|
url: string;
|
|
76248
76316
|
/**
|
|
76249
76317
|
* Specifies if the file is available publicly without authentication.
|
|
76250
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
76318
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
76319
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
76251
76320
|
*/
|
|
76252
76321
|
isPublic?: boolean;
|
|
76253
76322
|
/** File name used for downloading. */
|
|
@@ -82542,6 +82611,33 @@ export interface reportsComponents {
|
|
|
82542
82611
|
*/
|
|
82543
82612
|
billingPortalToken?: string | null;
|
|
82544
82613
|
customFields?: reportsComponents["schemas"]["ResourceCustomFields"];
|
|
82614
|
+
/** Order line items that queue until the next renewal, or interim, invoice is issued for the order. */
|
|
82615
|
+
lineItems?: {
|
|
82616
|
+
/** Type of invoice line item. */
|
|
82617
|
+
type?: "debit" | "credit";
|
|
82618
|
+
/** Description of the line item. */
|
|
82619
|
+
description?: string;
|
|
82620
|
+
/** Unit price of the line item. */
|
|
82621
|
+
unitPriceAmount?: number;
|
|
82622
|
+
unitPriceCurrency?: reportsComponents["schemas"]["CurrencyCode"];
|
|
82623
|
+
/** Quantity of the line item. */
|
|
82624
|
+
quantity?: number;
|
|
82625
|
+
/** Date and time when the service period begins for this item. */
|
|
82626
|
+
periodStartTime?: string;
|
|
82627
|
+
/** Date and time when the service period ends for this item. */
|
|
82628
|
+
periodEndTime?: string;
|
|
82629
|
+
createdTime?: reportsComponents["schemas"]["CreatedTime"];
|
|
82630
|
+
updatedTime?: reportsComponents["schemas"]["UpdatedTime"];
|
|
82631
|
+
}[];
|
|
82632
|
+
/**
|
|
82633
|
+
* Subtotal of line items in this order (signed value).
|
|
82634
|
+
* If credits exceed debits, this value is a negative number.
|
|
82635
|
+
*/
|
|
82636
|
+
lineItemSubtotal?: {
|
|
82637
|
+
currency?: reportsComponents["schemas"]["CurrencyCode"];
|
|
82638
|
+
/** Amount of the subtotal. */
|
|
82639
|
+
amount?: number;
|
|
82640
|
+
};
|
|
82545
82641
|
/** Monthly recurring revenue of the order. */
|
|
82546
82642
|
mrr?: number;
|
|
82547
82643
|
/**
|
|
@@ -2960,7 +2960,8 @@ export interface corePaths {
|
|
|
2960
2960
|
* the file body is sent as the request body, with the appropriate `Content-Type`.
|
|
2961
2961
|
* No additional properties can be set with the request data.
|
|
2962
2962
|
*
|
|
2963
|
-
* Permitted file types: `.jpg`, `.png`, `.gif`, `.webp`, and `.pdf`.
|
|
2963
|
+
* Permitted file types: `.jpg`, `.png`, `.gif`, `.webp`, `.svg`, and `.pdf`.
|
|
2964
|
+
* Scripts, event handlers, and references to external files are removed from an SVG file before it is stored.
|
|
2964
2965
|
*
|
|
2965
2966
|
* When using a publishable API key, only private files can be created.
|
|
2966
2967
|
* The files can be modified at a later point or time,
|
|
@@ -8179,6 +8180,7 @@ export interface coreComponents {
|
|
|
8179
8180
|
| "image/jpeg"
|
|
8180
8181
|
| "image/gif"
|
|
8181
8182
|
| "image/webp"
|
|
8183
|
+
| "image/svg+xml"
|
|
8182
8184
|
| "application/pdf"
|
|
8183
8185
|
| "application/json"
|
|
8184
8186
|
| "application/zip"
|
|
@@ -8206,7 +8208,8 @@ export interface coreComponents {
|
|
|
8206
8208
|
updatedTime?: coreComponents["schemas"]["UpdatedTime"];
|
|
8207
8209
|
/**
|
|
8208
8210
|
* Specifies if the file is available publicly without authentication.
|
|
8209
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
8211
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
8212
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
8210
8213
|
*/
|
|
8211
8214
|
isPublic?: boolean;
|
|
8212
8215
|
/** Related links. */
|
|
@@ -8214,7 +8217,7 @@ export interface coreComponents {
|
|
|
8214
8217
|
/** Link URL. */
|
|
8215
8218
|
href?: string;
|
|
8216
8219
|
/** Type of link. */
|
|
8217
|
-
rel?: "self" | "download" | "signedLink" | "permalink";
|
|
8220
|
+
rel?: "self" | "download" | "signedLink" | "permalink" | "cdn";
|
|
8218
8221
|
}[];
|
|
8219
8222
|
};
|
|
8220
8223
|
FileCreateFromInline: {
|
|
@@ -8222,7 +8225,8 @@ export interface coreComponents {
|
|
|
8222
8225
|
file: string;
|
|
8223
8226
|
/**
|
|
8224
8227
|
* Specifies if the file is available publicly without authentication.
|
|
8225
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
8228
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
8229
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
8226
8230
|
*/
|
|
8227
8231
|
isPublic?: boolean;
|
|
8228
8232
|
/** File name used for downloading. */
|
|
@@ -8246,7 +8250,8 @@ export interface coreComponents {
|
|
|
8246
8250
|
url: string;
|
|
8247
8251
|
/**
|
|
8248
8252
|
* Specifies if the file is available publicly without authentication.
|
|
8249
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
8253
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
8254
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
8250
8255
|
*/
|
|
8251
8256
|
isPublic?: boolean;
|
|
8252
8257
|
/** File name used for downloading. */
|
|
@@ -14541,6 +14546,33 @@ export interface coreComponents {
|
|
|
14541
14546
|
*/
|
|
14542
14547
|
billingPortalToken?: string | null;
|
|
14543
14548
|
customFields?: coreComponents["schemas"]["ResourceCustomFields"];
|
|
14549
|
+
/** Order line items that queue until the next renewal, or interim, invoice is issued for the order. */
|
|
14550
|
+
lineItems?: {
|
|
14551
|
+
/** Type of invoice line item. */
|
|
14552
|
+
type?: "debit" | "credit";
|
|
14553
|
+
/** Description of the line item. */
|
|
14554
|
+
description?: string;
|
|
14555
|
+
/** Unit price of the line item. */
|
|
14556
|
+
unitPriceAmount?: number;
|
|
14557
|
+
unitPriceCurrency?: coreComponents["schemas"]["CurrencyCode"];
|
|
14558
|
+
/** Quantity of the line item. */
|
|
14559
|
+
quantity?: number;
|
|
14560
|
+
/** Date and time when the service period begins for this item. */
|
|
14561
|
+
periodStartTime?: string;
|
|
14562
|
+
/** Date and time when the service period ends for this item. */
|
|
14563
|
+
periodEndTime?: string;
|
|
14564
|
+
createdTime?: coreComponents["schemas"]["CreatedTime"];
|
|
14565
|
+
updatedTime?: coreComponents["schemas"]["UpdatedTime"];
|
|
14566
|
+
}[];
|
|
14567
|
+
/**
|
|
14568
|
+
* Subtotal of line items in this order (signed value).
|
|
14569
|
+
* If credits exceed debits, this value is a negative number.
|
|
14570
|
+
*/
|
|
14571
|
+
lineItemSubtotal?: {
|
|
14572
|
+
currency?: coreComponents["schemas"]["CurrencyCode"];
|
|
14573
|
+
/** Amount of the subtotal. */
|
|
14574
|
+
amount?: number;
|
|
14575
|
+
};
|
|
14544
14576
|
/** Monthly recurring revenue of the order. */
|
|
14545
14577
|
mrr?: number;
|
|
14546
14578
|
/**
|
|
@@ -33401,7 +33433,8 @@ export interface operations {
|
|
|
33401
33433
|
* the file body is sent as the request body, with the appropriate `Content-Type`.
|
|
33402
33434
|
* No additional properties can be set with the request data.
|
|
33403
33435
|
*
|
|
33404
|
-
* Permitted file types: `.jpg`, `.png`, `.gif`, `.webp`, and `.pdf`.
|
|
33436
|
+
* Permitted file types: `.jpg`, `.png`, `.gif`, `.webp`, `.svg`, and `.pdf`.
|
|
33437
|
+
* Scripts, event handlers, and references to external files are removed from an SVG file before it is stored.
|
|
33405
33438
|
*
|
|
33406
33439
|
* When using a publishable API key, only private files can be created.
|
|
33407
33440
|
* The files can be modified at a later point or time,
|
|
@@ -33534,6 +33567,7 @@ export interface operations {
|
|
|
33534
33567
|
"image/png": string;
|
|
33535
33568
|
"image/gif": string;
|
|
33536
33569
|
"image/webp": string;
|
|
33570
|
+
"image/svg+xml": string;
|
|
33537
33571
|
"text/csv": string;
|
|
33538
33572
|
};
|
|
33539
33573
|
};
|
|
@@ -48568,6 +48602,7 @@ export interface storefrontComponents {
|
|
|
48568
48602
|
| "image/jpeg"
|
|
48569
48603
|
| "image/gif"
|
|
48570
48604
|
| "image/webp"
|
|
48605
|
+
| "image/svg+xml"
|
|
48571
48606
|
| "application/pdf"
|
|
48572
48607
|
| "application/json"
|
|
48573
48608
|
| "application/zip"
|
|
@@ -48595,7 +48630,8 @@ export interface storefrontComponents {
|
|
|
48595
48630
|
updatedTime?: storefrontComponents["schemas"]["UpdatedTime"];
|
|
48596
48631
|
/**
|
|
48597
48632
|
* Specifies if the file is available publicly without authentication.
|
|
48598
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
48633
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
48634
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
48599
48635
|
*/
|
|
48600
48636
|
isPublic?: boolean;
|
|
48601
48637
|
/** Related links. */
|
|
@@ -48603,7 +48639,7 @@ export interface storefrontComponents {
|
|
|
48603
48639
|
/** Link URL. */
|
|
48604
48640
|
href?: string;
|
|
48605
48641
|
/** Type of link. */
|
|
48606
|
-
rel?: "self" | "download" | "signedLink" | "permalink";
|
|
48642
|
+
rel?: "self" | "download" | "signedLink" | "permalink" | "cdn";
|
|
48607
48643
|
}[];
|
|
48608
48644
|
};
|
|
48609
48645
|
FileCreateFromInline: {
|
|
@@ -48611,7 +48647,8 @@ export interface storefrontComponents {
|
|
|
48611
48647
|
file: string;
|
|
48612
48648
|
/**
|
|
48613
48649
|
* Specifies if the file is available publicly without authentication.
|
|
48614
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
48650
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
48651
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
48615
48652
|
*/
|
|
48616
48653
|
isPublic?: boolean;
|
|
48617
48654
|
/** File name used for downloading. */
|
|
@@ -48635,7 +48672,8 @@ export interface storefrontComponents {
|
|
|
48635
48672
|
url: string;
|
|
48636
48673
|
/**
|
|
48637
48674
|
* Specifies if the file is available publicly without authentication.
|
|
48638
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
48675
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
48676
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
48639
48677
|
*/
|
|
48640
48678
|
isPublic?: boolean;
|
|
48641
48679
|
/** File name used for downloading. */
|
|
@@ -54930,6 +54968,33 @@ export interface storefrontComponents {
|
|
|
54930
54968
|
*/
|
|
54931
54969
|
billingPortalToken?: string | null;
|
|
54932
54970
|
customFields?: storefrontComponents["schemas"]["ResourceCustomFields"];
|
|
54971
|
+
/** Order line items that queue until the next renewal, or interim, invoice is issued for the order. */
|
|
54972
|
+
lineItems?: {
|
|
54973
|
+
/** Type of invoice line item. */
|
|
54974
|
+
type?: "debit" | "credit";
|
|
54975
|
+
/** Description of the line item. */
|
|
54976
|
+
description?: string;
|
|
54977
|
+
/** Unit price of the line item. */
|
|
54978
|
+
unitPriceAmount?: number;
|
|
54979
|
+
unitPriceCurrency?: storefrontComponents["schemas"]["CurrencyCode"];
|
|
54980
|
+
/** Quantity of the line item. */
|
|
54981
|
+
quantity?: number;
|
|
54982
|
+
/** Date and time when the service period begins for this item. */
|
|
54983
|
+
periodStartTime?: string;
|
|
54984
|
+
/** Date and time when the service period ends for this item. */
|
|
54985
|
+
periodEndTime?: string;
|
|
54986
|
+
createdTime?: storefrontComponents["schemas"]["CreatedTime"];
|
|
54987
|
+
updatedTime?: storefrontComponents["schemas"]["UpdatedTime"];
|
|
54988
|
+
}[];
|
|
54989
|
+
/**
|
|
54990
|
+
* Subtotal of line items in this order (signed value).
|
|
54991
|
+
* If credits exceed debits, this value is a negative number.
|
|
54992
|
+
*/
|
|
54993
|
+
lineItemSubtotal?: {
|
|
54994
|
+
currency?: storefrontComponents["schemas"]["CurrencyCode"];
|
|
54995
|
+
/** Amount of the subtotal. */
|
|
54996
|
+
amount?: number;
|
|
54997
|
+
};
|
|
54933
54998
|
/** Monthly recurring revenue of the order. */
|
|
54934
54999
|
mrr?: number;
|
|
54935
55000
|
/**
|
|
@@ -76180,6 +76245,7 @@ export interface reportsComponents {
|
|
|
76180
76245
|
| "image/jpeg"
|
|
76181
76246
|
| "image/gif"
|
|
76182
76247
|
| "image/webp"
|
|
76248
|
+
| "image/svg+xml"
|
|
76183
76249
|
| "application/pdf"
|
|
76184
76250
|
| "application/json"
|
|
76185
76251
|
| "application/zip"
|
|
@@ -76207,7 +76273,8 @@ export interface reportsComponents {
|
|
|
76207
76273
|
updatedTime?: reportsComponents["schemas"]["UpdatedTime"];
|
|
76208
76274
|
/**
|
|
76209
76275
|
* Specifies if the file is available publicly without authentication.
|
|
76210
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
76276
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
76277
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
76211
76278
|
*/
|
|
76212
76279
|
isPublic?: boolean;
|
|
76213
76280
|
/** Related links. */
|
|
@@ -76215,7 +76282,7 @@ export interface reportsComponents {
|
|
|
76215
76282
|
/** Link URL. */
|
|
76216
76283
|
href?: string;
|
|
76217
76284
|
/** Type of link. */
|
|
76218
|
-
rel?: "self" | "download" | "signedLink" | "permalink";
|
|
76285
|
+
rel?: "self" | "download" | "signedLink" | "permalink" | "cdn";
|
|
76219
76286
|
}[];
|
|
76220
76287
|
};
|
|
76221
76288
|
FileCreateFromInline: {
|
|
@@ -76223,7 +76290,8 @@ export interface reportsComponents {
|
|
|
76223
76290
|
file: string;
|
|
76224
76291
|
/**
|
|
76225
76292
|
* Specifies if the file is available publicly without authentication.
|
|
76226
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
76293
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
76294
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
76227
76295
|
*/
|
|
76228
76296
|
isPublic?: boolean;
|
|
76229
76297
|
/** File name used for downloading. */
|
|
@@ -76247,7 +76315,8 @@ export interface reportsComponents {
|
|
|
76247
76315
|
url: string;
|
|
76248
76316
|
/**
|
|
76249
76317
|
* Specifies if the file is available publicly without authentication.
|
|
76250
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
76318
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
76319
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
76251
76320
|
*/
|
|
76252
76321
|
isPublic?: boolean;
|
|
76253
76322
|
/** File name used for downloading. */
|
|
@@ -82542,6 +82611,33 @@ export interface reportsComponents {
|
|
|
82542
82611
|
*/
|
|
82543
82612
|
billingPortalToken?: string | null;
|
|
82544
82613
|
customFields?: reportsComponents["schemas"]["ResourceCustomFields"];
|
|
82614
|
+
/** Order line items that queue until the next renewal, or interim, invoice is issued for the order. */
|
|
82615
|
+
lineItems?: {
|
|
82616
|
+
/** Type of invoice line item. */
|
|
82617
|
+
type?: "debit" | "credit";
|
|
82618
|
+
/** Description of the line item. */
|
|
82619
|
+
description?: string;
|
|
82620
|
+
/** Unit price of the line item. */
|
|
82621
|
+
unitPriceAmount?: number;
|
|
82622
|
+
unitPriceCurrency?: reportsComponents["schemas"]["CurrencyCode"];
|
|
82623
|
+
/** Quantity of the line item. */
|
|
82624
|
+
quantity?: number;
|
|
82625
|
+
/** Date and time when the service period begins for this item. */
|
|
82626
|
+
periodStartTime?: string;
|
|
82627
|
+
/** Date and time when the service period ends for this item. */
|
|
82628
|
+
periodEndTime?: string;
|
|
82629
|
+
createdTime?: reportsComponents["schemas"]["CreatedTime"];
|
|
82630
|
+
updatedTime?: reportsComponents["schemas"]["UpdatedTime"];
|
|
82631
|
+
}[];
|
|
82632
|
+
/**
|
|
82633
|
+
* Subtotal of line items in this order (signed value).
|
|
82634
|
+
* If credits exceed debits, this value is a negative number.
|
|
82635
|
+
*/
|
|
82636
|
+
lineItemSubtotal?: {
|
|
82637
|
+
currency?: reportsComponents["schemas"]["CurrencyCode"];
|
|
82638
|
+
/** Amount of the subtotal. */
|
|
82639
|
+
amount?: number;
|
|
82640
|
+
};
|
|
82545
82641
|
/** Monthly recurring revenue of the order. */
|
|
82546
82642
|
mrr?: number;
|
|
82547
82643
|
/**
|
package/dist/rebilly-js-sdk.d.ts
CHANGED
|
@@ -2960,7 +2960,8 @@ export interface corePaths {
|
|
|
2960
2960
|
* the file body is sent as the request body, with the appropriate `Content-Type`.
|
|
2961
2961
|
* No additional properties can be set with the request data.
|
|
2962
2962
|
*
|
|
2963
|
-
* Permitted file types: `.jpg`, `.png`, `.gif`, `.webp`, and `.pdf`.
|
|
2963
|
+
* Permitted file types: `.jpg`, `.png`, `.gif`, `.webp`, `.svg`, and `.pdf`.
|
|
2964
|
+
* Scripts, event handlers, and references to external files are removed from an SVG file before it is stored.
|
|
2964
2965
|
*
|
|
2965
2966
|
* When using a publishable API key, only private files can be created.
|
|
2966
2967
|
* The files can be modified at a later point or time,
|
|
@@ -8179,6 +8180,7 @@ export interface coreComponents {
|
|
|
8179
8180
|
| "image/jpeg"
|
|
8180
8181
|
| "image/gif"
|
|
8181
8182
|
| "image/webp"
|
|
8183
|
+
| "image/svg+xml"
|
|
8182
8184
|
| "application/pdf"
|
|
8183
8185
|
| "application/json"
|
|
8184
8186
|
| "application/zip"
|
|
@@ -8206,7 +8208,8 @@ export interface coreComponents {
|
|
|
8206
8208
|
updatedTime?: coreComponents["schemas"]["UpdatedTime"];
|
|
8207
8209
|
/**
|
|
8208
8210
|
* Specifies if the file is available publicly without authentication.
|
|
8209
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
8211
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
8212
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
8210
8213
|
*/
|
|
8211
8214
|
isPublic?: boolean;
|
|
8212
8215
|
/** Related links. */
|
|
@@ -8214,7 +8217,7 @@ export interface coreComponents {
|
|
|
8214
8217
|
/** Link URL. */
|
|
8215
8218
|
href?: string;
|
|
8216
8219
|
/** Type of link. */
|
|
8217
|
-
rel?: "self" | "download" | "signedLink" | "permalink";
|
|
8220
|
+
rel?: "self" | "download" | "signedLink" | "permalink" | "cdn";
|
|
8218
8221
|
}[];
|
|
8219
8222
|
};
|
|
8220
8223
|
FileCreateFromInline: {
|
|
@@ -8222,7 +8225,8 @@ export interface coreComponents {
|
|
|
8222
8225
|
file: string;
|
|
8223
8226
|
/**
|
|
8224
8227
|
* Specifies if the file is available publicly without authentication.
|
|
8225
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
8228
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
8229
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
8226
8230
|
*/
|
|
8227
8231
|
isPublic?: boolean;
|
|
8228
8232
|
/** File name used for downloading. */
|
|
@@ -8246,7 +8250,8 @@ export interface coreComponents {
|
|
|
8246
8250
|
url: string;
|
|
8247
8251
|
/**
|
|
8248
8252
|
* Specifies if the file is available publicly without authentication.
|
|
8249
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
8253
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
8254
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
8250
8255
|
*/
|
|
8251
8256
|
isPublic?: boolean;
|
|
8252
8257
|
/** File name used for downloading. */
|
|
@@ -14541,6 +14546,33 @@ export interface coreComponents {
|
|
|
14541
14546
|
*/
|
|
14542
14547
|
billingPortalToken?: string | null;
|
|
14543
14548
|
customFields?: coreComponents["schemas"]["ResourceCustomFields"];
|
|
14549
|
+
/** Order line items that queue until the next renewal, or interim, invoice is issued for the order. */
|
|
14550
|
+
lineItems?: {
|
|
14551
|
+
/** Type of invoice line item. */
|
|
14552
|
+
type?: "debit" | "credit";
|
|
14553
|
+
/** Description of the line item. */
|
|
14554
|
+
description?: string;
|
|
14555
|
+
/** Unit price of the line item. */
|
|
14556
|
+
unitPriceAmount?: number;
|
|
14557
|
+
unitPriceCurrency?: coreComponents["schemas"]["CurrencyCode"];
|
|
14558
|
+
/** Quantity of the line item. */
|
|
14559
|
+
quantity?: number;
|
|
14560
|
+
/** Date and time when the service period begins for this item. */
|
|
14561
|
+
periodStartTime?: string;
|
|
14562
|
+
/** Date and time when the service period ends for this item. */
|
|
14563
|
+
periodEndTime?: string;
|
|
14564
|
+
createdTime?: coreComponents["schemas"]["CreatedTime"];
|
|
14565
|
+
updatedTime?: coreComponents["schemas"]["UpdatedTime"];
|
|
14566
|
+
}[];
|
|
14567
|
+
/**
|
|
14568
|
+
* Subtotal of line items in this order (signed value).
|
|
14569
|
+
* If credits exceed debits, this value is a negative number.
|
|
14570
|
+
*/
|
|
14571
|
+
lineItemSubtotal?: {
|
|
14572
|
+
currency?: coreComponents["schemas"]["CurrencyCode"];
|
|
14573
|
+
/** Amount of the subtotal. */
|
|
14574
|
+
amount?: number;
|
|
14575
|
+
};
|
|
14544
14576
|
/** Monthly recurring revenue of the order. */
|
|
14545
14577
|
mrr?: number;
|
|
14546
14578
|
/**
|
|
@@ -33401,7 +33433,8 @@ export interface operations {
|
|
|
33401
33433
|
* the file body is sent as the request body, with the appropriate `Content-Type`.
|
|
33402
33434
|
* No additional properties can be set with the request data.
|
|
33403
33435
|
*
|
|
33404
|
-
* Permitted file types: `.jpg`, `.png`, `.gif`, `.webp`, and `.pdf`.
|
|
33436
|
+
* Permitted file types: `.jpg`, `.png`, `.gif`, `.webp`, `.svg`, and `.pdf`.
|
|
33437
|
+
* Scripts, event handlers, and references to external files are removed from an SVG file before it is stored.
|
|
33405
33438
|
*
|
|
33406
33439
|
* When using a publishable API key, only private files can be created.
|
|
33407
33440
|
* The files can be modified at a later point or time,
|
|
@@ -33534,6 +33567,7 @@ export interface operations {
|
|
|
33534
33567
|
"image/png": string;
|
|
33535
33568
|
"image/gif": string;
|
|
33536
33569
|
"image/webp": string;
|
|
33570
|
+
"image/svg+xml": string;
|
|
33537
33571
|
"text/csv": string;
|
|
33538
33572
|
};
|
|
33539
33573
|
};
|
|
@@ -48568,6 +48602,7 @@ export interface storefrontComponents {
|
|
|
48568
48602
|
| "image/jpeg"
|
|
48569
48603
|
| "image/gif"
|
|
48570
48604
|
| "image/webp"
|
|
48605
|
+
| "image/svg+xml"
|
|
48571
48606
|
| "application/pdf"
|
|
48572
48607
|
| "application/json"
|
|
48573
48608
|
| "application/zip"
|
|
@@ -48595,7 +48630,8 @@ export interface storefrontComponents {
|
|
|
48595
48630
|
updatedTime?: storefrontComponents["schemas"]["UpdatedTime"];
|
|
48596
48631
|
/**
|
|
48597
48632
|
* Specifies if the file is available publicly without authentication.
|
|
48598
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
48633
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
48634
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
48599
48635
|
*/
|
|
48600
48636
|
isPublic?: boolean;
|
|
48601
48637
|
/** Related links. */
|
|
@@ -48603,7 +48639,7 @@ export interface storefrontComponents {
|
|
|
48603
48639
|
/** Link URL. */
|
|
48604
48640
|
href?: string;
|
|
48605
48641
|
/** Type of link. */
|
|
48606
|
-
rel?: "self" | "download" | "signedLink" | "permalink";
|
|
48642
|
+
rel?: "self" | "download" | "signedLink" | "permalink" | "cdn";
|
|
48607
48643
|
}[];
|
|
48608
48644
|
};
|
|
48609
48645
|
FileCreateFromInline: {
|
|
@@ -48611,7 +48647,8 @@ export interface storefrontComponents {
|
|
|
48611
48647
|
file: string;
|
|
48612
48648
|
/**
|
|
48613
48649
|
* Specifies if the file is available publicly without authentication.
|
|
48614
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
48650
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
48651
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
48615
48652
|
*/
|
|
48616
48653
|
isPublic?: boolean;
|
|
48617
48654
|
/** File name used for downloading. */
|
|
@@ -48635,7 +48672,8 @@ export interface storefrontComponents {
|
|
|
48635
48672
|
url: string;
|
|
48636
48673
|
/**
|
|
48637
48674
|
* Specifies if the file is available publicly without authentication.
|
|
48638
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
48675
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
48676
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
48639
48677
|
*/
|
|
48640
48678
|
isPublic?: boolean;
|
|
48641
48679
|
/** File name used for downloading. */
|
|
@@ -54930,6 +54968,33 @@ export interface storefrontComponents {
|
|
|
54930
54968
|
*/
|
|
54931
54969
|
billingPortalToken?: string | null;
|
|
54932
54970
|
customFields?: storefrontComponents["schemas"]["ResourceCustomFields"];
|
|
54971
|
+
/** Order line items that queue until the next renewal, or interim, invoice is issued for the order. */
|
|
54972
|
+
lineItems?: {
|
|
54973
|
+
/** Type of invoice line item. */
|
|
54974
|
+
type?: "debit" | "credit";
|
|
54975
|
+
/** Description of the line item. */
|
|
54976
|
+
description?: string;
|
|
54977
|
+
/** Unit price of the line item. */
|
|
54978
|
+
unitPriceAmount?: number;
|
|
54979
|
+
unitPriceCurrency?: storefrontComponents["schemas"]["CurrencyCode"];
|
|
54980
|
+
/** Quantity of the line item. */
|
|
54981
|
+
quantity?: number;
|
|
54982
|
+
/** Date and time when the service period begins for this item. */
|
|
54983
|
+
periodStartTime?: string;
|
|
54984
|
+
/** Date and time when the service period ends for this item. */
|
|
54985
|
+
periodEndTime?: string;
|
|
54986
|
+
createdTime?: storefrontComponents["schemas"]["CreatedTime"];
|
|
54987
|
+
updatedTime?: storefrontComponents["schemas"]["UpdatedTime"];
|
|
54988
|
+
}[];
|
|
54989
|
+
/**
|
|
54990
|
+
* Subtotal of line items in this order (signed value).
|
|
54991
|
+
* If credits exceed debits, this value is a negative number.
|
|
54992
|
+
*/
|
|
54993
|
+
lineItemSubtotal?: {
|
|
54994
|
+
currency?: storefrontComponents["schemas"]["CurrencyCode"];
|
|
54995
|
+
/** Amount of the subtotal. */
|
|
54996
|
+
amount?: number;
|
|
54997
|
+
};
|
|
54933
54998
|
/** Monthly recurring revenue of the order. */
|
|
54934
54999
|
mrr?: number;
|
|
54935
55000
|
/**
|
|
@@ -76180,6 +76245,7 @@ export interface reportsComponents {
|
|
|
76180
76245
|
| "image/jpeg"
|
|
76181
76246
|
| "image/gif"
|
|
76182
76247
|
| "image/webp"
|
|
76248
|
+
| "image/svg+xml"
|
|
76183
76249
|
| "application/pdf"
|
|
76184
76250
|
| "application/json"
|
|
76185
76251
|
| "application/zip"
|
|
@@ -76207,7 +76273,8 @@ export interface reportsComponents {
|
|
|
76207
76273
|
updatedTime?: reportsComponents["schemas"]["UpdatedTime"];
|
|
76208
76274
|
/**
|
|
76209
76275
|
* Specifies if the file is available publicly without authentication.
|
|
76210
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
76276
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
76277
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
76211
76278
|
*/
|
|
76212
76279
|
isPublic?: boolean;
|
|
76213
76280
|
/** Related links. */
|
|
@@ -76215,7 +76282,7 @@ export interface reportsComponents {
|
|
|
76215
76282
|
/** Link URL. */
|
|
76216
76283
|
href?: string;
|
|
76217
76284
|
/** Type of link. */
|
|
76218
|
-
rel?: "self" | "download" | "signedLink" | "permalink";
|
|
76285
|
+
rel?: "self" | "download" | "signedLink" | "permalink" | "cdn";
|
|
76219
76286
|
}[];
|
|
76220
76287
|
};
|
|
76221
76288
|
FileCreateFromInline: {
|
|
@@ -76223,7 +76290,8 @@ export interface reportsComponents {
|
|
|
76223
76290
|
file: string;
|
|
76224
76291
|
/**
|
|
76225
76292
|
* Specifies if the file is available publicly without authentication.
|
|
76226
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
76293
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
76294
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
76227
76295
|
*/
|
|
76228
76296
|
isPublic?: boolean;
|
|
76229
76297
|
/** File name used for downloading. */
|
|
@@ -76247,7 +76315,8 @@ export interface reportsComponents {
|
|
|
76247
76315
|
url: string;
|
|
76248
76316
|
/**
|
|
76249
76317
|
* Specifies if the file is available publicly without authentication.
|
|
76250
|
-
* If this value is `true`, the permalink in the `_links` section
|
|
76318
|
+
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
76319
|
+
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
76251
76320
|
*/
|
|
76252
76321
|
isPublic?: boolean;
|
|
76253
76322
|
/** File name used for downloading. */
|
|
@@ -82542,6 +82611,33 @@ export interface reportsComponents {
|
|
|
82542
82611
|
*/
|
|
82543
82612
|
billingPortalToken?: string | null;
|
|
82544
82613
|
customFields?: reportsComponents["schemas"]["ResourceCustomFields"];
|
|
82614
|
+
/** Order line items that queue until the next renewal, or interim, invoice is issued for the order. */
|
|
82615
|
+
lineItems?: {
|
|
82616
|
+
/** Type of invoice line item. */
|
|
82617
|
+
type?: "debit" | "credit";
|
|
82618
|
+
/** Description of the line item. */
|
|
82619
|
+
description?: string;
|
|
82620
|
+
/** Unit price of the line item. */
|
|
82621
|
+
unitPriceAmount?: number;
|
|
82622
|
+
unitPriceCurrency?: reportsComponents["schemas"]["CurrencyCode"];
|
|
82623
|
+
/** Quantity of the line item. */
|
|
82624
|
+
quantity?: number;
|
|
82625
|
+
/** Date and time when the service period begins for this item. */
|
|
82626
|
+
periodStartTime?: string;
|
|
82627
|
+
/** Date and time when the service period ends for this item. */
|
|
82628
|
+
periodEndTime?: string;
|
|
82629
|
+
createdTime?: reportsComponents["schemas"]["CreatedTime"];
|
|
82630
|
+
updatedTime?: reportsComponents["schemas"]["UpdatedTime"];
|
|
82631
|
+
}[];
|
|
82632
|
+
/**
|
|
82633
|
+
* Subtotal of line items in this order (signed value).
|
|
82634
|
+
* If credits exceed debits, this value is a negative number.
|
|
82635
|
+
*/
|
|
82636
|
+
lineItemSubtotal?: {
|
|
82637
|
+
currency?: reportsComponents["schemas"]["CurrencyCode"];
|
|
82638
|
+
/** Amount of the subtotal. */
|
|
82639
|
+
amount?: number;
|
|
82640
|
+
};
|
|
82545
82641
|
/** Monthly recurring revenue of the order. */
|
|
82546
82642
|
mrr?: number;
|
|
82547
82643
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(p,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],f):(p=typeof globalThis<"u"?globalThis:p||self,f(p["rebilly-js-sdk"]={},p.axios))})(this,function(p,f){Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var X=Object.create,O=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,H=Object.getOwnPropertyNames,ee=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,te=(t,e,s,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(var r=H(e),u=0,l=r.length,o;u<l;u++)o=r[u],!j.call(t,o)&&o!==s&&O(t,o,{get:(a=>e[a]).bind(null,o),enumerable:!(n=Z(e,o))||n.enumerable});return t},se=(t,e,s)=>(s=t!=null?X(ee(t)):{},te(e||!t||!t.__esModule||!j.call(t,"default")?O(s,"default",{value:t,enumerable:!0}):s,t));f=se(f);function d(t,{exclude:e=[]}={}){Object.freeze(t);const s=typeof t=="function";return Object.getOwnPropertyNames(t).forEach(n=>{(!s||n!=="caller"&&n!=="callee"&&n!=="arguments")&&t[n]!==null&&!e.includes(n)&&(typeof t[n]=="object"||typeof t[n]=="function")&&!Object.isFrozen(t[n])&&d(t[n],{exclude:e})}),t}var F=class{constructor({data:t,status:e,statusText:s,headers:n},r={}){this.response={status:e,statusText:s,headers:n},this.fields={...t},this.config=r,d(this,{exclude:["cancelToken"]})}getJSON(){return JSON.parse(JSON.stringify({fields:this.fields}))}},N={limit:"pagination-limit",offset:"pagination-offset",total:"pagination-total"},ne=class{constructor({data:t,status:e,statusText:s,headers:n},r={}){this.limit=null,this.offset=null,this.total=null,Object.keys(N).forEach(u=>{const l=n[N[u]];this[u]=l?Number(l):null}),this.response={status:e,statusText:s,headers:n},this.items=t.map(u=>new F({data:u,status:e,statusText:s,headers:n})),this.config=r,d(this,{exclude:["cancelToken"]})}getJSON(){return JSON.parse(JSON.stringify({items:this.items}))}},re=class{constructor({data:t,status:e,statusText:s,headers:n},r={}){this.response={status:e,statusText:s,headers:n},this.data=t,this.config=r}},y=class extends Error{constructor({error:t,name:e=null}){let{config:s=null,response:n=null,request:r=null,message:u=null}=t||{},l=u||"Request Error";n&&n.data&&(n.data.error?l=n.data.error:n.data.detail?l=n.data.detail:n.data.title&&(l=n.data.title)),super(l),this.name=e||"RebillyError",this.response=n,this.request=r,this.config=s,this.status=n&&n.status?n.status:null,this.statusText=n&&n.statusText?n.statusText:null,this.details=n&&n.data&&n.data.details?n.data.details:null,this.invalidFields=n&&n.data&&n.data.invalidFields?n.data.invalidFields:null}},E=class extends y{constructor(t){super({error:t,name:"RebillyRequestError"})}},ue=class extends E{constructor(t){super(t),this.name="RebillyMfaRequiredError"}},le=class extends E{constructor(t){super(t),this.name="RebillyIpNotAllowedError"}},oe=class extends y{constructor(t){super({error:t,name:"RebillyValidationError"})}},ce=class extends y{constructor(t){super({error:t,name:"RebillyNotFoundError"})}},ie=class extends y{constructor(t){super({error:t,name:"RebillyConflictError"})}},ge=class extends y{constructor(t){super({error:t,name:"RebillyForbiddenError"})}},ae=class extends y{constructor(t){super({error:t,name:"RebillyMethodNotAllowedError"})}},me=class extends y{constructor(t){super({error:t,name:"RebillyTimeoutError"})}},$e=class extends y{constructor(t){super({error:t,name:"RebillyCanceledError"})}},$={RebillyError:y,RebillyRequestError:E,RebillyMfaRequiredError:ue,RebillyIpNotAllowedError:le,RebillyValidationError:oe,RebillyNotFoundError:ce,RebillyConflictError:ie,RebillyForbiddenError:ge,RebillyMethodNotAllowedError:ae,RebillyTimeoutError:me,RebillyCanceledError:$e},he="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",pe=(t=21)=>{let e="",s=t|0;for(;s-- >0;)e+=he[Math.random()*64|0];return e},fe=class{constructor({id:t=null,created:e=null}={}){this.id=t||pe(),this.created=e||new Date().getTime(),this.cancelSource=f.default.CancelToken.source(),this.cancel=this.cancelSource.cancel,this.cancelToken=this.cancelSource.token,d(this,{exclude:["cancelSource","cancelToken","cancel"]})}},ye=class T{constructor(){if(T.instance)return T.instance;this.requests={},T.instance=this}getAll(){return Object.values(this.requests)}getById(e){return this.requests[e]}deleteById(e){this.requests[e]&&delete this.requests[e]}save(){const e=new fe;return this.requests[e.id]=e,{id:e.id,cancelToken:e.cancelToken}}},w=new ye,B=class{static cancelById=(t,e)=>{try{w.getById(t).cancel(e),w.deleteById(t)}catch{}};static cancelAll=async t=>{for(const e of w.getAll())await e.cancel(t),w.deleteById(e.id)}},Re={cancelAll:async(...t)=>await B.cancelAll(...t)},Ae=new Set(["links"]);function be(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function I(t){if(Array.isArray(t))return t.map(s=>I(s));if(!be(t))return t;const e={};for(const s of Object.keys(t))e[s]=I(t[s]);return e}var R={request:"request",response:"response"},K=t=>{if(!Object.values(R).includes(t))throw new Error(`There is no such interceptor type as "${t}"`);return!0};function S({options:t}){const e=s();function s(){return f.default.create(r())}function n(){return e}function r(){return{baseURL:u(),timeout:t.requestTimeout,headers:l()}}function u(){let c=t.isSandbox?t.apiEndpoints.sandbox:t.apiEndpoints.live;return t.apiVersion&&(c=`${c}/${t.apiVersion}`),t.organizationId&&(c=`${c}/organizations/${t.organizationId}`),`${c}`}function l(){const c={"REB-API-CONSUMER":`${["Rebilly",t.appName,"js-sdk"].filter(i=>i).join("/")}@37e5a32`};return t.apiKey&&(c["REB-APIKEY"]=t.apiKey),c}function o(){return I(e.defaults.headers)}function a(c){t.requestTimeout=Number(c),e.defaults.timeout=t.requestTimeout}function h(c=t.jwt){const i=o();t.apiKey=null,t.jwt=c,delete i.common["REB-APIKEY"],i.common.Authorization=`Bearer ${c}`,e.defaults.headers=i}function q(c=t.publishableKey){const i=o();t.publishableKey=c,i.common.Authorization=`${c}`,e.defaults.headers=i}function x({host:c,port:i,auth:g}){e.defaults.proxy={host:c,port:i,auth:g}}function D({live:c=null,sandbox:i=null}){c&&(t.apiEndpoints.live=c),i&&(t.apiEndpoints.sandbox=i),e.defaults.baseURL=u()}function _(c,{thenDelegate:i,catchDelegate:g=()=>{}}){return K(c)&&e.interceptors[R[c]].use(i,g)}function z(c,i){return K(c)&&e.interceptors[R[c]].eject(i)}function Js({thenDelegate:c,catchDelegate:i=()=>{}}){return _(R.request,{thenDelegate:c,catchDelegate:i})}function Ws(c){z(R.request,c)}function Ys({thenDelegate:c,catchDelegate:i=()=>{}}){return _(R.response,{thenDelegate:c,catchDelegate:i})}function Qs(c){z(R.response,c)}function k({request:c,isCollection:i,config:g}){const m=U(g),{id:v,cancelToken:nn}=w.save();m.cancelToken=nn;const G=async function(){try{return Gs({response:await c(m),isCollection:i,config:m})}catch(M){return V({error:M,config:m})}finally{w.deleteById(v)}}();return G.cancel=M=>B.cancelById(v,M),G}function Gs({response:c,isCollection:i,config:g}){return i?new ne(c,g):new F(c,g)}function V({error:c}){if(f.default.isCancel(c))throw new $.RebillyCanceledError(c);if(c.response)switch(Number(c.response.status)){case 401:throw new $.RebillyForbiddenError(c);case 403:throw c.response.data?.error==="mfa_required"?new $.RebillyMfaRequiredError(c):c.response.data?.error==="ip_not_allowed"?new $.RebillyIpNotAllowedError(c):new $.RebillyRequestError(c);case 404:throw new $.RebillyNotFoundError(c);case 405:throw new $.RebillyMethodNotAllowedError(c);case 409:throw new $.RebillyConflictError(c);case 422:throw new $.RebillyValidationError(c);default:throw new $.RebillyRequestError(c)}throw c.code==="ECONNABORTED"?new $.RebillyTimeoutError(c):new $.RebillyRequestError(c)}function Xs(c){return c.params!==void 0&&(c.params=Object.keys(c.params).filter(i=>c.params[i]!==null&&(Ae.has(i)||c.params[i]!=="")&&!(i==="sort"&&c.params[i]?.length===0)).reduce((i,g)=>{const m=c.params[g];return i[g]=g==="sort"&&Array.isArray(m)?m.join(","):m,i},{})),c}function U(c={}){return{...Xs(c)}}function J(c,i={}){return k({request:g=>e.get(c,g),config:{params:i}})}function Zs(c,i){return k({request:g=>e.get(c,g),config:{params:i},isCollection:!0})}function W(c,i,g={}){let m={};return g.authenticate===!1&&(m={headers:o()},delete m.headers.common["REB-APIKEY"],delete m.headers.common.Authorization),g.params&&(m.params={...g.params}),k({request:v=>e.post(c,i,v),config:m})}function Y(c,i,g={}){return k({request:m=>e.put(c,i,m),config:{params:g}})}function Hs(c,i){return k({request:g=>e.patch(c,i,g),config:{}})}function Q(c,i=null){return k({request:g=>e.delete(c,g),config:i!=null?{data:i}:{}})}function en(c,i){return Q(c,i)}async function tn(c,i,g,m={}){if(i==="")return W(c,g,{params:m});try{if((await J(c)).response.status===200)throw new $.RebillyConflictError({message:"A resource already exists with this ID. Please use a different ID."})}catch(v){if(v.name==="RebillyNotFoundError")return Y(c,g,m);throw v}}async function sn(c,i){const g=U(i);try{const m=await e.get(c,g);return new re(m,g)}catch(m){return V({error:m,config:g})}}return{getInstance:n,addRequestInterceptor:Js,removeRequestInterceptor:Ws,addResponseInterceptor:Ys,removeResponseInterceptor:Qs,setTimeout:a,setProxyAgent:x,setSessionToken:h,setPublishableKey:q,setEndpoints:D,get:J,getAll:Zs,post:W,put:Y,patch:Hs,delete:Q,deleteAll:en,create:tn,download:sn}}function ve({apiHandler:t}){return{forgotPassword({data:e}){return t.post("forgot-password",e,{authenticate:!1})}}}function we({apiHandler:t}){return{getAllowlistCollection({filter:e=null,sort:s=null,limit:n=null,offset:r=null}={}){const u={filter:e,sort:s,limit:n,offset:r};return t.getAll("allowlists",u)},storeAllowlist({data:e}){return t.post("allowlists",e)},getAllowlist({id:e}){return t.get(`allowlists/${e}`)},delete({id:e}){return t.delete(`allowlists/${e}`)}}}function ke({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("aml-checks",l)},get({id:e}){return t.get(`aml-checks/${e}`)},startReview({id:e}){return t.post(`aml-checks/${e}/start-review`)},stopReview({id:e}){return t.post(`aml-checks/${e}/stop-review`)},review({id:e,data:s}){return t.post(`aml-checks/${e}/review`,s)}}}function qe({apiHandler:t}){return{getAmlSettings(){return t.get("aml-settings")},putAmlSettings({data:e}){return t.put("aml-settings",e)}}}function de({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null}={}){const u={filter:e,sort:s,limit:n,offset:r};return t.getAll("api-keys",u)},create({id:e="",data:s}){return t.create(`api-keys/${e}`,e,s)},get({id:e}){return t.get(`api-keys/${e}`)},update({id:e,data:s}){return t.put(`api-keys/${e}`,s)},delete({id:e}){return t.delete(`api-keys/${e}`)}}}function Te({apiHandler:t}){return{get({applicationId:e}){return t.get(`application-instances/${e}`)},upsert({applicationId:e,data:s}){return t.put(`application-instances/${e}`,s)},delete({applicationId:e}){return t.delete(`application-instances/${e}`)},getConfiguration({applicationId:e}){return t.get(`application-instances/${e}/configuration`)},upsertConfiguration({applicationId:e,data:s}){return t.put(`application-instances/${e}/configuration`,s)}}}function Ee({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,expand:u=null,fields:l=null,sort:o=null}={}){const a={limit:e,offset:s,filter:n,q:r,expand:u,fields:l,sort:o};return t.getAll("applications",a)},create({data:e}){return t.post("applications",e)},get({id:e}){return t.get(`applications/${e}`)},getInstances({id:e,limit:s=null,offset:n=null}){const r={limit:s,offset:n};return t.getAll(`applications/${e}/instances`,r)},getInstance({id:e,organizationId:s}){return t.get(`applications/${e}/instances/${s}`)}}}function Ie({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("balance-transactions",u)},get({id:e}){return t.get(`balance-transactions/${e}`)}}}function Se({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("billing-portals",l)},create({id:e="",data:s}){return t.create(`billing-portals/${e}`,e,s)},get({id:e}){return t.get(`billing-portals/${e}`)},update({id:e,data:s}){return t.put(`billing-portals/${e}`,s)},delete({id:e}){return t.delete(`billing-portals/${e}`)}}}function Pe({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("blocklists",l)},create({id:e="",data:s}){return t.create(`blocklists/${e}`,e,s)},get({id:e}){return t.get(`blocklists/${e}`)},delete({id:e}){return t.delete(`blocklists/${e}`)}}}function Ce({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null}={}){const u={limit:e,offset:s,sort:n,filter:r};return t.getAll("broadcast-messages",u)},create({data:e}){return t.post("broadcast-messages",e)},get({id:e}){return t.get(`broadcast-messages/${e}`)},delete({id:e}){return t.delete(`broadcast-messages/${e}`)},update({id:e,data:s}){return t.patch(`broadcast-messages/${e}`,s)}}}function xe({apiHandler:t}){return{create({data:e}){return t.post("cashiers",e)},get({id:e}){return t.get(`cashiers/${e}`)}}}function De({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("checkout-forms",l)},create({id:e="",data:s}){return t.create(`checkout-forms/${e}`,e,s)},get({id:e}){return t.get(`checkout-forms/${e}`)},update({id:e,data:s}){return t.put(`checkout-forms/${e}`,s)},delete({id:e}){return t.delete(`checkout-forms/${e}`)}}}function Me({apiHandler:t}){return{getAllRedemptions({limit:e=null,offset:s=null,filter:n=null,q:r=null,sort:u=null}={}){const l={limit:e,offset:s,filter:n,q:r,sort:u};return t.getAll("coupons-redemptions",l)},redeem({data:e}){return t.post("coupons-redemptions",e)},getRedemption({id:e}){return t.get(`coupons-redemptions/${e}`)},cancelRedemption({id:e}){return t.post(`coupons-redemptions/${e}/cancel`)},getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,sort:u=null}={}){const l={limit:e,offset:s,filter:n,q:r,sort:u};return t.getAll("coupons",l)},create({id:e="",data:s}){return t.create(`coupons/${e}`,e,s)},get({id:e}){return t.get(`coupons/${e}`)},update({id:e,data:s}){return t.put(`coupons/${e}`,s)},setExpiration({id:e,data:s}){return t.post(`coupons/${e}/expiration`,s)}}}var A={Accept:"application/pdf"};function Oe({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("credit-memos",o)},create({id:e="",data:s}){return t.create(`credit-memos/${e}`,e,s)},get({id:e}){return t.get(`credit-memos/${e}`)},update({id:e,data:s}){return t.put(`credit-memos/${e}`,s)},patch({id:e,data:s}){return t.patch(`credit-memos/${e}`,s)},void({id:e}){return t.post(`credit-memos/${e}/void`)},refund({id:e}){return t.post(`credit-memos/${e}/refund`)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`credit-memos/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`credit-memos/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`credit-memos/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`credit-memos/${e}/timeline/${s}`)},downloadPDF({id:e}){const s={headers:A,responseType:"arraybuffer"};return t.download(`credit-memos/${e}`,s)}}}function je({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("custom-domains",l)},create({data:e}){return t.post("custom-domains",e)},get({domain:e}){return t.get(`custom-domains/${e}`)},delete({domain:e}){return t.delete(`custom-domains/${e}`)}}}function Fe({apiHandler:t}){return{getAll({resource:e,limit:s=null,offset:n=null}){const r={limit:s,offset:n};return t.getAll(`custom-fields/${e}`,r)},get({resource:e,name:s}){return t.get(`custom-fields/${e}/${s}`)},create({resource:e,name:s,data:n}){return t.put(`custom-fields/${e}/${s}`,n)},update({resource:e,name:s,data:n}){return t.put(`custom-fields/${e}/${s}`,n)}}}function Ne({apiHandler:t}){return{getAuthOptions(){return t.get("authentication-options")},updateAuthOptions({data:e}){return t.put("authentication-options",e)},getAllAuthTokens({limit:e=null,offset:s=null}={}){const n={limit:e,offset:s};return t.getAll("authentication-tokens",n)},login({data:e}){return t.post("authentication-tokens",e)},verify({token:e}){return t.get(`authentication-tokens/${e}`)},logout({token:e}){return t.delete(`authentication-tokens/${e}`)},exchangeToken({token:e,data:s}){return t.post(`authentication-tokens/${e}/exchange`,s)},getAllCredentials({limit:e=null,offset:s=null}={}){const n={limit:e,offset:s};return t.getAll("credentials",n)},createCredential({id:e="",data:s}){return t.create(`credentials/${e}`,e,s)},getCredential({id:e}){return t.get(`credentials/${e}`)},updateCredential({id:e,data:s}){return t.put(`credentials/${e}`,s)},deleteCredential({id:e}){return t.delete(`credentials/${e}`)},getAllResetPasswordTokens({limit:e=null,offset:s=null}={}){const n={limit:e,offset:s};return t.getAll("password-tokens",n)},createResetPasswordToken({data:e}){return t.post("password-tokens",e)},getResetPasswordToken({id:e}){return t.get(`password-tokens/${e}`)},deleteResetPasswordToken({id:e}){return t.delete(`password-tokens/${e}`)}}}function Be({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,expand:u=null,fields:l=null,sort:o=null}={}){const a={limit:e,offset:s,filter:n,q:r,expand:u,fields:l,sort:o};return t.getAll("customers",a)},create({id:e="",data:s,expand:n=null}){const r={expand:n};return t.create(`customers/${e}`,e,s,r)},get({id:e,expand:s=null,fields:n=null}){const r={expand:s,fields:n};return t.get(`customers/${e}`,r)},update({id:e,data:s,expand:n=null}){const r={expand:n};return t.put(`customers/${e}`,s,r)},merge({id:e,targetCustomerId:s}){return t.delete(`customers/${e}?targetCustomerId=${s}`)},getLeadSource({id:e}){return t.get(`customers/${e}/lead-source`)},createLeadSource({id:e,data:s}){return t.put(`customers/${e}/lead-source`,s)},updateLeadSource({id:e,data:s}){return t.put(`customers/${e}/lead-source`,s)},deleteLeadSource({id:e}){return t.delete(`customers/${e}/lead-source`)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`customers/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`customers/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`customers/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`customers/${e}/timeline/${s}`)},getCustomerCreditBalance({id:e}){return t.get(`customers/${e}/credit-balance`)},generateComplianceScreeningReport({id:e}){return t.post(`customers/${e}/compliance-screening-report`)}}}function Ke({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,expand:u=null}={}){const l={limit:e,offset:s,filter:n,sort:r,expand:u};return t.getAll("deposit-requests",l)},create({data:e}){return t.post("deposit-requests",e)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`deposit-requests/${e}`,n)}}}function Le({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("deposit-strategies",u)},create({id:e="",data:s}){return t.create(`deposit-strategies/${e}`,e,s)},get({id:e}){return t.get(`deposit-strategies/${e}`)},update({id:e,data:s}){return t.put(`deposit-strategies/${e}`,s)},delete({id:e}){return t.delete(`deposit-strategies/${e}`)}}}function _e({apiHandler:t}){return{validate({data:e}){return t.post("digital-wallets/validation",e)},getApplePayDomains(){return t.get("digital-wallets/onboarding/apple-pay")},create({data:e}){return t.post("digital-wallets/onboarding/apple-pay",e)},deleteApplePayDomain({domain:e}){return t.delete(`digital-wallets/onboarding/apple-pay/${e}`)}}}function ze({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("disputes",o)},create({id:e="",data:s,expand:n=null}){const r={expand:n};return t.create(`disputes/${e}`,e,s,r)},get({id:e}){return t.get(`disputes/${e}`)},update({id:e,data:s,expand:n=null}){const r={expand:n};return t.put(`disputes/${e}`,s,r)}}}function Ve({apiHandler:t}){return{verify({token:e}){return t.put(`email-delivery-setting-verifications/${e}`)},getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,q:u=null}={}){const l={limit:e,offset:s,filter:n,sort:r,q:u};return t.getAll("email-delivery-settings",l)},create({data:e}){return t.post("email-delivery-settings",e)},get({id:e}){return t.get(`email-delivery-settings/${e}`)},delete({id:e}){return t.delete(`email-delivery-settings/${e}`)},update({id:e,data:s}){return t.patch(`email-delivery-settings/${e}`,s)},resendVerification({id:e}){return t.post(`email-delivery-settings/${e}/resend-email-verification`)}}}function Ue({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,q:n=null,sort:r=null,filter:u=null}={}){const l={limit:e,offset:s,q:n,sort:r,filter:u};return t.getAll("email-messages",l)},create({data:e}){return t.post("email-messages",e)},get({id:e}){return t.get(`email-messages/${e}`)},delete({id:e}){return t.delete(`email-messages/${e}`)},send({id:e,data:s={status:"outbox"}}){return t.patch(`email-messages/${e}`,s)}}}function Je({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const n={limit:e,offset:s};return t.getAll("email-notifications",n)}}}function We({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null}={}){const u={limit:e,offset:s,filter:n,q:r};return t.getAll("events",u)},get({eventType:e}){return t.get(`events/${e}`)},getRules({eventType:e}){return t.get(`events/${e}/rules`)},createRules({eventType:e,data:s}){return t.put(`events/${e}/rules`,s)},updateRules({eventType:e,data:s}){return t.put(`events/${e}/rules`,s)},getAllTimelineMessages({eventType:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`events/${e}/timeline`,o)},createTimelineComment({eventType:e,data:s}){return t.post(`events/${e}/timeline`,s)},getTimelineMessage({eventType:e,messageId:s}){return t.get(`events/${e}/timeline/${s}`)},deleteTimelineMessage({eventType:e,messageId:s}){return t.delete(`events/${e}/timeline/${s}`)},getRulesHistory({eventType:e,limit:s=null,offset:n=null,filter:r=null,q:u=null,sort:l=null,fields:o=null}){const a={limit:s,offset:n,filter:r,q:u,sort:l,fields:o};return t.getAll(`events/${e}/rules/history`,a)},getRulesVersionNumber({eventType:e,version:s,fields:n=null}){const r={fields:n};return t.get(`events/${e}/rules/history/${s}`,r)},getRulesVersionDetail({eventType:e,version:s,fields:n=null}){const r={fields:n};return t.get(`events/${e}/rules/versions/${s}`,r)},getAllDraftRulesets({eventType:e,limit:s=null,offset:n=null,filter:r=null,q:u=null,sort:l=null,fields:o=null}){const a={limit:s,offset:n,filter:r,q:u,sort:l,fields:o};return t.getAll(`events/${e}/rules/drafts`,a)},createDraftRuleset({eventType:e,data:s}){return t.post(`events/${e}/rules/drafts`,s)},getDraftRuleset({eventType:e,id:s,fields:n=null}){const r={fields:n};return t.get(`events/${e}/rules/drafts/${s}`,r)},updateDraftRuleset({eventType:e,id:s,data:n}){return t.put(`events/${e}/rules/drafts/${s}`,n)},deleteDraftRuleset({eventType:e,id:s}){return t.delete(`events/${e}/rules/drafts/${s}`)}}}function Ye({apiHandler:t}){return{get({resource:e,resourceId:s,service:n}){return t.get(`${e}/${s}/external-identifiers/${n}`)},sync({resource:e,resourceId:s,service:n}){return t.post(`${e}/${s}/external-identifiers/${n}`)},update({resource:e,resourceId:s,service:n,data:r}){return t.put(`${e}/${s}/external-identifiers/${n}`,r)},delete({resource:e,resourceId:s,service:n}){return t.delete(`${e}/${s}/external-identifiers/${n}`)}}}function Qe({apiHandler:t}){return{getExternalServiceSettings(){return t.get("external-services-settings")},updateExternalServiceSettings({data:e}){return t.put("external-services-settings",e)}}}function Ge({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("fees",u)},create({id:e="",data:s}){return t.create(`fees/${e}`,e,s)},get({id:e}){return t.get(`fees/${e}`)},upsert({id:e,data:s}){return t.put(`fees/${e}`,s)},delete({id:e}){return t.delete(`fees/${e}`)},patch({id:e,data:s}){return t.patch(`fees/${e}`,s)}}}function Xe({apiHandler:t}){return{getAllAttachments({limit:e=null,offset:s=null,filter:n=null,q:r=null,fields:u=null,sort:l=null}={}){const o={limit:e,offset:s,filter:n,q:r,fields:u,sort:l};return t.getAll("attachments",o)},attach({id:e="",data:s}){return t.create(`attachments/${e}`,e,s)},getAttachment({id:e}){return t.get(`attachments/${e}`)},updateAttachment({id:e,data:s}){return t.put(`attachments/${e}`,s)},detach({id:e}){return t.delete(`attachments/${e}`)},getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,fields:u=null,sort:l=null}={}){const o={limit:e,offset:s,filter:n,q:r,fields:u,sort:l};return t.getAll("files",o)},upload({fileObject:e}){return t.post("files",e)},get({id:e}){return t.get(`files/${e}`)},update({id:e,data:s}){return t.put(`files/${e}`,s)},delete({id:e}){return t.delete(`files/${e}`)},download({id:e}){return t.download(`files/${e}/download`,{responseType:"arraybuffer"})},detachAndDelete({id:e}){const s={filter:`fileId:${e}`};let n=[];const u=(async()=>{const l=this.getAllAttachments(s);n.push(l);const o=(await l).items.map(h=>this.detach({id:h.fields.id}));n=[...n,o],await Promise.all(o);const a=t.delete(`files/${e}`);return n.push(a),a})();return u.cancel=()=>{n.forEach(l=>l.cancel())},u},uploadAndUpdate({fileObject:e,data:s={description:"",tags:[""]}}){const n=[],u=(async()=>{const l=this.upload({fileObject:e});n.push(l),await l;const o={name:l.name,extension:l.extension,description:s.description,tags:s.tags,url:""},a=this.update({id:l.fields.id,data:o});return n.push(a),a})();return u.cancel=()=>{n.forEach(l=>l.cancel())},u}}}function Ze({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null,fields:l=null}={}){const o={limit:e,offset:s,sort:n,filter:r,q:u,fields:l};return t.getAll("gateway-accounts",o)},create({id:e="",data:s}){return t.create(`gateway-accounts/${e}`,e,s)},get({id:e}){return t.get(`gateway-accounts/${e}`)},upsert({id:e,data:s}){return t.put(`gateway-accounts/${e}`,s)},delete({id:e}){return t.delete(`gateway-accounts/${e}`)},update({id:e,data:s}){return t.patch(`gateway-accounts/${e}`,s)},close({id:e}){return t.post(`gateway-accounts/${e}/close`)},disable({id:e}){return t.post(`gateway-accounts/${e}/disable`)},getAllDowntimeSchedules({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null}){const l={limit:s,offset:n,filter:r,sort:u};return t.getAll(`gateway-accounts/${e}/downtime-schedules`,l)},createDowntimeSchedule({id:e,data:s}){return t.post(`gateway-accounts/${e}/downtime-schedules`,s)},getDowntimeSchedule({id:e,downtimeId:s}){return t.get(`gateway-accounts/${e}/downtime-schedules/${s}`)},updateDowntimeSchedule({id:e,downtimeId:s,data:n}){return t.put(`gateway-accounts/${e}/downtime-schedules/${s}`,n)},deleteDowntimeSchedule({id:e,downtimeId:s}){return t.delete(`gateway-accounts/${e}/downtime-schedules/${s}`)},enable({id:e}){return t.post(`gateway-accounts/${e}/enable`)},getAllVolumeLimits({id:e}){return t.getAll(`gateway-accounts/${e}/limits`)},getVolumeLimit({id:e,limitId:s}){return t.get(`gateway-accounts/${e}/limits/${s}`)},updateVolumeLimit({id:e,limitId:s,data:n}){return t.put(`gateway-accounts/${e}/limits/${s}`,n)},deleteVolumeLimit({id:e,limitId:s}){return t.delete(`gateway-accounts/${e}/limits/${s}`)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`gateway-accounts/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`gateway-accounts/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`gateway-accounts/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`gateway-accounts/${e}/timeline/${s}`)},checkCredentials({id:e}){return t.post(`gateway-accounts/${e}/check-credentials`)},getFinancialSettings({id:e}){return t.get(`gateway-accounts/${e}/financial-settings`)},setFinancialSettings({id:e,data:s}){return t.put(`gateway-accounts/${e}/financial-settings`,s)}}}function He({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const n={limit:e,offset:s};return t.getAll("integrations",n)},get({label:e}){return t.get(`integrations/${e}`)}}}function et({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("invoices",o)},create({id:e="",data:s}){return t.create(`invoices/${e}`,e,s)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`invoices/${e}`,n)},update({id:e,data:s}){return t.put(`invoices/${e}`,s)},getAllInvoiceItems({id:e,limit:s=null,offset:n=null,expand:r=null}){const u={limit:s,offset:n,expand:r};return t.getAll(`invoices/${e}/items`,u)},createInvoiceItem({id:e,data:s}){return t.post(`invoices/${e}/items`,s)},getInvoiceItem({id:e,itemId:s}){return t.get(`invoices/${e}/items/${s}`)},updateInvoiceItem({id:e,itemId:s,data:n}){return t.put(`invoices/${e}/items/${s}`,n)},deleteInvoiceItem({id:e,itemId:s}){return t.delete(`invoices/${e}/items/${s}`)},issue({id:e,data:s}){return t.post(`invoices/${e}/issue`,s)},abandon({id:e}){return t.post(`invoices/${e}/abandon`)},void({id:e}){return t.post(`invoices/${e}/void`)},recalculate({id:e}){return t.post(`invoices/${e}/recalculate`)},reissue({id:e,data:s}){return t.post(`invoices/${e}/reissue`,s)},getAllTransactionAllocations({id:e,limit:s=null,offset:n=null}){const r={limit:s,offset:n};return t.getAll(`invoices/${e}/transaction-allocations`,r)},allocateCreditBalance({id:e,data:s}){return t.post(`invoices/${e}/allocate-credit-balance`,s)},applyTransaction({id:e,data:s}){return t.post(`invoices/${e}/transaction`,s)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`invoices/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`invoices/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`invoices/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`invoices/${e}/timeline/${s}`)},downloadPDF({id:e}){const s={headers:A,responseType:"arraybuffer"};return t.download(`invoices/${e}`,s)}}}function tt({apiHandler:t}){return{getAllAccounts({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("journal-accounts",u)},createAccount({id:e="",data:s}){return t.create(`journal-accounts/${e}`,e,s)},getAccount({id:e}){return t.get(`journal-accounts/${e}`)},updateAccount({id:e,data:s}){return t.put(`journal-accounts/${e}`,s)}}}function st({apiHandler:t}){return{getAllEntries({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("journal-entries",u)},createEntry({id:e="",data:s}){return t.create(`journal-entries/${e}`,e,s)},getEntry({id:e}){return t.get(`journal-entries/${e}`)},updateEntry({id:e,data:s}){return t.put(`journal-entries/${e}`,s)}}}function nt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,expand:u=null}={}){const l={limit:e,offset:s,filter:n,sort:r,expand:u};return t.getAll("journal-records",l)},create({id:e="",data:s}){return t.create(`journal-records/${e}`,e,s)},get({id:e}){return t.get(`journal-records/${e}`)},update({id:e,data:s}){return t.put(`journal-records/${e}`,s)},delete({id:e}){return t.delete(`journal-records/${e}`)}}}function rt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,expand:u=null}={}){const l={limit:e,offset:s,filter:n,sort:r,expand:u};return t.getAll("kyc-documents",l)},create({id:e="",data:s}){return t.create(`kyc-documents/${e}`,e,s)},get({id:e}){return t.get(`kyc-documents/${e}`)},update({id:e,data:s}){return t.put(`kyc-documents/${e}`,s)},accept({id:e}){return t.post(`kyc-documents/${e}/acceptance`)},matches({id:e,data:s}){return t.post(`kyc-documents/${e}/matches`,s)},reject({id:e,data:s}){return t.post(`kyc-documents/${e}/rejection`,s)},review({id:e}){return t.post(`kyc-documents/${e}/review`)},startReview({id:e}){return t.post(`kyc-documents/${e}/start-review`)},stopReview({id:e}){return t.post(`kyc-documents/${e}/stop-review`)}}}function ut({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,expand:u=null}={}){const l={limit:e,offset:s,filter:n,sort:r,expand:u};return t.getAll("kyc-requests",l)},create({data:e}){return t.post("kyc-requests",e)},get({id:e}){return t.get(`kyc-requests/${e}`)},delete({id:e}){return t.delete(`kyc-requests/${e}`)},update({id:e,data:s}){return t.patch(`kyc-requests/${e}`,s)}}}function lt({apiHandler:t}){return{getKycSettings(){return t.get("kyc-settings")},updateKycSettings({data:e}){return t.put("kyc-settings",e)}}}function ot({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,fields:u=null,q:l=null}={}){const o={limit:e,offset:s,filter:n,sort:r,fields:u,q:l};return t.getAll("lists",o)},create({id:e="",data:s}){return t.create(`lists/${e}`,e,s)},getLatestVersion({id:e}){return t.get(`lists/${e}`)},update({id:e,data:s}){return t.put(`lists/${e}`,s)},delete({id:e}){return t.delete(`lists/${e}`)},getByVersion({id:e,version:s}){return t.get(`lists/${e}/${s}`)}}}function ct({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("order-cancellations",u)},create({id:e="",data:s}){return t.create(`order-cancellations/${e}`,e,s)},get({id:e}){return t.get(`order-cancellations/${e}`)},update({id:e,data:s}){return t.put(`order-cancellations/${e}`,s)},delete({id:e}){return t.delete(`order-cancellations/${e}`)},patch({id:e,data:s}){return t.patch(`order-cancellations/${e}`,s)}}}function it({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("order-changes",u)},create({id:e="",data:s}){return t.create(`order-changes/${e}`,e,s)},get({id:e}){return t.get(`order-changes/${e}`)},update({id:e,data:s}){return t.put(`order-changes/${e}`,s)},delete({id:e}){return t.delete(`order-changes/${e}`)}}}function gt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("order-pauses",u)},pause({id:e="",data:s}){return t.create(`order-pauses/${e}`,e,s)},get({id:e}){return t.get(`order-pauses/${e}`)},update({id:e,data:s}){return t.put(`order-pauses/${e}`,s)},delete({id:e}){return t.delete(`order-pauses/${e}`)}}}function at({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("order-reactivations",u)},reactivate({data:e}){return t.post("order-reactivations",e)},get({id:e}){return t.get(`order-reactivations/${e}`)}}}function mt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("orders",o)},create({id:e="",data:s,expand:n=null}){const r={expand:n};return t.create(`orders/${e}`,e,s,r)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`orders/${e}`,n)},update({id:e,data:s,expand:n=null}){const r={expand:n};return t.put(`orders/${e}`,s,r)},getUpcomingInvoice({id:e,expand:s=null}){const n={expand:s};return t.get(`orders/${e}/upcoming-invoice`,n)},void({id:e}){return t.post(`orders/${e}/void`)},changeItems({id:e,data:s,expand:n=null}){const r={expand:n};return t.post(`orders/${e}/change-items`,s,r)},updateItem({id:e,itemId:s,data:n}){return t.patch(`orders/${e}/items/${s}`,n)},createInterimInvoice({id:e,data:s}){return t.post(`orders/${e}/interim-invoice`,s)},issueEarlyUpcomingInvoice({id:e,data:s}){return t.post(`orders/${e}/upcoming-invoice/issue`,s)}}}function $t({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,sort:u=null}={}){const l={limit:e,offset:s,filter:n,q:r,sort:u};return t.getAll("organization-exports",l)},create({data:e}){return t.post("organization-exports",e)},get({id:e}){return t.get(`organization-exports/${e}`)}}}function ht({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,q:u=null}={}){const l={limit:e,offset:s,filter:n,sort:r,q:u};return t.getAll("organizations",l)},create({data:e}){return t.post("organizations",e)},get({id:e}){return t.get(`organizations/${e}`)},update({id:e,data:s}){return t.patch(`organizations/${e}`,s)}}}function pt({apiHandler:t}){return{getAll({limit:e=null,q:s=null}={}){const n={limit:e,q:s};return t.getAll("payment-cards-bank-names",n)}}}function ft({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("payment-instruments",o)},create({data:e}){return t.post("payment-instruments",e)},get({id:e}){return t.get(`payment-instruments/${e}`)},update({id:e,data:s}){return t.patch(`payment-instruments/${e}`,s)},deactivate({id:e}){return t.post(`payment-instruments/${e}/deactivation`)},nameInquiry({id:e,data:s}){return t.post(`payment-instruments/${e}/name-inquiry`,s)}}}function yt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const n={limit:e,offset:s};return t.getAll("payment-methods",n)},get({apiName:e}){return t.get(`payment-methods/${e}`)}}}function Rt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const n={limit:e,offset:s};return t.getAll("tokens",n)},create({data:e}){return t.post("tokens",e)},get({token:e}){return t.get(`tokens/${e}`)}}}function At({apiHandler:t}){return{create({data:e}){return t.post("payout-request-allocation-operations",e)}}}function bt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("payout-request-allocations",u)},create({data:e}){return t.post("payout-request-allocations",e)},get({id:e}){return t.get(`payout-request-allocations/${e}`)},update({id:e,data:s}){return t.patch(`payout-request-allocations/${e}`,s)}}}function vt({apiHandler:t}){return{create({data:e}){return t.post("payout-request-auto-allocations",e)}}}function wt({apiHandler:t}){return{create({data:e}){return t.post("payout-request-batch-operations",e)}}}function kt({apiHandler:t}){return{create({data:e}){return t.post("payout-request-batch-previews",e)}}}function qt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,q:n=null,filter:r=null,sort:u=null}={}){const l={limit:e,offset:s,q:n,filter:r,sort:u};return t.getAll("payout-request-batches",l)},create({data:e}){return t.post("payout-request-batches",e)},get({id:e}){return t.get(`payout-request-batches/${e}`)},delete({id:e}){return t.delete(`payout-request-batches/${e}`)},patch({id:e,data:s}){return t.patch(`payout-request-batches/${e}`,s)}}}function dt({apiHandler:t}){return{create({data:e}){return t.post("payout-request-splits",e)}}}function Tt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("payout-requests",u)},create({id:e="",data:s}){return t.create(`payout-requests/${e}`,e,s)},get({id:e}){return t.get(`payout-requests/${e}`)},update({id:e,data:s}){return t.put(`payout-requests/${e}`,s)},patch({id:e,data:s}){return t.patch(`payout-requests/${e}`,s)},getPaymentInstruments({id:e}){return t.get(`payout-requests/${e}/payment-instruments`)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`payout-requests/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`payout-requests/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`payout-requests/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`payout-requests/${e}/timeline/${s}`)}}}function Et({apiHandler:t}){return{create({data:e}){return t.post("payouts",e)}}}function It({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null}={}){const l={filter:e,sort:s,limit:n,offset:r,q:u};return t.getAll("plans",l)},create({id:e="",data:s}){return t.create(`plans/${e}`,e,s)},get({id:e}){return t.get(`plans/${e}`)},update({id:e,data:s}){return t.put(`plans/${e}`,s)},delete({id:e}){return t.delete(`plans/${e}`)}}}function St({apiHandler:t}){return{order({data:e}){return t.post("previews/orders",e)},sendEmailRuleAction({data:e}){return t.post("previews/rule-actions/send-email",e)},webhook({data:e}){return t.post("previews/webhooks",e)}}}function Pt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null}={}){const l={filter:e,sort:s,limit:n,offset:r,q:u};return t.getAll("products",l)},create({id:e="",data:s}){return t.create(`products/${e}`,e,s)},get({id:e}){return t.get(`products/${e}`)},update({id:e,data:s}){return t.put(`products/${e}`,s)},delete({id:e}){return t.delete(`products/${e}`)}}}function Ct({apiHandler:t}){return{startPermissionsEmulation({data:e}){return t.post("permissions-emulation",e)},stopPermissionsEmulation(){return t.delete("permissions-emulation")},get(){return t.get("profile")},update({data:e}){return t.put("profile",e)},getDashboard(){return t.get("profile/dashboard")},updateDashboard({data:e}){return t.put("profile/dashboard",e)},getDashboardMetricReport({metric:e,periodStart:s,periodEnd:n}){const r={periodStart:s,periodEnd:n};return t.get(`profile/dashboard/metrics/${e}`,r)}}}function xt({apiHandler:t}){return{readyToPay({data:e}){return t.post("ready-to-pay",e)}}}function Dt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,expand:u=null}={}){const l={filter:e,sort:s,limit:n,offset:r,expand:u};return t.getAll("quotes",l)},create({id:e="",data:s}){return t.create(`quotes/${e}`,e,s)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`quotes/${e}`,n)},update({id:e,data:s}){return t.put(`quotes/${e}`,s)},patch({id:e,data:s}){return t.patch(`quotes/${e}`,s)},accept({id:e}){return t.post(`quotes/${e}/accept`)},cancel({id:e}){return t.post(`quotes/${e}/cancel`)},issue({id:e}){return t.post(`quotes/${e}/issue`)},recall({id:e}){return t.post(`quotes/${e}/recall`)},reissue({id:e,data:s}){return t.post(`quotes/${e}/reissue`,s)},reject({id:e}){return t.post(`quotes/${e}/reject`)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`quotes/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`quotes/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`quotes/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`quotes/${e}/timeline/${s}`)},downloadPDF({id:e}){const s={headers:A,responseType:"arraybuffer"};return t.download(`quotes/${e}`,s)}}}function Mt({apiHandler:t}){return{getEnabled(){return t.get("release-flags")}}}function Ot({apiHandler:t}){return{get({resource:e,resourceId:s,service:n}){return t.get(`${e}/${s}/external-identifiers/${n}`)},sync({resource:e,resourceId:s,service:n}){return t.post(`${e}/${s}/external-identifiers/${n}`)},update({resource:e,resourceId:s,service:n,data:r}){return t.put(`${e}/${s}/external-identifiers/${n}`,r)},delete({resource:e,resourceId:s,service:n}){return t.delete(`${e}/${s}/external-identifiers/${n}`)}}}function jt({apiHandler:t}){return{getAll(){return t.get("risk-score-rules")},updateRiskScoreRules({data:e}){return t.put("risk-score-rules",e)},getAllBlocklistRules(){return t.get("risk-score-rules/blocklists")},updateRiskScoreBlocklistRules({data:e}){return t.put("risk-score-rules/blocklists",e)}}}function Ft({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,q:u=null,expand:l=null}={}){const o={limit:e,offset:s,filter:n,sort:r,q:u,expand:l};return t.getAll("roles",o)},create({id:e="",data:s}){return t.create(`roles/${e}`,e,s)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`roles/${e}`,n)},update({id:e,data:s}){return t.put(`roles/${e}`,s)},delete({id:e}){return t.delete(`roles/${e}`)}}}function Nt({apiHandler:t}){return{get({sort:e=null,limit:s=null,offset:n=null,q:r=null}){const u={sort:e,limit:s,offset:n,q:r};return t.get("search",u)}}}function Bt({apiHandler:t}){return{get(){return t.get("security-settings")},update({data:e}){return t.put("security-settings",e)}}}function Kt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("grid-segments",l)},create({id:e="",data:s}){return t.create(`grid-segments/${e}`,e,s)},get({id:e}){return t.get(`grid-segments/${e}`)},update({id:e,data:s}){return t.put(`grid-segments/${e}`,s)},delete({id:e}){return t.delete(`grid-segments/${e}`)}}}function Lt({apiHandler:t}){return{getAll({eventType:e}){return t.getAll(`send-through-attribution/${e}`)}}}function _t({apiHandler:t}){return{getAll({type:e,filter:s=null,limit:n=null,offset:r=null,sort:u=null,q:l=null}){const o={filter:s,limit:n,offset:r,sort:u,q:l};return t.getAll(`service-credentials/${e}`,o)},create({type:e,data:s}){return t.post(`service-credentials/${e}`,s)},get({type:e,id:s}){return t.get(`service-credentials/${e}/${s}`)},update({type:e,id:s,data:n}){return t.patch(`service-credentials/${e}/${s}`,n)},getItems({type:e,id:s,limit:n=null,offset:r=null,filter:u=null,q:l=null,fields:o=null,sort:a=null}){const h={limit:n,offset:r,filter:u,q:l,fields:o,sort:a};return t.getAll(`service-credentials/${e}/${s}/items`,h)}}}function zt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,q:u=null}={}){const l={limit:e,offset:s,filter:n,sort:r,q:u};return t.getAll("shipping-rates",l)},create({id:e="",data:s}){return t.create(`shipping-rates/${e}`,e,s)},get({id:e}){return t.get(`shipping-rates/${e}`)},update({id:e,data:s}){return t.put(`shipping-rates/${e}`,s)},delete({id:e}){return t.delete(`shipping-rates/${e}`)}}}function Vt({apiHandler:t}){return{get(){return t.get("status")}}}function Ut({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("subscription-cancellations",u)},create({id:e="",data:s}){return t.create(`subscription-cancellations/${e}`,e,s)},get({id:e}){return t.get(`subscription-cancellations/${e}`)},delete({id:e}){return t.delete(`subscription-cancellations/${e}`)},patch({id:e,data:s}){return t.patch(`subscription-cancellations/${e}`,s)}}}function Jt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("subscription-pauses",u)},pause({id:e="",data:s}){return t.create(`subscription-pauses/${e}`,e,s)},get({id:e}){return t.get(`subscription-pauses/${e}`)},update({id:e,data:s}){return t.put(`subscription-pauses/${e}`,s)},delete({id:e}){return t.delete(`subscription-pauses/${e}`)}}}function Wt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("subscription-reactivations",u)},reactivate({data:e}){return t.post("subscription-reactivations",e)},get({id:e}){return t.get(`subscription-reactivations/${e}`)}}}function Yt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("subscriptions",o)},create({id:e="",data:s,expand:n=null}){const r={expand:n};return t.create(`subscriptions/${e}`,e,s,r)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`subscriptions/${e}`,n)},update({id:e,data:s,expand:n=null}){const r={expand:n};return t.put(`subscriptions/${e}`,s,r)},delete({id:e}){return t.delete(`subscriptions/${e}`)},void({id:e}){return t.post(`subscriptions/${e}/void`)},changeItems({id:e,data:s,expand:n=null}){const r={expand:n};return t.post(`subscriptions/${e}/change-items`,s,r)},updateItem({id:e,itemId:s,data:n}){return t.patch(`subscriptions/${e}/items/${s}`,n)},createInterimInvoice({id:e,data:s}){return t.post(`subscriptions/${e}/interim-invoice`,s)},getAllUpcomingInvoices({id:e,expand:s=null}){const n={expand:s};return t.getAll(`subscriptions/${e}/upcoming-invoices`,n)},getUpcomingInvoice({id:e,expand:s=null}){const n={expand:s};return t.get(`subscriptions/${e}/upcoming-invoice`,n)},issueEarlyUpcomingInvoice({id:e,data:s}){return t.post(`subscriptions/${e}/upcoming-invoice/issue`,s)},issueUpcomingInvoice({id:e,invoiceId:s,data:n}){return t.post(`subscriptions/${e}/upcoming-invoices/${s}/issue`,n)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`subscriptions/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`subscriptions/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`subscriptions/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`subscriptions/${e}/timeline/${s}`)}}}function Qt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,sort:u=null}={}){const l={limit:e,offset:s,filter:n,q:r,sort:u};return t.getAll("tags",l)},create({data:e}){return t.post("tags",e)},get({tag:e}){return t.get(`tags/${e}`)},delete({tag:e}){return t.delete(`tags/${e}`)},update({tag:e,data:s}){return t.patch(`tags/${e}`,s)},tagCustomers({tag:e,data:s}){return t.post(`tags/${e}/customers`,s)},untagCustomers({tag:e,data:s}){return t.delete(`tags/${e}/customers`,s)},tagCustomer({tag:e,customerId:s}){return t.post(`tags/${e}/customers/${s}`)},untagCustomer({tag:e,customerId:s}){return t.delete(`tags/${e}/customers/${s}`)},tagKycDocuments({tag:e,data:s}){return t.post(`tags/${e}/kyc-documents`,s)},untagKycDocuments({tag:e,data:s}){return t.delete(`tags/${e}/kyc-documents`,s)},tagKycDocument({tag:e,kycDocumentId:s}){return t.post(`tags/${e}/kyc-documents/${s}`)},untagKycDocument({tag:e,kycDocumentId:s}){return t.delete(`tags/${e}/kyc-documents/${s}`)},tagAmlChecks({tag:e,data:s}){return t.post(`tags/${e}/aml-checks`,s)},untagAmlChecks({tag:e,data:s}){return t.delete(`tags/${e}/aml-checks`,s)},tagAmlCheck({tag:e,amlCheckId:s}){return t.post(`tags/${e}/aml-checks/${s}`)},untagAmlCheck({tag:e,amlCheckId:s}){return t.delete(`tags/${e}/aml-checks/${s}`)}}}function Gt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("tags-rules",l)},create({id:e="",data:s}){return t.create(`tags-rules/${e}`,e,s)},get({id:e}){return t.get(`tags-rules/${e}`)},update({id:e,data:s}){return t.put(`tags-rules/${e}`,s)},delete({id:e}){return t.delete(`tags-rules/${e}`)}}}function Xt({apiHandler:t}){return{getAllApiLogs({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null,expand:l=null}={}){const o={limit:e,offset:s,sort:n,filter:r,q:u,expand:l};return t.getAll("tracking/api",o)},getApiLog({id:e}){return t.get(`tracking/api/${e}`)},getAllTaxTrackingLogs({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("tracking/taxes",l)},getTaxTrackingLog({id:e}){return t.get(`tracking/taxes/${e}`)},getAllListsChangesHistory({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("tracking/lists",l)},getAllWebhookTrackingLogs({limit:e=null,offset:s=null,filter:n=null,q:r=null}={}){const u={limit:e,offset:s,filter:n,q:r};return t.getAll("tracking/webhooks",u)},getWebhookTrackingLog({id:e}){return t.get(`tracking/webhooks/${e}`)},resendWebhook({id:e}){return t.post(`tracking/webhooks/${e}/resend`)}}}function Zt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,sort:u=null,expand:l=null,fields:o=null,links:a=null}={}){const h={limit:e,offset:s,filter:n,q:r,sort:u,expand:l,fields:o,links:a};return t.getAll("transactions",h)},create({data:e,expand:s=null}){const n={expand:s};return t.post("transactions",e,n)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`transactions/${e}`,n)},patch({id:e,data:s}){return t.patch(`transactions/${e}`,s)},query({id:e}){return t.post(`transactions/${e}/query`)},update({id:e,data:s}){return t.post(`transactions/${e}/update`,s)},refund({id:e,data:s,expand:n=null}){const r={expand:n};return t.post(`transactions/${e}/refund`,s,r)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`transactions/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`transactions/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`transactions/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`transactions/${e}/timeline/${s}`)},downloadPDF({id:e}){const s={headers:A,responseType:"arraybuffer"};return t.download(`transactions/${e}`,s)}}}function Ht({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null}={}){const l={filter:e,sort:s,limit:n,offset:r,q:u};return t.getAll("usages",l)},create({data:e}){return t.post("usages",e)},get({id:e}){return t.get(`usages/${e}`)},delete({id:e}){return t.delete(`usages/${e}`)}}}function es({apiHandler:t}){return{deleteUserMembership({organizationId:e,userId:s}){return t.delete(`memberships/${e}/${s}`)},getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("users",l)},create({id:e="",data:s}){return t.create(`users/${e}`,e,s)},get({id:e}){return t.get(`users/${e}`)},update({id:e,data:s}){return t.put(`users/${e}`,s)}}}function ts({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null}={}){const u={limit:e,offset:s,filter:n,q:r};return t.getAll("webhook-events",u)}}}function ss({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null}={}){const r={limit:e,offset:s,filter:n};return t.getAll("webhooks",r)},create({id:e="",data:s}){return t.create(`webhooks/${e}`,e,s)},get({id:e}){return t.get(`webhooks/${e}`)},update({id:e,data:s}){return t.put(`webhooks/${e}`,s)},delete({id:e}){return t.delete(`webhooks/${e}`)}}}function ns({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,q:n=null,filter:r=null,sort:u=null}={}){const l={limit:e,offset:s,q:n,filter:r,sort:u};return t.getAll("websites",l)},create({id:e="",data:s}){return t.create(`websites/${e}`,e,s)},get({id:e}){return t.get(`websites/${e}`)},update({id:e,data:s}){return t.put(`websites/${e}`,s)},delete({id:e}){return t.delete(`websites/${e}`)}}}var rs=class{constructor({apiHandler:t}){this.account=ve({apiHandler:t}),this.allowlists=we({apiHandler:t}),this.amlChecks=ke({apiHandler:t}),this.amlSettings=qe({apiHandler:t}),this.apiKeys=de({apiHandler:t}),this.applicationInstances=Te({apiHandler:t}),this.applications=Ee({apiHandler:t}),this.balanceTransactions=Ie({apiHandler:t}),this.billingPortals=Se({apiHandler:t}),this.blocklists=Pe({apiHandler:t}),this.broadcastMessages=Ce({apiHandler:t}),this.cashiers=xe({apiHandler:t}),this.checkoutForms=De({apiHandler:t}),this.coupons=Me({apiHandler:t}),this.creditMemos=Oe({apiHandler:t}),this.customDomains=je({apiHandler:t}),this.customFields=Fe({apiHandler:t}),this.customerAuthentication=Ne({apiHandler:t}),this.customers=Be({apiHandler:t}),this.depositRequests=Ke({apiHandler:t}),this.depositStrategies=Le({apiHandler:t}),this.digitalWallets=_e({apiHandler:t}),this.disputes=ze({apiHandler:t}),this.emailDeliverySettings=Ve({apiHandler:t}),this.emailMessages=Ue({apiHandler:t}),this.emailNotifications=Je({apiHandler:t}),this.events=We({apiHandler:t}),this.externalIdentifiers=Ye({apiHandler:t}),this.externalServicesSettings=Qe({apiHandler:t}),this.fees=Ge({apiHandler:t}),this.files=Xe({apiHandler:t}),this.gatewayAccounts=Ze({apiHandler:t}),this.integrations=He({apiHandler:t}),this.invoices=et({apiHandler:t}),this.journalAccounts=tt({apiHandler:t}),this.journalEntries=st({apiHandler:t}),this.journalRecords=nt({apiHandler:t}),this.kycDocuments=rt({apiHandler:t}),this.kycRequests=ut({apiHandler:t}),this.kycSettings=lt({apiHandler:t}),this.lists=ot({apiHandler:t}),this.orderCancellations=ct({apiHandler:t}),this.orderChanges=it({apiHandler:t}),this.orderPauses=gt({apiHandler:t}),this.orderReactivations=at({apiHandler:t}),this.orders=mt({apiHandler:t}),this.organizationExports=$t({apiHandler:t}),this.organizations=ht({apiHandler:t}),this.paymentCardsBankNames=pt({apiHandler:t}),this.paymentInstruments=ft({apiHandler:t}),this.paymentMethods=yt({apiHandler:t}),this.paymentTokens=Rt({apiHandler:t}),this.payoutRequestAllocationOperations=At({apiHandler:t}),this.payoutRequestAllocations=bt({apiHandler:t}),this.payoutRequestAutoAllocations=vt({apiHandler:t}),this.payoutRequestBatchOperations=wt({apiHandler:t}),this.payoutRequestBatchPreviews=kt({apiHandler:t}),this.payoutRequestBatches=qt({apiHandler:t}),this.payoutRequestSplits=dt({apiHandler:t}),this.payoutRequests=Tt({apiHandler:t}),this.payouts=Et({apiHandler:t}),this.plans=It({apiHandler:t}),this.previews=St({apiHandler:t}),this.products=Pt({apiHandler:t}),this.profile=Ct({apiHandler:t}),this.purchase=xt({apiHandler:t}),this.quotes=Dt({apiHandler:t}),this.releaseFlags=Mt({apiHandler:t}),this.resource=Ot({apiHandler:t}),this.riskScoreRules=jt({apiHandler:t}),this.roles=Ft({apiHandler:t}),this.search=Nt({apiHandler:t}),this.securitySettings=Bt({apiHandler:t}),this.segments=Kt({apiHandler:t}),this.sendThroughAttribution=Lt({apiHandler:t}),this.serviceCredentials=_t({apiHandler:t}),this.shippingRates=zt({apiHandler:t}),this.status=Vt({apiHandler:t}),this.subscriptionCancellations=Ut({apiHandler:t}),this.subscriptionPauses=Jt({apiHandler:t}),this.subscriptionReactivations=Wt({apiHandler:t}),this.subscriptions=Yt({apiHandler:t}),this.tags=Qt({apiHandler:t}),this.tagsRules=Gt({apiHandler:t}),this.tracking=Xt({apiHandler:t}),this.transactions=Zt({apiHandler:t}),this.usages=Ht({apiHandler:t}),this.users=es({apiHandler:t}),this.webhookEvents=ts({apiHandler:t}),this.webhooks=ss({apiHandler:t}),this.websites=ns({apiHandler:t}),this.addRequestInterceptor=t.addRequestInterceptor,this.removeRequestInterceptor=t.removeRequestInterceptor,this.addResponseInterceptor=t.addResponseInterceptor,this.removeResponseInterceptor=t.removeResponseInterceptor,this.setTimeout=t.setTimeout,this.setProxyAgent=t.setProxyAgent,this.setSessionToken=t.setSessionToken,this.setPublishableKey=t.setPublishableKey,this.setEndpoints=t.setEndpoints,this.getCancellationToken=t.getCancellationToken,this.generateSignature=t.generateSignature}};function us({apiHandler:t}){return{getCustomerLifetimeSummaryMetrics({customerId:e}){return t.get(`customers/${e}/summary-metrics`)}}}function ls({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,expand:r=null,filter:u=null,q:l=null,criteria:o=null}={}){const a={limit:e,offset:s,sort:n,expand:r,filter:u,q:l,criteria:o};return t.getAll("data-exports",a)},queue({id:e="",data:s,expand:n=null}){const r={expand:n};return t.create(`data-exports/${e}`,e,s,r)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`data-exports/${e}`,n)},update({id:e,data:s,expand:n=null}){const r={expand:n};return t.put(`data-exports/${e}`,s,r)},delete({id:e}){return t.delete(`data-exports/${e}`)}}}function os({apiHandler:t}){return{getAmlCheckHistogramReport({periodStart:e=null,periodEnd:s=null,aggregationPeriod:n=null,metric:r=null,includePropagatedResults:u=null,filter:l=null}){const o={periodStart:e,periodEnd:s,aggregationPeriod:n,metric:r,includePropagatedResults:u,filter:l};return t.get("histograms/aml-checks",o)},getTransactionHistogramReport({periodStart:e=null,periodEnd:s=null,aggregationPeriod:n=null,metric:r=null,filter:u=null}){const l={periodStart:e,periodEnd:s,aggregationPeriod:n,metric:r,filter:u};return t.get("histograms/transactions",l)}}}function cs({apiHandler:t}){return{getApiLogSummary({periodStart:e=null,periodEnd:s=null,filter:n=null,limit:r=null,offset:u=null}){const l={periodStart:e,periodEnd:s,filter:n,limit:r,offset:u};return t.get("reports/api-log-summary",l)},getAmlChecks({periodStart:e=null,periodEnd:s=null,metric:n=null,includePropagatedResults:r=null,filter:u=null}){const l={periodStart:e,periodEnd:s,metric:n,includePropagatedResults:r,filter:u};return t.get("reports/aml-checks",l)},getAmlChecksInheritedSummary({periodStart:e=null,periodEnd:s=null,filter:n=null}){const r={periodStart:e,periodEnd:s,filter:n};return t.get("reports/aml-checks-inherited-summary",r)},getAmlAuditReport({personId:e,periodStart:s=null,periodEnd:n=null,filter:r=null}){const u={personId:e,periodStart:s,periodEnd:n,filter:r};return t.get("reports/aml-audit-reports",u)},getCumulativeSubscriptions({aggregationField:e=null,periodStart:s=null,periodEnd:n=null,limit:r=null,offset:u=null,filter:l=null}){const o={aggregationField:e,periodStart:s,periodEnd:n,limit:r,offset:u,filter:l};return t.get("reports/cumulative-subscriptions",o)},getDashboardMetrics({periodStart:e=null,periodEnd:s=null,metrics:n=null,segments:r=null}){const u={periodStart:e,periodEnd:s,metrics:n,segments:r};return t.get("reports/dashboard",u)},getDccMarkup({aggregationField:e=null,periodStart:s=null,periodEnd:n=null,limit:r=null,offset:u=null,filter:l=null}){const o={aggregationField:e,periodStart:s,periodEnd:n,limit:r,offset:u,filter:l};return t.get("reports/dcc-markup",o)},getDeclinedTransactions({aggregationField:e=null,periodStart:s=null,periodEnd:n=null,limit:r=null,offset:u=null,filter:l=null}){const o={aggregationField:e,periodStart:s,periodEnd:n,limit:r,offset:u,filter:l};return t.get("reports/declined-transactions",o)},getDeferredRevenue({currency:e=null,asOfDate:s=null,limit:n=null,offset:r=null,filter:u=null}){const l={currency:e,asOfDate:s,limit:n,offset:r,filter:u};return t.get("reports/deferred-revenue",l)},getDisputes({aggregationField:e=null,periodMonth:s=null,limit:n=null,offset:r=null,filter:u=null}){const l={aggregationField:e,periodMonth:s,limit:n,offset:r,filter:u};return t.get("reports/disputes",l)},getEventsTriggeredSummary({periodStart:e=null,periodEnd:s=null,limit:n=null,offset:r=null}){const u={periodStart:e,periodEnd:s,limit:n,offset:r};return t.get("reports/events-triggered",u)},getTriggeredEventRuleReport({eventType:e,periodStart:s=null,periodEnd:n=null,limit:r=null,offset:u=null}){const l={periodStart:s,periodEnd:n,limit:r,offset:u};return t.get(`reports/events-triggered/${e}/rules`,l)},getFutureRenewals({periodStart:e=null,periodEnd:s=null,limit:n=null,offset:r=null}){const u={periodStart:e,periodEnd:s,limit:n,offset:r};return t.get("reports/future-renewals",u)},getJournal({currency:e=null,bookedFrom:s=null,bookedTo:n=null,recognizedAt:r=null,aggregationField:u=null,limit:l=null,offset:o=null,filter:a=null}){const h={currency:e,bookedFrom:s,bookedTo:n,recognizedAt:r,aggregationField:u,limit:l,offset:o,filter:a};return t.get("reports/journal",h)},getJournalSummary({periodStart:e=null,periodEnd:s=null,currency:n=null,aggregationField:r=null,amountField:u=null,journalAccountIds:l=null}){const o={periodStart:e,periodEnd:s,currency:n,aggregationField:r,amountField:u,journalAccountIds:l};return t.get("reports/journal-summary",o)},getKycAcceptanceSummary({periodStart:e=null,periodEnd:s=null}){const n={periodStart:e,periodEnd:s};return t.get("reports/kyc-acceptance-summary",n)},getKycRejectionSummary({periodStart:e=null,periodEnd:s=null}){const n={periodStart:e,periodEnd:s};return t.get("reports/kyc-rejection-summary",n)},getKycRequestSummary({periodStart:e=null,periodEnd:s=null}){const n={periodStart:e,periodEnd:s};return t.get("reports/kyc-request-summary",n)},getMonthlyRecurringRevenue({currency:e,periodStart:s,periodEnd:n,limit:r=null,offset:u=null}){const l={currency:e,periodStart:s,periodEnd:n,limit:r,offset:u};return t.get("reports/monthly-recurring-revenue",l)},getAnnualRecurringRevenue({currency:e,periodStart:s,periodEnd:n,limit:r=null,offset:u=null}){const l={currency:e,periodStart:s,periodEnd:n,limit:r,offset:u};return t.get("reports/annual-recurring-revenue",l)},getRenewalSales({periodStart:e=null,periodEnd:s=null,limit:n=null,offset:r=null}){const u={periodStart:e,periodEnd:s,limit:n,offset:r};return t.get("reports/renewal-sales",u)},getRetentionPercentage({aggregationField:e=null,aggregationPeriod:s=null,includeSwitchedSubscriptions:n=null,periodStart:r=null,periodEnd:u=null,limit:l=null,offset:o=null,filter:a=null,criteria:h=null}){const q={aggregationField:e,aggregationPeriod:s,includeSwitchedSubscriptions:n,periodStart:r,periodEnd:u,limit:l,offset:o,filter:a,criteria:h};return t.get("reports/retention-percentage",q)},getRetentionValue({aggregationField:e=null,aggregationPeriod:s=null,includeRefunds:n=null,includeDisputes:r=null,periodStart:u=null,periodEnd:l=null,limit:o=null,offset:a=null,filter:h=null,sort:q=null,criteria:x=null}){const D={aggregationField:e,aggregationPeriod:s,includeRefunds:n,includeDisputes:r,periodStart:u,periodEnd:l,limit:o,offset:a,filter:h,sort:q,criteria:x};return t.get("reports/retention-value",D)},getRevenueWaterfall({currency:e,issuedFrom:s=null,issuedTo:n=null,recognizedTo:r=null}){const u={currency:e,issuedFrom:s,issuedTo:n,recognizedTo:r};return t.get("reports/revenue-waterfall",u)},getSubscriptionCancellation({periodStart:e=null,periodEnd:s=null,aggregationField:n=null,limit:r=null,offset:u=null,filter:l=null}){const o={periodStart:e,periodEnd:s,aggregationField:n,limit:r,offset:u,filter:l};return t.get("reports/subscription-cancellation",o)},getSubscriptionRenewal({periodStart:e=null,periodEnd:s=null,limit:n=null,offset:r=null}){const u={periodStart:e,periodEnd:s,limit:n,offset:r};return t.get("reports/subscription-renewal",u)},getTax({periodStart:e=null,periodEnd:s=null,accountingMethod:n=null,limit:r=null,offset:u=null}){const l={periodStart:e,periodEnd:s,accountingMethod:n,limit:r,offset:u};return t.get("reports/tax",l)},getTimeSeriesTransaction({type:e=null,subaggregate:s=null,periodStart:n=null,periodEnd:r=null,limit:u=null,offset:l=null}){const o={type:e,subaggregate:s,periodStart:n,periodEnd:r,limit:u,offset:l};return t.get("reports/time-series-transaction",o)},getTransactionsTimeDispute({aggregationField:e=null,periodStart:s=null,periodEnd:n=null,limit:r=null,offset:u=null,filter:l=null}){const o={aggregationField:e,periodStart:s,periodEnd:n,limit:r,offset:u,filter:l};return t.get("reports/transactions-time-dispute",o)},getTransactions({periodStart:e=null,periodEnd:s=null,aggregationField:n=null,limit:r=null,offset:u=null,filter:l=null}){const o={periodStart:e,periodEnd:s,aggregationField:n,limit:r,offset:u,filter:l};return t.get("reports/transactions",o)},downloadAmlAuditReport({personId:e,periodStart:s=null,periodEnd:n=null,filter:r=null,accept:u="application/pdf"}){const l={params:{personId:e,periodStart:s,periodEnd:n,filter:r},headers:{Accept:u},responseType:u==="application/pdf"?"arraybuffer":"text"};return t.download("reports/aml-audit-reports",l)}}}function is({apiHandler:t}){return{getSubscriptionSummaryMetrics({subscriptionId:e}){return t.get(`subscriptions/${e}/summary-metrics`)}}}function gs({apiHandler:t}){return{getActivityFeed({eventTypes:e=null,limit:s=1e3,offset:n=0}){const r={eventTypes:e,limit:s,offset:n};return t.getAll("activity-feed",r)},getTransaction({id:e="",eventTypes:s=null,limit:n=1e3,offset:r=0}){const u={eventTypes:s,limit:n,offset:r};return t.getAll(`transactions/${e}/timeline`,u)},getCustomer({id:e="",eventTypes:s=null,limit:n=1e3,offset:r=0}){const u={eventTypes:s,limit:n,offset:r};return t.getAll(`customers/${e}/timeline`,u)}}}function as({apiHandler:t}){return{query(){return t.get("location")}}}var b={CustomersResource:us,DataExportsResource:ls,HistogramsResource:os,ReportsResource:cs,SubscriptionsResource:is,TimelinesResource:gs,LocationResource:as},ms=class{constructor({apiHandler:t}){this.customers=b.CustomersResource({apiHandler:t}),this.dataExports=b.DataExportsResource({apiHandler:t}),this.histograms=b.HistogramsResource({apiHandler:t}),this.reports=b.ReportsResource({apiHandler:t}),this.subscriptions=b.SubscriptionsResource({apiHandler:t}),this.timelines=b.TimelinesResource({apiHandler:t}),this.location=b.LocationResource({apiHandler:t}),this.addRequestInterceptor=t.addRequestInterceptor,this.removeRequestInterceptor=t.removeRequestInterceptor,this.addResponseInterceptor=t.addResponseInterceptor,this.removeResponseInterceptor=t.removeResponseInterceptor,this.setTimeout=t.setTimeout,this.setProxyAgent=t.setProxyAgent,this.setSessionToken=t.setSessionToken,this.setEndpoints=t.setEndpoints,this.getCancellationToken=t.getCancellationToken}};function $s({apiHandler:t}){return{get({expand:e=null}={}){const s={expand:e};return t.get("account",s)},update({data:e}){return t.patch("account",e)},requestPasswordReset({data:e}){return t.post("account/forgot-password",e)},changePassword({data:e}){return t.patch("account/password",e)},resendEmailVerification({data:e}){return t.post("account/resend-verification",e)},confirmPasswordReset({token:e,data:s}){return t.post(`account/reset-password/${e}`,s)},verifyEmail({token:e}){return t.post(`account/verification/${e}`)},register({data:e}){return t.post("register",e)}}}function hs({apiHandler:t}){return{login({data:e}){return t.post("login",e)},logout(){return t.post("logout")}}}function ps({apiHandler:t}){return{get({slug:e}){return t.get(`billing-portals/${e}`)}}}function fs({apiHandler:t}){return{get({id:e}){return t.get(`cashiers/${e}`)}}}function ys({apiHandler:t}){return{get({id:e}){return t.get(`checkout-forms/${e}`)}}}function Rs({apiHandler:t}){return{getAll({resource:e,limit:s=null,offset:n=null}){const r={limit:s,offset:n};return t.getAll(`custom-fields/${e}`,r)}}}function As({apiHandler:t}){return{get({id:e,expand:s=null}){const n={expand:s};return t.get(`deposit-requests/${e}`,n)}}}function bs({apiHandler:t}){return{create({data:e}){return t.post("deposit",e)}}}function vs({apiHandler:t}){return{get({id:e}){return t.get(`deposit-strategies/${e}`)}}}function ws({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("invoices",o)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`invoices/${e}`,n)},update({id:e,data:s}){return t.patch(`invoices/${e}`,s)},downloadPDF({id:e}){const s={headers:A,responseType:"arraybuffer"};return t.download(`invoices/${e}`,s)}}}function ks({apiHandler:t}){return{create({data:e}){return t.post("kyc-documents",e)},get({id:e}){return t.get(`kyc-documents/${e}`)},update({id:e,data:s}){return t.patch(`kyc-documents/${e}`,s)}}}function qs({apiHandler:t}){return{create({data:e}){return t.post("kyc-liveness-sessions",e)},get({id:e}){return t.get(`kyc-liveness-sessions/${e}`)},finish({id:e}){return t.post(`kyc-liveness-sessions/${e}/finish`)}}}function ds({apiHandler:t}){return{get({id:e,expand:s=null}){const n={expand:s};return t.get(`kyc-requests/${e}`,n)}}}function Ts({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null}={}){const r={limit:e,offset:s,filter:n};return t.getAll("order-changes",r)},delete({id:e}){return t.delete(`order-changes/${e}`)}}}function Es({apiHandler:t}){return{getUpcomingInvoice({id:e,expand:s=null}){const n={expand:s};return t.get(`orders/${e}/upcoming-invoice`,n)},getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("orders",o)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`orders/${e}`,n)},update({id:e,data:s}){return t.patch(`orders/${e}`,s)},cancel({id:e,data:s}){return t.post(`orders/${e}/cancellation`,s)},pause({id:e,data:s}){return t.post(`orders/${e}/pause`,s)}}}function Is({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null}={}){const l={filter:e,sort:s,limit:n,offset:r,q:u};return t.getAll("payment-instruments",l)},create({data:e}){return t.post("payment-instruments",e)},get({id:e,limit:s=null,offset:n=null}){const r={limit:s,offset:n};return t.get(`payment-instruments/${e}`,r)},update({id:e,data:s}){return t.patch(`payment-instruments/${e}`,s)},deactivate({id:e}){return t.post(`payment-instruments/${e}/deactivation`)},getSetupTransaction({id:e}){return t.get(`payment-instruments/${e}/setup`)},setup({id:e,data:s}){return t.post(`payment-instruments/${e}/setup`,s)}}}function Ss({apiHandler:t}){return{create({data:e}){return t.post("payout-request-cancellations",e)}}}function Ps({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null}={}){const l={filter:e,sort:s,limit:n,offset:r,q:u};return t.getAll("payout-requests",l)},create({data:e}){return t.post("payout-requests",e)},get({id:e}){return t.get(`payout-requests/${e}`)},update({id:e,data:s}){return t.patch(`payout-requests/${e}`,s)}}}function Cs({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("plans",o)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`plans/${e}`,n)}}}function xs({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null}={}){const l={filter:e,sort:s,limit:n,offset:r,q:u};return t.getAll("products",l)},get({id:e}){return t.get(`products/${e}`)}}}function Ds({apiHandler:t}){return{payment({data:e}){return t.post("payment",e)},purchase({data:e}){return t.post("purchase",e)},preview({data:e}){return t.post("preview-purchase",e)},readyToPay({data:e}){return t.post("ready-to-pay",e)}}}function Ms({apiHandler:t}){return{get({id:e,expand:s=null}){const n={expand:s};return t.get(`quotes/${e}`,n)},accept({id:e}){return t.post(`quotes/${e}/accept`)},reject({id:e}){return t.post(`quotes/${e}/reject`)},downloadPDF({id:e}){const s={headers:A,responseType:"arraybuffer"};return t.download(`quotes/${e}`,s)}}}function Os({apiHandler:t}){return{readyToPayout({data:e}){return t.post("ready-to-payout",e)}}}function js({apiHandler:t}){return{reactivation({data:e}){return t.post("subscription-reactivations",e)}}}function Fs({apiHandler:t}){return{changeItems({id:e,data:s}){return t.post(`subscriptions/${e}/change-items`,s)},create({data:e}){return t.post("subscriptions",e)}}}function Ns({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,sort:u=null}={}){const l={limit:e,offset:s,filter:n,q:r,sort:u};return t.getAll("transactions",l)},get({id:e}){return t.get(`transactions/${e}`)},getDcc({id:e}){return t.get(`transactions/${e}/dcc`)},updateDcc({id:e,data:s}){return t.patch(`transactions/${e}/dcc`,s)},finishKyc({id:e,token:s}){return t.post(`transactions/${e}/${s}/continue`)},skipKyc({id:e,token:s}){return t.post(`transactions/${e}/${s}/bypass`)},downloadPDF({id:e}){const s={headers:A,responseType:"arraybuffer"};return t.download(`transactions/${e}`,s)},update({id:e,data:s}){return t.patch(`transactions/${e}`,s)}}}function Bs({apiHandler:t}){return{get({id:e}){return t.get(`websites/${e}`)}}}var Ks=class{constructor({apiHandler:t}){this.account=$s({apiHandler:t}),this.authorization=hs({apiHandler:t}),this.billingPortals=ps({apiHandler:t}),this.cashiers=fs({apiHandler:t}),this.checkoutForms=ys({apiHandler:t}),this.customFields=Rs({apiHandler:t}),this.depositRequests=As({apiHandler:t}),this.deposit=bs({apiHandler:t}),this.depositStrategies=vs({apiHandler:t}),this.invoices=ws({apiHandler:t}),this.kycDocuments=ks({apiHandler:t}),this.kycLivenessSessions=qs({apiHandler:t}),this.kycRequests=ds({apiHandler:t}),this.orderChanges=Ts({apiHandler:t}),this.orders=Es({apiHandler:t}),this.paymentInstruments=Is({apiHandler:t}),this.payoutRequestCancellations=Ss({apiHandler:t}),this.payoutRequests=Ps({apiHandler:t}),this.plans=Cs({apiHandler:t}),this.products=xs({apiHandler:t}),this.purchase=Ds({apiHandler:t}),this.quotes=Ms({apiHandler:t}),this.readyToPayout=Os({apiHandler:t}),this.subscriptionReactivations=js({apiHandler:t}),this.subscriptions=Fs({apiHandler:t}),this.transactions=Ns({apiHandler:t}),this.websites=Bs({apiHandler:t}),this.checkoutForm=this.checkoutForms,this.billingPortal=this.billingPortals,this.addRequestInterceptor=t.addRequestInterceptor,this.removeRequestInterceptor=t.removeRequestInterceptor,this.addResponseInterceptor=t.addResponseInterceptor,this.removeResponseInterceptor=t.removeResponseInterceptor,this.setTimeout=t.setTimeout,this.setProxyAgent=t.setProxyAgent,this.setSessionToken=t.setSessionToken,this.setPublishableKey=t.setPublishableKey,this.setEndpoints=t.setEndpoints,this.getCancellationToken=t.getCancellationToken,this.generateSignature=t.generateSignature}};function Ls({apiHandler:t}){return new rs({apiHandler:t})}function _s({apiHandler:t}){return new ms({apiHandler:t})}function zs({apiHandler:t}){return new Ks({apiHandler:t})}var P={live:"https://api.rebilly.com",sandbox:"https://api-sandbox.rebilly.com"},C=6e3;function L({apiKey:t=null,sandbox:e=!1,timeout:s=C,organizationId:n=null,urls:r=P,internalOptions:u=null}={}){if(!r.live||!r.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof r.live!="string"||typeof r.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const l={apiEndpoints:r,apiKey:t,apiVersion:"",isSandbox:e,requestTimeout:s,jwt:null,organizationId:n,appName:u?.appName??null},o=S({options:l});return Ls({apiHandler:o})}function Vs({apiKey:t=null,sandbox:e=!1,timeout:s=C,organizationId:n=null,urls:r=P,internalOptions:u=null}={}){if(!r.live||!r.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof r.live!="string"||typeof r.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const l={apiEndpoints:r,apiKey:t,apiVersion:"experimental",isSandbox:e,requestTimeout:s,jwt:null,organizationId:n,appName:u?.appName??null},o=S({options:l});return _s({apiHandler:o})}function Us({publishableKey:t=null,jwt:e=null,sandbox:s=!1,timeout:n=C,organizationId:r=null,urls:u=P,internalOptions:l=null}={}){if(!u.live||!u.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof u.live!="string"||typeof u.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const o={apiEndpoints:u,publishableKey:t,jwt:e,apiVersion:"storefront",isSandbox:s,requestTimeout:n,organizationId:r,appName:l?.appName??null},a=S({options:o});return a.setSessionToken(o.jwt),zs({apiHandler:a})}p.RebillyAPI=L,p.default=L,p.RebillyErrors=$,p.RebillyExperimentalAPI=Vs,p.RebillyStorefrontAPI=Us,p.cancellation=Re});
|
|
1
|
+
(function(p,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],f):(p=typeof globalThis<"u"?globalThis:p||self,f(p["rebilly-js-sdk"]={},p.axios))})(this,function(p,f){Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var X=Object.create,O=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,H=Object.getOwnPropertyNames,ee=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,te=(t,e,s,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(var r=H(e),u=0,l=r.length,o;u<l;u++)o=r[u],!j.call(t,o)&&o!==s&&O(t,o,{get:(a=>e[a]).bind(null,o),enumerable:!(n=Z(e,o))||n.enumerable});return t},se=(t,e,s)=>(s=t!=null?X(ee(t)):{},te(e||!t||!t.__esModule||!j.call(t,"default")?O(s,"default",{value:t,enumerable:!0}):s,t));f=se(f);function d(t,{exclude:e=[]}={}){Object.freeze(t);const s=typeof t=="function";return Object.getOwnPropertyNames(t).forEach(n=>{(!s||n!=="caller"&&n!=="callee"&&n!=="arguments")&&t[n]!==null&&!e.includes(n)&&(typeof t[n]=="object"||typeof t[n]=="function")&&!Object.isFrozen(t[n])&&d(t[n],{exclude:e})}),t}var F=class{constructor({data:t,status:e,statusText:s,headers:n},r={}){this.response={status:e,statusText:s,headers:n},this.fields={...t},this.config=r,d(this,{exclude:["cancelToken"]})}getJSON(){return JSON.parse(JSON.stringify({fields:this.fields}))}},N={limit:"pagination-limit",offset:"pagination-offset",total:"pagination-total"},ne=class{constructor({data:t,status:e,statusText:s,headers:n},r={}){this.limit=null,this.offset=null,this.total=null,Object.keys(N).forEach(u=>{const l=n[N[u]];this[u]=l?Number(l):null}),this.response={status:e,statusText:s,headers:n},this.items=t.map(u=>new F({data:u,status:e,statusText:s,headers:n})),this.config=r,d(this,{exclude:["cancelToken"]})}getJSON(){return JSON.parse(JSON.stringify({items:this.items}))}},re=class{constructor({data:t,status:e,statusText:s,headers:n},r={}){this.response={status:e,statusText:s,headers:n},this.data=t,this.config=r}},y=class extends Error{constructor({error:t,name:e=null}){let{config:s=null,response:n=null,request:r=null,message:u=null}=t||{},l=u||"Request Error";n&&n.data&&(n.data.error?l=n.data.error:n.data.detail?l=n.data.detail:n.data.title&&(l=n.data.title)),super(l),this.name=e||"RebillyError",this.response=n,this.request=r,this.config=s,this.status=n&&n.status?n.status:null,this.statusText=n&&n.statusText?n.statusText:null,this.details=n&&n.data&&n.data.details?n.data.details:null,this.invalidFields=n&&n.data&&n.data.invalidFields?n.data.invalidFields:null}},E=class extends y{constructor(t){super({error:t,name:"RebillyRequestError"})}},ue=class extends E{constructor(t){super(t),this.name="RebillyMfaRequiredError"}},le=class extends E{constructor(t){super(t),this.name="RebillyIpNotAllowedError"}},oe=class extends y{constructor(t){super({error:t,name:"RebillyValidationError"})}},ce=class extends y{constructor(t){super({error:t,name:"RebillyNotFoundError"})}},ie=class extends y{constructor(t){super({error:t,name:"RebillyConflictError"})}},ge=class extends y{constructor(t){super({error:t,name:"RebillyForbiddenError"})}},ae=class extends y{constructor(t){super({error:t,name:"RebillyMethodNotAllowedError"})}},me=class extends y{constructor(t){super({error:t,name:"RebillyTimeoutError"})}},$e=class extends y{constructor(t){super({error:t,name:"RebillyCanceledError"})}},$={RebillyError:y,RebillyRequestError:E,RebillyMfaRequiredError:ue,RebillyIpNotAllowedError:le,RebillyValidationError:oe,RebillyNotFoundError:ce,RebillyConflictError:ie,RebillyForbiddenError:ge,RebillyMethodNotAllowedError:ae,RebillyTimeoutError:me,RebillyCanceledError:$e},he="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",pe=(t=21)=>{let e="",s=t|0;for(;s-- >0;)e+=he[Math.random()*64|0];return e},fe=class{constructor({id:t=null,created:e=null}={}){this.id=t||pe(),this.created=e||new Date().getTime(),this.cancelSource=f.default.CancelToken.source(),this.cancel=this.cancelSource.cancel,this.cancelToken=this.cancelSource.token,d(this,{exclude:["cancelSource","cancelToken","cancel"]})}},ye=class T{constructor(){if(T.instance)return T.instance;this.requests={},T.instance=this}getAll(){return Object.values(this.requests)}getById(e){return this.requests[e]}deleteById(e){this.requests[e]&&delete this.requests[e]}save(){const e=new fe;return this.requests[e.id]=e,{id:e.id,cancelToken:e.cancelToken}}},w=new ye,B=class{static cancelById=(t,e)=>{try{w.getById(t).cancel(e),w.deleteById(t)}catch{}};static cancelAll=async t=>{for(const e of w.getAll())await e.cancel(t),w.deleteById(e.id)}},Re={cancelAll:async(...t)=>await B.cancelAll(...t)},Ae=new Set(["links"]);function be(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function I(t){if(Array.isArray(t))return t.map(s=>I(s));if(!be(t))return t;const e={};for(const s of Object.keys(t))e[s]=I(t[s]);return e}var R={request:"request",response:"response"},K=t=>{if(!Object.values(R).includes(t))throw new Error(`There is no such interceptor type as "${t}"`);return!0};function S({options:t}){const e=s();function s(){return f.default.create(r())}function n(){return e}function r(){return{baseURL:u(),timeout:t.requestTimeout,headers:l()}}function u(){let c=t.isSandbox?t.apiEndpoints.sandbox:t.apiEndpoints.live;return t.apiVersion&&(c=`${c}/${t.apiVersion}`),t.organizationId&&(c=`${c}/organizations/${t.organizationId}`),`${c}`}function l(){const c={"REB-API-CONSUMER":`${["Rebilly",t.appName,"js-sdk"].filter(i=>i).join("/")}@5515fec`};return t.apiKey&&(c["REB-APIKEY"]=t.apiKey),c}function o(){return I(e.defaults.headers)}function a(c){t.requestTimeout=Number(c),e.defaults.timeout=t.requestTimeout}function h(c=t.jwt){const i=o();t.apiKey=null,t.jwt=c,delete i.common["REB-APIKEY"],i.common.Authorization=`Bearer ${c}`,e.defaults.headers=i}function q(c=t.publishableKey){const i=o();t.publishableKey=c,i.common.Authorization=`${c}`,e.defaults.headers=i}function x({host:c,port:i,auth:g}){e.defaults.proxy={host:c,port:i,auth:g}}function D({live:c=null,sandbox:i=null}){c&&(t.apiEndpoints.live=c),i&&(t.apiEndpoints.sandbox=i),e.defaults.baseURL=u()}function _(c,{thenDelegate:i,catchDelegate:g=()=>{}}){return K(c)&&e.interceptors[R[c]].use(i,g)}function z(c,i){return K(c)&&e.interceptors[R[c]].eject(i)}function Js({thenDelegate:c,catchDelegate:i=()=>{}}){return _(R.request,{thenDelegate:c,catchDelegate:i})}function Ws(c){z(R.request,c)}function Ys({thenDelegate:c,catchDelegate:i=()=>{}}){return _(R.response,{thenDelegate:c,catchDelegate:i})}function Qs(c){z(R.response,c)}function k({request:c,isCollection:i,config:g}){const m=U(g),{id:v,cancelToken:nn}=w.save();m.cancelToken=nn;const G=async function(){try{return Gs({response:await c(m),isCollection:i,config:m})}catch(M){return V({error:M,config:m})}finally{w.deleteById(v)}}();return G.cancel=M=>B.cancelById(v,M),G}function Gs({response:c,isCollection:i,config:g}){return i?new ne(c,g):new F(c,g)}function V({error:c}){if(f.default.isCancel(c))throw new $.RebillyCanceledError(c);if(c.response)switch(Number(c.response.status)){case 401:throw new $.RebillyForbiddenError(c);case 403:throw c.response.data?.error==="mfa_required"?new $.RebillyMfaRequiredError(c):c.response.data?.error==="ip_not_allowed"?new $.RebillyIpNotAllowedError(c):new $.RebillyRequestError(c);case 404:throw new $.RebillyNotFoundError(c);case 405:throw new $.RebillyMethodNotAllowedError(c);case 409:throw new $.RebillyConflictError(c);case 422:throw new $.RebillyValidationError(c);default:throw new $.RebillyRequestError(c)}throw c.code==="ECONNABORTED"?new $.RebillyTimeoutError(c):new $.RebillyRequestError(c)}function Xs(c){return c.params!==void 0&&(c.params=Object.keys(c.params).filter(i=>c.params[i]!==null&&(Ae.has(i)||c.params[i]!=="")&&!(i==="sort"&&c.params[i]?.length===0)).reduce((i,g)=>{const m=c.params[g];return i[g]=g==="sort"&&Array.isArray(m)?m.join(","):m,i},{})),c}function U(c={}){return{...Xs(c)}}function J(c,i={}){return k({request:g=>e.get(c,g),config:{params:i}})}function Zs(c,i){return k({request:g=>e.get(c,g),config:{params:i},isCollection:!0})}function W(c,i,g={}){let m={};return g.authenticate===!1&&(m={headers:o()},delete m.headers.common["REB-APIKEY"],delete m.headers.common.Authorization),g.params&&(m.params={...g.params}),k({request:v=>e.post(c,i,v),config:m})}function Y(c,i,g={}){return k({request:m=>e.put(c,i,m),config:{params:g}})}function Hs(c,i){return k({request:g=>e.patch(c,i,g),config:{}})}function Q(c,i=null){return k({request:g=>e.delete(c,g),config:i!=null?{data:i}:{}})}function en(c,i){return Q(c,i)}async function tn(c,i,g,m={}){if(i==="")return W(c,g,{params:m});try{if((await J(c)).response.status===200)throw new $.RebillyConflictError({message:"A resource already exists with this ID. Please use a different ID."})}catch(v){if(v.name==="RebillyNotFoundError")return Y(c,g,m);throw v}}async function sn(c,i){const g=U(i);try{const m=await e.get(c,g);return new re(m,g)}catch(m){return V({error:m,config:g})}}return{getInstance:n,addRequestInterceptor:Js,removeRequestInterceptor:Ws,addResponseInterceptor:Ys,removeResponseInterceptor:Qs,setTimeout:a,setProxyAgent:x,setSessionToken:h,setPublishableKey:q,setEndpoints:D,get:J,getAll:Zs,post:W,put:Y,patch:Hs,delete:Q,deleteAll:en,create:tn,download:sn}}function ve({apiHandler:t}){return{forgotPassword({data:e}){return t.post("forgot-password",e,{authenticate:!1})}}}function we({apiHandler:t}){return{getAllowlistCollection({filter:e=null,sort:s=null,limit:n=null,offset:r=null}={}){const u={filter:e,sort:s,limit:n,offset:r};return t.getAll("allowlists",u)},storeAllowlist({data:e}){return t.post("allowlists",e)},getAllowlist({id:e}){return t.get(`allowlists/${e}`)},delete({id:e}){return t.delete(`allowlists/${e}`)}}}function ke({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("aml-checks",l)},get({id:e}){return t.get(`aml-checks/${e}`)},startReview({id:e}){return t.post(`aml-checks/${e}/start-review`)},stopReview({id:e}){return t.post(`aml-checks/${e}/stop-review`)},review({id:e,data:s}){return t.post(`aml-checks/${e}/review`,s)}}}function qe({apiHandler:t}){return{getAmlSettings(){return t.get("aml-settings")},putAmlSettings({data:e}){return t.put("aml-settings",e)}}}function de({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null}={}){const u={filter:e,sort:s,limit:n,offset:r};return t.getAll("api-keys",u)},create({id:e="",data:s}){return t.create(`api-keys/${e}`,e,s)},get({id:e}){return t.get(`api-keys/${e}`)},update({id:e,data:s}){return t.put(`api-keys/${e}`,s)},delete({id:e}){return t.delete(`api-keys/${e}`)}}}function Te({apiHandler:t}){return{get({applicationId:e}){return t.get(`application-instances/${e}`)},upsert({applicationId:e,data:s}){return t.put(`application-instances/${e}`,s)},delete({applicationId:e}){return t.delete(`application-instances/${e}`)},getConfiguration({applicationId:e}){return t.get(`application-instances/${e}/configuration`)},upsertConfiguration({applicationId:e,data:s}){return t.put(`application-instances/${e}/configuration`,s)}}}function Ee({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,expand:u=null,fields:l=null,sort:o=null}={}){const a={limit:e,offset:s,filter:n,q:r,expand:u,fields:l,sort:o};return t.getAll("applications",a)},create({data:e}){return t.post("applications",e)},get({id:e}){return t.get(`applications/${e}`)},getInstances({id:e,limit:s=null,offset:n=null}){const r={limit:s,offset:n};return t.getAll(`applications/${e}/instances`,r)},getInstance({id:e,organizationId:s}){return t.get(`applications/${e}/instances/${s}`)}}}function Ie({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("balance-transactions",u)},get({id:e}){return t.get(`balance-transactions/${e}`)}}}function Se({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("billing-portals",l)},create({id:e="",data:s}){return t.create(`billing-portals/${e}`,e,s)},get({id:e}){return t.get(`billing-portals/${e}`)},update({id:e,data:s}){return t.put(`billing-portals/${e}`,s)},delete({id:e}){return t.delete(`billing-portals/${e}`)}}}function Pe({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("blocklists",l)},create({id:e="",data:s}){return t.create(`blocklists/${e}`,e,s)},get({id:e}){return t.get(`blocklists/${e}`)},delete({id:e}){return t.delete(`blocklists/${e}`)}}}function Ce({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null}={}){const u={limit:e,offset:s,sort:n,filter:r};return t.getAll("broadcast-messages",u)},create({data:e}){return t.post("broadcast-messages",e)},get({id:e}){return t.get(`broadcast-messages/${e}`)},delete({id:e}){return t.delete(`broadcast-messages/${e}`)},update({id:e,data:s}){return t.patch(`broadcast-messages/${e}`,s)}}}function xe({apiHandler:t}){return{create({data:e}){return t.post("cashiers",e)},get({id:e}){return t.get(`cashiers/${e}`)}}}function De({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("checkout-forms",l)},create({id:e="",data:s}){return t.create(`checkout-forms/${e}`,e,s)},get({id:e}){return t.get(`checkout-forms/${e}`)},update({id:e,data:s}){return t.put(`checkout-forms/${e}`,s)},delete({id:e}){return t.delete(`checkout-forms/${e}`)}}}function Me({apiHandler:t}){return{getAllRedemptions({limit:e=null,offset:s=null,filter:n=null,q:r=null,sort:u=null}={}){const l={limit:e,offset:s,filter:n,q:r,sort:u};return t.getAll("coupons-redemptions",l)},redeem({data:e}){return t.post("coupons-redemptions",e)},getRedemption({id:e}){return t.get(`coupons-redemptions/${e}`)},cancelRedemption({id:e}){return t.post(`coupons-redemptions/${e}/cancel`)},getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,sort:u=null}={}){const l={limit:e,offset:s,filter:n,q:r,sort:u};return t.getAll("coupons",l)},create({id:e="",data:s}){return t.create(`coupons/${e}`,e,s)},get({id:e}){return t.get(`coupons/${e}`)},update({id:e,data:s}){return t.put(`coupons/${e}`,s)},setExpiration({id:e,data:s}){return t.post(`coupons/${e}/expiration`,s)}}}var A={Accept:"application/pdf"};function Oe({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("credit-memos",o)},create({id:e="",data:s}){return t.create(`credit-memos/${e}`,e,s)},get({id:e}){return t.get(`credit-memos/${e}`)},update({id:e,data:s}){return t.put(`credit-memos/${e}`,s)},patch({id:e,data:s}){return t.patch(`credit-memos/${e}`,s)},void({id:e}){return t.post(`credit-memos/${e}/void`)},refund({id:e}){return t.post(`credit-memos/${e}/refund`)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`credit-memos/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`credit-memos/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`credit-memos/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`credit-memos/${e}/timeline/${s}`)},downloadPDF({id:e}){const s={headers:A,responseType:"arraybuffer"};return t.download(`credit-memos/${e}`,s)}}}function je({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("custom-domains",l)},create({data:e}){return t.post("custom-domains",e)},get({domain:e}){return t.get(`custom-domains/${e}`)},delete({domain:e}){return t.delete(`custom-domains/${e}`)}}}function Fe({apiHandler:t}){return{getAll({resource:e,limit:s=null,offset:n=null}){const r={limit:s,offset:n};return t.getAll(`custom-fields/${e}`,r)},get({resource:e,name:s}){return t.get(`custom-fields/${e}/${s}`)},create({resource:e,name:s,data:n}){return t.put(`custom-fields/${e}/${s}`,n)},update({resource:e,name:s,data:n}){return t.put(`custom-fields/${e}/${s}`,n)}}}function Ne({apiHandler:t}){return{getAuthOptions(){return t.get("authentication-options")},updateAuthOptions({data:e}){return t.put("authentication-options",e)},getAllAuthTokens({limit:e=null,offset:s=null}={}){const n={limit:e,offset:s};return t.getAll("authentication-tokens",n)},login({data:e}){return t.post("authentication-tokens",e)},verify({token:e}){return t.get(`authentication-tokens/${e}`)},logout({token:e}){return t.delete(`authentication-tokens/${e}`)},exchangeToken({token:e,data:s}){return t.post(`authentication-tokens/${e}/exchange`,s)},getAllCredentials({limit:e=null,offset:s=null}={}){const n={limit:e,offset:s};return t.getAll("credentials",n)},createCredential({id:e="",data:s}){return t.create(`credentials/${e}`,e,s)},getCredential({id:e}){return t.get(`credentials/${e}`)},updateCredential({id:e,data:s}){return t.put(`credentials/${e}`,s)},deleteCredential({id:e}){return t.delete(`credentials/${e}`)},getAllResetPasswordTokens({limit:e=null,offset:s=null}={}){const n={limit:e,offset:s};return t.getAll("password-tokens",n)},createResetPasswordToken({data:e}){return t.post("password-tokens",e)},getResetPasswordToken({id:e}){return t.get(`password-tokens/${e}`)},deleteResetPasswordToken({id:e}){return t.delete(`password-tokens/${e}`)}}}function Be({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,expand:u=null,fields:l=null,sort:o=null}={}){const a={limit:e,offset:s,filter:n,q:r,expand:u,fields:l,sort:o};return t.getAll("customers",a)},create({id:e="",data:s,expand:n=null}){const r={expand:n};return t.create(`customers/${e}`,e,s,r)},get({id:e,expand:s=null,fields:n=null}){const r={expand:s,fields:n};return t.get(`customers/${e}`,r)},update({id:e,data:s,expand:n=null}){const r={expand:n};return t.put(`customers/${e}`,s,r)},merge({id:e,targetCustomerId:s}){return t.delete(`customers/${e}?targetCustomerId=${s}`)},getLeadSource({id:e}){return t.get(`customers/${e}/lead-source`)},createLeadSource({id:e,data:s}){return t.put(`customers/${e}/lead-source`,s)},updateLeadSource({id:e,data:s}){return t.put(`customers/${e}/lead-source`,s)},deleteLeadSource({id:e}){return t.delete(`customers/${e}/lead-source`)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`customers/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`customers/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`customers/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`customers/${e}/timeline/${s}`)},getCustomerCreditBalance({id:e}){return t.get(`customers/${e}/credit-balance`)},generateComplianceScreeningReport({id:e}){return t.post(`customers/${e}/compliance-screening-report`)}}}function Ke({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,expand:u=null}={}){const l={limit:e,offset:s,filter:n,sort:r,expand:u};return t.getAll("deposit-requests",l)},create({data:e}){return t.post("deposit-requests",e)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`deposit-requests/${e}`,n)}}}function Le({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("deposit-strategies",u)},create({id:e="",data:s}){return t.create(`deposit-strategies/${e}`,e,s)},get({id:e}){return t.get(`deposit-strategies/${e}`)},update({id:e,data:s}){return t.put(`deposit-strategies/${e}`,s)},delete({id:e}){return t.delete(`deposit-strategies/${e}`)}}}function _e({apiHandler:t}){return{validate({data:e}){return t.post("digital-wallets/validation",e)},getApplePayDomains(){return t.get("digital-wallets/onboarding/apple-pay")},create({data:e}){return t.post("digital-wallets/onboarding/apple-pay",e)},deleteApplePayDomain({domain:e}){return t.delete(`digital-wallets/onboarding/apple-pay/${e}`)}}}function ze({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("disputes",o)},create({id:e="",data:s,expand:n=null}){const r={expand:n};return t.create(`disputes/${e}`,e,s,r)},get({id:e}){return t.get(`disputes/${e}`)},update({id:e,data:s,expand:n=null}){const r={expand:n};return t.put(`disputes/${e}`,s,r)}}}function Ve({apiHandler:t}){return{verify({token:e}){return t.put(`email-delivery-setting-verifications/${e}`)},getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,q:u=null}={}){const l={limit:e,offset:s,filter:n,sort:r,q:u};return t.getAll("email-delivery-settings",l)},create({data:e}){return t.post("email-delivery-settings",e)},get({id:e}){return t.get(`email-delivery-settings/${e}`)},delete({id:e}){return t.delete(`email-delivery-settings/${e}`)},update({id:e,data:s}){return t.patch(`email-delivery-settings/${e}`,s)},resendVerification({id:e}){return t.post(`email-delivery-settings/${e}/resend-email-verification`)}}}function Ue({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,q:n=null,sort:r=null,filter:u=null}={}){const l={limit:e,offset:s,q:n,sort:r,filter:u};return t.getAll("email-messages",l)},create({data:e}){return t.post("email-messages",e)},get({id:e}){return t.get(`email-messages/${e}`)},delete({id:e}){return t.delete(`email-messages/${e}`)},send({id:e,data:s={status:"outbox"}}){return t.patch(`email-messages/${e}`,s)}}}function Je({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const n={limit:e,offset:s};return t.getAll("email-notifications",n)}}}function We({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null}={}){const u={limit:e,offset:s,filter:n,q:r};return t.getAll("events",u)},get({eventType:e}){return t.get(`events/${e}`)},getRules({eventType:e}){return t.get(`events/${e}/rules`)},createRules({eventType:e,data:s}){return t.put(`events/${e}/rules`,s)},updateRules({eventType:e,data:s}){return t.put(`events/${e}/rules`,s)},getAllTimelineMessages({eventType:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`events/${e}/timeline`,o)},createTimelineComment({eventType:e,data:s}){return t.post(`events/${e}/timeline`,s)},getTimelineMessage({eventType:e,messageId:s}){return t.get(`events/${e}/timeline/${s}`)},deleteTimelineMessage({eventType:e,messageId:s}){return t.delete(`events/${e}/timeline/${s}`)},getRulesHistory({eventType:e,limit:s=null,offset:n=null,filter:r=null,q:u=null,sort:l=null,fields:o=null}){const a={limit:s,offset:n,filter:r,q:u,sort:l,fields:o};return t.getAll(`events/${e}/rules/history`,a)},getRulesVersionNumber({eventType:e,version:s,fields:n=null}){const r={fields:n};return t.get(`events/${e}/rules/history/${s}`,r)},getRulesVersionDetail({eventType:e,version:s,fields:n=null}){const r={fields:n};return t.get(`events/${e}/rules/versions/${s}`,r)},getAllDraftRulesets({eventType:e,limit:s=null,offset:n=null,filter:r=null,q:u=null,sort:l=null,fields:o=null}){const a={limit:s,offset:n,filter:r,q:u,sort:l,fields:o};return t.getAll(`events/${e}/rules/drafts`,a)},createDraftRuleset({eventType:e,data:s}){return t.post(`events/${e}/rules/drafts`,s)},getDraftRuleset({eventType:e,id:s,fields:n=null}){const r={fields:n};return t.get(`events/${e}/rules/drafts/${s}`,r)},updateDraftRuleset({eventType:e,id:s,data:n}){return t.put(`events/${e}/rules/drafts/${s}`,n)},deleteDraftRuleset({eventType:e,id:s}){return t.delete(`events/${e}/rules/drafts/${s}`)}}}function Ye({apiHandler:t}){return{get({resource:e,resourceId:s,service:n}){return t.get(`${e}/${s}/external-identifiers/${n}`)},sync({resource:e,resourceId:s,service:n}){return t.post(`${e}/${s}/external-identifiers/${n}`)},update({resource:e,resourceId:s,service:n,data:r}){return t.put(`${e}/${s}/external-identifiers/${n}`,r)},delete({resource:e,resourceId:s,service:n}){return t.delete(`${e}/${s}/external-identifiers/${n}`)}}}function Qe({apiHandler:t}){return{getExternalServiceSettings(){return t.get("external-services-settings")},updateExternalServiceSettings({data:e}){return t.put("external-services-settings",e)}}}function Ge({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("fees",u)},create({id:e="",data:s}){return t.create(`fees/${e}`,e,s)},get({id:e}){return t.get(`fees/${e}`)},upsert({id:e,data:s}){return t.put(`fees/${e}`,s)},delete({id:e}){return t.delete(`fees/${e}`)},patch({id:e,data:s}){return t.patch(`fees/${e}`,s)}}}function Xe({apiHandler:t}){return{getAllAttachments({limit:e=null,offset:s=null,filter:n=null,q:r=null,fields:u=null,sort:l=null}={}){const o={limit:e,offset:s,filter:n,q:r,fields:u,sort:l};return t.getAll("attachments",o)},attach({id:e="",data:s}){return t.create(`attachments/${e}`,e,s)},getAttachment({id:e}){return t.get(`attachments/${e}`)},updateAttachment({id:e,data:s}){return t.put(`attachments/${e}`,s)},detach({id:e}){return t.delete(`attachments/${e}`)},getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,fields:u=null,sort:l=null}={}){const o={limit:e,offset:s,filter:n,q:r,fields:u,sort:l};return t.getAll("files",o)},upload({fileObject:e}){return t.post("files",e)},get({id:e}){return t.get(`files/${e}`)},update({id:e,data:s}){return t.put(`files/${e}`,s)},delete({id:e}){return t.delete(`files/${e}`)},download({id:e}){return t.download(`files/${e}/download`,{responseType:"arraybuffer"})},detachAndDelete({id:e}){const s={filter:`fileId:${e}`};let n=[];const u=(async()=>{const l=this.getAllAttachments(s);n.push(l);const o=(await l).items.map(h=>this.detach({id:h.fields.id}));n=[...n,o],await Promise.all(o);const a=t.delete(`files/${e}`);return n.push(a),a})();return u.cancel=()=>{n.forEach(l=>l.cancel())},u},uploadAndUpdate({fileObject:e,data:s={description:"",tags:[""]}}){const n=[],u=(async()=>{const l=this.upload({fileObject:e});n.push(l),await l;const o={name:l.name,extension:l.extension,description:s.description,tags:s.tags,url:""},a=this.update({id:l.fields.id,data:o});return n.push(a),a})();return u.cancel=()=>{n.forEach(l=>l.cancel())},u}}}function Ze({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null,fields:l=null}={}){const o={limit:e,offset:s,sort:n,filter:r,q:u,fields:l};return t.getAll("gateway-accounts",o)},create({id:e="",data:s}){return t.create(`gateway-accounts/${e}`,e,s)},get({id:e}){return t.get(`gateway-accounts/${e}`)},upsert({id:e,data:s}){return t.put(`gateway-accounts/${e}`,s)},delete({id:e}){return t.delete(`gateway-accounts/${e}`)},update({id:e,data:s}){return t.patch(`gateway-accounts/${e}`,s)},close({id:e}){return t.post(`gateway-accounts/${e}/close`)},disable({id:e}){return t.post(`gateway-accounts/${e}/disable`)},getAllDowntimeSchedules({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null}){const l={limit:s,offset:n,filter:r,sort:u};return t.getAll(`gateway-accounts/${e}/downtime-schedules`,l)},createDowntimeSchedule({id:e,data:s}){return t.post(`gateway-accounts/${e}/downtime-schedules`,s)},getDowntimeSchedule({id:e,downtimeId:s}){return t.get(`gateway-accounts/${e}/downtime-schedules/${s}`)},updateDowntimeSchedule({id:e,downtimeId:s,data:n}){return t.put(`gateway-accounts/${e}/downtime-schedules/${s}`,n)},deleteDowntimeSchedule({id:e,downtimeId:s}){return t.delete(`gateway-accounts/${e}/downtime-schedules/${s}`)},enable({id:e}){return t.post(`gateway-accounts/${e}/enable`)},getAllVolumeLimits({id:e}){return t.getAll(`gateway-accounts/${e}/limits`)},getVolumeLimit({id:e,limitId:s}){return t.get(`gateway-accounts/${e}/limits/${s}`)},updateVolumeLimit({id:e,limitId:s,data:n}){return t.put(`gateway-accounts/${e}/limits/${s}`,n)},deleteVolumeLimit({id:e,limitId:s}){return t.delete(`gateway-accounts/${e}/limits/${s}`)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`gateway-accounts/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`gateway-accounts/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`gateway-accounts/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`gateway-accounts/${e}/timeline/${s}`)},checkCredentials({id:e}){return t.post(`gateway-accounts/${e}/check-credentials`)},getFinancialSettings({id:e}){return t.get(`gateway-accounts/${e}/financial-settings`)},setFinancialSettings({id:e,data:s}){return t.put(`gateway-accounts/${e}/financial-settings`,s)}}}function He({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const n={limit:e,offset:s};return t.getAll("integrations",n)},get({label:e}){return t.get(`integrations/${e}`)}}}function et({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("invoices",o)},create({id:e="",data:s}){return t.create(`invoices/${e}`,e,s)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`invoices/${e}`,n)},update({id:e,data:s}){return t.put(`invoices/${e}`,s)},getAllInvoiceItems({id:e,limit:s=null,offset:n=null,expand:r=null}){const u={limit:s,offset:n,expand:r};return t.getAll(`invoices/${e}/items`,u)},createInvoiceItem({id:e,data:s}){return t.post(`invoices/${e}/items`,s)},getInvoiceItem({id:e,itemId:s}){return t.get(`invoices/${e}/items/${s}`)},updateInvoiceItem({id:e,itemId:s,data:n}){return t.put(`invoices/${e}/items/${s}`,n)},deleteInvoiceItem({id:e,itemId:s}){return t.delete(`invoices/${e}/items/${s}`)},issue({id:e,data:s}){return t.post(`invoices/${e}/issue`,s)},abandon({id:e}){return t.post(`invoices/${e}/abandon`)},void({id:e}){return t.post(`invoices/${e}/void`)},recalculate({id:e}){return t.post(`invoices/${e}/recalculate`)},reissue({id:e,data:s}){return t.post(`invoices/${e}/reissue`,s)},getAllTransactionAllocations({id:e,limit:s=null,offset:n=null}){const r={limit:s,offset:n};return t.getAll(`invoices/${e}/transaction-allocations`,r)},allocateCreditBalance({id:e,data:s}){return t.post(`invoices/${e}/allocate-credit-balance`,s)},applyTransaction({id:e,data:s}){return t.post(`invoices/${e}/transaction`,s)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`invoices/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`invoices/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`invoices/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`invoices/${e}/timeline/${s}`)},downloadPDF({id:e}){const s={headers:A,responseType:"arraybuffer"};return t.download(`invoices/${e}`,s)}}}function tt({apiHandler:t}){return{getAllAccounts({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("journal-accounts",u)},createAccount({id:e="",data:s}){return t.create(`journal-accounts/${e}`,e,s)},getAccount({id:e}){return t.get(`journal-accounts/${e}`)},updateAccount({id:e,data:s}){return t.put(`journal-accounts/${e}`,s)}}}function st({apiHandler:t}){return{getAllEntries({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("journal-entries",u)},createEntry({id:e="",data:s}){return t.create(`journal-entries/${e}`,e,s)},getEntry({id:e}){return t.get(`journal-entries/${e}`)},updateEntry({id:e,data:s}){return t.put(`journal-entries/${e}`,s)}}}function nt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,expand:u=null}={}){const l={limit:e,offset:s,filter:n,sort:r,expand:u};return t.getAll("journal-records",l)},create({id:e="",data:s}){return t.create(`journal-records/${e}`,e,s)},get({id:e}){return t.get(`journal-records/${e}`)},update({id:e,data:s}){return t.put(`journal-records/${e}`,s)},delete({id:e}){return t.delete(`journal-records/${e}`)}}}function rt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,expand:u=null}={}){const l={limit:e,offset:s,filter:n,sort:r,expand:u};return t.getAll("kyc-documents",l)},create({id:e="",data:s}){return t.create(`kyc-documents/${e}`,e,s)},get({id:e}){return t.get(`kyc-documents/${e}`)},update({id:e,data:s}){return t.put(`kyc-documents/${e}`,s)},accept({id:e}){return t.post(`kyc-documents/${e}/acceptance`)},matches({id:e,data:s}){return t.post(`kyc-documents/${e}/matches`,s)},reject({id:e,data:s}){return t.post(`kyc-documents/${e}/rejection`,s)},review({id:e}){return t.post(`kyc-documents/${e}/review`)},startReview({id:e}){return t.post(`kyc-documents/${e}/start-review`)},stopReview({id:e}){return t.post(`kyc-documents/${e}/stop-review`)}}}function ut({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,expand:u=null}={}){const l={limit:e,offset:s,filter:n,sort:r,expand:u};return t.getAll("kyc-requests",l)},create({data:e}){return t.post("kyc-requests",e)},get({id:e}){return t.get(`kyc-requests/${e}`)},delete({id:e}){return t.delete(`kyc-requests/${e}`)},update({id:e,data:s}){return t.patch(`kyc-requests/${e}`,s)}}}function lt({apiHandler:t}){return{getKycSettings(){return t.get("kyc-settings")},updateKycSettings({data:e}){return t.put("kyc-settings",e)}}}function ot({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,fields:u=null,q:l=null}={}){const o={limit:e,offset:s,filter:n,sort:r,fields:u,q:l};return t.getAll("lists",o)},create({id:e="",data:s}){return t.create(`lists/${e}`,e,s)},getLatestVersion({id:e}){return t.get(`lists/${e}`)},update({id:e,data:s}){return t.put(`lists/${e}`,s)},delete({id:e}){return t.delete(`lists/${e}`)},getByVersion({id:e,version:s}){return t.get(`lists/${e}/${s}`)}}}function ct({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("order-cancellations",u)},create({id:e="",data:s}){return t.create(`order-cancellations/${e}`,e,s)},get({id:e}){return t.get(`order-cancellations/${e}`)},update({id:e,data:s}){return t.put(`order-cancellations/${e}`,s)},delete({id:e}){return t.delete(`order-cancellations/${e}`)},patch({id:e,data:s}){return t.patch(`order-cancellations/${e}`,s)}}}function it({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("order-changes",u)},create({id:e="",data:s}){return t.create(`order-changes/${e}`,e,s)},get({id:e}){return t.get(`order-changes/${e}`)},update({id:e,data:s}){return t.put(`order-changes/${e}`,s)},delete({id:e}){return t.delete(`order-changes/${e}`)}}}function gt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("order-pauses",u)},pause({id:e="",data:s}){return t.create(`order-pauses/${e}`,e,s)},get({id:e}){return t.get(`order-pauses/${e}`)},update({id:e,data:s}){return t.put(`order-pauses/${e}`,s)},delete({id:e}){return t.delete(`order-pauses/${e}`)}}}function at({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("order-reactivations",u)},reactivate({data:e}){return t.post("order-reactivations",e)},get({id:e}){return t.get(`order-reactivations/${e}`)}}}function mt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("orders",o)},create({id:e="",data:s,expand:n=null}){const r={expand:n};return t.create(`orders/${e}`,e,s,r)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`orders/${e}`,n)},update({id:e,data:s,expand:n=null}){const r={expand:n};return t.put(`orders/${e}`,s,r)},getUpcomingInvoice({id:e,expand:s=null}){const n={expand:s};return t.get(`orders/${e}/upcoming-invoice`,n)},void({id:e}){return t.post(`orders/${e}/void`)},changeItems({id:e,data:s,expand:n=null}){const r={expand:n};return t.post(`orders/${e}/change-items`,s,r)},updateItem({id:e,itemId:s,data:n}){return t.patch(`orders/${e}/items/${s}`,n)},createInterimInvoice({id:e,data:s}){return t.post(`orders/${e}/interim-invoice`,s)},issueEarlyUpcomingInvoice({id:e,data:s}){return t.post(`orders/${e}/upcoming-invoice/issue`,s)}}}function $t({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,sort:u=null}={}){const l={limit:e,offset:s,filter:n,q:r,sort:u};return t.getAll("organization-exports",l)},create({data:e}){return t.post("organization-exports",e)},get({id:e}){return t.get(`organization-exports/${e}`)}}}function ht({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,q:u=null}={}){const l={limit:e,offset:s,filter:n,sort:r,q:u};return t.getAll("organizations",l)},create({data:e}){return t.post("organizations",e)},get({id:e}){return t.get(`organizations/${e}`)},update({id:e,data:s}){return t.patch(`organizations/${e}`,s)}}}function pt({apiHandler:t}){return{getAll({limit:e=null,q:s=null}={}){const n={limit:e,q:s};return t.getAll("payment-cards-bank-names",n)}}}function ft({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("payment-instruments",o)},create({data:e}){return t.post("payment-instruments",e)},get({id:e}){return t.get(`payment-instruments/${e}`)},update({id:e,data:s}){return t.patch(`payment-instruments/${e}`,s)},deactivate({id:e}){return t.post(`payment-instruments/${e}/deactivation`)},nameInquiry({id:e,data:s}){return t.post(`payment-instruments/${e}/name-inquiry`,s)}}}function yt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const n={limit:e,offset:s};return t.getAll("payment-methods",n)},get({apiName:e}){return t.get(`payment-methods/${e}`)}}}function Rt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const n={limit:e,offset:s};return t.getAll("tokens",n)},create({data:e}){return t.post("tokens",e)},get({token:e}){return t.get(`tokens/${e}`)}}}function At({apiHandler:t}){return{create({data:e}){return t.post("payout-request-allocation-operations",e)}}}function bt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("payout-request-allocations",u)},create({data:e}){return t.post("payout-request-allocations",e)},get({id:e}){return t.get(`payout-request-allocations/${e}`)},update({id:e,data:s}){return t.patch(`payout-request-allocations/${e}`,s)}}}function vt({apiHandler:t}){return{create({data:e}){return t.post("payout-request-auto-allocations",e)}}}function wt({apiHandler:t}){return{create({data:e}){return t.post("payout-request-batch-operations",e)}}}function kt({apiHandler:t}){return{create({data:e}){return t.post("payout-request-batch-previews",e)}}}function qt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,q:n=null,filter:r=null,sort:u=null}={}){const l={limit:e,offset:s,q:n,filter:r,sort:u};return t.getAll("payout-request-batches",l)},create({data:e}){return t.post("payout-request-batches",e)},get({id:e}){return t.get(`payout-request-batches/${e}`)},delete({id:e}){return t.delete(`payout-request-batches/${e}`)},patch({id:e,data:s}){return t.patch(`payout-request-batches/${e}`,s)}}}function dt({apiHandler:t}){return{create({data:e}){return t.post("payout-request-splits",e)}}}function Tt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("payout-requests",u)},create({id:e="",data:s}){return t.create(`payout-requests/${e}`,e,s)},get({id:e}){return t.get(`payout-requests/${e}`)},update({id:e,data:s}){return t.put(`payout-requests/${e}`,s)},patch({id:e,data:s}){return t.patch(`payout-requests/${e}`,s)},getPaymentInstruments({id:e}){return t.get(`payout-requests/${e}/payment-instruments`)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`payout-requests/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`payout-requests/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`payout-requests/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`payout-requests/${e}/timeline/${s}`)}}}function Et({apiHandler:t}){return{create({data:e}){return t.post("payouts",e)}}}function It({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null}={}){const l={filter:e,sort:s,limit:n,offset:r,q:u};return t.getAll("plans",l)},create({id:e="",data:s}){return t.create(`plans/${e}`,e,s)},get({id:e}){return t.get(`plans/${e}`)},update({id:e,data:s}){return t.put(`plans/${e}`,s)},delete({id:e}){return t.delete(`plans/${e}`)}}}function St({apiHandler:t}){return{order({data:e}){return t.post("previews/orders",e)},sendEmailRuleAction({data:e}){return t.post("previews/rule-actions/send-email",e)},webhook({data:e}){return t.post("previews/webhooks",e)}}}function Pt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null}={}){const l={filter:e,sort:s,limit:n,offset:r,q:u};return t.getAll("products",l)},create({id:e="",data:s}){return t.create(`products/${e}`,e,s)},get({id:e}){return t.get(`products/${e}`)},update({id:e,data:s}){return t.put(`products/${e}`,s)},delete({id:e}){return t.delete(`products/${e}`)}}}function Ct({apiHandler:t}){return{startPermissionsEmulation({data:e}){return t.post("permissions-emulation",e)},stopPermissionsEmulation(){return t.delete("permissions-emulation")},get(){return t.get("profile")},update({data:e}){return t.put("profile",e)},getDashboard(){return t.get("profile/dashboard")},updateDashboard({data:e}){return t.put("profile/dashboard",e)},getDashboardMetricReport({metric:e,periodStart:s,periodEnd:n}){const r={periodStart:s,periodEnd:n};return t.get(`profile/dashboard/metrics/${e}`,r)}}}function xt({apiHandler:t}){return{readyToPay({data:e}){return t.post("ready-to-pay",e)}}}function Dt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,expand:u=null}={}){const l={filter:e,sort:s,limit:n,offset:r,expand:u};return t.getAll("quotes",l)},create({id:e="",data:s}){return t.create(`quotes/${e}`,e,s)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`quotes/${e}`,n)},update({id:e,data:s}){return t.put(`quotes/${e}`,s)},patch({id:e,data:s}){return t.patch(`quotes/${e}`,s)},accept({id:e}){return t.post(`quotes/${e}/accept`)},cancel({id:e}){return t.post(`quotes/${e}/cancel`)},issue({id:e}){return t.post(`quotes/${e}/issue`)},recall({id:e}){return t.post(`quotes/${e}/recall`)},reissue({id:e,data:s}){return t.post(`quotes/${e}/reissue`,s)},reject({id:e}){return t.post(`quotes/${e}/reject`)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`quotes/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`quotes/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`quotes/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`quotes/${e}/timeline/${s}`)},downloadPDF({id:e}){const s={headers:A,responseType:"arraybuffer"};return t.download(`quotes/${e}`,s)}}}function Mt({apiHandler:t}){return{getEnabled(){return t.get("release-flags")}}}function Ot({apiHandler:t}){return{get({resource:e,resourceId:s,service:n}){return t.get(`${e}/${s}/external-identifiers/${n}`)},sync({resource:e,resourceId:s,service:n}){return t.post(`${e}/${s}/external-identifiers/${n}`)},update({resource:e,resourceId:s,service:n,data:r}){return t.put(`${e}/${s}/external-identifiers/${n}`,r)},delete({resource:e,resourceId:s,service:n}){return t.delete(`${e}/${s}/external-identifiers/${n}`)}}}function jt({apiHandler:t}){return{getAll(){return t.get("risk-score-rules")},updateRiskScoreRules({data:e}){return t.put("risk-score-rules",e)},getAllBlocklistRules(){return t.get("risk-score-rules/blocklists")},updateRiskScoreBlocklistRules({data:e}){return t.put("risk-score-rules/blocklists",e)}}}function Ft({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,q:u=null,expand:l=null}={}){const o={limit:e,offset:s,filter:n,sort:r,q:u,expand:l};return t.getAll("roles",o)},create({id:e="",data:s}){return t.create(`roles/${e}`,e,s)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`roles/${e}`,n)},update({id:e,data:s}){return t.put(`roles/${e}`,s)},delete({id:e}){return t.delete(`roles/${e}`)}}}function Nt({apiHandler:t}){return{get({sort:e=null,limit:s=null,offset:n=null,q:r=null}){const u={sort:e,limit:s,offset:n,q:r};return t.get("search",u)}}}function Bt({apiHandler:t}){return{get(){return t.get("security-settings")},update({data:e}){return t.put("security-settings",e)}}}function Kt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("grid-segments",l)},create({id:e="",data:s}){return t.create(`grid-segments/${e}`,e,s)},get({id:e}){return t.get(`grid-segments/${e}`)},update({id:e,data:s}){return t.put(`grid-segments/${e}`,s)},delete({id:e}){return t.delete(`grid-segments/${e}`)}}}function Lt({apiHandler:t}){return{getAll({eventType:e}){return t.getAll(`send-through-attribution/${e}`)}}}function _t({apiHandler:t}){return{getAll({type:e,filter:s=null,limit:n=null,offset:r=null,sort:u=null,q:l=null}){const o={filter:s,limit:n,offset:r,sort:u,q:l};return t.getAll(`service-credentials/${e}`,o)},create({type:e,data:s}){return t.post(`service-credentials/${e}`,s)},get({type:e,id:s}){return t.get(`service-credentials/${e}/${s}`)},update({type:e,id:s,data:n}){return t.patch(`service-credentials/${e}/${s}`,n)},getItems({type:e,id:s,limit:n=null,offset:r=null,filter:u=null,q:l=null,fields:o=null,sort:a=null}){const h={limit:n,offset:r,filter:u,q:l,fields:o,sort:a};return t.getAll(`service-credentials/${e}/${s}/items`,h)}}}function zt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null,q:u=null}={}){const l={limit:e,offset:s,filter:n,sort:r,q:u};return t.getAll("shipping-rates",l)},create({id:e="",data:s}){return t.create(`shipping-rates/${e}`,e,s)},get({id:e}){return t.get(`shipping-rates/${e}`)},update({id:e,data:s}){return t.put(`shipping-rates/${e}`,s)},delete({id:e}){return t.delete(`shipping-rates/${e}`)}}}function Vt({apiHandler:t}){return{get(){return t.get("status")}}}function Ut({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("subscription-cancellations",u)},create({id:e="",data:s}){return t.create(`subscription-cancellations/${e}`,e,s)},get({id:e}){return t.get(`subscription-cancellations/${e}`)},delete({id:e}){return t.delete(`subscription-cancellations/${e}`)},patch({id:e,data:s}){return t.patch(`subscription-cancellations/${e}`,s)}}}function Jt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("subscription-pauses",u)},pause({id:e="",data:s}){return t.create(`subscription-pauses/${e}`,e,s)},get({id:e}){return t.get(`subscription-pauses/${e}`)},update({id:e,data:s}){return t.put(`subscription-pauses/${e}`,s)},delete({id:e}){return t.delete(`subscription-pauses/${e}`)}}}function Wt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,sort:r=null}={}){const u={limit:e,offset:s,filter:n,sort:r};return t.getAll("subscription-reactivations",u)},reactivate({data:e}){return t.post("subscription-reactivations",e)},get({id:e}){return t.get(`subscription-reactivations/${e}`)}}}function Yt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("subscriptions",o)},create({id:e="",data:s,expand:n=null}){const r={expand:n};return t.create(`subscriptions/${e}`,e,s,r)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`subscriptions/${e}`,n)},update({id:e,data:s,expand:n=null}){const r={expand:n};return t.put(`subscriptions/${e}`,s,r)},delete({id:e}){return t.delete(`subscriptions/${e}`)},void({id:e}){return t.post(`subscriptions/${e}/void`)},changeItems({id:e,data:s,expand:n=null}){const r={expand:n};return t.post(`subscriptions/${e}/change-items`,s,r)},updateItem({id:e,itemId:s,data:n}){return t.patch(`subscriptions/${e}/items/${s}`,n)},createInterimInvoice({id:e,data:s}){return t.post(`subscriptions/${e}/interim-invoice`,s)},getAllUpcomingInvoices({id:e,expand:s=null}){const n={expand:s};return t.getAll(`subscriptions/${e}/upcoming-invoices`,n)},getUpcomingInvoice({id:e,expand:s=null}){const n={expand:s};return t.get(`subscriptions/${e}/upcoming-invoice`,n)},issueEarlyUpcomingInvoice({id:e,data:s}){return t.post(`subscriptions/${e}/upcoming-invoice/issue`,s)},issueUpcomingInvoice({id:e,invoiceId:s,data:n}){return t.post(`subscriptions/${e}/upcoming-invoices/${s}/issue`,n)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`subscriptions/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`subscriptions/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`subscriptions/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`subscriptions/${e}/timeline/${s}`)}}}function Qt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,sort:u=null}={}){const l={limit:e,offset:s,filter:n,q:r,sort:u};return t.getAll("tags",l)},create({data:e}){return t.post("tags",e)},get({tag:e}){return t.get(`tags/${e}`)},delete({tag:e}){return t.delete(`tags/${e}`)},update({tag:e,data:s}){return t.patch(`tags/${e}`,s)},tagCustomers({tag:e,data:s}){return t.post(`tags/${e}/customers`,s)},untagCustomers({tag:e,data:s}){return t.delete(`tags/${e}/customers`,s)},tagCustomer({tag:e,customerId:s}){return t.post(`tags/${e}/customers/${s}`)},untagCustomer({tag:e,customerId:s}){return t.delete(`tags/${e}/customers/${s}`)},tagKycDocuments({tag:e,data:s}){return t.post(`tags/${e}/kyc-documents`,s)},untagKycDocuments({tag:e,data:s}){return t.delete(`tags/${e}/kyc-documents`,s)},tagKycDocument({tag:e,kycDocumentId:s}){return t.post(`tags/${e}/kyc-documents/${s}`)},untagKycDocument({tag:e,kycDocumentId:s}){return t.delete(`tags/${e}/kyc-documents/${s}`)},tagAmlChecks({tag:e,data:s}){return t.post(`tags/${e}/aml-checks`,s)},untagAmlChecks({tag:e,data:s}){return t.delete(`tags/${e}/aml-checks`,s)},tagAmlCheck({tag:e,amlCheckId:s}){return t.post(`tags/${e}/aml-checks/${s}`)},untagAmlCheck({tag:e,amlCheckId:s}){return t.delete(`tags/${e}/aml-checks/${s}`)}}}function Gt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("tags-rules",l)},create({id:e="",data:s}){return t.create(`tags-rules/${e}`,e,s)},get({id:e}){return t.get(`tags-rules/${e}`)},update({id:e,data:s}){return t.put(`tags-rules/${e}`,s)},delete({id:e}){return t.delete(`tags-rules/${e}`)}}}function Xt({apiHandler:t}){return{getAllApiLogs({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null,expand:l=null}={}){const o={limit:e,offset:s,sort:n,filter:r,q:u,expand:l};return t.getAll("tracking/api",o)},getApiLog({id:e}){return t.get(`tracking/api/${e}`)},getAllTaxTrackingLogs({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("tracking/taxes",l)},getTaxTrackingLog({id:e}){return t.get(`tracking/taxes/${e}`)},getAllListsChangesHistory({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("tracking/lists",l)},getAllWebhookTrackingLogs({limit:e=null,offset:s=null,filter:n=null,q:r=null}={}){const u={limit:e,offset:s,filter:n,q:r};return t.getAll("tracking/webhooks",u)},getWebhookTrackingLog({id:e}){return t.get(`tracking/webhooks/${e}`)},resendWebhook({id:e}){return t.post(`tracking/webhooks/${e}/resend`)}}}function Zt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,sort:u=null,expand:l=null,fields:o=null,links:a=null}={}){const h={limit:e,offset:s,filter:n,q:r,sort:u,expand:l,fields:o,links:a};return t.getAll("transactions",h)},create({data:e,expand:s=null}){const n={expand:s};return t.post("transactions",e,n)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`transactions/${e}`,n)},patch({id:e,data:s}){return t.patch(`transactions/${e}`,s)},query({id:e}){return t.post(`transactions/${e}/query`)},update({id:e,data:s}){return t.post(`transactions/${e}/update`,s)},refund({id:e,data:s,expand:n=null}){const r={expand:n};return t.post(`transactions/${e}/refund`,s,r)},getAllTimelineMessages({id:e,limit:s=null,offset:n=null,filter:r=null,sort:u=null,q:l=null}){const o={limit:s,offset:n,filter:r,sort:u,q:l};return t.getAll(`transactions/${e}/timeline`,o)},createTimelineComment({id:e,data:s}){return t.post(`transactions/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`transactions/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`transactions/${e}/timeline/${s}`)},downloadPDF({id:e}){const s={headers:A,responseType:"arraybuffer"};return t.download(`transactions/${e}`,s)}}}function Ht({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null}={}){const l={filter:e,sort:s,limit:n,offset:r,q:u};return t.getAll("usages",l)},create({data:e}){return t.post("usages",e)},get({id:e}){return t.get(`usages/${e}`)},delete({id:e}){return t.delete(`usages/${e}`)}}}function es({apiHandler:t}){return{deleteUserMembership({organizationId:e,userId:s}){return t.delete(`memberships/${e}/${s}`)},getAll({limit:e=null,offset:s=null,sort:n=null,filter:r=null,q:u=null}={}){const l={limit:e,offset:s,sort:n,filter:r,q:u};return t.getAll("users",l)},create({id:e="",data:s}){return t.create(`users/${e}`,e,s)},get({id:e}){return t.get(`users/${e}`)},update({id:e,data:s}){return t.put(`users/${e}`,s)}}}function ts({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null}={}){const u={limit:e,offset:s,filter:n,q:r};return t.getAll("webhook-events",u)}}}function ss({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null}={}){const r={limit:e,offset:s,filter:n};return t.getAll("webhooks",r)},create({id:e="",data:s}){return t.create(`webhooks/${e}`,e,s)},get({id:e}){return t.get(`webhooks/${e}`)},update({id:e,data:s}){return t.put(`webhooks/${e}`,s)},delete({id:e}){return t.delete(`webhooks/${e}`)}}}function ns({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,q:n=null,filter:r=null,sort:u=null}={}){const l={limit:e,offset:s,q:n,filter:r,sort:u};return t.getAll("websites",l)},create({id:e="",data:s}){return t.create(`websites/${e}`,e,s)},get({id:e}){return t.get(`websites/${e}`)},update({id:e,data:s}){return t.put(`websites/${e}`,s)},delete({id:e}){return t.delete(`websites/${e}`)}}}var rs=class{constructor({apiHandler:t}){this.account=ve({apiHandler:t}),this.allowlists=we({apiHandler:t}),this.amlChecks=ke({apiHandler:t}),this.amlSettings=qe({apiHandler:t}),this.apiKeys=de({apiHandler:t}),this.applicationInstances=Te({apiHandler:t}),this.applications=Ee({apiHandler:t}),this.balanceTransactions=Ie({apiHandler:t}),this.billingPortals=Se({apiHandler:t}),this.blocklists=Pe({apiHandler:t}),this.broadcastMessages=Ce({apiHandler:t}),this.cashiers=xe({apiHandler:t}),this.checkoutForms=De({apiHandler:t}),this.coupons=Me({apiHandler:t}),this.creditMemos=Oe({apiHandler:t}),this.customDomains=je({apiHandler:t}),this.customFields=Fe({apiHandler:t}),this.customerAuthentication=Ne({apiHandler:t}),this.customers=Be({apiHandler:t}),this.depositRequests=Ke({apiHandler:t}),this.depositStrategies=Le({apiHandler:t}),this.digitalWallets=_e({apiHandler:t}),this.disputes=ze({apiHandler:t}),this.emailDeliverySettings=Ve({apiHandler:t}),this.emailMessages=Ue({apiHandler:t}),this.emailNotifications=Je({apiHandler:t}),this.events=We({apiHandler:t}),this.externalIdentifiers=Ye({apiHandler:t}),this.externalServicesSettings=Qe({apiHandler:t}),this.fees=Ge({apiHandler:t}),this.files=Xe({apiHandler:t}),this.gatewayAccounts=Ze({apiHandler:t}),this.integrations=He({apiHandler:t}),this.invoices=et({apiHandler:t}),this.journalAccounts=tt({apiHandler:t}),this.journalEntries=st({apiHandler:t}),this.journalRecords=nt({apiHandler:t}),this.kycDocuments=rt({apiHandler:t}),this.kycRequests=ut({apiHandler:t}),this.kycSettings=lt({apiHandler:t}),this.lists=ot({apiHandler:t}),this.orderCancellations=ct({apiHandler:t}),this.orderChanges=it({apiHandler:t}),this.orderPauses=gt({apiHandler:t}),this.orderReactivations=at({apiHandler:t}),this.orders=mt({apiHandler:t}),this.organizationExports=$t({apiHandler:t}),this.organizations=ht({apiHandler:t}),this.paymentCardsBankNames=pt({apiHandler:t}),this.paymentInstruments=ft({apiHandler:t}),this.paymentMethods=yt({apiHandler:t}),this.paymentTokens=Rt({apiHandler:t}),this.payoutRequestAllocationOperations=At({apiHandler:t}),this.payoutRequestAllocations=bt({apiHandler:t}),this.payoutRequestAutoAllocations=vt({apiHandler:t}),this.payoutRequestBatchOperations=wt({apiHandler:t}),this.payoutRequestBatchPreviews=kt({apiHandler:t}),this.payoutRequestBatches=qt({apiHandler:t}),this.payoutRequestSplits=dt({apiHandler:t}),this.payoutRequests=Tt({apiHandler:t}),this.payouts=Et({apiHandler:t}),this.plans=It({apiHandler:t}),this.previews=St({apiHandler:t}),this.products=Pt({apiHandler:t}),this.profile=Ct({apiHandler:t}),this.purchase=xt({apiHandler:t}),this.quotes=Dt({apiHandler:t}),this.releaseFlags=Mt({apiHandler:t}),this.resource=Ot({apiHandler:t}),this.riskScoreRules=jt({apiHandler:t}),this.roles=Ft({apiHandler:t}),this.search=Nt({apiHandler:t}),this.securitySettings=Bt({apiHandler:t}),this.segments=Kt({apiHandler:t}),this.sendThroughAttribution=Lt({apiHandler:t}),this.serviceCredentials=_t({apiHandler:t}),this.shippingRates=zt({apiHandler:t}),this.status=Vt({apiHandler:t}),this.subscriptionCancellations=Ut({apiHandler:t}),this.subscriptionPauses=Jt({apiHandler:t}),this.subscriptionReactivations=Wt({apiHandler:t}),this.subscriptions=Yt({apiHandler:t}),this.tags=Qt({apiHandler:t}),this.tagsRules=Gt({apiHandler:t}),this.tracking=Xt({apiHandler:t}),this.transactions=Zt({apiHandler:t}),this.usages=Ht({apiHandler:t}),this.users=es({apiHandler:t}),this.webhookEvents=ts({apiHandler:t}),this.webhooks=ss({apiHandler:t}),this.websites=ns({apiHandler:t}),this.addRequestInterceptor=t.addRequestInterceptor,this.removeRequestInterceptor=t.removeRequestInterceptor,this.addResponseInterceptor=t.addResponseInterceptor,this.removeResponseInterceptor=t.removeResponseInterceptor,this.setTimeout=t.setTimeout,this.setProxyAgent=t.setProxyAgent,this.setSessionToken=t.setSessionToken,this.setPublishableKey=t.setPublishableKey,this.setEndpoints=t.setEndpoints,this.getCancellationToken=t.getCancellationToken,this.generateSignature=t.generateSignature}};function us({apiHandler:t}){return{getCustomerLifetimeSummaryMetrics({customerId:e}){return t.get(`customers/${e}/summary-metrics`)}}}function ls({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:n=null,expand:r=null,filter:u=null,q:l=null,criteria:o=null}={}){const a={limit:e,offset:s,sort:n,expand:r,filter:u,q:l,criteria:o};return t.getAll("data-exports",a)},queue({id:e="",data:s,expand:n=null}){const r={expand:n};return t.create(`data-exports/${e}`,e,s,r)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`data-exports/${e}`,n)},update({id:e,data:s,expand:n=null}){const r={expand:n};return t.put(`data-exports/${e}`,s,r)},delete({id:e}){return t.delete(`data-exports/${e}`)}}}function os({apiHandler:t}){return{getAmlCheckHistogramReport({periodStart:e=null,periodEnd:s=null,aggregationPeriod:n=null,metric:r=null,includePropagatedResults:u=null,filter:l=null}){const o={periodStart:e,periodEnd:s,aggregationPeriod:n,metric:r,includePropagatedResults:u,filter:l};return t.get("histograms/aml-checks",o)},getTransactionHistogramReport({periodStart:e=null,periodEnd:s=null,aggregationPeriod:n=null,metric:r=null,filter:u=null}){const l={periodStart:e,periodEnd:s,aggregationPeriod:n,metric:r,filter:u};return t.get("histograms/transactions",l)}}}function cs({apiHandler:t}){return{getApiLogSummary({periodStart:e=null,periodEnd:s=null,filter:n=null,limit:r=null,offset:u=null}){const l={periodStart:e,periodEnd:s,filter:n,limit:r,offset:u};return t.get("reports/api-log-summary",l)},getAmlChecks({periodStart:e=null,periodEnd:s=null,metric:n=null,includePropagatedResults:r=null,filter:u=null}){const l={periodStart:e,periodEnd:s,metric:n,includePropagatedResults:r,filter:u};return t.get("reports/aml-checks",l)},getAmlChecksInheritedSummary({periodStart:e=null,periodEnd:s=null,filter:n=null}){const r={periodStart:e,periodEnd:s,filter:n};return t.get("reports/aml-checks-inherited-summary",r)},getAmlAuditReport({personId:e,periodStart:s=null,periodEnd:n=null,filter:r=null}){const u={personId:e,periodStart:s,periodEnd:n,filter:r};return t.get("reports/aml-audit-reports",u)},getCumulativeSubscriptions({aggregationField:e=null,periodStart:s=null,periodEnd:n=null,limit:r=null,offset:u=null,filter:l=null}){const o={aggregationField:e,periodStart:s,periodEnd:n,limit:r,offset:u,filter:l};return t.get("reports/cumulative-subscriptions",o)},getDashboardMetrics({periodStart:e=null,periodEnd:s=null,metrics:n=null,segments:r=null}){const u={periodStart:e,periodEnd:s,metrics:n,segments:r};return t.get("reports/dashboard",u)},getDccMarkup({aggregationField:e=null,periodStart:s=null,periodEnd:n=null,limit:r=null,offset:u=null,filter:l=null}){const o={aggregationField:e,periodStart:s,periodEnd:n,limit:r,offset:u,filter:l};return t.get("reports/dcc-markup",o)},getDeclinedTransactions({aggregationField:e=null,periodStart:s=null,periodEnd:n=null,limit:r=null,offset:u=null,filter:l=null}){const o={aggregationField:e,periodStart:s,periodEnd:n,limit:r,offset:u,filter:l};return t.get("reports/declined-transactions",o)},getDeferredRevenue({currency:e=null,asOfDate:s=null,limit:n=null,offset:r=null,filter:u=null}){const l={currency:e,asOfDate:s,limit:n,offset:r,filter:u};return t.get("reports/deferred-revenue",l)},getDisputes({aggregationField:e=null,periodMonth:s=null,limit:n=null,offset:r=null,filter:u=null}){const l={aggregationField:e,periodMonth:s,limit:n,offset:r,filter:u};return t.get("reports/disputes",l)},getEventsTriggeredSummary({periodStart:e=null,periodEnd:s=null,limit:n=null,offset:r=null}){const u={periodStart:e,periodEnd:s,limit:n,offset:r};return t.get("reports/events-triggered",u)},getTriggeredEventRuleReport({eventType:e,periodStart:s=null,periodEnd:n=null,limit:r=null,offset:u=null}){const l={periodStart:s,periodEnd:n,limit:r,offset:u};return t.get(`reports/events-triggered/${e}/rules`,l)},getFutureRenewals({periodStart:e=null,periodEnd:s=null,limit:n=null,offset:r=null}){const u={periodStart:e,periodEnd:s,limit:n,offset:r};return t.get("reports/future-renewals",u)},getJournal({currency:e=null,bookedFrom:s=null,bookedTo:n=null,recognizedAt:r=null,aggregationField:u=null,limit:l=null,offset:o=null,filter:a=null}){const h={currency:e,bookedFrom:s,bookedTo:n,recognizedAt:r,aggregationField:u,limit:l,offset:o,filter:a};return t.get("reports/journal",h)},getJournalSummary({periodStart:e=null,periodEnd:s=null,currency:n=null,aggregationField:r=null,amountField:u=null,journalAccountIds:l=null}){const o={periodStart:e,periodEnd:s,currency:n,aggregationField:r,amountField:u,journalAccountIds:l};return t.get("reports/journal-summary",o)},getKycAcceptanceSummary({periodStart:e=null,periodEnd:s=null}){const n={periodStart:e,periodEnd:s};return t.get("reports/kyc-acceptance-summary",n)},getKycRejectionSummary({periodStart:e=null,periodEnd:s=null}){const n={periodStart:e,periodEnd:s};return t.get("reports/kyc-rejection-summary",n)},getKycRequestSummary({periodStart:e=null,periodEnd:s=null}){const n={periodStart:e,periodEnd:s};return t.get("reports/kyc-request-summary",n)},getMonthlyRecurringRevenue({currency:e,periodStart:s,periodEnd:n,limit:r=null,offset:u=null}){const l={currency:e,periodStart:s,periodEnd:n,limit:r,offset:u};return t.get("reports/monthly-recurring-revenue",l)},getAnnualRecurringRevenue({currency:e,periodStart:s,periodEnd:n,limit:r=null,offset:u=null}){const l={currency:e,periodStart:s,periodEnd:n,limit:r,offset:u};return t.get("reports/annual-recurring-revenue",l)},getRenewalSales({periodStart:e=null,periodEnd:s=null,limit:n=null,offset:r=null}){const u={periodStart:e,periodEnd:s,limit:n,offset:r};return t.get("reports/renewal-sales",u)},getRetentionPercentage({aggregationField:e=null,aggregationPeriod:s=null,includeSwitchedSubscriptions:n=null,periodStart:r=null,periodEnd:u=null,limit:l=null,offset:o=null,filter:a=null,criteria:h=null}){const q={aggregationField:e,aggregationPeriod:s,includeSwitchedSubscriptions:n,periodStart:r,periodEnd:u,limit:l,offset:o,filter:a,criteria:h};return t.get("reports/retention-percentage",q)},getRetentionValue({aggregationField:e=null,aggregationPeriod:s=null,includeRefunds:n=null,includeDisputes:r=null,periodStart:u=null,periodEnd:l=null,limit:o=null,offset:a=null,filter:h=null,sort:q=null,criteria:x=null}){const D={aggregationField:e,aggregationPeriod:s,includeRefunds:n,includeDisputes:r,periodStart:u,periodEnd:l,limit:o,offset:a,filter:h,sort:q,criteria:x};return t.get("reports/retention-value",D)},getRevenueWaterfall({currency:e,issuedFrom:s=null,issuedTo:n=null,recognizedTo:r=null}){const u={currency:e,issuedFrom:s,issuedTo:n,recognizedTo:r};return t.get("reports/revenue-waterfall",u)},getSubscriptionCancellation({periodStart:e=null,periodEnd:s=null,aggregationField:n=null,limit:r=null,offset:u=null,filter:l=null}){const o={periodStart:e,periodEnd:s,aggregationField:n,limit:r,offset:u,filter:l};return t.get("reports/subscription-cancellation",o)},getSubscriptionRenewal({periodStart:e=null,periodEnd:s=null,limit:n=null,offset:r=null}){const u={periodStart:e,periodEnd:s,limit:n,offset:r};return t.get("reports/subscription-renewal",u)},getTax({periodStart:e=null,periodEnd:s=null,accountingMethod:n=null,limit:r=null,offset:u=null}){const l={periodStart:e,periodEnd:s,accountingMethod:n,limit:r,offset:u};return t.get("reports/tax",l)},getTimeSeriesTransaction({type:e=null,subaggregate:s=null,periodStart:n=null,periodEnd:r=null,limit:u=null,offset:l=null}){const o={type:e,subaggregate:s,periodStart:n,periodEnd:r,limit:u,offset:l};return t.get("reports/time-series-transaction",o)},getTransactionsTimeDispute({aggregationField:e=null,periodStart:s=null,periodEnd:n=null,limit:r=null,offset:u=null,filter:l=null}){const o={aggregationField:e,periodStart:s,periodEnd:n,limit:r,offset:u,filter:l};return t.get("reports/transactions-time-dispute",o)},getTransactions({periodStart:e=null,periodEnd:s=null,aggregationField:n=null,limit:r=null,offset:u=null,filter:l=null}){const o={periodStart:e,periodEnd:s,aggregationField:n,limit:r,offset:u,filter:l};return t.get("reports/transactions",o)},downloadAmlAuditReport({personId:e,periodStart:s=null,periodEnd:n=null,filter:r=null,accept:u="application/pdf"}){const l={params:{personId:e,periodStart:s,periodEnd:n,filter:r},headers:{Accept:u},responseType:u==="application/pdf"?"arraybuffer":"text"};return t.download("reports/aml-audit-reports",l)}}}function is({apiHandler:t}){return{getSubscriptionSummaryMetrics({subscriptionId:e}){return t.get(`subscriptions/${e}/summary-metrics`)}}}function gs({apiHandler:t}){return{getActivityFeed({eventTypes:e=null,limit:s=1e3,offset:n=0}){const r={eventTypes:e,limit:s,offset:n};return t.getAll("activity-feed",r)},getTransaction({id:e="",eventTypes:s=null,limit:n=1e3,offset:r=0}){const u={eventTypes:s,limit:n,offset:r};return t.getAll(`transactions/${e}/timeline`,u)},getCustomer({id:e="",eventTypes:s=null,limit:n=1e3,offset:r=0}){const u={eventTypes:s,limit:n,offset:r};return t.getAll(`customers/${e}/timeline`,u)}}}function as({apiHandler:t}){return{query(){return t.get("location")}}}var b={CustomersResource:us,DataExportsResource:ls,HistogramsResource:os,ReportsResource:cs,SubscriptionsResource:is,TimelinesResource:gs,LocationResource:as},ms=class{constructor({apiHandler:t}){this.customers=b.CustomersResource({apiHandler:t}),this.dataExports=b.DataExportsResource({apiHandler:t}),this.histograms=b.HistogramsResource({apiHandler:t}),this.reports=b.ReportsResource({apiHandler:t}),this.subscriptions=b.SubscriptionsResource({apiHandler:t}),this.timelines=b.TimelinesResource({apiHandler:t}),this.location=b.LocationResource({apiHandler:t}),this.addRequestInterceptor=t.addRequestInterceptor,this.removeRequestInterceptor=t.removeRequestInterceptor,this.addResponseInterceptor=t.addResponseInterceptor,this.removeResponseInterceptor=t.removeResponseInterceptor,this.setTimeout=t.setTimeout,this.setProxyAgent=t.setProxyAgent,this.setSessionToken=t.setSessionToken,this.setEndpoints=t.setEndpoints,this.getCancellationToken=t.getCancellationToken}};function $s({apiHandler:t}){return{get({expand:e=null}={}){const s={expand:e};return t.get("account",s)},update({data:e}){return t.patch("account",e)},requestPasswordReset({data:e}){return t.post("account/forgot-password",e)},changePassword({data:e}){return t.patch("account/password",e)},resendEmailVerification({data:e}){return t.post("account/resend-verification",e)},confirmPasswordReset({token:e,data:s}){return t.post(`account/reset-password/${e}`,s)},verifyEmail({token:e}){return t.post(`account/verification/${e}`)},register({data:e}){return t.post("register",e)}}}function hs({apiHandler:t}){return{login({data:e}){return t.post("login",e)},logout(){return t.post("logout")}}}function ps({apiHandler:t}){return{get({slug:e}){return t.get(`billing-portals/${e}`)}}}function fs({apiHandler:t}){return{get({id:e}){return t.get(`cashiers/${e}`)}}}function ys({apiHandler:t}){return{get({id:e}){return t.get(`checkout-forms/${e}`)}}}function Rs({apiHandler:t}){return{getAll({resource:e,limit:s=null,offset:n=null}){const r={limit:s,offset:n};return t.getAll(`custom-fields/${e}`,r)}}}function As({apiHandler:t}){return{get({id:e,expand:s=null}){const n={expand:s};return t.get(`deposit-requests/${e}`,n)}}}function bs({apiHandler:t}){return{create({data:e}){return t.post("deposit",e)}}}function vs({apiHandler:t}){return{get({id:e}){return t.get(`deposit-strategies/${e}`)}}}function ws({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("invoices",o)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`invoices/${e}`,n)},update({id:e,data:s}){return t.patch(`invoices/${e}`,s)},downloadPDF({id:e}){const s={headers:A,responseType:"arraybuffer"};return t.download(`invoices/${e}`,s)}}}function ks({apiHandler:t}){return{create({data:e}){return t.post("kyc-documents",e)},get({id:e}){return t.get(`kyc-documents/${e}`)},update({id:e,data:s}){return t.patch(`kyc-documents/${e}`,s)}}}function qs({apiHandler:t}){return{create({data:e}){return t.post("kyc-liveness-sessions",e)},get({id:e}){return t.get(`kyc-liveness-sessions/${e}`)},finish({id:e}){return t.post(`kyc-liveness-sessions/${e}/finish`)}}}function ds({apiHandler:t}){return{get({id:e,expand:s=null}){const n={expand:s};return t.get(`kyc-requests/${e}`,n)}}}function Ts({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null}={}){const r={limit:e,offset:s,filter:n};return t.getAll("order-changes",r)},delete({id:e}){return t.delete(`order-changes/${e}`)}}}function Es({apiHandler:t}){return{getUpcomingInvoice({id:e,expand:s=null}){const n={expand:s};return t.get(`orders/${e}/upcoming-invoice`,n)},getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("orders",o)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`orders/${e}`,n)},update({id:e,data:s}){return t.patch(`orders/${e}`,s)},cancel({id:e,data:s}){return t.post(`orders/${e}/cancellation`,s)},pause({id:e,data:s}){return t.post(`orders/${e}/pause`,s)}}}function Is({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null}={}){const l={filter:e,sort:s,limit:n,offset:r,q:u};return t.getAll("payment-instruments",l)},create({data:e}){return t.post("payment-instruments",e)},get({id:e,limit:s=null,offset:n=null}){const r={limit:s,offset:n};return t.get(`payment-instruments/${e}`,r)},update({id:e,data:s}){return t.patch(`payment-instruments/${e}`,s)},deactivate({id:e}){return t.post(`payment-instruments/${e}/deactivation`)},getSetupTransaction({id:e}){return t.get(`payment-instruments/${e}/setup`)},setup({id:e,data:s}){return t.post(`payment-instruments/${e}/setup`,s)}}}function Ss({apiHandler:t}){return{create({data:e}){return t.post("payout-request-cancellations",e)}}}function Ps({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null}={}){const l={filter:e,sort:s,limit:n,offset:r,q:u};return t.getAll("payout-requests",l)},create({data:e}){return t.post("payout-requests",e)},get({id:e}){return t.get(`payout-requests/${e}`)},update({id:e,data:s}){return t.patch(`payout-requests/${e}`,s)}}}function Cs({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:s,limit:n,offset:r,q:u,expand:l};return t.getAll("plans",o)},get({id:e,expand:s=null}){const n={expand:s};return t.get(`plans/${e}`,n)}}}function xs({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:n=null,offset:r=null,q:u=null}={}){const l={filter:e,sort:s,limit:n,offset:r,q:u};return t.getAll("products",l)},get({id:e}){return t.get(`products/${e}`)}}}function Ds({apiHandler:t}){return{payment({data:e}){return t.post("payment",e)},purchase({data:e}){return t.post("purchase",e)},preview({data:e}){return t.post("preview-purchase",e)},readyToPay({data:e}){return t.post("ready-to-pay",e)}}}function Ms({apiHandler:t}){return{get({id:e,expand:s=null}){const n={expand:s};return t.get(`quotes/${e}`,n)},accept({id:e}){return t.post(`quotes/${e}/accept`)},reject({id:e}){return t.post(`quotes/${e}/reject`)},downloadPDF({id:e}){const s={headers:A,responseType:"arraybuffer"};return t.download(`quotes/${e}`,s)}}}function Os({apiHandler:t}){return{readyToPayout({data:e}){return t.post("ready-to-payout",e)}}}function js({apiHandler:t}){return{reactivation({data:e}){return t.post("subscription-reactivations",e)}}}function Fs({apiHandler:t}){return{changeItems({id:e,data:s}){return t.post(`subscriptions/${e}/change-items`,s)},create({data:e}){return t.post("subscriptions",e)}}}function Ns({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:n=null,q:r=null,sort:u=null}={}){const l={limit:e,offset:s,filter:n,q:r,sort:u};return t.getAll("transactions",l)},get({id:e}){return t.get(`transactions/${e}`)},getDcc({id:e}){return t.get(`transactions/${e}/dcc`)},updateDcc({id:e,data:s}){return t.patch(`transactions/${e}/dcc`,s)},finishKyc({id:e,token:s}){return t.post(`transactions/${e}/${s}/continue`)},skipKyc({id:e,token:s}){return t.post(`transactions/${e}/${s}/bypass`)},downloadPDF({id:e}){const s={headers:A,responseType:"arraybuffer"};return t.download(`transactions/${e}`,s)},update({id:e,data:s}){return t.patch(`transactions/${e}`,s)}}}function Bs({apiHandler:t}){return{get({id:e}){return t.get(`websites/${e}`)}}}var Ks=class{constructor({apiHandler:t}){this.account=$s({apiHandler:t}),this.authorization=hs({apiHandler:t}),this.billingPortals=ps({apiHandler:t}),this.cashiers=fs({apiHandler:t}),this.checkoutForms=ys({apiHandler:t}),this.customFields=Rs({apiHandler:t}),this.depositRequests=As({apiHandler:t}),this.deposit=bs({apiHandler:t}),this.depositStrategies=vs({apiHandler:t}),this.invoices=ws({apiHandler:t}),this.kycDocuments=ks({apiHandler:t}),this.kycLivenessSessions=qs({apiHandler:t}),this.kycRequests=ds({apiHandler:t}),this.orderChanges=Ts({apiHandler:t}),this.orders=Es({apiHandler:t}),this.paymentInstruments=Is({apiHandler:t}),this.payoutRequestCancellations=Ss({apiHandler:t}),this.payoutRequests=Ps({apiHandler:t}),this.plans=Cs({apiHandler:t}),this.products=xs({apiHandler:t}),this.purchase=Ds({apiHandler:t}),this.quotes=Ms({apiHandler:t}),this.readyToPayout=Os({apiHandler:t}),this.subscriptionReactivations=js({apiHandler:t}),this.subscriptions=Fs({apiHandler:t}),this.transactions=Ns({apiHandler:t}),this.websites=Bs({apiHandler:t}),this.checkoutForm=this.checkoutForms,this.billingPortal=this.billingPortals,this.addRequestInterceptor=t.addRequestInterceptor,this.removeRequestInterceptor=t.removeRequestInterceptor,this.addResponseInterceptor=t.addResponseInterceptor,this.removeResponseInterceptor=t.removeResponseInterceptor,this.setTimeout=t.setTimeout,this.setProxyAgent=t.setProxyAgent,this.setSessionToken=t.setSessionToken,this.setPublishableKey=t.setPublishableKey,this.setEndpoints=t.setEndpoints,this.getCancellationToken=t.getCancellationToken,this.generateSignature=t.generateSignature}};function Ls({apiHandler:t}){return new rs({apiHandler:t})}function _s({apiHandler:t}){return new ms({apiHandler:t})}function zs({apiHandler:t}){return new Ks({apiHandler:t})}var P={live:"https://api.rebilly.com",sandbox:"https://api-sandbox.rebilly.com"},C=6e3;function L({apiKey:t=null,sandbox:e=!1,timeout:s=C,organizationId:n=null,urls:r=P,internalOptions:u=null}={}){if(!r.live||!r.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof r.live!="string"||typeof r.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const l={apiEndpoints:r,apiKey:t,apiVersion:"",isSandbox:e,requestTimeout:s,jwt:null,organizationId:n,appName:u?.appName??null},o=S({options:l});return Ls({apiHandler:o})}function Vs({apiKey:t=null,sandbox:e=!1,timeout:s=C,organizationId:n=null,urls:r=P,internalOptions:u=null}={}){if(!r.live||!r.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof r.live!="string"||typeof r.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const l={apiEndpoints:r,apiKey:t,apiVersion:"experimental",isSandbox:e,requestTimeout:s,jwt:null,organizationId:n,appName:u?.appName??null},o=S({options:l});return _s({apiHandler:o})}function Us({publishableKey:t=null,jwt:e=null,sandbox:s=!1,timeout:n=C,organizationId:r=null,urls:u=P,internalOptions:l=null}={}){if(!u.live||!u.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof u.live!="string"||typeof u.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const o={apiEndpoints:u,publishableKey:t,jwt:e,apiVersion:"storefront",isSandbox:s,requestTimeout:n,organizationId:r,appName:l?.appName??null},a=S({options:o});return a.setSessionToken(o.jwt),zs({apiHandler:a})}p.RebillyAPI=L,p.default=L,p.RebillyErrors=$,p.RebillyExperimentalAPI=Vs,p.RebillyStorefrontAPI=Us,p.cancellation=Re});
|
package/package.json
CHANGED