rebilly-js-sdk 48.6.0 → 48.7.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/dist/rebilly-js-sdk.d.ts +156 -51
- package/dist/rebilly-js-sdk.es.js +16 -3
- package/dist/rebilly-js-sdk.umd.js +1 -1
- package/package.json +1 -1
package/dist/rebilly-js-sdk.d.ts
CHANGED
|
@@ -1032,6 +1032,14 @@ declare module rebilly {
|
|
|
1032
1032
|
type DeleteApplicationInstanceResponse = operations['DeleteApplicationInstance']['responses']['204']
|
|
1033
1033
|
type DeleteApplicationInstanceResponsePromise = Promise<{fields: DeleteApplicationInstanceResponse}>
|
|
1034
1034
|
|
|
1035
|
+
type GetApplicationInstanceConfigurationRequest = { applicationId : String }
|
|
1036
|
+
|
|
1037
|
+
type GetApplicationInstanceConfigurationResponse = operations['GetApplicationInstanceConfiguration']['responses']['200']['content']['application/json']
|
|
1038
|
+
type GetApplicationInstanceConfigurationResponsePromise = Promise<{fields: GetApplicationInstanceConfigurationResponse}>
|
|
1039
|
+
type PutApplicationInstanceConfigurationRequest = operations['PutApplicationInstanceConfiguration']['requestBody']['content']['application/json']
|
|
1040
|
+
type PutApplicationInstanceConfigurationResponse = operations['PutApplicationInstanceConfiguration']['responses']['201']['content']['application/json']
|
|
1041
|
+
type PutApplicationInstanceConfigurationResponsePromise = Promise<{fields: PutApplicationInstanceConfigurationResponse}>
|
|
1042
|
+
|
|
1035
1043
|
type GetApplicationCollectionRequest = operations['GetApplicationCollection']['parameters']["query"] & (operations['GetApplicationCollection']['parameters'] extends {path: {}} ? operations['GetApplicationCollection']['parameters']["path"] : {})
|
|
1036
1044
|
|
|
1037
1045
|
type GetApplicationCollectionResponse = operations['GetApplicationCollection']['responses']['200']['content']['application/json'][0]
|
|
@@ -4067,7 +4075,7 @@ export interface coreComponents {
|
|
|
4067
4075
|
/** List of tags that have been assigned to the customer. */
|
|
4068
4076
|
tags?: coreComponents["schemas"]["Tag"][];
|
|
4069
4077
|
/** ID of the customer's organization. */
|
|
4070
|
-
organizationId?:
|
|
4078
|
+
organizationId?: string;
|
|
4071
4079
|
};
|
|
4072
4080
|
/** List of hits returned during the AML check. */
|
|
4073
4081
|
hits?: coreComponents["schemas"]["AML"][];
|
|
@@ -4776,13 +4784,13 @@ export interface coreComponents {
|
|
|
4776
4784
|
*/
|
|
4777
4785
|
method: "payment-card" | "ach" | "paypal";
|
|
4778
4786
|
/** ID of the payment instrument. */
|
|
4779
|
-
paymentInstrumentId:
|
|
4787
|
+
paymentInstrumentId: string;
|
|
4780
4788
|
};
|
|
4781
4789
|
/** Alternative payment method instrument. */
|
|
4782
4790
|
AlternativePaymentInstrument: {
|
|
4783
4791
|
method: coreComponents["schemas"]["PaymentMethod"];
|
|
4784
4792
|
/** ID of the payment instrument. */
|
|
4785
|
-
paymentInstrumentId?:
|
|
4793
|
+
paymentInstrumentId?: string;
|
|
4786
4794
|
};
|
|
4787
4795
|
/** Cash payment instrument object. */
|
|
4788
4796
|
CashInstrument: {
|
|
@@ -5412,12 +5420,9 @@ export interface coreComponents {
|
|
|
5412
5420
|
/** Category of dispute. */
|
|
5413
5421
|
category?:
|
|
5414
5422
|
| "fraud"
|
|
5415
|
-
| "
|
|
5416
|
-
| "
|
|
5417
|
-
| "
|
|
5418
|
-
| "product-not-refunded"
|
|
5419
|
-
| "duplicate"
|
|
5420
|
-
| "subscription-canceled"
|
|
5423
|
+
| "authorization"
|
|
5424
|
+
| "processing-errors"
|
|
5425
|
+
| "consumer-disputes"
|
|
5421
5426
|
| "uncategorized";
|
|
5422
5427
|
/** Type of dispute. */
|
|
5423
5428
|
type:
|
|
@@ -5639,12 +5644,8 @@ export interface coreComponents {
|
|
|
5639
5644
|
amount?: number;
|
|
5640
5645
|
};
|
|
5641
5646
|
InvoiceItem: {
|
|
5642
|
-
/**
|
|
5643
|
-
|
|
5644
|
-
* A website is where an organization obtains a customer through a subscription.
|
|
5645
|
-
* For more information, see [Obtain an organization ID and website ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
5646
|
-
*/
|
|
5647
|
-
id?: coreComponents["schemas"]["ResourceId"];
|
|
5647
|
+
/** ID of the invoice item. */
|
|
5648
|
+
id?: string;
|
|
5648
5649
|
/** Type of invoice item. */
|
|
5649
5650
|
type: "debit" | "credit";
|
|
5650
5651
|
/** Description of the invoice item. */
|
|
@@ -7699,7 +7700,7 @@ export interface coreComponents {
|
|
|
7699
7700
|
/** Payment card information. */
|
|
7700
7701
|
PaymentCard: {
|
|
7701
7702
|
/** ID of the payment instrument. */
|
|
7702
|
-
id?:
|
|
7703
|
+
id?: string;
|
|
7703
7704
|
customerId?: coreComponents["schemas"]["CustomerId"];
|
|
7704
7705
|
/** Method of payment instrument. */
|
|
7705
7706
|
method?: "payment-card";
|
|
@@ -7782,7 +7783,7 @@ export interface coreComponents {
|
|
|
7782
7783
|
};
|
|
7783
7784
|
BankAccount: {
|
|
7784
7785
|
/** ID of the payment instrument. */
|
|
7785
|
-
id?:
|
|
7786
|
+
id?: string;
|
|
7786
7787
|
customerId?: coreComponents["schemas"]["CustomerId"];
|
|
7787
7788
|
/** Method of payment instrument. */
|
|
7788
7789
|
method?: "ach";
|
|
@@ -7840,7 +7841,7 @@ export interface coreComponents {
|
|
|
7840
7841
|
};
|
|
7841
7842
|
PayPalAccount: {
|
|
7842
7843
|
/** ID of the payment instrument. */
|
|
7843
|
-
id?:
|
|
7844
|
+
id?: string;
|
|
7844
7845
|
customerId: coreComponents["schemas"]["CustomerId"];
|
|
7845
7846
|
/** Method of payment instrument. */
|
|
7846
7847
|
method: "paypal";
|
|
@@ -7877,7 +7878,7 @@ export interface coreComponents {
|
|
|
7877
7878
|
};
|
|
7878
7879
|
KhelocardCard: {
|
|
7879
7880
|
/** ID of the payment instrument. */
|
|
7880
|
-
id?:
|
|
7881
|
+
id?: string;
|
|
7881
7882
|
customerId?: coreComponents["schemas"]["CustomerId"];
|
|
7882
7883
|
/** Method of payment instrument. */
|
|
7883
7884
|
method?: "Khelocard";
|
|
@@ -8075,7 +8076,7 @@ export interface coreComponents {
|
|
|
8075
8076
|
| "Zimpler";
|
|
8076
8077
|
AlternativeInstrument: {
|
|
8077
8078
|
/** ID of the payment instrument. */
|
|
8078
|
-
id?:
|
|
8079
|
+
id?: string;
|
|
8079
8080
|
customerId: coreComponents["schemas"]["CustomerId"];
|
|
8080
8081
|
/** Payment method of the payment instrument. */
|
|
8081
8082
|
method: coreComponents["schemas"]["AlternativePaymentMethods"] & {
|
|
@@ -8506,7 +8507,7 @@ export interface coreComponents {
|
|
|
8506
8507
|
} | null;
|
|
8507
8508
|
customFields?: coreComponents["schemas"]["ResourceCustomFields"];
|
|
8508
8509
|
/** Specifies if the plan is active. */
|
|
8509
|
-
isActive
|
|
8510
|
+
isActive: boolean;
|
|
8510
8511
|
/**
|
|
8511
8512
|
* Number of times the plan is modified.
|
|
8512
8513
|
* Compare this value with materialized subscription item revision values.
|
|
@@ -8672,7 +8673,7 @@ export interface coreComponents {
|
|
|
8672
8673
|
* Specifies if the product requires shipping.
|
|
8673
8674
|
* If this value is `true`, shipping calculations are applied.
|
|
8674
8675
|
*/
|
|
8675
|
-
requiresShipping
|
|
8676
|
+
requiresShipping: boolean;
|
|
8676
8677
|
/**
|
|
8677
8678
|
* Product options such as color, size, and so forth.
|
|
8678
8679
|
* Product option values are defined in plans.
|
|
@@ -9885,7 +9886,7 @@ export interface coreComponents {
|
|
|
9885
9886
|
};
|
|
9886
9887
|
PaymentInstructionInstrument: {
|
|
9887
9888
|
/** ID of the payment instrument. */
|
|
9888
|
-
paymentInstrumentId:
|
|
9889
|
+
paymentInstrumentId: string;
|
|
9889
9890
|
};
|
|
9890
9891
|
PaymentMethods: {
|
|
9891
9892
|
/**
|
|
@@ -10297,12 +10298,13 @@ export interface coreComponents {
|
|
|
10297
10298
|
properties: { [key: string]: any };
|
|
10298
10299
|
};
|
|
10299
10300
|
PayoutRequest: {
|
|
10300
|
-
|
|
10301
|
+
/** Unique resource ID. */
|
|
10302
|
+
id?: string;
|
|
10301
10303
|
websiteId: coreComponents["schemas"]["WebsiteId"];
|
|
10302
10304
|
/** ID of the customer who is requesting a payout. */
|
|
10303
10305
|
customerId: coreComponents["schemas"]["CustomerId"];
|
|
10304
10306
|
/** ID of the requested payment instrument to offer for the payout. */
|
|
10305
|
-
paymentInstrumentId?:
|
|
10307
|
+
paymentInstrumentId?: string;
|
|
10306
10308
|
/** Currency of the payout. */
|
|
10307
10309
|
currency: coreComponents["schemas"]["CurrencyCode"];
|
|
10308
10310
|
/** Amount of the payout. */
|
|
@@ -10331,7 +10333,7 @@ export interface coreComponents {
|
|
|
10331
10333
|
/** Name of the payment gateway that processed, or is selected to process, the transaction. */
|
|
10332
10334
|
gatewayName?: coreComponents["schemas"]["GatewayName"];
|
|
10333
10335
|
/** ID of the selected payment instrument for the transaction. */
|
|
10334
|
-
paymentInstrumentId?:
|
|
10336
|
+
paymentInstrumentId?: string;
|
|
10335
10337
|
/** Payout amount that is allocated from the payout request to the credit transaction. */
|
|
10336
10338
|
amount?: number;
|
|
10337
10339
|
/** Date and time when a payout request is allocated. */
|
|
@@ -17059,6 +17061,13 @@ export interface operations {
|
|
|
17059
17061
|
* [Using filter with collections](https://all-rebilly.redoc.ly/#section/Using-filter-with-collections).
|
|
17060
17062
|
*/
|
|
17061
17063
|
filter?: coreComponents["parameters"]["collectionFilter"];
|
|
17064
|
+
/**
|
|
17065
|
+
* Sorts and orders the collection of items. To sort in descending
|
|
17066
|
+
* order, prefix with `-`.
|
|
17067
|
+
*/
|
|
17068
|
+
sort?: coreComponents["parameters"]["collectionSort"];
|
|
17069
|
+
/** Use this field to perform a partial search of text fields. */
|
|
17070
|
+
q?: coreComponents["parameters"]["collectionQuery"];
|
|
17062
17071
|
};
|
|
17063
17072
|
};
|
|
17064
17073
|
responses: {
|
|
@@ -18240,6 +18249,18 @@ export interface usersPaths {
|
|
|
18240
18249
|
};
|
|
18241
18250
|
};
|
|
18242
18251
|
};
|
|
18252
|
+
"/application-instances/{applicationId}/configuration": {
|
|
18253
|
+
/** Retrieves the configuration of an installed application with a specified ID. */
|
|
18254
|
+
get: operations["GetApplicationInstanceConfiguration"];
|
|
18255
|
+
/** Creates or updates (upserts) an application instance configuration. */
|
|
18256
|
+
put: operations["PutApplicationInstanceConfiguration"];
|
|
18257
|
+
parameters: {
|
|
18258
|
+
path: {
|
|
18259
|
+
/** ID of the application. */
|
|
18260
|
+
applicationId: usersComponents["parameters"]["applicationId"];
|
|
18261
|
+
};
|
|
18262
|
+
};
|
|
18263
|
+
};
|
|
18243
18264
|
"/applications": {
|
|
18244
18265
|
/**
|
|
18245
18266
|
* Retrieves a list of all applications.
|
|
@@ -19771,13 +19792,13 @@ export interface usersComponents {
|
|
|
19771
19792
|
*/
|
|
19772
19793
|
method: "payment-card" | "ach" | "paypal";
|
|
19773
19794
|
/** ID of the payment instrument. */
|
|
19774
|
-
paymentInstrumentId:
|
|
19795
|
+
paymentInstrumentId: string;
|
|
19775
19796
|
};
|
|
19776
19797
|
/** Alternative payment method instrument. */
|
|
19777
19798
|
AlternativePaymentInstrument: {
|
|
19778
19799
|
method: usersComponents["schemas"]["PaymentMethod"];
|
|
19779
19800
|
/** ID of the payment instrument. */
|
|
19780
|
-
paymentInstrumentId?:
|
|
19801
|
+
paymentInstrumentId?: string;
|
|
19781
19802
|
};
|
|
19782
19803
|
/** Cash payment instrument object. */
|
|
19783
19804
|
CashInstrument: {
|
|
@@ -19971,14 +19992,34 @@ export interface usersComponents {
|
|
|
19971
19992
|
/** Status of the application instance. */
|
|
19972
19993
|
status?: "enabling" | "enabled" | "disabling" | "disabled";
|
|
19973
19994
|
/**
|
|
19974
|
-
*
|
|
19975
|
-
*
|
|
19995
|
+
* Determines if the configuration of the application instance is complete.
|
|
19996
|
+
* Configuration is completed using the [PutApplicationInstanceConfiguration](https://all-rebilly.redoc.ly/tag/Application-users/operation/PutApplicationInstanceConfiguration) operation.
|
|
19976
19997
|
*/
|
|
19998
|
+
isConfigured?: boolean;
|
|
19999
|
+
/** Configuration settings that are available during installation. */
|
|
19977
20000
|
settings: { [key: string]: string };
|
|
19978
20001
|
createdTime?: usersComponents["schemas"]["CreatedTime"];
|
|
19979
20002
|
updatedTime?: usersComponents["schemas"]["UpdatedTime"];
|
|
19980
20003
|
_links?: usersComponents["schemas"]["SelfLink"];
|
|
19981
20004
|
};
|
|
20005
|
+
/**
|
|
20006
|
+
* Application instance configuration.
|
|
20007
|
+
*
|
|
20008
|
+
* If the `configuredBy` field is set to `user`, only user can change application settings.
|
|
20009
|
+
*
|
|
20010
|
+
* If the `configuredBy` field is set to `application`, only the application itself can change settings.
|
|
20011
|
+
*/
|
|
20012
|
+
ApplicationInstanceConfiguration: {
|
|
20013
|
+
/** Configuration settings that are available during installation. */
|
|
20014
|
+
settings: { [key: string]: string };
|
|
20015
|
+
/** Related links. */
|
|
20016
|
+
_links?: {
|
|
20017
|
+
/** Type of link. */
|
|
20018
|
+
rel?: "self" | "configuration";
|
|
20019
|
+
/** Link URL. */
|
|
20020
|
+
href?: string;
|
|
20021
|
+
}[];
|
|
20022
|
+
};
|
|
19982
20023
|
/** Application object. */
|
|
19983
20024
|
Application: {
|
|
19984
20025
|
/** ID of the application. */
|
|
@@ -20022,6 +20063,10 @@ export interface usersComponents {
|
|
|
20022
20063
|
| "PostCoupon"
|
|
20023
20064
|
| "PutCoupon"
|
|
20024
20065
|
)[];
|
|
20066
|
+
/** External URL where the application is configured during installation. */
|
|
20067
|
+
configurationUrl?: string | null;
|
|
20068
|
+
/** Specifies who can configure the application. */
|
|
20069
|
+
configuredBy?: "user" | "application";
|
|
20025
20070
|
/**
|
|
20026
20071
|
* Defines settings that users can complete when they install the application.
|
|
20027
20072
|
* This field accepts [JSON-schema](https://json-schema.org/) drafts 4, 6, and 7.
|
|
@@ -20148,12 +20193,8 @@ export interface usersComponents {
|
|
|
20148
20193
|
amount?: number;
|
|
20149
20194
|
};
|
|
20150
20195
|
InvoiceItem: {
|
|
20151
|
-
/**
|
|
20152
|
-
|
|
20153
|
-
* A website is where an organization obtains a customer through a subscription.
|
|
20154
|
-
* For more information, see [Obtain an organization ID and website ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
20155
|
-
*/
|
|
20156
|
-
id?: usersComponents["schemas"]["ResourceId"];
|
|
20196
|
+
/** ID of the invoice item. */
|
|
20197
|
+
id?: string;
|
|
20157
20198
|
/** Type of invoice item. */
|
|
20158
20199
|
type: "debit" | "credit";
|
|
20159
20200
|
/** Description of the invoice item. */
|
|
@@ -26377,7 +26418,7 @@ export interface usersComponents {
|
|
|
26377
26418
|
* An organization is an entity that represents a company.
|
|
26378
26419
|
* For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
26379
26420
|
*/
|
|
26380
|
-
id?:
|
|
26421
|
+
id?: string;
|
|
26381
26422
|
/** Name of the organization. */
|
|
26382
26423
|
name: string;
|
|
26383
26424
|
/** Organization's website. */
|
|
@@ -27152,7 +27193,8 @@ export interface usersComponents {
|
|
|
27152
27193
|
recordCount?: number;
|
|
27153
27194
|
};
|
|
27154
27195
|
OrganizationExport: {
|
|
27155
|
-
|
|
27196
|
+
/** Unique resource ID. */
|
|
27197
|
+
id?: string;
|
|
27156
27198
|
/** ID of the user who requested the organization data export. */
|
|
27157
27199
|
userId?: string;
|
|
27158
27200
|
/** ID of the linked file object. */
|
|
@@ -27604,6 +27646,58 @@ export interface operations {
|
|
|
27604
27646
|
404: usersComponents["responses"]["NotFound"];
|
|
27605
27647
|
};
|
|
27606
27648
|
};
|
|
27649
|
+
/** Retrieves the configuration of an installed application with a specified ID. */
|
|
27650
|
+
GetApplicationInstanceConfiguration: {
|
|
27651
|
+
parameters: {
|
|
27652
|
+
path: {
|
|
27653
|
+
/** ID of the application. */
|
|
27654
|
+
applicationId: usersComponents["parameters"]["applicationId"];
|
|
27655
|
+
};
|
|
27656
|
+
};
|
|
27657
|
+
responses: {
|
|
27658
|
+
/** Application instance configuration retrieved. */
|
|
27659
|
+
200: {
|
|
27660
|
+
headers: {};
|
|
27661
|
+
content: {
|
|
27662
|
+
"application/json": usersComponents["schemas"]["ApplicationInstanceConfiguration"];
|
|
27663
|
+
};
|
|
27664
|
+
};
|
|
27665
|
+
401: usersComponents["responses"]["Unauthorized"];
|
|
27666
|
+
403: usersComponents["responses"]["Forbidden"];
|
|
27667
|
+
};
|
|
27668
|
+
};
|
|
27669
|
+
/** Creates or updates (upserts) an application instance configuration. */
|
|
27670
|
+
PutApplicationInstanceConfiguration: {
|
|
27671
|
+
parameters: {
|
|
27672
|
+
path: {
|
|
27673
|
+
/** ID of the application. */
|
|
27674
|
+
applicationId: usersComponents["parameters"]["applicationId"];
|
|
27675
|
+
};
|
|
27676
|
+
};
|
|
27677
|
+
responses: {
|
|
27678
|
+
/** Application instance configuration updated. */
|
|
27679
|
+
200: {
|
|
27680
|
+
content: {
|
|
27681
|
+
"application/json": usersComponents["schemas"]["ApplicationInstanceConfiguration"];
|
|
27682
|
+
};
|
|
27683
|
+
};
|
|
27684
|
+
/** Application instance configuration created. */
|
|
27685
|
+
201: {
|
|
27686
|
+
headers: {};
|
|
27687
|
+
content: {
|
|
27688
|
+
"application/json": usersComponents["schemas"]["ApplicationInstanceConfiguration"];
|
|
27689
|
+
};
|
|
27690
|
+
};
|
|
27691
|
+
401: usersComponents["responses"]["Unauthorized"];
|
|
27692
|
+
403: usersComponents["responses"]["Forbidden"];
|
|
27693
|
+
422: usersComponents["responses"]["ValidationError"];
|
|
27694
|
+
};
|
|
27695
|
+
requestBody: {
|
|
27696
|
+
content: {
|
|
27697
|
+
"application/json": usersComponents["schemas"]["ApplicationInstanceConfiguration"];
|
|
27698
|
+
};
|
|
27699
|
+
};
|
|
27700
|
+
};
|
|
27607
27701
|
/**
|
|
27608
27702
|
* Retrieves a list of all applications.
|
|
27609
27703
|
* You may sort applications by: `id`, `name`, `status`, `createdTime`,
|
|
@@ -33613,12 +33707,8 @@ export interface storefrontComponents {
|
|
|
33613
33707
|
amount?: number;
|
|
33614
33708
|
};
|
|
33615
33709
|
InvoiceItem: {
|
|
33616
|
-
/**
|
|
33617
|
-
|
|
33618
|
-
* A website is where an organization obtains a customer through a subscription.
|
|
33619
|
-
* For more information, see [Obtain an organization ID and website ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
33620
|
-
*/
|
|
33621
|
-
id?: storefrontComponents["schemas"]["ResourceId"];
|
|
33710
|
+
/** ID of the invoice item. */
|
|
33711
|
+
id?: string;
|
|
33622
33712
|
/** Type of invoice item. */
|
|
33623
33713
|
type: "debit" | "credit";
|
|
33624
33714
|
/** Description of the invoice item. */
|
|
@@ -34977,7 +35067,7 @@ export interface storefrontComponents {
|
|
|
34977
35067
|
} | null;
|
|
34978
35068
|
customFields?: storefrontComponents["schemas"]["ResourceCustomFields"];
|
|
34979
35069
|
/** Specifies if the plan is active. */
|
|
34980
|
-
isActive
|
|
35070
|
+
isActive: boolean;
|
|
34981
35071
|
/**
|
|
34982
35072
|
* Number of times the plan is modified.
|
|
34983
35073
|
* Compare this value with materialized subscription item revision values.
|
|
@@ -35338,7 +35428,7 @@ export interface storefrontComponents {
|
|
|
35338
35428
|
};
|
|
35339
35429
|
PaymentInstructionInstrument: {
|
|
35340
35430
|
/** ID of the payment instrument. */
|
|
35341
|
-
paymentInstrumentId:
|
|
35431
|
+
paymentInstrumentId: string;
|
|
35342
35432
|
};
|
|
35343
35433
|
PaymentMethods: {
|
|
35344
35434
|
/**
|
|
@@ -35687,7 +35777,7 @@ export interface storefrontComponents {
|
|
|
35687
35777
|
InstrumentReference: {
|
|
35688
35778
|
method: storefrontComponents["schemas"]["PaymentMethod"];
|
|
35689
35779
|
/** ID of the payment instrument. */
|
|
35690
|
-
paymentInstrumentId?:
|
|
35780
|
+
paymentInstrumentId?: string;
|
|
35691
35781
|
};
|
|
35692
35782
|
Account: {
|
|
35693
35783
|
/** ID of the account. */
|
|
@@ -36112,7 +36202,7 @@ export interface storefrontComponents {
|
|
|
36112
36202
|
};
|
|
36113
36203
|
PaymentInstructionsInstrument: {
|
|
36114
36204
|
/** ID of the payment instrument. */
|
|
36115
|
-
paymentInstrumentId:
|
|
36205
|
+
paymentInstrumentId: string;
|
|
36116
36206
|
};
|
|
36117
36207
|
/**
|
|
36118
36208
|
* URL to redirect the end-user when an offsite transaction is completed.
|
|
@@ -36319,7 +36409,8 @@ export interface storefrontComponents {
|
|
|
36319
36409
|
| storefrontComponents["schemas"]["StorefrontKhelocardCard"]
|
|
36320
36410
|
| storefrontComponents["schemas"]["StorefrontAlternativeInstrument"];
|
|
36321
36411
|
StorefrontPayoutRequest: {
|
|
36322
|
-
|
|
36412
|
+
/** Unique resource ID. */
|
|
36413
|
+
id?: string;
|
|
36323
36414
|
websiteId?: storefrontComponents["schemas"]["WebsiteId"];
|
|
36324
36415
|
/** ID of the requested payment instrument to offer for the payout. */
|
|
36325
36416
|
paymentInstrumentId?: string;
|
|
@@ -40566,6 +40657,13 @@ declare module "resources/application-instances-resource" {
|
|
|
40566
40657
|
delete({ applicationId }: {
|
|
40567
40658
|
applicationId: any;
|
|
40568
40659
|
}): any;
|
|
40660
|
+
getConfiguration({ applicationId }: {
|
|
40661
|
+
applicationId: any;
|
|
40662
|
+
}): rebilly.GetApplicationInstanceConfigurationResponsePromise;
|
|
40663
|
+
upsertConfiguration({ applicationId, data }: {
|
|
40664
|
+
applicationId: any;
|
|
40665
|
+
data: any;
|
|
40666
|
+
}): rebilly.PutApplicationInstanceConfigurationResponsePromise;
|
|
40569
40667
|
};
|
|
40570
40668
|
}
|
|
40571
40669
|
declare module "resources/applications-resource" {
|
|
@@ -42221,7 +42319,7 @@ declare module "resources/transactions-resource" {
|
|
|
42221
42319
|
id: any;
|
|
42222
42320
|
data: any;
|
|
42223
42321
|
}): any;
|
|
42224
|
-
getAllTimelineMessages({ id, limit, offset, filter }: rebilly.GetTransactionTimelineCollectionRequest): rebilly.GetTransactionTimelineCollectionResponsePromise;
|
|
42322
|
+
getAllTimelineMessages({ id, limit, offset, filter, sort, q, }: rebilly.GetTransactionTimelineCollectionRequest): rebilly.GetTransactionTimelineCollectionResponsePromise;
|
|
42225
42323
|
createTimelineComment({ id, data }: {
|
|
42226
42324
|
id: any;
|
|
42227
42325
|
data: any;
|
|
@@ -42394,6 +42492,13 @@ declare module "resources/api-instance" {
|
|
|
42394
42492
|
delete({ applicationId }: {
|
|
42395
42493
|
applicationId: any;
|
|
42396
42494
|
}): any;
|
|
42495
|
+
getConfiguration({ applicationId }: {
|
|
42496
|
+
applicationId: any;
|
|
42497
|
+
}): rebilly.GetApplicationInstanceConfigurationResponsePromise;
|
|
42498
|
+
upsertConfiguration({ applicationId, data }: {
|
|
42499
|
+
applicationId: any;
|
|
42500
|
+
data: any;
|
|
42501
|
+
}): rebilly.PutApplicationInstanceConfigurationResponsePromise;
|
|
42397
42502
|
};
|
|
42398
42503
|
applications: {
|
|
42399
42504
|
getAll({ limit, offset, filter, q, expand, fields, sort, }?: {
|
|
@@ -44136,7 +44241,7 @@ declare module "resources/api-instance" {
|
|
|
44136
44241
|
id: any;
|
|
44137
44242
|
data: any;
|
|
44138
44243
|
}): any;
|
|
44139
|
-
getAllTimelineMessages({ id, limit, offset, filter }: rebilly.GetTransactionTimelineCollectionRequest): rebilly.GetTransactionTimelineCollectionResponsePromise;
|
|
44244
|
+
getAllTimelineMessages({ id, limit, offset, filter, sort, q, }: rebilly.GetTransactionTimelineCollectionRequest): rebilly.GetTransactionTimelineCollectionResponsePromise;
|
|
44140
44245
|
createTimelineComment({ id, data }: {
|
|
44141
44246
|
id: any;
|
|
44142
44247
|
data: any;
|
|
@@ -538,7 +538,7 @@ function cloneArrayDeep(arr, instanceClone) {
|
|
|
538
538
|
return res;
|
|
539
539
|
}
|
|
540
540
|
var cloneDeep_1 = cloneDeep;
|
|
541
|
-
const version = "48.
|
|
541
|
+
const version = "48.7.0";
|
|
542
542
|
let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
543
543
|
let nanoid = (size = 21) => {
|
|
544
544
|
let id = "";
|
|
@@ -943,6 +943,12 @@ function ApplicationInstancesResource({ apiHandler }) {
|
|
|
943
943
|
},
|
|
944
944
|
delete({ applicationId }) {
|
|
945
945
|
return apiHandler.delete(`application-instances/${applicationId}`);
|
|
946
|
+
},
|
|
947
|
+
getConfiguration({ applicationId }) {
|
|
948
|
+
return apiHandler.get(`application-instances/${applicationId}/configuration`);
|
|
949
|
+
},
|
|
950
|
+
upsertConfiguration({ applicationId, data }) {
|
|
951
|
+
return apiHandler.put(`application-instances/${applicationId}/configuration`, data);
|
|
946
952
|
}
|
|
947
953
|
};
|
|
948
954
|
}
|
|
@@ -3060,8 +3066,15 @@ function TransactionsResource$1({ apiHandler }) {
|
|
|
3060
3066
|
refund({ id, data }) {
|
|
3061
3067
|
return apiHandler.post(`transactions/${id}/refund`, data);
|
|
3062
3068
|
},
|
|
3063
|
-
getAllTimelineMessages({
|
|
3064
|
-
|
|
3069
|
+
getAllTimelineMessages({
|
|
3070
|
+
id,
|
|
3071
|
+
limit = null,
|
|
3072
|
+
offset = null,
|
|
3073
|
+
filter = null,
|
|
3074
|
+
sort = null,
|
|
3075
|
+
q = null
|
|
3076
|
+
}) {
|
|
3077
|
+
const params = { limit, offset, filter, sort, q };
|
|
3065
3078
|
return apiHandler.getAll(`transactions/${id}/timeline`, params);
|
|
3066
3079
|
},
|
|
3067
3080
|
createTimelineComment({ id, data }) {
|
|
@@ -33,4 +33,4 @@ var nn=Object.defineProperty;var ne=Object.getOwnPropertySymbols;var sn=Object.p
|
|
|
33
33
|
*
|
|
34
34
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
35
35
|
* Released under the MIT License.
|
|
36
|
-
*/var qe=Pe,Me=Object.prototype.hasOwnProperty,Oe=function(e,t,n){qe(e,function(s,u){if(Me.call(e,u))return t.call(n,e[u],u,e)})},De=pe,Fe=Ie,Ke=xe,Be=Oe;function q(r,e){switch(Ke(r)){case"object":return Ne(r,e);case"array":return Le(r,e);default:return Fe(r)}}function Ne(r,e){if(De(r)){var t={};return Be(r,function(n,s){this[s]=q(n,e)},t),t}else return e?e(r):r}function Le(r,e){for(var t=r.length,n=[],s=-1;++s<t;)n[s]=q(r[s],e);return n}var Ve=q;const ze="48.6.0";let Ue="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",We=(r=21)=>{let e="",t=r;for(;t--;)e+=Ue[Math.random()*64|0];return e};class Je{constructor({id:e=null,created:t=null}={}){this.id=e||We(),this.created=t||new Date().getTime(),this.cancelSource=P.default.CancelToken.source(),this.cancel=this.cancelSource.cancel,this.cancelToken=this.cancelSource.token,x(this,{exclude:["cancelSource","cancelToken","cancel"]})}}class S{constructor(){if(S.instance)return S.instance;this.requests={},S.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 Je;return this.requests[e.id]=e,{id:e.id,cancelToken:e.cancelToken}}}var E=new S;class j{}N(j,"cancelById",(e,t)=>{try{E.getById(e).cancel(t),E.deleteById(e)}catch{}}),N(j,"cancelAll",e=>E.getAll().forEach(t=>{t.cancel(e),E.deleteById(t.id)}));var Ge={cancelAll:(...r)=>j.cancelAll(...r)};const d={request:"request",response:"response"},J=r=>{if(!Object.values(d).includes(r))throw new Error(`There is no such interceptor type as "${r}"`);return!0};function M({options:r}){const e=t();function t(){return P.default.create(s())}function n(){return e}function s(){return{baseURL:u(),timeout:r.requestTimeout,headers:l()}}function u(){let c=r.isSandbox?r.apiEndpoints.sandbox:r.apiEndpoints.live;return r.apiVersion&&(c=`${c}/${r.apiVersion}`),r.organizationId&&(c=`${c}/organizations/${r.organizationId}`),`${c}`}function l(){const c={"REB-API-CONSUMER":`RebillySDK/JS-SDK ${ze}`};return r.apiKey&&(c["REB-APIKEY"]=r.apiKey),c}function o(){return Ve(e.defaults.headers)}function g(c){r.requestTimeout=Number(c),e.defaults.timeout=r.requestTimeout}function p(c=r.jwt){const i=o();r.apiKey=null,r.jwt=c,delete i.common["REB-APIKEY"],i.common.Authorization=`Bearer ${c}`,e.defaults.headers=i}function k(c=r.publishableKey){const i=o();r.publishableKey=c,i.common.Authorization=`${c}`,e.defaults.headers=i}function F({host:c,port:i,auth:a}){e.defaults.proxy={host:c,port:i,auth:a}}function K({live:c=null,sandbox:i=null}){c&&(r.apiEndpoints.live=c),i&&(r.apiEndpoints.sandbox=i),e.defaults.baseURL=u()}function _(c,{thenDelegate:i,catchDelegate:a=()=>{}}){return J(c)&&e.interceptors[d[c]].use(i,a)}function Q(c,i){return J(c)&&e.interceptors[d[c]].eject(i)}function Ur({thenDelegate:c,catchDelegate:i=()=>{}}){return _(d.request,{thenDelegate:c,catchDelegate:i})}function Wr(c){Q(d.request,c)}function Jr({thenDelegate:c,catchDelegate:i=()=>{}}){return _(d.response,{thenDelegate:c,catchDelegate:i})}function Gr(c){Q(d.response,c)}function T({request:c,isCollection:i,config:a}){const f=Z(a),{id:b,cancelToken:rn}=E.save();f.cancelToken=rn;const re=async function(){try{const I=await c(f);return Yr({response:I,isCollection:i,config:f})}catch(I){return X({error:I,config:f})}finally{E.deleteById(b)}}();return re.cancel=I=>j.cancelById(b,I),re}function Yr({response:c,isCollection:i,config:a}){return i?new se(c,a):new L(c,a)}function X({error:c}){if(P.default.isCancel(c))throw new y.RebillyCanceledError(c);if(c.response)switch(Number(c.response.status)){case 401:throw new y.RebillyForbiddenError(c);case 404:throw new y.RebillyNotFoundError(c);case 405:throw new y.RebillyMethodNotAllowedError(c);case 409:throw new y.RebillyConflictError(c);case 422:throw new y.RebillyValidationError(c);default:throw new y.RebillyRequestError(c)}throw c.code==="ECONNABORTED"?new y.RebillyTimeoutError(c):new y.RebillyRequestError(c)}function _r(c){return c.params!==void 0&&(c.params=Object.keys(c.params).filter(i=>c.params[i]!==null&&c.params[i]!=="").reduce((i,a)=>(i[a]=c.params[a],i),{})),c}function Z(c={}){const i=_r(c);return C({},i)}function H(c,i={}){return T({request:a=>e.get(c,a),config:{params:i}})}function Qr(c,i){return T({request:a=>e.get(c,a),config:{params:i},isCollection:!0})}function ee(c,i,a={}){let f={};return a.authenticate===!1&&(f={headers:o()},delete f.headers.common["REB-APIKEY"],delete f.headers.common.Authorization),a.params&&(f.params=C({},a.params)),T({request:b=>e.post(c,i,b),config:f})}function te(c,i,a={}){return T({request:f=>e.put(c,i,f),config:{params:a}})}function Xr(c,i){return T({request:a=>e.patch(c,i,a),config:{}})}function Zr(c){return T({request:i=>e.delete(c,i),config:{}})}function Hr(c,i){return T({request:a=>e.delete(c,a),config:{data:C({},i)}})}async function en(c,i,a,f={}){if(i==="")return ee(c,a,{params:f});try{if((await H(c)).response.status===200)throw new y.RebillyConflictError({message:"Member already exists. Please use a different ID."})}catch(b){if(b.name==="RebillyNotFoundError")return te(c,a,f);throw b}}async function tn(c,i){const a=Z(i);try{const f=await e.get(c,a);return new ue(f,a)}catch(f){return X({error:f,config:a})}}return{getInstance:n,addRequestInterceptor:Ur,removeRequestInterceptor:Wr,addResponseInterceptor:Jr,removeResponseInterceptor:Gr,setTimeout:g,setProxyAgent:F,setSessionToken:p,setPublishableKey:k,setEndpoints:K,get:H,getAll:Qr,post:ee,put:te,patch:Xr,delete:Zr,deleteAll:Hr,create:en,download:tn}}function Ye({apiHandler:r}){return{activate({token:e}){return r.post(`activation/${e}`,{authenticate:!1})},forgotPassword({data:e}){return r.post("forgot-password",e,{authenticate:!1})},logout(){return r.post("logout")},signIn({data:e}){return r.post("signin",e,{authenticate:!1})},signUp({data:e}){return r.post("signup",e,{authenticate:!1})}}}function _e({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("aml-checks",l)},get({id:e}){return r.get(`aml-checks/${e}`)},review({id:e,data:t}){return r.post(`aml-checks/${e}/review`,t)}}}function Qe({apiHandler:r}){return{getAll({firstName:e,lastName:t,dob:n=null,country:s=null}){const u={firstName:e,lastName:t,dob:n,country:s};return r.get("aml",u)}}}function Xe({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null}={}){const s={limit:e,offset:t,sort:n};return r.getAll("api-keys",s)},create({id:e="",data:t}){return r.create(`api-keys/${e}`,e,t)},get({id:e}){return r.get(`api-keys/${e}`)},update({id:e,data:t}){return r.put(`api-keys/${e}`,t)},delete({id:e}){return r.delete(`api-keys/${e}`)}}}function Ze({apiHandler:r}){return{get({applicationId:e}){return r.get(`application-instances/${e}`)},upsert({applicationId:e,data:t}){return r.put(`application-instances/${e}`,t)},delete({applicationId:e}){return r.delete(`application-instances/${e}`)}}}function He({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,expand:u=null,fields:l=null,sort:o=null}={}){const g={limit:e,offset:t,filter:n,q:s,expand:u,fields:l,sort:o};return r.getAll("applications",g)},create({data:e}){return r.post("applications",e)},get({id:e}){return r.get(`applications/${e}`)},getInstances({id:e,limit:t=null,offset:n=null}){const s={limit:t,offset:n};return r.getAll(`applications/${e}/instances`,s)},getInstance({id:e,organizationId:t}){return r.get(`applications/${e}/instances/${t}`)}}}function et({apiHandler:r}){return{getAll({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("balance-transactions",n)},get({id:e}){return r.get(`balance-transactions/${e}`)}}}function tt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("billing-portals",l)},create({id:e="",data:t}){return r.create(`billing-portals/${e}`,e,t)},get({id:e}){return r.get(`billing-portals/${e}`)},update({id:e,data:t}){return r.put(`billing-portals/${e}`,t)},delete({id:e}){return r.delete(`billing-portals/${e}`)}}}function rt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("blocklists",l)},create({id:e="",data:t}){return r.create(`blocklists/${e}`,e,t)},get({id:e}){return r.get(`blocklists/${e}`)},delete({id:e}){return r.delete(`blocklists/${e}`)}}}function nt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null}={}){const u={limit:e,offset:t,sort:n,filter:s};return r.getAll("broadcast-messages",u)},create({data:e}){return r.post("broadcast-messages",e)},get({id:e}){return r.get(`broadcast-messages/${e}`)},delete({id:e}){return r.delete(`broadcast-messages/${e}`)},update({id:e,data:t}){return r.patch(`broadcast-messages/${e}`,t)}}}function st({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("cashier-custom-property-sets",u)},create({id:e="",data:t}){return r.create(`cashier-custom-property-sets/${e}`,e,t)},get({id:e}){return r.get(`cashier-custom-property-sets/${e}`)},update({id:e,data:t}){return r.put(`cashier-custom-property-sets/${e}`,t)},delete({id:e}){return r.delete(`cashier-custom-property-sets/${e}`)}}}function ut({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("cashier-requests",u)},create({data:e}){return r.post("cashier-requests",e)},get({id:e,expand:t=null}){const n={expand:t};return r.get(`cashier-requests/${e}`,n)}}}function lt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("cashier-strategies",u)},create({id:e="",data:t}){return r.create(`cashier-strategies/${e}`,e,t)},get({id:e}){return r.get(`cashier-strategies/${e}`)},update({id:e,data:t}){return r.put(`cashier-strategies/${e}`,t)},delete({id:e}){return r.delete(`cashier-strategies/${e}`)}}}function ot({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("checkout-forms",l)},create({id:e="",data:t}){return r.create(`checkout-forms/${e}`,e,t)},get({id:e}){return r.get(`checkout-forms/${e}`)},update({id:e,data:t}){return r.put(`checkout-forms/${e}`,t)},delete({id:e}){return r.delete(`checkout-forms/${e}`)}}}function ct({apiHandler:r}){return{getAllRedemptions({limit:e=null,offset:t=null,filter:n=null,q:s=null,sort:u=null}={}){const l={limit:e,offset:t,filter:n,q:s,sort:u};return r.getAll("coupons-redemptions",l)},redeem({data:e}){return r.post("coupons-redemptions",e)},getRedemption({id:e}){return r.get(`coupons-redemptions/${e}`)},cancelRedemption({id:e}){return r.post(`coupons-redemptions/${e}/cancel`)},getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,sort:u=null}={}){const l={limit:e,offset:t,filter:n,q:s,sort:u};return r.getAll("coupons",l)},create({id:e="",data:t}){return r.create(`coupons/${e}`,e,t)},get({id:e}){return r.get(`coupons/${e}`)},update({id:e,data:t}){return r.put(`coupons/${e}`,t)},setExpiration({id:e,data:t}){return r.post(`coupons/${e}/expiration`,t)}}}function it({apiHandler:r}){return{createAWSSESCredential({data:e}){return r.post("credential-hashes/aws-ses",e)},getAWSSESCredential({hash:e}){return r.get(`credential-hashes/aws-ses/${e}`)},updateAWSSESCredential({hash:e,data:t}){return r.patch(`credential-hashes/aws-ses/${e}`,t)},createEmailCredential({data:e}){return r.post("credential-hashes/emails",e)},getEmailCredential({hash:e}){return r.get(`credential-hashes/emails/${e}`)},patchEmailCredential({hash:e,data:t}){return r.patch(`credential-hashes/emails/${e}`,t)},createMailgunCredential({data:e}){return r.post("credential-hashes/mailgun",e)},getMailgunCredential({hash:e}){return r.get(`credential-hashes/mailgun/${e}`)},patchMailgunCredential({hash:e,data:t}){return r.patch(`credential-hashes/mailgun/${e}`,t)},getAllOAuth2Credentials({filter:e=null,limit:t=null,offset:n=null,sort:s=null,q:u=null}={}){const l={filter:e,limit:t,offset:n,sort:s,q:u};return r.getAll("credential-hashes/oauth2",l)},createOAuth2Credential({data:e}){return r.post("credential-hashes/oauth2",e)},getOAuth2Credential({hash:e}){return r.get(`credential-hashes/oauth2/${e}`)},updateOAuth2Credential({hash:e,data:t}){return r.patch(`credential-hashes/oauth2/${e}`,t)},getOAuth2CredentialItems({hash:e,limit:t=null,offset:n=null,filter:s=null,q:u=null,fields:l=null,sort:o=null}){const g={limit:t,offset:n,filter:s,q:u,fields:l,sort:o};return r.getAll(`credential-hashes/oauth2/${e}/items`,g)},getAllPlaidCredentials({filter:e=null,limit:t=null,offset:n=null,sort:s=null,q:u=null}={}){const l={filter:e,limit:t,offset:n,sort:s,q:u};return r.getAll("credential-hashes/plaid",l)},createPlaidCredential({data:e}){return r.post("credential-hashes/plaid",e)},getPlaidCredential({hash:e}){return r.get(`credential-hashes/plaid/${e}`)},updatePlaidCredential({hash:e,data:t}){return r.patch(`credential-hashes/plaid/${e}`,t)},createPostmarkCredential({data:e}){return r.post("credential-hashes/postmark",e)},getPostmarkCredential({hash:e}){return r.get(`credential-hashes/postmark/${e}`)},patchPostmarkCredential({hash:e,data:t}){return r.patch(`credential-hashes/postmark/${e}`,t)},createSendGridCredential({data:e}){return r.post("credential-hashes/sendgrid",e)},getSendGridCredential({hash:e}){return r.get(`credential-hashes/sendgrid/${e}`)},patchSendGridCredential({hash:e,data:t}){return r.patch(`credential-hashes/sendgrid/${e}`,t)},createWebhookCredential({data:e}){return r.post("credential-hashes/webhooks",e)},getWebhookCredential({hash:e}){return r.get(`credential-hashes/webhooks/${e}`)},patchWebhookCredential({hash:e,data:t}){return r.patch(`credential-hashes/webhooks/${e}`,t)},getAllExperianCredentials({filter:e=null,limit:t=null,offset:n=null,sort:s=null,q:u=null}={}){const l={filter:e,limit:t,offset:n,sort:s,q:u};return r.getAll("credential-hashes/experian",l)},createExperianCredential({data:e}){return r.post("credential-hashes/experian",e)},getExperianCredential({hash:e}){return r.get(`credential-hashes/experian/${e}`)},updateExperianCredential({hash:e,data:t}){return r.patch(`credential-hashes/experian/${e}`,t)},getAllTaxJarCredentials({filter:e=null,limit:t=null,offset:n=null,sort:s=null,q:u=null}={}){const l={filter:e,limit:t,offset:n,sort:s,q:u};return r.getAll("credential-hashes/taxjar",l)},createTaxJarCredential({data:e}){return r.post("credential-hashes/taxjar",e)},getTaxJarCredential({hash:e}){return r.get(`credential-hashes/taxjar/${e}`)},updateTaxJarCredential({hash:e,data:t}){return r.patch(`credential-hashes/taxjar/${e}`,t)},getAllAvalaraCredentials({filter:e=null,limit:t=null,offset:n=null,sort:s=null,q:u=null}={}){const l={filter:e,limit:t,offset:n,sort:s,q:u};return r.getAll("credential-hashes/avalara",l)},createAvalaraCredential({data:e}){return r.post("credential-hashes/avalara",e)},getAvalaraCredential({hash:e}){return r.get(`credential-hashes/avalara/${e}`)},updateAvalaraCredential({hash:e,data:t}){return r.patch(`credential-hashes/avalara/${e}`,t)}}}function at({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("credit-memos",l)},create({id:e="",data:t}){return r.create(`credit-memos/${e}`,e,t)},get({id:e}){return r.get(`credit-memos/${e}`)},update({id:e,data:t}){return r.put(`credit-memos/${e}`,t)},patch({id:e,data:t}){return r.patch(`credit-memos/${e}`,t)},void({id:e}){return r.post(`credit-memos/${e}/void`)},getAllTimelineMessages({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,q:l=null}){const o={limit:t,offset:n,filter:s,sort:u,q:l};return r.getAll(`credit-memos/${e}/timeline`,o)},createTimelineComment({id:e,data:t}){return r.post(`credit-memos/${e}/timeline`,t)},getTimelineMessage({id:e,messageId:t}){return r.get(`credit-memos/${e}/timeline/${t}`)},deleteTimelineMessage({id:e,messageId:t}){return r.delete(`credit-memos/${e}/timeline/${t}`)}}}function gt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("custom-domains",l)},create({data:e}){return r.post("custom-domains",e)},get({domain:e}){return r.get(`custom-domains/${e}`)},delete({domain:e}){return r.delete(`custom-domains/${e}`)}}}function mt({apiHandler:r}){return{getAll({resource:e,limit:t=null,offset:n=null}){const s={limit:t,offset:n};return r.getAll(`custom-fields/${e}`,s)},get({resource:e,name:t}){return r.get(`custom-fields/${e}/${t}`)},create({resource:e,name:t,data:n}){return r.put(`custom-fields/${e}/${t}`,n)},update({resource:e,name:t,data:n}){return r.put(`custom-fields/${e}/${t}`,n)}}}function ht({apiHandler:r}){return{getAuthOptions(){return r.get("authentication-options")},updateAuthOptions({data:e}){return r.put("authentication-options",e)},getAllAuthTokens({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("authentication-tokens",n)},login({data:e}){return r.post("authentication-tokens",e)},verify({token:e}){return r.get(`authentication-tokens/${e}`)},logout({token:e}){return r.delete(`authentication-tokens/${e}`)},exchangeToken({token:e,data:t}){return r.post(`authentication-tokens/${e}/exchange`,t)},getAllCredentials({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("credentials",n)},createCredential({id:e="",data:t}){return r.create(`credentials/${e}`,e,t)},getCredential({id:e}){return r.get(`credentials/${e}`)},updateCredential({id:e,data:t}){return r.put(`credentials/${e}`,t)},deleteCredential({id:e}){return r.delete(`credentials/${e}`)},getAllResetPasswordTokens({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("password-tokens",n)},createResetPasswordToken({data:e}){return r.post("password-tokens",e)},getResetPasswordToken({id:e}){return r.get(`password-tokens/${e}`)},deleteResetPasswordToken({id:e}){return r.delete(`password-tokens/${e}`)}}}const w={Accept:"text/csv"},G={Accept:"application/pdf"};function ft({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,expand:u=null,fields:l=null,sort:o=null}={}){const g={limit:e,offset:t,filter:n,q:s,expand:u,fields:l,sort:o};return r.getAll("customers",g)},create({id:e="",data:t,expand:n=null}){const s={expand:n};return r.create(`customers/${e}`,e,t,s)},get({id:e,expand:t=null,fields:n=null}){const s={expand:t,fields:n};return r.get(`customers/${e}`,s)},update({id:e,data:t,expand:n=null}){const s={expand:n};return r.put(`customers/${e}`,t,s)},merge({id:e,targetCustomerId:t}){return r.delete(`customers/${e}?targetCustomerId=${t}`)},getAml({id:e}){return r.get(`customers/${e}/aml`)},getLeadSource({id:e}){return r.get(`customers/${e}/lead-source`)},createLeadSource({id:e,data:t}){return r.put(`customers/${e}/lead-source`,t)},updateLeadSource({id:e,data:t}){return r.put(`customers/${e}/lead-source`,t)},deleteLeadSource({id:e}){return r.delete(`customers/${e}/lead-source`)},getAllTimelineMessages({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,q:l=null}){const o={limit:t,offset:n,filter:s,sort:u,q:l};return r.getAll(`customers/${e}/timeline`,o)},createTimelineComment({id:e,data:t}){return r.post(`customers/${e}/timeline`,t)},getTimelineMessage({id:e,messageId:t}){return r.get(`customers/${e}/timeline/${t}`)},deleteTimelineMessage({id:e,messageId:t}){return r.delete(`customers/${e}/timeline/${t}`)},getCustomerEddScore({id:e}){return r.get(`customers/${e}/edd-score`)},patchCustomerEddScore({id:e,data:t}){return r.patch(`customers/${e}/edd-score`,t)},getEddTimelineCollection({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,q:l=null}){const o={limit:t,offset:n,filter:s,sort:u,q:l};return r.getAll(`customers/${e}/edd-timeline`,o)},createEddTimelineComment({id:e,data:t}){return r.post(`customers/${e}/edd-timeline`,t)},getEddTimelineMessage({id:e,messageId:t}){return r.get(`customers/${e}/edd-timeline/${t}`)},deleteEddTimelineMessage({id:e,messageId:t}){return r.delete(`customers/${e}/edd-timeline/${t}`)},getAllEddSearchResults({id:e,limit:t=null,offset:n=null}){const s={limit:t,offset:n};return r.getAll(`customers/${e}/edd-search-results`,s)},getEddSearchResult({id:e,searchResultId:t}){return r.get(`customers/${e}/edd-search-results/${t}`)},downloadCSV({limit:e=null,offset:t=null,sort:n=null,expand:s=null,filter:u=null,q:l=null}={}){const o={params:{limit:e,offset:t,sort:n,expand:s,filter:u,q:l},headers:w};return r.download("customers",o)}}}function $t({apiHandler:r}){return{create({data:e}){return r.post("digital-wallets/onboarding/apple-pay",e)},validate({data:e}){return r.post("digital-wallets/validation",e)}}}function pt({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:t,limit:n,offset:s,q:u,expand:l};return r.getAll("disputes",o)},create({id:e="",data:t,expand:n=null}){const s={expand:n};return r.create(`disputes/${e}`,e,t,s)},get({id:e}){return r.get(`disputes/${e}`)},update({id:e,data:t,expand:n=null}){const s={expand:n};return r.put(`disputes/${e}`,t,s)},downloadCSV({limit:e=null,offset:t=null,sort:n=null,expand:s=null,filter:u=null,q:l=null}={}){const o={params:{limit:e,offset:t,sort:n,expand:s,filter:u,q:l},headers:w};return r.download("disputes",o)}}}function yt({apiHandler:r}){return{verify({token:e}){return r.put(`email-delivery-setting-verifications/${e}`)},getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null,q:u=null}={}){const l={limit:e,offset:t,filter:n,sort:s,q:u};return r.getAll("email-delivery-settings",l)},create({data:e}){return r.post("email-delivery-settings",e)},get({id:e}){return r.get(`email-delivery-settings/${e}`)},delete({id:e}){return r.delete(`email-delivery-settings/${e}`)},update({id:e,data:t}){return r.patch(`email-delivery-settings/${e}`,t)},resendVerification({id:e}){return r.post(`email-delivery-settings/${e}/resend-email-verification`)}}}function At({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,q:n=null,sort:s=null,filter:u=null}={}){const l={limit:e,offset:t,q:n,sort:s,filter:u};return r.getAll("email-messages",l)},create({data:e}){return r.post("email-messages",e)},get({id:e}){return r.get(`email-messages/${e}`)},delete({id:e}){return r.delete(`email-messages/${e}`)},send({id:e,data:t={status:"outbox"}}){return r.patch(`email-messages/${e}`,t)}}}function bt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("email-notifications",n)}}}function Rt({apiHandler:r}){return{getAll(){return r.getAll("events")},get({eventType:e}){return r.get(`events/${e}`)},getRules({eventType:e}){return r.get(`events/${e}/rules`)},createRules({eventType:e,data:t}){return r.put(`events/${e}/rules`,t)},updateRules({eventType:e,data:t}){return r.put(`events/${e}/rules`,t)},getAllTimelineMessages({eventType:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,q:l=null}){const o={limit:t,offset:n,filter:s,sort:u,q:l};return r.getAll(`events/${e}/timeline`,o)},createTimelineComment({eventType:e,data:t}){return r.post(`events/${e}/timeline`,t)},getTimelineMessage({eventType:e,messageId:t}){return r.get(`events/${e}/timeline/${t}`)},deleteTimelineMessage({eventType:e,messageId:t}){return r.delete(`events/${e}/timeline/${t}`)},getRulesHistory({eventType:e,limit:t=null,offset:n=null,filter:s=null,q:u=null,sort:l=null,fields:o=null}){const g={limit:t,offset:n,filter:s,q:u,sort:l,fields:o};return r.getAll(`events/${e}/rules/history`,g)},getRulesVersionNumber({eventType:e,version:t,fields:n=null}){const s={fields:n};return r.get(`events/${e}/rules/history/${t}`,s)},getRulesVersionDetail({eventType:e,version:t,fields:n=null}){const s={fields:n};return r.get(`events/${e}/rules/versions/${t}`,s)},getAllDraftRulesets({eventType:e,limit:t=null,offset:n=null,filter:s=null,q:u=null,sort:l=null,fields:o=null}){const g={limit:t,offset:n,filter:s,q:u,sort:l,fields:o};return r.getAll(`events/${e}/rules/drafts`,g)},createDraftRuleset({eventType:e,data:t}){return r.post(`events/${e}/rules/drafts`,t)},getDraftRuleset({eventType:e,id:t,fields:n=null}){const s={fields:n};return r.get(`events/${e}/rules/drafts/${t}`,s)},updateDraftRuleset({eventType:e,id:t,data:n}){return r.put(`events/${e}/rules/drafts/${t}`,n)},deleteDraftRuleset({eventType:e,id:t}){return r.delete(`events/${e}/rules/drafts/${t}`)}}}function dt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("fees",n)},create({id:e="",data:t}){return r.create(`fees/${e}`,e,t)},get({id:e}){return r.get(`fees/${e}`)},upsert({id:e,data:t}){return r.put(`fees/${e}`,t)},patch({id:e,data:t}){return r.patch(`fees/${e}`,t)}}}function wt({apiHandler:r}){return{getAllAttachments({limit:e=null,offset:t=null,filter:n=null,q:s=null,expand:u=null,fields:l=null,sort:o=null}={}){const g={limit:e,offset:t,filter:n,q:s,expand:u,fields:l,sort:o};return r.getAll("attachments",g)},attach({id:e="",data:t,expand:n=null}){const s={expand:n};return r.create(`attachments/${e}`,e,t,s)},getAttachment({id:e}){return r.get(`attachments/${e}`)},updateAttachment({id:e,data:t,expand:n=null}){const s={expand:n};return r.put(`attachments/${e}`,t,s)},detach({id:e}){return r.delete(`attachments/${e}`)},getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,fields:u=null,sort:l=null}={}){const o={limit:e,offset:t,filter:n,q:s,fields:u,sort:l};return r.getAll("files",o)},upload({fileObject:e}){return r.post("files",e)},get({id:e}){return r.get(`files/${e}`)},update({id:e,data:t}){return r.put(`files/${e}`,t)},delete({id:e}){return r.delete(`files/${e}`)},download({id:e}){const t={responseType:"arraybuffer"};return r.download(`files/${e}/download`,t)},detachAndDelete({id:e}){const t={filter:`fileId:${e}`};let n=[];const u=(async()=>{const l=this.getAllAttachments(t);n.push(l);const g=(await l).items.map(k=>this.detach({id:k.fields.id}));n=[...n,g],await Promise.all(g);const p=r.delete(`files/${e}`);return n.push(p),p})();return u.cancel=()=>{n.forEach(l=>l.cancel())},u},uploadAndUpdate({fileObject:e,data:t={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:t.description,tags:t.tags,url:""},g=this.update({id:l.fields.id,data:o});return n.push(g),g})();return u.cancel=()=>{n.forEach(l=>l.cancel())},u}}}function vt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null,fields:l=null}={}){const o={limit:e,offset:t,sort:n,filter:s,q:u,fields:l};return r.getAll("gateway-accounts",o)},create({id:e="",data:t}){return r.create(`gateway-accounts/${e}`,e,t)},get({id:e}){return r.get(`gateway-accounts/${e}`)},update({id:e,data:t}){return r.patch(`gateway-accounts/${e}`,t)},delete({id:e}){return r.delete(`gateway-accounts/${e}`)},close({id:e}){return r.post(`gateway-accounts/${e}/close`)},disable({id:e}){return r.post(`gateway-accounts/${e}/disable`)},getAllDowntimeSchedules({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null}){const l={limit:t,offset:n,filter:s,sort:u};return r.getAll(`gateway-accounts/${e}/downtime-schedules`,l)},createDowntimeSchedule({id:e,data:t}){return r.post(`gateway-accounts/${e}/downtime-schedules`,t)},getDowntimeSchedule({id:e,downtimeId:t}){return r.get(`gateway-accounts/${e}/downtime-schedules/${t}`)},updateDowntimeSchedule({id:e,downtimeId:t,data:n}){return r.put(`gateway-accounts/${e}/downtime-schedules/${t}`,n)},deleteDowntimeSchedule({id:e,downtimeId:t}){return r.delete(`gateway-accounts/${e}/downtime-schedules/${t}`)},enable({id:e}){return r.post(`gateway-accounts/${e}/enable`)},getAllVolumeLimits({id:e}){return r.getAll(`gateway-accounts/${e}/limits`)},getVolumeLimit({id:e,limitId:t}){return r.get(`gateway-accounts/${e}/limits/${t}`)},updateVolumeLimit({id:e,limitId:t,data:n}){return r.put(`gateway-accounts/${e}/limits/${t}`,n)},deleteVolumeLimit({id:e,limitId:t}){return r.delete(`gateway-accounts/${e}/limits/${t}`)},getAllTimelineMessages({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,q:l=null}){const o={limit:t,offset:n,filter:s,sort:u,q:l};return r.getAll(`gateway-accounts/${e}/timeline`,o)},createTimelineComment({id:e,data:t}){return r.post(`gateway-accounts/${e}/timeline`,t)},getTimelineMessage({id:e,messageId:t}){return r.get(`gateway-accounts/${e}/timeline/${t}`)},deleteTimelineMessage({id:e,messageId:t}){return r.delete(`gateway-accounts/${e}/timeline/${t}`)},checkCredentials({id:e}){return r.post(`gateway-accounts/${e}/check-credentials`)},getFinancialSettings({id:e}){return r.get(`gateway-accounts/${e}/financial-settings`)},setFinancialSettings({id:e,data:t}){return r.put(`gateway-accounts/${e}/financial-settings`,t)}}}function kt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("integrations",n)},get({label:e}){return r.get(`integrations/${e}`)}}}function Tt({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:t,limit:n,offset:s,q:u,expand:l};return r.getAll("invoices",o)},create({id:e="",data:t,expand:n=null}){const s={expand:n};return r.create(`invoices/${e}`,e,t,s)},get({id:e,expand:t=null}){const n={expand:t};return r.get(`invoices/${e}`,n)},update({id:e,data:t,expand:n=null}){const s={expand:n};return r.put(`invoices/${e}`,t,s)},getAllInvoiceItems({id:e,limit:t=null,offset:n=null,expand:s=null}){const u={limit:t,offset:n,expand:s};return r.getAll(`invoices/${e}/items`,u)},createInvoiceItem({id:e,data:t}){return r.post(`invoices/${e}/items`,t)},getInvoiceItem({id:e,itemId:t}){return r.get(`invoices/${e}/items/${t}`)},updateInvoiceItem({id:e,itemId:t,data:n}){return r.put(`invoices/${e}/items/${t}`,n)},deleteInvoiceItem({id:e,itemId:t}){return r.delete(`invoices/${e}/items/${t}`)},issue({id:e,data:t}){return r.post(`invoices/${e}/issue`,t)},abandon({id:e}){return r.post(`invoices/${e}/abandon`)},void({id:e}){return r.post(`invoices/${e}/void`)},recalculate({id:e}){return r.post(`invoices/${e}/recalculate`)},reissue({id:e,data:t}){return r.post(`invoices/${e}/reissue`,t)},getAllTransactionAllocations({id:e,limit:t=null,offset:n=null}){const s={limit:t,offset:n};return r.getAll(`invoices/${e}/transaction-allocations`,s)},applyTransaction({id:e,data:t}){return r.post(`invoices/${e}/transaction`,t)},getAllTimelineMessages({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,q:l=null}){const o={limit:t,offset:n,filter:s,sort:u,q:l};return r.getAll(`invoices/${e}/timeline`,o)},createTimelineComment({id:e,data:t}){return r.post(`invoices/${e}/timeline`,t)},getTimelineMessage({id:e,messageId:t}){return r.get(`invoices/${e}/timeline/${t}`)},deleteTimelineMessage({id:e,messageId:t}){return r.delete(`invoices/${e}/timeline/${t}`)},downloadCSV({limit:e=null,offset:t=null,sort:n=null,expand:s=null,filter:u=null,q:l=null}={}){const o={params:{limit:e,offset:t,sort:n,expand:s,filter:u,q:l},headers:w};return r.download("invoices",o)},downloadPDF({id:e}){const t={headers:G,responseType:"arraybuffer"};return r.download(`invoices/${e}`,t)}}}function Et({apiHandler:r}){return{getAllAccounts({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("journal-accounts",u)},createAccount({id:e="",data:t}){return r.create(`journal-accounts/${e}`,e,t)},getAccount({id:e}){return r.get(`journal-accounts/${e}`)},updateAccount({id:e,data:t}){return r.put(`journal-accounts/${e}`,t)}}}function St({apiHandler:r}){return{getAllEntries({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("journal-entries",u)},createEntry({id:e="",data:t}){return r.create(`journal-entries/${e}`,e,t)},getEntry({id:e}){return r.get(`journal-entries/${e}`)},updateEntry({id:e,data:t}){return r.put(`journal-entries/${e}`,t)},getAllRecords({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,expand:l=null}){const o={limit:t,offset:n,filter:s,sort:u,expand:l};return r.getAll(`journal-entries/${e}/records`,o)},createRecord({id:e,data:t}){return r.post(`journal-entries/${e}/records`,t)},getRecord({id:e,journalRecordId:t}){return r.get(`journal-entries/${e}/records/${t}`)},updateRecord({id:e,journalRecordId:t,data:n}){return r.put(`journal-entries/${e}/records/${t}`,n)},deleteRecord({id:e,journalRecordId:t}){return r.delete(`journal-entries/${e}/records/${t}`)}}}function It({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null,expand:u=null}={}){const l={limit:e,offset:t,filter:n,sort:s,expand:u};return r.getAll("kyc-documents",l)},create({id:e="",data:t}){return r.create(`kyc-documents/${e}`,e,t)},get({id:e}){return r.get(`kyc-documents/${e}`)},update({id:e,data:t}){return r.put(`kyc-documents/${e}`,t)},accept({id:e}){return r.post(`kyc-documents/${e}/acceptance`)},matches({id:e,data:t}){return r.post(`kyc-documents/${e}/matches`,t)},reject({id:e,data:t}){return r.post(`kyc-documents/${e}/rejection`,t)},review({id:e}){return r.post(`kyc-documents/${e}/review`)},startReview({id:e}){return r.post(`kyc-documents/${e}/start-review`)},stopReview({id:e}){return r.post(`kyc-documents/${e}/stop-review`)}}}function Ct({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("kyc-requests",u)},create({data:e}){return r.post("kyc-requests",e)},get({id:e}){return r.get(`kyc-requests/${e}`)},delete({id:e}){return r.delete(`kyc-requests/${e}`)},update({id:e,data:t}){return r.patch(`kyc-requests/${e}`,t)}}}function xt({apiHandler:r}){return{getKycSettings(){return r.get("kyc-settings")},updateKycSettings({data:e}){return r.put("kyc-settings",e)}}}function jt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null,fields:u=null,q:l=null}={}){const o={limit:e,offset:t,filter:n,sort:s,fields:u,q:l};return r.getAll("lists",o)},create({id:e="",data:t}){return r.create(`lists/${e}`,e,t)},getLatestVersion({id:e}){return r.get(`lists/${e}`)},update({id:e,data:t}){return r.put(`lists/${e}`,t)},delete({id:e}){return r.delete(`lists/${e}`)},getByVersion({id:e,version:t}){return r.get(`lists/${e}/${t}`)}}}function Pt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("memberships",u)},get({organizationId:e,userId:t}){return r.get(`memberships/${e}/${t}`)},update({organizationId:e,userId:t,data:n}){return r.put(`memberships/${e}/${t}`,n)},delete({organizationId:e,userId:t}){return r.delete(`memberships/${e}/${t}`)}}}function qt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,sort:u=null}={}){const l={limit:e,offset:t,filter:n,q:s,sort:u};return r.getAll("organization-exports",l)},create({data:e}){return r.post("organization-exports",e)},get({id:e}){return r.get(`organization-exports/${e}`)}}}function Mt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null}={}){const u={limit:e,offset:t,filter:n,q:s};return r.getAll("organizations",u)},create({data:e}){return r.post("organizations",e)},get({id:e}){return r.get(`organizations/${e}`)},update({id:e,data:t}){return r.patch(`organizations/${e}`,t)}}}function Ot({apiHandler:r}){return{getAll({limit:e=null,q:t=null}={}){const n={limit:e,q:t};return r.getAll("payment-cards-bank-names",n)}}}function Dt({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:t,limit:n,offset:s,q:u,expand:l};return r.getAll("payment-instruments",o)},create({data:e}){return r.post("payment-instruments",e)},get({id:e}){return r.get(`payment-instruments/${e}`)},update({id:e,data:t}){return r.patch(`payment-instruments/${e}`,t)},deactivate({id:e}){return r.post(`payment-instruments/${e}/deactivation`)}}}function Ft({apiHandler:r}){return{getAll({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("payment-methods",n)},get({apiName:e}){return r.get(`payment-methods/${e}`)}}}function Kt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("tokens",n)},create({data:e}){return r.post("tokens",e)},get({token:e}){return r.get(`tokens/${e}`)}}}function Bt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("payout-requests",u)},create({id:e="",data:t}){return r.create(`payout-requests/${e}`,e,t)},get({id:e}){return r.get(`payout-requests/${e}`)},update({id:e,data:t}){return r.put(`payout-requests/${e}`,t)},getPaymentInstruments({id:e}){return r.get(`payout-requests/${e}/payment-instruments`)}}}function Nt({apiHandler:r}){return{create({data:e}){return r.post("payouts",e)}}}function Lt({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("plans",l)},create({id:e="",data:t}){return r.create(`plans/${e}`,e,t)},get({id:e}){return r.get(`plans/${e}`)},update({id:e,data:t}){return r.put(`plans/${e}`,t)},delete({id:e}){return r.delete(`plans/${e}`)}}}function Vt({apiHandler:r}){return{sendEmailRuleAction({data:e}){return r.post("previews/rule-actions/send-email",e)},triggerWebhookRuleAction({data:e}){return r.post("previews/rule-actions/trigger-webhook",e)},webhook({data:e}){return r.post("previews/webhooks",e)},order({data:e}){return r.post("previews/orders",e)}}}function zt({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("products",l)},create({id:e="",data:t}){return r.create(`products/${e}`,e,t)},get({id:e}){return r.get(`products/${e}`)},update({id:e,data:t}){return r.put(`products/${e}`,t)},delete({id:e}){return r.delete(`products/${e}`)}}}function Ut({apiHandler:r}){return{startPermissionsEmulation({data:e}){return r.post("permissions-emulation",e)},stopPermissionsEmulation(){return r.delete("permissions-emulation")},get(){return r.get("profile")},update({data:e}){return r.put("profile",e)},getMfa(){return r.get("profile/mfa")},updateMfa(){return r.post("profile/mfa")},deleteMfa(){return r.delete("profile/mfa")}}}function Wt({apiHandler:r}){return{readyToPay({data:e}){return r.post("ready-to-pay",e)}}}function Jt({apiHandler:r}){return{getAll(){return r.get("risk-score-rules")},updateRiskScoreRules({data:e}){return r.put("risk-score-rules",e)},getAllBlocklistRules(){return r.get("risk-score-rules/blocklists")},updateRiskScoreBlocklistRules({data:e}){return r.put("risk-score-rules/blocklists",e)}}}function Gt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null,q:u=null,expand:l=null}={}){const o={limit:e,offset:t,filter:n,sort:s,q:u,expand:l};return r.getAll("roles",o)},create({id:e="",data:t}){return r.create(`roles/${e}`,e,t)},get({id:e,expand:t=null}){const n={expand:t};return r.get(`roles/${e}`,n)},update({id:e,data:t}){return r.put(`roles/${e}`,t)},delete({id:e}){return r.delete(`roles/${e}`)}}}function Yt({apiHandler:r}){return{get({sort:e=null,limit:t=null,offset:n=null,q:s=null}){const u={sort:e,limit:t,offset:n,q:s};return r.get("search",u)}}}function _t({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("grid-segments",l)},create({id:e="",data:t}){return r.create(`grid-segments/${e}`,e,t)},get({id:e}){return r.get(`grid-segments/${e}`)},update({id:e,data:t}){return r.put(`grid-segments/${e}`,t)},delete({id:e}){return r.delete(`grid-segments/${e}`)}}}function Qt({apiHandler:r}){return{getAll({eventType:e}){return r.getAll(`send-through-attribution/${e}`)}}}function Xt({apiHandler:r}){return{getAll({type:e,filter:t=null,limit:n=null,offset:s=null,sort:u=null,q:l=null}){const o={filter:t,limit:n,offset:s,sort:u,q:l};return r.getAll(`service-credentials/${e}`,o)},create({type:e,data:t}){return r.post(`service-credentials/${e}`,t)},get({type:e,id:t}){return r.get(`service-credentials/${e}/${t}`)},update({type:e,id:t,data:n}){return r.patch(`service-credentials/${e}/${t}`,n)},getItems({type:e,id:t,limit:n=null,offset:s=null,filter:u=null,q:l=null,fields:o=null,sort:g=null}){const p={limit:n,offset:s,filter:u,q:l,fields:o,sort:g};return r.getAll(`service-credentials/${e}/${t}/items`,p)}}}function Zt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null,q:u=null}={}){const l={limit:e,offset:t,filter:n,sort:s,q:u};return r.getAll("shipping-rates",l)},create({id:e="",data:t}){return r.create(`shipping-rates/${e}`,e,t)},get({id:e}){return r.get(`shipping-rates/${e}`)},update({id:e,data:t}){return r.put(`shipping-rates/${e}`,t)},delete({id:e}){return r.delete(`shipping-rates/${e}`)}}}function Ht({apiHandler:r}){return{get(){return r.get("status")}}}function er({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("subscription-cancellations",u)},create({id:e="",data:t}){return r.create(`subscription-cancellations/${e}`,e,t)},get({id:e}){return r.get(`subscription-cancellations/${e}`)},delete({id:e}){return r.delete(`subscription-cancellations/${e}`)},patch({id:e,data:t}){return r.patch(`subscription-cancellations/${e}`,t)}}}function tr({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("subscription-pauses",u)},pause({id:e="",data:t}){return r.create(`subscription-pauses/${e}`,e,t)},get({id:e}){return r.get(`subscription-pauses/${e}`)},update({id:e,data:t}){return r.put(`subscription-pauses/${e}`,t)},delete({id:e}){return r.delete(`subscription-pauses/${e}`)}}}function rr({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("subscription-reactivations",u)},reactivate({data:e}){return r.post("subscription-reactivations",e)},get({id:e}){return r.get(`subscription-reactivations/${e}`)}}}function nr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:t,limit:n,offset:s,q:u,expand:l};return r.getAll("subscriptions",o)},create({id:e="",data:t,expand:n=null}){const s={expand:n};return r.create(`subscriptions/${e}`,e,t,s)},get({id:e,expand:t=null}){const n={expand:t};return r.get(`subscriptions/${e}`,n)},update({id:e,data:t,expand:n=null}){const s={expand:n};return r.put(`subscriptions/${e}`,t,s)},delete({id:e}){return r.delete(`subscriptions/${e}`)},void({id:e}){return r.post(`subscriptions/${e}/void`)},changeItems({id:e,data:t}){return r.post(`subscriptions/${e}/change-items`,t)},createInterimInvoice({id:e,data:t}){return r.post(`subscriptions/${e}/interim-invoice`,t)},getAllUpcomingInvoices({id:e,expand:t=null}){const n={expand:t};return r.getAll(`subscriptions/${e}/upcoming-invoices`,n)},getUpcomingInvoice({id:e,expand:t=null}){const n={expand:t};return r.get(`subscriptions/${e}/upcoming-invoice`,n)},issueUpcomingInvoice({id:e,invoiceId:t,data:n}){return r.post(`subscriptions/${e}/upcoming-invoices/${t}/issue`,n)},getAllTimelineMessages({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,q:l=null}){const o={limit:t,offset:n,filter:s,sort:u,q:l};return r.getAll(`subscriptions/${e}/timeline`,o)},createTimelineComment({id:e,data:t}){return r.post(`subscriptions/${e}/timeline`,t)},getTimelineMessage({id:e,messageId:t}){return r.get(`subscriptions/${e}/timeline/${t}`)},deleteTimelineMessage({id:e,messageId:t}){return r.delete(`subscriptions/${e}/timeline/${t}`)},downloadCSV({limit:e=null,offset:t=null,sort:n=null,expand:s=null,filter:u=null,q:l=null}={}){const o={params:{limit:e,offset:t,sort:n,expand:s,filter:u,q:l},headers:w};return r.download("subscriptions",o)}}}function sr({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,sort:u=null}={}){const l={limit:e,offset:t,filter:n,q:s,sort:u};return r.getAll("tags",l)},create({data:e}){return r.post("tags",e)},get({tag:e}){return r.get(`tags/${e}`)},delete({tag:e}){return r.delete(`tags/${e}`)},update({tag:e,data:t}){return r.patch(`tags/${e}`,t)},tagCustomers({tag:e,data:t}){return r.post(`tags/${e}/customers`,t)},untagCustomers({tag:e,data:t}){return r.delete(`tags/${e}/customers`,t)},tagCustomer({tag:e,customerId:t}){return r.post(`tags/${e}/customers/${t}`)},untagCustomer({tag:e,customerId:t}){return r.delete(`tags/${e}/customers/${t}`)},tagKycDocuments({tag:e,data:t}){return r.post(`tags/${e}/kyc-documents`,t)},untagKycDocuments({tag:e,data:t}){return r.delete(`tags/${e}/kyc-documents`,t)},tagKycDocument({tag:e,kycDocumentId:t}){return r.post(`tags/${e}/kyc-documents/${t}`)},untagKycDocument({tag:e,kycDocumentId:t}){return r.delete(`tags/${e}/kyc-documents/${t}`)}}}function ur({apiHandler:r}){return{getAllTagsRules({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("tags-rules",l)},createTagsRule({id:e="",data:t}){return r.create(`tags-rules/${e}`,e,t)},getTagsRule({id:e}){return r.get(`tags-rules/${e}`)},updateTagsRule({id:e,data:t}){return r.put(`tags-rules/${e}`,t)},deleteTagsRule({id:e}){return r.delete(`tags-rules/${e}`)}}}function lr({apiHandler:r}){return{getAllApiLogs({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null,expand:l=null}={}){const o={limit:e,offset:t,sort:n,filter:s,q:u,expand:l};return r.getAll("tracking/api",o)},getApiLog({id:e}){return r.get(`tracking/api/${e}`)},getAllTaxTrackingLogs({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("tracking/taxes",l)},getTaxTrackingLog({id:e}){return r.get(`tracking/taxes/${e}`)},getAllListsChangesHistory({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("tracking/lists",l)},getAllWebhookTrackingLogs({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("tracking/webhooks",l)},getWebhookTrackingLog({id:e}){return r.get(`tracking/webhooks/${e}`)},resendWebhook({id:e}){return r.post(`tracking/webhooks/${e}/resend`)},downloadApiLogsCSV({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={params:{limit:e,offset:t,sort:n,filter:s,q:u},headers:w};return r.download("tracking/api",l)}}}function or({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,sort:u=null,expand:l=null}={}){const o={limit:e,offset:t,filter:n,q:s,sort:u,expand:l};return r.getAll("transactions",o)},create({data:e,expand:t=null}){const n={expand:t};return r.post("transactions",e,n)},get({id:e,expand:t=null}){const n={expand:t};return r.get(`transactions/${e}`,n)},patch({id:e,data:t}){return r.patch(`transactions/${e}`,t)},query({id:e}){return r.post(`transactions/${e}/query`)},update({id:e,data:t}){return r.post(`transactions/${e}/update`,t)},refund({id:e,data:t}){return r.post(`transactions/${e}/refund`,t)},getAllTimelineMessages({id:e,limit:t=null,offset:n=null,filter:s=null}){const u={limit:t,offset:n,filter:s};return r.getAll(`transactions/${e}/timeline`,u)},createTimelineComment({id:e,data:t}){return r.post(`transactions/${e}/timeline`,t)},getTimelineMessage({id:e,messageId:t}){return r.get(`transactions/${e}/timeline/${t}`)},deleteTimelineMessage({id:e,messageId:t}){return r.delete(`transactions/${e}/timeline/${t}`)},downloadCSV({limit:e=null,offset:t=null,sort:n=null,expand:s=null,filter:u=null,q:l=null}={}){const o={params:{limit:e,offset:t,sort:n,expand:s,filter:u,q:l},headers:w};return r.download("transactions",o)}}}function cr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("usages",l)},create({id:e="",data:t}){return r.create(`usages/${e}`,e,t)},get({id:e}){return r.get(`usages/${e}`)},update({id:e,data:t}){return r.put(`usages/${e}`,t)},delete({id:e}){return r.delete(`usages/${e}`)}}}function ir({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("users",l)},create({id:e="",data:t}){return r.create(`users/${e}`,e,t)},get({id:e}){return r.get(`users/${e}`)},update({id:e,data:t}){return r.put(`users/${e}`,t)},getMfa({id:e}){return r.get(`users/${e}/mfa`)}}}function ar({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null}={}){const s={limit:e,offset:t,filter:n};return r.getAll("webhooks",s)},create({id:e="",data:t}){return r.create(`webhooks/${e}`,e,t)},get({id:e}){return r.get(`webhooks/${e}`)},update({id:e,data:t}){return r.put(`webhooks/${e}`,t)}}}function gr({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,q:n=null,filter:s=null,sort:u=null}={}){const l={limit:e,offset:t,q:n,filter:s,sort:u};return r.getAll("websites",l)},create({id:e="",data:t}){return r.create(`websites/${e}`,e,t)},get({id:e}){return r.get(`websites/${e}`)},update({id:e,data:t}){return r.put(`websites/${e}`,t)},delete({id:e}){return r.delete(`websites/${e}`)},downloadCSV({limit:e=null,offset:t=null,sort:n=null,expand:s=null,filter:u=null,q:l=null}={}){const o={params:{limit:e,offset:t,sort:n,expand:s,filter:u,q:l},headers:w};return r.download("websites",o)}}}class mr{constructor({apiHandler:e}){this.account=Ye({apiHandler:e}),this.amlChecks=_e({apiHandler:e}),this.aml=Qe({apiHandler:e}),this.apiKeys=Xe({apiHandler:e}),this.applicationInstances=Ze({apiHandler:e}),this.applications=He({apiHandler:e}),this.balanceTransactions=et({apiHandler:e}),this.billingPortals=tt({apiHandler:e}),this.blocklists=rt({apiHandler:e}),this.broadcastMessages=nt({apiHandler:e}),this.cashierCustomPropertySets=st({apiHandler:e}),this.cashierRequests=ut({apiHandler:e}),this.cashierStrategies=lt({apiHandler:e}),this.checkoutForms=ot({apiHandler:e}),this.coupons=ct({apiHandler:e}),this.credentialHashes=it({apiHandler:e}),this.creditMemos=at({apiHandler:e}),this.customDomains=gt({apiHandler:e}),this.customFields=mt({apiHandler:e}),this.customerAuthentication=ht({apiHandler:e}),this.customers=ft({apiHandler:e}),this.digitalWallets=$t({apiHandler:e}),this.disputes=pt({apiHandler:e}),this.emailDeliverySettings=yt({apiHandler:e}),this.emailMessages=At({apiHandler:e}),this.emailNotifications=bt({apiHandler:e}),this.events=Rt({apiHandler:e}),this.fees=dt({apiHandler:e}),this.files=wt({apiHandler:e}),this.gatewayAccounts=vt({apiHandler:e}),this.integrations=kt({apiHandler:e}),this.invoices=Tt({apiHandler:e}),this.journalAccounts=Et({apiHandler:e}),this.journalEntries=St({apiHandler:e}),this.kycDocuments=It({apiHandler:e}),this.kycRequests=Ct({apiHandler:e}),this.kycSettings=xt({apiHandler:e}),this.lists=jt({apiHandler:e}),this.memberships=Pt({apiHandler:e}),this.organizationExports=qt({apiHandler:e}),this.organizations=Mt({apiHandler:e}),this.paymentCardsBankNames=Ot({apiHandler:e}),this.paymentInstruments=Dt({apiHandler:e}),this.paymentMethods=Ft({apiHandler:e}),this.paymentTokens=Kt({apiHandler:e}),this.payoutRequests=Bt({apiHandler:e}),this.payouts=Nt({apiHandler:e}),this.plans=Lt({apiHandler:e}),this.previews=Vt({apiHandler:e}),this.products=zt({apiHandler:e}),this.profile=Ut({apiHandler:e}),this.purchase=Wt({apiHandler:e}),this.riskScoreRules=Jt({apiHandler:e}),this.roles=Gt({apiHandler:e}),this.search=Yt({apiHandler:e}),this.segments=_t({apiHandler:e}),this.sendThroughAttribution=Qt({apiHandler:e}),this.serviceCredentials=Xt({apiHandler:e}),this.shippingRates=Zt({apiHandler:e}),this.status=Ht({apiHandler:e}),this.subscriptionCancellations=er({apiHandler:e}),this.subscriptionPauses=tr({apiHandler:e}),this.subscriptionReactivations=rr({apiHandler:e}),this.subscriptions=nr({apiHandler:e}),this.tags=sr({apiHandler:e}),this.tagsRules=ur({apiHandler:e}),this.tracking=lr({apiHandler:e}),this.transactions=or({apiHandler:e}),this.usages=cr({apiHandler:e}),this.users=ir({apiHandler:e}),this.webhooks=ar({apiHandler:e}),this.websites=gr({apiHandler:e}),this.addRequestInterceptor=e.addRequestInterceptor,this.removeRequestInterceptor=e.removeRequestInterceptor,this.addResponseInterceptor=e.addResponseInterceptor,this.removeResponseInterceptor=e.removeResponseInterceptor,this.setTimeout=e.setTimeout,this.setProxyAgent=e.setProxyAgent,this.setSessionToken=e.setSessionToken,this.setPublishableKey=e.setPublishableKey,this.setEndpoints=e.setEndpoints,this.getCancellationToken=e.getCancellationToken,this.generateSignature=e.generateSignature}}function hr({apiHandler:r}){return{getCustomerLifetimeSummaryMetrics({customerId:e}){return r.get(`customers/${e}/summary-metrics`)}}}function fr({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,expand:s=null,filter:u=null,q:l=null,criteria:o=null}={}){const g={limit:e,offset:t,sort:n,expand:s,filter:u,q:l,criteria:o};return r.getAll("data-exports",g)},queue({id:e="",data:t,expand:n=null}){const s={expand:n};return r.create(`data-exports/${e}`,e,t,s)},get({id:e,expand:t=null}){const n={expand:t};return r.get(`data-exports/${e}`,n)},update({id:e,data:t,expand:n=null}){const s={expand:n};return r.put(`data-exports/${e}`,t,s)},delete({id:e}){return r.delete(`data-exports/${e}`)}}}function $r({apiHandler:r}){return{getTransactionHistogramReport({periodStart:e,periodEnd:t,aggregationPeriod:n,metric:s,filter:u=null}){const l={periodStart:e,periodEnd:t,aggregationPeriod:n,metric:s,filter:u};return r.get("histograms/transactions",l)}}}function pr({apiHandler:r}){return{getApiLogSummary({periodStart:e,periodEnd:t,limit:n=null,offset:s=null}){const u={periodStart:e,periodEnd:t,limit:n,offset:s};return r.get("reports/api-log-summary",u)},getCumulativeSubscriptions({aggregationField:e,periodStart:t,periodEnd:n,limit:s=null,offset:u=null,filter:l=null}){const o={aggregationField:e,periodStart:t,periodEnd:n,limit:s,offset:u,filter:l};return r.get("reports/cumulative-subscriptions",o)},getDashboardMetrics({periodStart:e,periodEnd:t,metrics:n=null,segments:s=null}){const u={periodStart:e,periodEnd:t,metrics:n,segments:s};return r.get("reports/dashboard",u)},getDccMarkup({aggregationField:e,periodStart:t,periodEnd:n,limit:s=null,offset:u=null,filter:l=null}){const o={aggregationField:e,periodStart:t,periodEnd:n,limit:s,offset:u,filter:l};return r.get("reports/dcc-markup",o)},getDisputes({aggregationField:e,periodMonth:t,limit:n=null,offset:s=null,filter:u=null}){const l={aggregationField:e,periodMonth:t,limit:n,offset:s,filter:u};return r.get("reports/disputes",l)},getEventsTriggeredSummary({periodStart:e,periodEnd:t,limit:n=null,offset:s=null}){const u={periodStart:e,periodEnd:t,limit:n,offset:s};return r.get("reports/events-triggered",u)},getTriggeredEventRuleReport({eventType:e,periodStart:t,periodEnd:n,limit:s=null,offset:u=null}){const l={periodStart:t,periodEnd:n,limit:s,offset:u};return r.get(`reports/events-triggered/${e}/rules`,l)},getFutureRenewals({periodStart:e,periodEnd:t,limit:n=null,offset:s=null}){const u={periodStart:e,periodEnd:t,limit:n,offset:s};return r.get("reports/future-renewals",u)},getJournal({currency:e,bookedFrom:t=null,bookedTo:n=null,recognizedAt:s,aggregationField:u,limit:l=null,offset:o=null,filter:g=null}){const p={currency:e,bookedFrom:t,bookedTo:n,recognizedAt:s,aggregationField:u,limit:l,offset:o,filter:g};return r.get("reports/journal",p)},getKycAcceptanceSummary({periodStart:e,periodEnd:t}){const n={periodStart:e,periodEnd:t};return r.get("reports/kyc-acceptance-summary",n)},getKycRejectionSummary({periodStart:e,periodEnd:t}){const n={periodStart:e,periodEnd:t};return r.get("reports/kyc-rejection-summary",n)},getKycRequestSummary({periodStart:e,periodEnd:t}){const n={periodStart:e,periodEnd:t};return r.get("reports/kyc-request-summary",n)},getMonthlyRecurringRevenue({currency:e,periodStart:t,periodEnd:n,limit:s=null,offset:u=null}){const l={currency:e,periodStart:t,periodEnd:n,limit:s,offset:u};return r.get("reports/monthly-recurring-revenue",l)},getRenewalSales({periodStart:e,periodEnd:t,limit:n=null,offset:s=null}){const u={periodStart:e,periodEnd:t,limit:n,offset:s};return r.get("reports/renewal-sales",u)},getRetentionPercentage({aggregationField:e,aggregationPeriod:t,includeSwitchedSubscriptions:n=null,periodStart:s,periodEnd:u,limit:l=null,offset:o=null,filter:g=null,criteria:p=null}){const k={aggregationField:e,aggregationPeriod:t,includeSwitchedSubscriptions:n,periodStart:s,periodEnd:u,limit:l,offset:o,filter:g,criteria:p};return r.get("reports/retention-percentage",k)},getRetentionValue({aggregationField:e,aggregationPeriod:t,includeRefunds:n=null,includeDisputes:s=null,periodStart:u,periodEnd:l,limit:o=null,offset:g=null,filter:p=null,sort:k=null,criteria:F=null}){const K={aggregationField:e,aggregationPeriod:t,includeRefunds:n,includeDisputes:s,periodStart:u,periodEnd:l,limit:o,offset:g,filter:p,sort:k,criteria:F};return r.get("reports/retention-value",K)},getRevenueWaterfall({currency:e,issuedFrom:t,issuedTo:n,recognizedTo:s}){const u={currency:e,issuedFrom:t,issuedTo:n,recognizedTo:s};return r.get("reports/revenue-waterfall",u)},getRevenueAudit({filter:e=null,sort:t=null,limit:n=null,offset:s=null}){const u={filter:e,sort:t,limit:n,offset:s};return r.get("reports/revenue-audit",u)},getSubscriptionCancellation({periodStart:e,periodEnd:t,aggregationField:n,limit:s=null,offset:u=null,filter:l=null}){const o={periodStart:e,periodEnd:t,aggregationField:n,limit:s,offset:u,filter:l};return r.get("reports/subscription-cancellation",o)},getSubscriptionRenewal({periodStart:e,periodEnd:t,limit:n=null,offset:s=null}){const u={periodStart:e,periodEnd:t,limit:n,offset:s};return r.get("reports/subscription-renewal",u)},getTimeSeriesTransaction({type:e,subaggregate:t,periodStart:n,periodEnd:s,limit:u=null,offset:l=null}){const o={type:e,subaggregate:t,periodStart:n,periodEnd:s,limit:u,offset:l};return r.get("reports/time-series-transaction",o)},getTransactionsTimeDispute({aggregationField:e,periodStart:t,periodEnd:n,limit:s=null,offset:u=null,filter:l=null}){const o={aggregationField:e,periodStart:t,periodEnd:n,limit:s,offset:u,filter:l};return r.get("reports/transactions-time-dispute",o)},getTransactions({periodStart:e,periodEnd:t,aggregationField:n,limit:s=null,offset:u=null,filter:l=null}){const o={periodStart:e,periodEnd:t,aggregationField:n,limit:s,offset:u,filter:l};return r.get("reports/transactions",o)}}}function yr({apiHandler:r}){return{getSubscriptionSummaryMetrics({subscriptionId:e}){return r.get(`subscriptions/${e}/summary-metrics`)}}}function Ar({apiHandler:r}){return{getActivityFeed({eventTypes:e=null,limit:t=1e3,offset:n=0}){const s={eventTypes:e,limit:t,offset:n};return r.getAll("activity-feed",s)},getTransaction({id:e="",eventTypes:t=null,limit:n=1e3,offset:s=0}){const u={eventTypes:t,limit:n,offset:s};return r.getAll(`transactions/${e}/timeline`,u)},getCustomer({id:e="",eventTypes:t=null,limit:n=1e3,offset:s=0}){const u={eventTypes:t,limit:n,offset:s};return r.getAll(`customers/${e}/timeline`,u)}}}function br({apiHandler:r}){return{query(){return r.get("location")}}}const v={CustomersResource:hr,DataExportsResource:fr,HistogramsResource:$r,ReportsResource:pr,SubscriptionsResource:yr,TimelinesResource:Ar,LocationResource:br};class Rr{constructor({apiHandler:e}){this.customers=v.CustomersResource({apiHandler:e}),this.dataExports=v.DataExportsResource({apiHandler:e}),this.histograms=v.HistogramsResource({apiHandler:e}),this.reports=v.ReportsResource({apiHandler:e}),this.subscriptions=v.SubscriptionsResource({apiHandler:e}),this.timelines=v.TimelinesResource({apiHandler:e}),this.location=v.LocationResource({apiHandler:e}),this.addRequestInterceptor=e.addRequestInterceptor,this.removeRequestInterceptor=e.removeRequestInterceptor,this.addResponseInterceptor=e.addResponseInterceptor,this.removeResponseInterceptor=e.removeResponseInterceptor,this.setTimeout=e.setTimeout,this.setProxyAgent=e.setProxyAgent,this.setSessionToken=e.setSessionToken,this.setEndpoints=e.setEndpoints,this.getCancellationToken=e.getCancellationToken}}function dr({apiHandler:r}){return{get({expand:e=null}={}){const t={expand:e};return r.get("account",t)},update({data:e}){return r.patch("account",e)},requestPasswordReset({data:e}){return r.post("account/forgot-password",e)},changePassword({data:e}){return r.patch("account/password",e)},resendEmailVerification({data:e}){return r.post("account/resend-verification",e)},confirmPasswordReset({token:e,data:t}){return r.post(`account/reset-password/${e}`,t)},verifyEmail({token:e}){return r.post(`account/verification/${e}`)},register({data:e}){return r.post("register",e)}}}function wr({apiHandler:r}){return{login({data:e}){return r.post("login",e)},logout(){return r.post("logout")}}}function vr({apiHandler:r}){return{get({slug:e}){return r.get(`billing-portals/${e}`)}}}function kr({apiHandler:r}){return{create({data:e}){return r.post("cashier-deposit",e)}}}function Tr({apiHandler:r}){return{get({id:e,expand:t=null}){const n={expand:t};return r.get(`cashier-requests/${e}`,n)}}}function Er({apiHandler:r}){return{get({id:e}){return r.get(`checkout-forms/${e}`)}}}function Sr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("invoices",l)},get({id:e}){return r.get(`invoices/${e}`)},downloadPDF({id:e}){const t={headers:G,responseType:"arraybuffer"};return r.download(`invoices/${e}`,t)}}}function Ir({apiHandler:r}){return{getAll({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("kyc-documents",n)},create({data:e}){return r.post("kyc-documents",e)},get({id:e}){return r.get(`kyc-documents/${e}`)},update({id:e,data:t}){return r.patch(`kyc-documents/${e}`,t)}}}function Cr({apiHandler:r}){return{get({id:e,expand:t=null}){const n={expand:t};return r.get(`kyc-requests/${e}`,n)}}}function xr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("orders",l)},get({id:e}){return r.get(`orders/${e}`)},update({id:e,data:t}){return r.patch(`orders/${e}`,t)},cancel({id:e,data:t}){return r.post(`orders/${e}/cancellation`,t)},pause({id:e,data:t}){return r.post(`orders/${e}/pause`,t)}}}function jr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("payment-instruments",l)},create({data:e}){return r.post("payment-instruments",e)},get({id:e,limit:t=null,offset:n=null}){const s={limit:t,offset:n};return r.get(`payment-instruments/${e}`,s)},update({id:e,data:t}){return r.patch(`payment-instruments/${e}`,t)},deactivate({id:e}){return r.post(`payment-instruments/${e}/deactivation`)},getSetupTransaction({id:e}){return r.get(`payment-instruments/${e}/setup`)},setup({id:e,data:t}){return r.post(`payment-instruments/${e}/setup`,t)}}}function Pr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("payout-requests",l)},get({id:e}){return r.get(`payout-requests/${e}`)},update({id:e,data:t}){return r.patch(`payout-requests/${e}`,t)}}}function qr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:t,limit:n,offset:s,q:u,expand:l};return r.getAll("plans",o)},get({id:e,expand:t=null}){const n={expand:t};return r.get(`plans/${e}`,n)}}}function Mr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("products",l)},get({id:e}){return r.get(`products/${e}`)}}}function Or({apiHandler:r}){return{payment({data:e}){return r.post("payment",e)},purchase({data:e}){return r.post("purchase",e)},preview({data:e}){return r.post("preview-purchase",e)},readyToPay({data:e}){return r.post("ready-to-pay",e)}}}function Dr({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,sort:u=null}={}){const l={limit:e,offset:t,filter:n,q:s,sort:u};return r.getAll("transactions",l)},get({id:e}){return r.get(`transactions/${e}`)},finishKyc({id:e,token:t}){return r.post(`transactions/${e}/${t}/continue`)},skipKyc({id:e,token:t}){return r.post(`transactions/${e}/${t}/bypass`)},update({id:e,data:t}){return r.patch(`transactions/${e}`,t)}}}function Fr({apiHandler:r}){return{get({id:e}){return r.get(`websites/${e}`)}}}class Kr{constructor({apiHandler:e}){this.account=dr({apiHandler:e}),this.authorization=wr({apiHandler:e}),this.billingPortals=vr({apiHandler:e}),this.cashierDeposit=kr({apiHandler:e}),this.cashierRequests=Tr({apiHandler:e}),this.checkoutForms=Er({apiHandler:e}),this.invoices=Sr({apiHandler:e}),this.kycDocuments=Ir({apiHandler:e}),this.kycRequests=Cr({apiHandler:e}),this.orders=xr({apiHandler:e}),this.paymentInstruments=jr({apiHandler:e}),this.payoutRequests=Pr({apiHandler:e}),this.plans=qr({apiHandler:e}),this.products=Mr({apiHandler:e}),this.purchase=Or({apiHandler:e}),this.transactions=Dr({apiHandler:e}),this.websites=Fr({apiHandler:e}),this.checkoutForm=this.checkoutForms,this.billingPortal=this.billingPortals,this.addRequestInterceptor=e.addRequestInterceptor,this.removeRequestInterceptor=e.removeRequestInterceptor,this.addResponseInterceptor=e.addResponseInterceptor,this.removeResponseInterceptor=e.removeResponseInterceptor,this.setTimeout=e.setTimeout,this.setProxyAgent=e.setProxyAgent,this.setSessionToken=e.setSessionToken,this.setPublishableKey=e.setPublishableKey,this.setEndpoints=e.setEndpoints,this.getCancellationToken=e.getCancellationToken,this.generateSignature=e.generateSignature}}function Br({apiHandler:r}){return new mr({apiHandler:r})}function Nr({apiHandler:r}){return new Rr({apiHandler:r})}function Lr({apiHandler:r}){return new Kr({apiHandler:r})}const O={live:"https://api.rebilly.com",sandbox:"https://api-sandbox.rebilly.com"},D=6e3;function Y({apiKey:r=null,sandbox:e=!1,timeout:t=D,organizationId:n=null,urls:s=O}={}){if(!s.live||!s.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof s.live!="string"||typeof s.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const l=M({options:{apiEndpoints:s,apiKey:r,apiVersion:"",isSandbox:e,requestTimeout:t,jwt:null,organizationId:n}});return Br({apiHandler:l})}function Vr({apiKey:r=null,sandbox:e=!1,timeout:t=D,organizationId:n=null,urls:s=O}={}){if(!s.live||!s.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof s.live!="string"||typeof s.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const l=M({options:{apiEndpoints:s,apiKey:r,apiVersion:"experimental",isSandbox:e,requestTimeout:t,jwt:null,organizationId:n}});return Nr({apiHandler:l})}function zr({publishableKey:r=null,jwt:e=null,sandbox:t=!1,timeout:n=D,organizationId:s=null,urls:u=O}={}){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 l={apiEndpoints:u,publishableKey:r,jwt:e,apiVersion:"storefront",isSandbox:t,requestTimeout:n,organizationId:s},o=M({options:l});return o.setSessionToken(l.jwt),Lr({apiHandler:o})}m.RebillyAPI=Y,m.RebillyErrors=y,m.RebillyExperimentalAPI=Vr,m.RebillyStorefrontAPI=zr,m.cancellation=Ge,m.default=Y,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
36
|
+
*/var qe=Pe,Me=Object.prototype.hasOwnProperty,Oe=function(e,t,n){qe(e,function(s,u){if(Me.call(e,u))return t.call(n,e[u],u,e)})},De=pe,Fe=Ie,Ke=xe,Be=Oe;function q(r,e){switch(Ke(r)){case"object":return Ne(r,e);case"array":return Le(r,e);default:return Fe(r)}}function Ne(r,e){if(De(r)){var t={};return Be(r,function(n,s){this[s]=q(n,e)},t),t}else return e?e(r):r}function Le(r,e){for(var t=r.length,n=[],s=-1;++s<t;)n[s]=q(r[s],e);return n}var Ve=q;const ze="48.7.0";let Ue="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",We=(r=21)=>{let e="",t=r;for(;t--;)e+=Ue[Math.random()*64|0];return e};class Je{constructor({id:e=null,created:t=null}={}){this.id=e||We(),this.created=t||new Date().getTime(),this.cancelSource=P.default.CancelToken.source(),this.cancel=this.cancelSource.cancel,this.cancelToken=this.cancelSource.token,x(this,{exclude:["cancelSource","cancelToken","cancel"]})}}class S{constructor(){if(S.instance)return S.instance;this.requests={},S.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 Je;return this.requests[e.id]=e,{id:e.id,cancelToken:e.cancelToken}}}var E=new S;class j{}N(j,"cancelById",(e,t)=>{try{E.getById(e).cancel(t),E.deleteById(e)}catch{}}),N(j,"cancelAll",e=>E.getAll().forEach(t=>{t.cancel(e),E.deleteById(t.id)}));var Ge={cancelAll:(...r)=>j.cancelAll(...r)};const d={request:"request",response:"response"},J=r=>{if(!Object.values(d).includes(r))throw new Error(`There is no such interceptor type as "${r}"`);return!0};function M({options:r}){const e=t();function t(){return P.default.create(s())}function n(){return e}function s(){return{baseURL:u(),timeout:r.requestTimeout,headers:l()}}function u(){let c=r.isSandbox?r.apiEndpoints.sandbox:r.apiEndpoints.live;return r.apiVersion&&(c=`${c}/${r.apiVersion}`),r.organizationId&&(c=`${c}/organizations/${r.organizationId}`),`${c}`}function l(){const c={"REB-API-CONSUMER":`RebillySDK/JS-SDK ${ze}`};return r.apiKey&&(c["REB-APIKEY"]=r.apiKey),c}function o(){return Ve(e.defaults.headers)}function g(c){r.requestTimeout=Number(c),e.defaults.timeout=r.requestTimeout}function p(c=r.jwt){const i=o();r.apiKey=null,r.jwt=c,delete i.common["REB-APIKEY"],i.common.Authorization=`Bearer ${c}`,e.defaults.headers=i}function k(c=r.publishableKey){const i=o();r.publishableKey=c,i.common.Authorization=`${c}`,e.defaults.headers=i}function F({host:c,port:i,auth:a}){e.defaults.proxy={host:c,port:i,auth:a}}function K({live:c=null,sandbox:i=null}){c&&(r.apiEndpoints.live=c),i&&(r.apiEndpoints.sandbox=i),e.defaults.baseURL=u()}function _(c,{thenDelegate:i,catchDelegate:a=()=>{}}){return J(c)&&e.interceptors[d[c]].use(i,a)}function Q(c,i){return J(c)&&e.interceptors[d[c]].eject(i)}function Ur({thenDelegate:c,catchDelegate:i=()=>{}}){return _(d.request,{thenDelegate:c,catchDelegate:i})}function Wr(c){Q(d.request,c)}function Jr({thenDelegate:c,catchDelegate:i=()=>{}}){return _(d.response,{thenDelegate:c,catchDelegate:i})}function Gr(c){Q(d.response,c)}function T({request:c,isCollection:i,config:a}){const f=Z(a),{id:b,cancelToken:rn}=E.save();f.cancelToken=rn;const re=async function(){try{const I=await c(f);return Yr({response:I,isCollection:i,config:f})}catch(I){return X({error:I,config:f})}finally{E.deleteById(b)}}();return re.cancel=I=>j.cancelById(b,I),re}function Yr({response:c,isCollection:i,config:a}){return i?new se(c,a):new L(c,a)}function X({error:c}){if(P.default.isCancel(c))throw new y.RebillyCanceledError(c);if(c.response)switch(Number(c.response.status)){case 401:throw new y.RebillyForbiddenError(c);case 404:throw new y.RebillyNotFoundError(c);case 405:throw new y.RebillyMethodNotAllowedError(c);case 409:throw new y.RebillyConflictError(c);case 422:throw new y.RebillyValidationError(c);default:throw new y.RebillyRequestError(c)}throw c.code==="ECONNABORTED"?new y.RebillyTimeoutError(c):new y.RebillyRequestError(c)}function _r(c){return c.params!==void 0&&(c.params=Object.keys(c.params).filter(i=>c.params[i]!==null&&c.params[i]!=="").reduce((i,a)=>(i[a]=c.params[a],i),{})),c}function Z(c={}){const i=_r(c);return C({},i)}function H(c,i={}){return T({request:a=>e.get(c,a),config:{params:i}})}function Qr(c,i){return T({request:a=>e.get(c,a),config:{params:i},isCollection:!0})}function ee(c,i,a={}){let f={};return a.authenticate===!1&&(f={headers:o()},delete f.headers.common["REB-APIKEY"],delete f.headers.common.Authorization),a.params&&(f.params=C({},a.params)),T({request:b=>e.post(c,i,b),config:f})}function te(c,i,a={}){return T({request:f=>e.put(c,i,f),config:{params:a}})}function Xr(c,i){return T({request:a=>e.patch(c,i,a),config:{}})}function Zr(c){return T({request:i=>e.delete(c,i),config:{}})}function Hr(c,i){return T({request:a=>e.delete(c,a),config:{data:C({},i)}})}async function en(c,i,a,f={}){if(i==="")return ee(c,a,{params:f});try{if((await H(c)).response.status===200)throw new y.RebillyConflictError({message:"Member already exists. Please use a different ID."})}catch(b){if(b.name==="RebillyNotFoundError")return te(c,a,f);throw b}}async function tn(c,i){const a=Z(i);try{const f=await e.get(c,a);return new ue(f,a)}catch(f){return X({error:f,config:a})}}return{getInstance:n,addRequestInterceptor:Ur,removeRequestInterceptor:Wr,addResponseInterceptor:Jr,removeResponseInterceptor:Gr,setTimeout:g,setProxyAgent:F,setSessionToken:p,setPublishableKey:k,setEndpoints:K,get:H,getAll:Qr,post:ee,put:te,patch:Xr,delete:Zr,deleteAll:Hr,create:en,download:tn}}function Ye({apiHandler:r}){return{activate({token:e}){return r.post(`activation/${e}`,{authenticate:!1})},forgotPassword({data:e}){return r.post("forgot-password",e,{authenticate:!1})},logout(){return r.post("logout")},signIn({data:e}){return r.post("signin",e,{authenticate:!1})},signUp({data:e}){return r.post("signup",e,{authenticate:!1})}}}function _e({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("aml-checks",l)},get({id:e}){return r.get(`aml-checks/${e}`)},review({id:e,data:t}){return r.post(`aml-checks/${e}/review`,t)}}}function Qe({apiHandler:r}){return{getAll({firstName:e,lastName:t,dob:n=null,country:s=null}){const u={firstName:e,lastName:t,dob:n,country:s};return r.get("aml",u)}}}function Xe({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null}={}){const s={limit:e,offset:t,sort:n};return r.getAll("api-keys",s)},create({id:e="",data:t}){return r.create(`api-keys/${e}`,e,t)},get({id:e}){return r.get(`api-keys/${e}`)},update({id:e,data:t}){return r.put(`api-keys/${e}`,t)},delete({id:e}){return r.delete(`api-keys/${e}`)}}}function Ze({apiHandler:r}){return{get({applicationId:e}){return r.get(`application-instances/${e}`)},upsert({applicationId:e,data:t}){return r.put(`application-instances/${e}`,t)},delete({applicationId:e}){return r.delete(`application-instances/${e}`)},getConfiguration({applicationId:e}){return r.get(`application-instances/${e}/configuration`)},upsertConfiguration({applicationId:e,data:t}){return r.put(`application-instances/${e}/configuration`,t)}}}function He({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,expand:u=null,fields:l=null,sort:o=null}={}){const g={limit:e,offset:t,filter:n,q:s,expand:u,fields:l,sort:o};return r.getAll("applications",g)},create({data:e}){return r.post("applications",e)},get({id:e}){return r.get(`applications/${e}`)},getInstances({id:e,limit:t=null,offset:n=null}){const s={limit:t,offset:n};return r.getAll(`applications/${e}/instances`,s)},getInstance({id:e,organizationId:t}){return r.get(`applications/${e}/instances/${t}`)}}}function et({apiHandler:r}){return{getAll({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("balance-transactions",n)},get({id:e}){return r.get(`balance-transactions/${e}`)}}}function tt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("billing-portals",l)},create({id:e="",data:t}){return r.create(`billing-portals/${e}`,e,t)},get({id:e}){return r.get(`billing-portals/${e}`)},update({id:e,data:t}){return r.put(`billing-portals/${e}`,t)},delete({id:e}){return r.delete(`billing-portals/${e}`)}}}function rt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("blocklists",l)},create({id:e="",data:t}){return r.create(`blocklists/${e}`,e,t)},get({id:e}){return r.get(`blocklists/${e}`)},delete({id:e}){return r.delete(`blocklists/${e}`)}}}function nt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null}={}){const u={limit:e,offset:t,sort:n,filter:s};return r.getAll("broadcast-messages",u)},create({data:e}){return r.post("broadcast-messages",e)},get({id:e}){return r.get(`broadcast-messages/${e}`)},delete({id:e}){return r.delete(`broadcast-messages/${e}`)},update({id:e,data:t}){return r.patch(`broadcast-messages/${e}`,t)}}}function st({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("cashier-custom-property-sets",u)},create({id:e="",data:t}){return r.create(`cashier-custom-property-sets/${e}`,e,t)},get({id:e}){return r.get(`cashier-custom-property-sets/${e}`)},update({id:e,data:t}){return r.put(`cashier-custom-property-sets/${e}`,t)},delete({id:e}){return r.delete(`cashier-custom-property-sets/${e}`)}}}function ut({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("cashier-requests",u)},create({data:e}){return r.post("cashier-requests",e)},get({id:e,expand:t=null}){const n={expand:t};return r.get(`cashier-requests/${e}`,n)}}}function lt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("cashier-strategies",u)},create({id:e="",data:t}){return r.create(`cashier-strategies/${e}`,e,t)},get({id:e}){return r.get(`cashier-strategies/${e}`)},update({id:e,data:t}){return r.put(`cashier-strategies/${e}`,t)},delete({id:e}){return r.delete(`cashier-strategies/${e}`)}}}function ot({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("checkout-forms",l)},create({id:e="",data:t}){return r.create(`checkout-forms/${e}`,e,t)},get({id:e}){return r.get(`checkout-forms/${e}`)},update({id:e,data:t}){return r.put(`checkout-forms/${e}`,t)},delete({id:e}){return r.delete(`checkout-forms/${e}`)}}}function ct({apiHandler:r}){return{getAllRedemptions({limit:e=null,offset:t=null,filter:n=null,q:s=null,sort:u=null}={}){const l={limit:e,offset:t,filter:n,q:s,sort:u};return r.getAll("coupons-redemptions",l)},redeem({data:e}){return r.post("coupons-redemptions",e)},getRedemption({id:e}){return r.get(`coupons-redemptions/${e}`)},cancelRedemption({id:e}){return r.post(`coupons-redemptions/${e}/cancel`)},getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,sort:u=null}={}){const l={limit:e,offset:t,filter:n,q:s,sort:u};return r.getAll("coupons",l)},create({id:e="",data:t}){return r.create(`coupons/${e}`,e,t)},get({id:e}){return r.get(`coupons/${e}`)},update({id:e,data:t}){return r.put(`coupons/${e}`,t)},setExpiration({id:e,data:t}){return r.post(`coupons/${e}/expiration`,t)}}}function it({apiHandler:r}){return{createAWSSESCredential({data:e}){return r.post("credential-hashes/aws-ses",e)},getAWSSESCredential({hash:e}){return r.get(`credential-hashes/aws-ses/${e}`)},updateAWSSESCredential({hash:e,data:t}){return r.patch(`credential-hashes/aws-ses/${e}`,t)},createEmailCredential({data:e}){return r.post("credential-hashes/emails",e)},getEmailCredential({hash:e}){return r.get(`credential-hashes/emails/${e}`)},patchEmailCredential({hash:e,data:t}){return r.patch(`credential-hashes/emails/${e}`,t)},createMailgunCredential({data:e}){return r.post("credential-hashes/mailgun",e)},getMailgunCredential({hash:e}){return r.get(`credential-hashes/mailgun/${e}`)},patchMailgunCredential({hash:e,data:t}){return r.patch(`credential-hashes/mailgun/${e}`,t)},getAllOAuth2Credentials({filter:e=null,limit:t=null,offset:n=null,sort:s=null,q:u=null}={}){const l={filter:e,limit:t,offset:n,sort:s,q:u};return r.getAll("credential-hashes/oauth2",l)},createOAuth2Credential({data:e}){return r.post("credential-hashes/oauth2",e)},getOAuth2Credential({hash:e}){return r.get(`credential-hashes/oauth2/${e}`)},updateOAuth2Credential({hash:e,data:t}){return r.patch(`credential-hashes/oauth2/${e}`,t)},getOAuth2CredentialItems({hash:e,limit:t=null,offset:n=null,filter:s=null,q:u=null,fields:l=null,sort:o=null}){const g={limit:t,offset:n,filter:s,q:u,fields:l,sort:o};return r.getAll(`credential-hashes/oauth2/${e}/items`,g)},getAllPlaidCredentials({filter:e=null,limit:t=null,offset:n=null,sort:s=null,q:u=null}={}){const l={filter:e,limit:t,offset:n,sort:s,q:u};return r.getAll("credential-hashes/plaid",l)},createPlaidCredential({data:e}){return r.post("credential-hashes/plaid",e)},getPlaidCredential({hash:e}){return r.get(`credential-hashes/plaid/${e}`)},updatePlaidCredential({hash:e,data:t}){return r.patch(`credential-hashes/plaid/${e}`,t)},createPostmarkCredential({data:e}){return r.post("credential-hashes/postmark",e)},getPostmarkCredential({hash:e}){return r.get(`credential-hashes/postmark/${e}`)},patchPostmarkCredential({hash:e,data:t}){return r.patch(`credential-hashes/postmark/${e}`,t)},createSendGridCredential({data:e}){return r.post("credential-hashes/sendgrid",e)},getSendGridCredential({hash:e}){return r.get(`credential-hashes/sendgrid/${e}`)},patchSendGridCredential({hash:e,data:t}){return r.patch(`credential-hashes/sendgrid/${e}`,t)},createWebhookCredential({data:e}){return r.post("credential-hashes/webhooks",e)},getWebhookCredential({hash:e}){return r.get(`credential-hashes/webhooks/${e}`)},patchWebhookCredential({hash:e,data:t}){return r.patch(`credential-hashes/webhooks/${e}`,t)},getAllExperianCredentials({filter:e=null,limit:t=null,offset:n=null,sort:s=null,q:u=null}={}){const l={filter:e,limit:t,offset:n,sort:s,q:u};return r.getAll("credential-hashes/experian",l)},createExperianCredential({data:e}){return r.post("credential-hashes/experian",e)},getExperianCredential({hash:e}){return r.get(`credential-hashes/experian/${e}`)},updateExperianCredential({hash:e,data:t}){return r.patch(`credential-hashes/experian/${e}`,t)},getAllTaxJarCredentials({filter:e=null,limit:t=null,offset:n=null,sort:s=null,q:u=null}={}){const l={filter:e,limit:t,offset:n,sort:s,q:u};return r.getAll("credential-hashes/taxjar",l)},createTaxJarCredential({data:e}){return r.post("credential-hashes/taxjar",e)},getTaxJarCredential({hash:e}){return r.get(`credential-hashes/taxjar/${e}`)},updateTaxJarCredential({hash:e,data:t}){return r.patch(`credential-hashes/taxjar/${e}`,t)},getAllAvalaraCredentials({filter:e=null,limit:t=null,offset:n=null,sort:s=null,q:u=null}={}){const l={filter:e,limit:t,offset:n,sort:s,q:u};return r.getAll("credential-hashes/avalara",l)},createAvalaraCredential({data:e}){return r.post("credential-hashes/avalara",e)},getAvalaraCredential({hash:e}){return r.get(`credential-hashes/avalara/${e}`)},updateAvalaraCredential({hash:e,data:t}){return r.patch(`credential-hashes/avalara/${e}`,t)}}}function at({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("credit-memos",l)},create({id:e="",data:t}){return r.create(`credit-memos/${e}`,e,t)},get({id:e}){return r.get(`credit-memos/${e}`)},update({id:e,data:t}){return r.put(`credit-memos/${e}`,t)},patch({id:e,data:t}){return r.patch(`credit-memos/${e}`,t)},void({id:e}){return r.post(`credit-memos/${e}/void`)},getAllTimelineMessages({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,q:l=null}){const o={limit:t,offset:n,filter:s,sort:u,q:l};return r.getAll(`credit-memos/${e}/timeline`,o)},createTimelineComment({id:e,data:t}){return r.post(`credit-memos/${e}/timeline`,t)},getTimelineMessage({id:e,messageId:t}){return r.get(`credit-memos/${e}/timeline/${t}`)},deleteTimelineMessage({id:e,messageId:t}){return r.delete(`credit-memos/${e}/timeline/${t}`)}}}function gt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("custom-domains",l)},create({data:e}){return r.post("custom-domains",e)},get({domain:e}){return r.get(`custom-domains/${e}`)},delete({domain:e}){return r.delete(`custom-domains/${e}`)}}}function mt({apiHandler:r}){return{getAll({resource:e,limit:t=null,offset:n=null}){const s={limit:t,offset:n};return r.getAll(`custom-fields/${e}`,s)},get({resource:e,name:t}){return r.get(`custom-fields/${e}/${t}`)},create({resource:e,name:t,data:n}){return r.put(`custom-fields/${e}/${t}`,n)},update({resource:e,name:t,data:n}){return r.put(`custom-fields/${e}/${t}`,n)}}}function ht({apiHandler:r}){return{getAuthOptions(){return r.get("authentication-options")},updateAuthOptions({data:e}){return r.put("authentication-options",e)},getAllAuthTokens({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("authentication-tokens",n)},login({data:e}){return r.post("authentication-tokens",e)},verify({token:e}){return r.get(`authentication-tokens/${e}`)},logout({token:e}){return r.delete(`authentication-tokens/${e}`)},exchangeToken({token:e,data:t}){return r.post(`authentication-tokens/${e}/exchange`,t)},getAllCredentials({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("credentials",n)},createCredential({id:e="",data:t}){return r.create(`credentials/${e}`,e,t)},getCredential({id:e}){return r.get(`credentials/${e}`)},updateCredential({id:e,data:t}){return r.put(`credentials/${e}`,t)},deleteCredential({id:e}){return r.delete(`credentials/${e}`)},getAllResetPasswordTokens({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("password-tokens",n)},createResetPasswordToken({data:e}){return r.post("password-tokens",e)},getResetPasswordToken({id:e}){return r.get(`password-tokens/${e}`)},deleteResetPasswordToken({id:e}){return r.delete(`password-tokens/${e}`)}}}const w={Accept:"text/csv"},G={Accept:"application/pdf"};function ft({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,expand:u=null,fields:l=null,sort:o=null}={}){const g={limit:e,offset:t,filter:n,q:s,expand:u,fields:l,sort:o};return r.getAll("customers",g)},create({id:e="",data:t,expand:n=null}){const s={expand:n};return r.create(`customers/${e}`,e,t,s)},get({id:e,expand:t=null,fields:n=null}){const s={expand:t,fields:n};return r.get(`customers/${e}`,s)},update({id:e,data:t,expand:n=null}){const s={expand:n};return r.put(`customers/${e}`,t,s)},merge({id:e,targetCustomerId:t}){return r.delete(`customers/${e}?targetCustomerId=${t}`)},getAml({id:e}){return r.get(`customers/${e}/aml`)},getLeadSource({id:e}){return r.get(`customers/${e}/lead-source`)},createLeadSource({id:e,data:t}){return r.put(`customers/${e}/lead-source`,t)},updateLeadSource({id:e,data:t}){return r.put(`customers/${e}/lead-source`,t)},deleteLeadSource({id:e}){return r.delete(`customers/${e}/lead-source`)},getAllTimelineMessages({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,q:l=null}){const o={limit:t,offset:n,filter:s,sort:u,q:l};return r.getAll(`customers/${e}/timeline`,o)},createTimelineComment({id:e,data:t}){return r.post(`customers/${e}/timeline`,t)},getTimelineMessage({id:e,messageId:t}){return r.get(`customers/${e}/timeline/${t}`)},deleteTimelineMessage({id:e,messageId:t}){return r.delete(`customers/${e}/timeline/${t}`)},getCustomerEddScore({id:e}){return r.get(`customers/${e}/edd-score`)},patchCustomerEddScore({id:e,data:t}){return r.patch(`customers/${e}/edd-score`,t)},getEddTimelineCollection({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,q:l=null}){const o={limit:t,offset:n,filter:s,sort:u,q:l};return r.getAll(`customers/${e}/edd-timeline`,o)},createEddTimelineComment({id:e,data:t}){return r.post(`customers/${e}/edd-timeline`,t)},getEddTimelineMessage({id:e,messageId:t}){return r.get(`customers/${e}/edd-timeline/${t}`)},deleteEddTimelineMessage({id:e,messageId:t}){return r.delete(`customers/${e}/edd-timeline/${t}`)},getAllEddSearchResults({id:e,limit:t=null,offset:n=null}){const s={limit:t,offset:n};return r.getAll(`customers/${e}/edd-search-results`,s)},getEddSearchResult({id:e,searchResultId:t}){return r.get(`customers/${e}/edd-search-results/${t}`)},downloadCSV({limit:e=null,offset:t=null,sort:n=null,expand:s=null,filter:u=null,q:l=null}={}){const o={params:{limit:e,offset:t,sort:n,expand:s,filter:u,q:l},headers:w};return r.download("customers",o)}}}function $t({apiHandler:r}){return{create({data:e}){return r.post("digital-wallets/onboarding/apple-pay",e)},validate({data:e}){return r.post("digital-wallets/validation",e)}}}function pt({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:t,limit:n,offset:s,q:u,expand:l};return r.getAll("disputes",o)},create({id:e="",data:t,expand:n=null}){const s={expand:n};return r.create(`disputes/${e}`,e,t,s)},get({id:e}){return r.get(`disputes/${e}`)},update({id:e,data:t,expand:n=null}){const s={expand:n};return r.put(`disputes/${e}`,t,s)},downloadCSV({limit:e=null,offset:t=null,sort:n=null,expand:s=null,filter:u=null,q:l=null}={}){const o={params:{limit:e,offset:t,sort:n,expand:s,filter:u,q:l},headers:w};return r.download("disputes",o)}}}function yt({apiHandler:r}){return{verify({token:e}){return r.put(`email-delivery-setting-verifications/${e}`)},getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null,q:u=null}={}){const l={limit:e,offset:t,filter:n,sort:s,q:u};return r.getAll("email-delivery-settings",l)},create({data:e}){return r.post("email-delivery-settings",e)},get({id:e}){return r.get(`email-delivery-settings/${e}`)},delete({id:e}){return r.delete(`email-delivery-settings/${e}`)},update({id:e,data:t}){return r.patch(`email-delivery-settings/${e}`,t)},resendVerification({id:e}){return r.post(`email-delivery-settings/${e}/resend-email-verification`)}}}function At({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,q:n=null,sort:s=null,filter:u=null}={}){const l={limit:e,offset:t,q:n,sort:s,filter:u};return r.getAll("email-messages",l)},create({data:e}){return r.post("email-messages",e)},get({id:e}){return r.get(`email-messages/${e}`)},delete({id:e}){return r.delete(`email-messages/${e}`)},send({id:e,data:t={status:"outbox"}}){return r.patch(`email-messages/${e}`,t)}}}function bt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("email-notifications",n)}}}function Rt({apiHandler:r}){return{getAll(){return r.getAll("events")},get({eventType:e}){return r.get(`events/${e}`)},getRules({eventType:e}){return r.get(`events/${e}/rules`)},createRules({eventType:e,data:t}){return r.put(`events/${e}/rules`,t)},updateRules({eventType:e,data:t}){return r.put(`events/${e}/rules`,t)},getAllTimelineMessages({eventType:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,q:l=null}){const o={limit:t,offset:n,filter:s,sort:u,q:l};return r.getAll(`events/${e}/timeline`,o)},createTimelineComment({eventType:e,data:t}){return r.post(`events/${e}/timeline`,t)},getTimelineMessage({eventType:e,messageId:t}){return r.get(`events/${e}/timeline/${t}`)},deleteTimelineMessage({eventType:e,messageId:t}){return r.delete(`events/${e}/timeline/${t}`)},getRulesHistory({eventType:e,limit:t=null,offset:n=null,filter:s=null,q:u=null,sort:l=null,fields:o=null}){const g={limit:t,offset:n,filter:s,q:u,sort:l,fields:o};return r.getAll(`events/${e}/rules/history`,g)},getRulesVersionNumber({eventType:e,version:t,fields:n=null}){const s={fields:n};return r.get(`events/${e}/rules/history/${t}`,s)},getRulesVersionDetail({eventType:e,version:t,fields:n=null}){const s={fields:n};return r.get(`events/${e}/rules/versions/${t}`,s)},getAllDraftRulesets({eventType:e,limit:t=null,offset:n=null,filter:s=null,q:u=null,sort:l=null,fields:o=null}){const g={limit:t,offset:n,filter:s,q:u,sort:l,fields:o};return r.getAll(`events/${e}/rules/drafts`,g)},createDraftRuleset({eventType:e,data:t}){return r.post(`events/${e}/rules/drafts`,t)},getDraftRuleset({eventType:e,id:t,fields:n=null}){const s={fields:n};return r.get(`events/${e}/rules/drafts/${t}`,s)},updateDraftRuleset({eventType:e,id:t,data:n}){return r.put(`events/${e}/rules/drafts/${t}`,n)},deleteDraftRuleset({eventType:e,id:t}){return r.delete(`events/${e}/rules/drafts/${t}`)}}}function dt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("fees",n)},create({id:e="",data:t}){return r.create(`fees/${e}`,e,t)},get({id:e}){return r.get(`fees/${e}`)},upsert({id:e,data:t}){return r.put(`fees/${e}`,t)},patch({id:e,data:t}){return r.patch(`fees/${e}`,t)}}}function wt({apiHandler:r}){return{getAllAttachments({limit:e=null,offset:t=null,filter:n=null,q:s=null,expand:u=null,fields:l=null,sort:o=null}={}){const g={limit:e,offset:t,filter:n,q:s,expand:u,fields:l,sort:o};return r.getAll("attachments",g)},attach({id:e="",data:t,expand:n=null}){const s={expand:n};return r.create(`attachments/${e}`,e,t,s)},getAttachment({id:e}){return r.get(`attachments/${e}`)},updateAttachment({id:e,data:t,expand:n=null}){const s={expand:n};return r.put(`attachments/${e}`,t,s)},detach({id:e}){return r.delete(`attachments/${e}`)},getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,fields:u=null,sort:l=null}={}){const o={limit:e,offset:t,filter:n,q:s,fields:u,sort:l};return r.getAll("files",o)},upload({fileObject:e}){return r.post("files",e)},get({id:e}){return r.get(`files/${e}`)},update({id:e,data:t}){return r.put(`files/${e}`,t)},delete({id:e}){return r.delete(`files/${e}`)},download({id:e}){const t={responseType:"arraybuffer"};return r.download(`files/${e}/download`,t)},detachAndDelete({id:e}){const t={filter:`fileId:${e}`};let n=[];const u=(async()=>{const l=this.getAllAttachments(t);n.push(l);const g=(await l).items.map(k=>this.detach({id:k.fields.id}));n=[...n,g],await Promise.all(g);const p=r.delete(`files/${e}`);return n.push(p),p})();return u.cancel=()=>{n.forEach(l=>l.cancel())},u},uploadAndUpdate({fileObject:e,data:t={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:t.description,tags:t.tags,url:""},g=this.update({id:l.fields.id,data:o});return n.push(g),g})();return u.cancel=()=>{n.forEach(l=>l.cancel())},u}}}function vt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null,fields:l=null}={}){const o={limit:e,offset:t,sort:n,filter:s,q:u,fields:l};return r.getAll("gateway-accounts",o)},create({id:e="",data:t}){return r.create(`gateway-accounts/${e}`,e,t)},get({id:e}){return r.get(`gateway-accounts/${e}`)},update({id:e,data:t}){return r.patch(`gateway-accounts/${e}`,t)},delete({id:e}){return r.delete(`gateway-accounts/${e}`)},close({id:e}){return r.post(`gateway-accounts/${e}/close`)},disable({id:e}){return r.post(`gateway-accounts/${e}/disable`)},getAllDowntimeSchedules({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null}){const l={limit:t,offset:n,filter:s,sort:u};return r.getAll(`gateway-accounts/${e}/downtime-schedules`,l)},createDowntimeSchedule({id:e,data:t}){return r.post(`gateway-accounts/${e}/downtime-schedules`,t)},getDowntimeSchedule({id:e,downtimeId:t}){return r.get(`gateway-accounts/${e}/downtime-schedules/${t}`)},updateDowntimeSchedule({id:e,downtimeId:t,data:n}){return r.put(`gateway-accounts/${e}/downtime-schedules/${t}`,n)},deleteDowntimeSchedule({id:e,downtimeId:t}){return r.delete(`gateway-accounts/${e}/downtime-schedules/${t}`)},enable({id:e}){return r.post(`gateway-accounts/${e}/enable`)},getAllVolumeLimits({id:e}){return r.getAll(`gateway-accounts/${e}/limits`)},getVolumeLimit({id:e,limitId:t}){return r.get(`gateway-accounts/${e}/limits/${t}`)},updateVolumeLimit({id:e,limitId:t,data:n}){return r.put(`gateway-accounts/${e}/limits/${t}`,n)},deleteVolumeLimit({id:e,limitId:t}){return r.delete(`gateway-accounts/${e}/limits/${t}`)},getAllTimelineMessages({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,q:l=null}){const o={limit:t,offset:n,filter:s,sort:u,q:l};return r.getAll(`gateway-accounts/${e}/timeline`,o)},createTimelineComment({id:e,data:t}){return r.post(`gateway-accounts/${e}/timeline`,t)},getTimelineMessage({id:e,messageId:t}){return r.get(`gateway-accounts/${e}/timeline/${t}`)},deleteTimelineMessage({id:e,messageId:t}){return r.delete(`gateway-accounts/${e}/timeline/${t}`)},checkCredentials({id:e}){return r.post(`gateway-accounts/${e}/check-credentials`)},getFinancialSettings({id:e}){return r.get(`gateway-accounts/${e}/financial-settings`)},setFinancialSettings({id:e,data:t}){return r.put(`gateway-accounts/${e}/financial-settings`,t)}}}function kt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("integrations",n)},get({label:e}){return r.get(`integrations/${e}`)}}}function Tt({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:t,limit:n,offset:s,q:u,expand:l};return r.getAll("invoices",o)},create({id:e="",data:t,expand:n=null}){const s={expand:n};return r.create(`invoices/${e}`,e,t,s)},get({id:e,expand:t=null}){const n={expand:t};return r.get(`invoices/${e}`,n)},update({id:e,data:t,expand:n=null}){const s={expand:n};return r.put(`invoices/${e}`,t,s)},getAllInvoiceItems({id:e,limit:t=null,offset:n=null,expand:s=null}){const u={limit:t,offset:n,expand:s};return r.getAll(`invoices/${e}/items`,u)},createInvoiceItem({id:e,data:t}){return r.post(`invoices/${e}/items`,t)},getInvoiceItem({id:e,itemId:t}){return r.get(`invoices/${e}/items/${t}`)},updateInvoiceItem({id:e,itemId:t,data:n}){return r.put(`invoices/${e}/items/${t}`,n)},deleteInvoiceItem({id:e,itemId:t}){return r.delete(`invoices/${e}/items/${t}`)},issue({id:e,data:t}){return r.post(`invoices/${e}/issue`,t)},abandon({id:e}){return r.post(`invoices/${e}/abandon`)},void({id:e}){return r.post(`invoices/${e}/void`)},recalculate({id:e}){return r.post(`invoices/${e}/recalculate`)},reissue({id:e,data:t}){return r.post(`invoices/${e}/reissue`,t)},getAllTransactionAllocations({id:e,limit:t=null,offset:n=null}){const s={limit:t,offset:n};return r.getAll(`invoices/${e}/transaction-allocations`,s)},applyTransaction({id:e,data:t}){return r.post(`invoices/${e}/transaction`,t)},getAllTimelineMessages({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,q:l=null}){const o={limit:t,offset:n,filter:s,sort:u,q:l};return r.getAll(`invoices/${e}/timeline`,o)},createTimelineComment({id:e,data:t}){return r.post(`invoices/${e}/timeline`,t)},getTimelineMessage({id:e,messageId:t}){return r.get(`invoices/${e}/timeline/${t}`)},deleteTimelineMessage({id:e,messageId:t}){return r.delete(`invoices/${e}/timeline/${t}`)},downloadCSV({limit:e=null,offset:t=null,sort:n=null,expand:s=null,filter:u=null,q:l=null}={}){const o={params:{limit:e,offset:t,sort:n,expand:s,filter:u,q:l},headers:w};return r.download("invoices",o)},downloadPDF({id:e}){const t={headers:G,responseType:"arraybuffer"};return r.download(`invoices/${e}`,t)}}}function Et({apiHandler:r}){return{getAllAccounts({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("journal-accounts",u)},createAccount({id:e="",data:t}){return r.create(`journal-accounts/${e}`,e,t)},getAccount({id:e}){return r.get(`journal-accounts/${e}`)},updateAccount({id:e,data:t}){return r.put(`journal-accounts/${e}`,t)}}}function St({apiHandler:r}){return{getAllEntries({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("journal-entries",u)},createEntry({id:e="",data:t}){return r.create(`journal-entries/${e}`,e,t)},getEntry({id:e}){return r.get(`journal-entries/${e}`)},updateEntry({id:e,data:t}){return r.put(`journal-entries/${e}`,t)},getAllRecords({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,expand:l=null}){const o={limit:t,offset:n,filter:s,sort:u,expand:l};return r.getAll(`journal-entries/${e}/records`,o)},createRecord({id:e,data:t}){return r.post(`journal-entries/${e}/records`,t)},getRecord({id:e,journalRecordId:t}){return r.get(`journal-entries/${e}/records/${t}`)},updateRecord({id:e,journalRecordId:t,data:n}){return r.put(`journal-entries/${e}/records/${t}`,n)},deleteRecord({id:e,journalRecordId:t}){return r.delete(`journal-entries/${e}/records/${t}`)}}}function It({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null,expand:u=null}={}){const l={limit:e,offset:t,filter:n,sort:s,expand:u};return r.getAll("kyc-documents",l)},create({id:e="",data:t}){return r.create(`kyc-documents/${e}`,e,t)},get({id:e}){return r.get(`kyc-documents/${e}`)},update({id:e,data:t}){return r.put(`kyc-documents/${e}`,t)},accept({id:e}){return r.post(`kyc-documents/${e}/acceptance`)},matches({id:e,data:t}){return r.post(`kyc-documents/${e}/matches`,t)},reject({id:e,data:t}){return r.post(`kyc-documents/${e}/rejection`,t)},review({id:e}){return r.post(`kyc-documents/${e}/review`)},startReview({id:e}){return r.post(`kyc-documents/${e}/start-review`)},stopReview({id:e}){return r.post(`kyc-documents/${e}/stop-review`)}}}function Ct({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("kyc-requests",u)},create({data:e}){return r.post("kyc-requests",e)},get({id:e}){return r.get(`kyc-requests/${e}`)},delete({id:e}){return r.delete(`kyc-requests/${e}`)},update({id:e,data:t}){return r.patch(`kyc-requests/${e}`,t)}}}function xt({apiHandler:r}){return{getKycSettings(){return r.get("kyc-settings")},updateKycSettings({data:e}){return r.put("kyc-settings",e)}}}function jt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null,fields:u=null,q:l=null}={}){const o={limit:e,offset:t,filter:n,sort:s,fields:u,q:l};return r.getAll("lists",o)},create({id:e="",data:t}){return r.create(`lists/${e}`,e,t)},getLatestVersion({id:e}){return r.get(`lists/${e}`)},update({id:e,data:t}){return r.put(`lists/${e}`,t)},delete({id:e}){return r.delete(`lists/${e}`)},getByVersion({id:e,version:t}){return r.get(`lists/${e}/${t}`)}}}function Pt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("memberships",u)},get({organizationId:e,userId:t}){return r.get(`memberships/${e}/${t}`)},update({organizationId:e,userId:t,data:n}){return r.put(`memberships/${e}/${t}`,n)},delete({organizationId:e,userId:t}){return r.delete(`memberships/${e}/${t}`)}}}function qt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,sort:u=null}={}){const l={limit:e,offset:t,filter:n,q:s,sort:u};return r.getAll("organization-exports",l)},create({data:e}){return r.post("organization-exports",e)},get({id:e}){return r.get(`organization-exports/${e}`)}}}function Mt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null}={}){const u={limit:e,offset:t,filter:n,q:s};return r.getAll("organizations",u)},create({data:e}){return r.post("organizations",e)},get({id:e}){return r.get(`organizations/${e}`)},update({id:e,data:t}){return r.patch(`organizations/${e}`,t)}}}function Ot({apiHandler:r}){return{getAll({limit:e=null,q:t=null}={}){const n={limit:e,q:t};return r.getAll("payment-cards-bank-names",n)}}}function Dt({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:t,limit:n,offset:s,q:u,expand:l};return r.getAll("payment-instruments",o)},create({data:e}){return r.post("payment-instruments",e)},get({id:e}){return r.get(`payment-instruments/${e}`)},update({id:e,data:t}){return r.patch(`payment-instruments/${e}`,t)},deactivate({id:e}){return r.post(`payment-instruments/${e}/deactivation`)}}}function Ft({apiHandler:r}){return{getAll({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("payment-methods",n)},get({apiName:e}){return r.get(`payment-methods/${e}`)}}}function Kt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("tokens",n)},create({data:e}){return r.post("tokens",e)},get({token:e}){return r.get(`tokens/${e}`)}}}function Bt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("payout-requests",u)},create({id:e="",data:t}){return r.create(`payout-requests/${e}`,e,t)},get({id:e}){return r.get(`payout-requests/${e}`)},update({id:e,data:t}){return r.put(`payout-requests/${e}`,t)},getPaymentInstruments({id:e}){return r.get(`payout-requests/${e}/payment-instruments`)}}}function Nt({apiHandler:r}){return{create({data:e}){return r.post("payouts",e)}}}function Lt({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("plans",l)},create({id:e="",data:t}){return r.create(`plans/${e}`,e,t)},get({id:e}){return r.get(`plans/${e}`)},update({id:e,data:t}){return r.put(`plans/${e}`,t)},delete({id:e}){return r.delete(`plans/${e}`)}}}function Vt({apiHandler:r}){return{sendEmailRuleAction({data:e}){return r.post("previews/rule-actions/send-email",e)},triggerWebhookRuleAction({data:e}){return r.post("previews/rule-actions/trigger-webhook",e)},webhook({data:e}){return r.post("previews/webhooks",e)},order({data:e}){return r.post("previews/orders",e)}}}function zt({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("products",l)},create({id:e="",data:t}){return r.create(`products/${e}`,e,t)},get({id:e}){return r.get(`products/${e}`)},update({id:e,data:t}){return r.put(`products/${e}`,t)},delete({id:e}){return r.delete(`products/${e}`)}}}function Ut({apiHandler:r}){return{startPermissionsEmulation({data:e}){return r.post("permissions-emulation",e)},stopPermissionsEmulation(){return r.delete("permissions-emulation")},get(){return r.get("profile")},update({data:e}){return r.put("profile",e)},getMfa(){return r.get("profile/mfa")},updateMfa(){return r.post("profile/mfa")},deleteMfa(){return r.delete("profile/mfa")}}}function Wt({apiHandler:r}){return{readyToPay({data:e}){return r.post("ready-to-pay",e)}}}function Jt({apiHandler:r}){return{getAll(){return r.get("risk-score-rules")},updateRiskScoreRules({data:e}){return r.put("risk-score-rules",e)},getAllBlocklistRules(){return r.get("risk-score-rules/blocklists")},updateRiskScoreBlocklistRules({data:e}){return r.put("risk-score-rules/blocklists",e)}}}function Gt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null,q:u=null,expand:l=null}={}){const o={limit:e,offset:t,filter:n,sort:s,q:u,expand:l};return r.getAll("roles",o)},create({id:e="",data:t}){return r.create(`roles/${e}`,e,t)},get({id:e,expand:t=null}){const n={expand:t};return r.get(`roles/${e}`,n)},update({id:e,data:t}){return r.put(`roles/${e}`,t)},delete({id:e}){return r.delete(`roles/${e}`)}}}function Yt({apiHandler:r}){return{get({sort:e=null,limit:t=null,offset:n=null,q:s=null}){const u={sort:e,limit:t,offset:n,q:s};return r.get("search",u)}}}function _t({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("grid-segments",l)},create({id:e="",data:t}){return r.create(`grid-segments/${e}`,e,t)},get({id:e}){return r.get(`grid-segments/${e}`)},update({id:e,data:t}){return r.put(`grid-segments/${e}`,t)},delete({id:e}){return r.delete(`grid-segments/${e}`)}}}function Qt({apiHandler:r}){return{getAll({eventType:e}){return r.getAll(`send-through-attribution/${e}`)}}}function Xt({apiHandler:r}){return{getAll({type:e,filter:t=null,limit:n=null,offset:s=null,sort:u=null,q:l=null}){const o={filter:t,limit:n,offset:s,sort:u,q:l};return r.getAll(`service-credentials/${e}`,o)},create({type:e,data:t}){return r.post(`service-credentials/${e}`,t)},get({type:e,id:t}){return r.get(`service-credentials/${e}/${t}`)},update({type:e,id:t,data:n}){return r.patch(`service-credentials/${e}/${t}`,n)},getItems({type:e,id:t,limit:n=null,offset:s=null,filter:u=null,q:l=null,fields:o=null,sort:g=null}){const p={limit:n,offset:s,filter:u,q:l,fields:o,sort:g};return r.getAll(`service-credentials/${e}/${t}/items`,p)}}}function Zt({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null,q:u=null}={}){const l={limit:e,offset:t,filter:n,sort:s,q:u};return r.getAll("shipping-rates",l)},create({id:e="",data:t}){return r.create(`shipping-rates/${e}`,e,t)},get({id:e}){return r.get(`shipping-rates/${e}`)},update({id:e,data:t}){return r.put(`shipping-rates/${e}`,t)},delete({id:e}){return r.delete(`shipping-rates/${e}`)}}}function Ht({apiHandler:r}){return{get(){return r.get("status")}}}function er({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("subscription-cancellations",u)},create({id:e="",data:t}){return r.create(`subscription-cancellations/${e}`,e,t)},get({id:e}){return r.get(`subscription-cancellations/${e}`)},delete({id:e}){return r.delete(`subscription-cancellations/${e}`)},patch({id:e,data:t}){return r.patch(`subscription-cancellations/${e}`,t)}}}function tr({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("subscription-pauses",u)},pause({id:e="",data:t}){return r.create(`subscription-pauses/${e}`,e,t)},get({id:e}){return r.get(`subscription-pauses/${e}`)},update({id:e,data:t}){return r.put(`subscription-pauses/${e}`,t)},delete({id:e}){return r.delete(`subscription-pauses/${e}`)}}}function rr({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,sort:s=null}={}){const u={limit:e,offset:t,filter:n,sort:s};return r.getAll("subscription-reactivations",u)},reactivate({data:e}){return r.post("subscription-reactivations",e)},get({id:e}){return r.get(`subscription-reactivations/${e}`)}}}function nr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:t,limit:n,offset:s,q:u,expand:l};return r.getAll("subscriptions",o)},create({id:e="",data:t,expand:n=null}){const s={expand:n};return r.create(`subscriptions/${e}`,e,t,s)},get({id:e,expand:t=null}){const n={expand:t};return r.get(`subscriptions/${e}`,n)},update({id:e,data:t,expand:n=null}){const s={expand:n};return r.put(`subscriptions/${e}`,t,s)},delete({id:e}){return r.delete(`subscriptions/${e}`)},void({id:e}){return r.post(`subscriptions/${e}/void`)},changeItems({id:e,data:t}){return r.post(`subscriptions/${e}/change-items`,t)},createInterimInvoice({id:e,data:t}){return r.post(`subscriptions/${e}/interim-invoice`,t)},getAllUpcomingInvoices({id:e,expand:t=null}){const n={expand:t};return r.getAll(`subscriptions/${e}/upcoming-invoices`,n)},getUpcomingInvoice({id:e,expand:t=null}){const n={expand:t};return r.get(`subscriptions/${e}/upcoming-invoice`,n)},issueUpcomingInvoice({id:e,invoiceId:t,data:n}){return r.post(`subscriptions/${e}/upcoming-invoices/${t}/issue`,n)},getAllTimelineMessages({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,q:l=null}){const o={limit:t,offset:n,filter:s,sort:u,q:l};return r.getAll(`subscriptions/${e}/timeline`,o)},createTimelineComment({id:e,data:t}){return r.post(`subscriptions/${e}/timeline`,t)},getTimelineMessage({id:e,messageId:t}){return r.get(`subscriptions/${e}/timeline/${t}`)},deleteTimelineMessage({id:e,messageId:t}){return r.delete(`subscriptions/${e}/timeline/${t}`)},downloadCSV({limit:e=null,offset:t=null,sort:n=null,expand:s=null,filter:u=null,q:l=null}={}){const o={params:{limit:e,offset:t,sort:n,expand:s,filter:u,q:l},headers:w};return r.download("subscriptions",o)}}}function sr({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,sort:u=null}={}){const l={limit:e,offset:t,filter:n,q:s,sort:u};return r.getAll("tags",l)},create({data:e}){return r.post("tags",e)},get({tag:e}){return r.get(`tags/${e}`)},delete({tag:e}){return r.delete(`tags/${e}`)},update({tag:e,data:t}){return r.patch(`tags/${e}`,t)},tagCustomers({tag:e,data:t}){return r.post(`tags/${e}/customers`,t)},untagCustomers({tag:e,data:t}){return r.delete(`tags/${e}/customers`,t)},tagCustomer({tag:e,customerId:t}){return r.post(`tags/${e}/customers/${t}`)},untagCustomer({tag:e,customerId:t}){return r.delete(`tags/${e}/customers/${t}`)},tagKycDocuments({tag:e,data:t}){return r.post(`tags/${e}/kyc-documents`,t)},untagKycDocuments({tag:e,data:t}){return r.delete(`tags/${e}/kyc-documents`,t)},tagKycDocument({tag:e,kycDocumentId:t}){return r.post(`tags/${e}/kyc-documents/${t}`)},untagKycDocument({tag:e,kycDocumentId:t}){return r.delete(`tags/${e}/kyc-documents/${t}`)}}}function ur({apiHandler:r}){return{getAllTagsRules({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("tags-rules",l)},createTagsRule({id:e="",data:t}){return r.create(`tags-rules/${e}`,e,t)},getTagsRule({id:e}){return r.get(`tags-rules/${e}`)},updateTagsRule({id:e,data:t}){return r.put(`tags-rules/${e}`,t)},deleteTagsRule({id:e}){return r.delete(`tags-rules/${e}`)}}}function lr({apiHandler:r}){return{getAllApiLogs({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null,expand:l=null}={}){const o={limit:e,offset:t,sort:n,filter:s,q:u,expand:l};return r.getAll("tracking/api",o)},getApiLog({id:e}){return r.get(`tracking/api/${e}`)},getAllTaxTrackingLogs({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("tracking/taxes",l)},getTaxTrackingLog({id:e}){return r.get(`tracking/taxes/${e}`)},getAllListsChangesHistory({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("tracking/lists",l)},getAllWebhookTrackingLogs({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("tracking/webhooks",l)},getWebhookTrackingLog({id:e}){return r.get(`tracking/webhooks/${e}`)},resendWebhook({id:e}){return r.post(`tracking/webhooks/${e}/resend`)},downloadApiLogsCSV({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={params:{limit:e,offset:t,sort:n,filter:s,q:u},headers:w};return r.download("tracking/api",l)}}}function or({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,sort:u=null,expand:l=null}={}){const o={limit:e,offset:t,filter:n,q:s,sort:u,expand:l};return r.getAll("transactions",o)},create({data:e,expand:t=null}){const n={expand:t};return r.post("transactions",e,n)},get({id:e,expand:t=null}){const n={expand:t};return r.get(`transactions/${e}`,n)},patch({id:e,data:t}){return r.patch(`transactions/${e}`,t)},query({id:e}){return r.post(`transactions/${e}/query`)},update({id:e,data:t}){return r.post(`transactions/${e}/update`,t)},refund({id:e,data:t}){return r.post(`transactions/${e}/refund`,t)},getAllTimelineMessages({id:e,limit:t=null,offset:n=null,filter:s=null,sort:u=null,q:l=null}){const o={limit:t,offset:n,filter:s,sort:u,q:l};return r.getAll(`transactions/${e}/timeline`,o)},createTimelineComment({id:e,data:t}){return r.post(`transactions/${e}/timeline`,t)},getTimelineMessage({id:e,messageId:t}){return r.get(`transactions/${e}/timeline/${t}`)},deleteTimelineMessage({id:e,messageId:t}){return r.delete(`transactions/${e}/timeline/${t}`)},downloadCSV({limit:e=null,offset:t=null,sort:n=null,expand:s=null,filter:u=null,q:l=null}={}){const o={params:{limit:e,offset:t,sort:n,expand:s,filter:u,q:l},headers:w};return r.download("transactions",o)}}}function cr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("usages",l)},create({id:e="",data:t}){return r.create(`usages/${e}`,e,t)},get({id:e}){return r.get(`usages/${e}`)},update({id:e,data:t}){return r.put(`usages/${e}`,t)},delete({id:e}){return r.delete(`usages/${e}`)}}}function ir({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,filter:s=null,q:u=null}={}){const l={limit:e,offset:t,sort:n,filter:s,q:u};return r.getAll("users",l)},create({id:e="",data:t}){return r.create(`users/${e}`,e,t)},get({id:e}){return r.get(`users/${e}`)},update({id:e,data:t}){return r.put(`users/${e}`,t)},getMfa({id:e}){return r.get(`users/${e}/mfa`)}}}function ar({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null}={}){const s={limit:e,offset:t,filter:n};return r.getAll("webhooks",s)},create({id:e="",data:t}){return r.create(`webhooks/${e}`,e,t)},get({id:e}){return r.get(`webhooks/${e}`)},update({id:e,data:t}){return r.put(`webhooks/${e}`,t)}}}function gr({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,q:n=null,filter:s=null,sort:u=null}={}){const l={limit:e,offset:t,q:n,filter:s,sort:u};return r.getAll("websites",l)},create({id:e="",data:t}){return r.create(`websites/${e}`,e,t)},get({id:e}){return r.get(`websites/${e}`)},update({id:e,data:t}){return r.put(`websites/${e}`,t)},delete({id:e}){return r.delete(`websites/${e}`)},downloadCSV({limit:e=null,offset:t=null,sort:n=null,expand:s=null,filter:u=null,q:l=null}={}){const o={params:{limit:e,offset:t,sort:n,expand:s,filter:u,q:l},headers:w};return r.download("websites",o)}}}class mr{constructor({apiHandler:e}){this.account=Ye({apiHandler:e}),this.amlChecks=_e({apiHandler:e}),this.aml=Qe({apiHandler:e}),this.apiKeys=Xe({apiHandler:e}),this.applicationInstances=Ze({apiHandler:e}),this.applications=He({apiHandler:e}),this.balanceTransactions=et({apiHandler:e}),this.billingPortals=tt({apiHandler:e}),this.blocklists=rt({apiHandler:e}),this.broadcastMessages=nt({apiHandler:e}),this.cashierCustomPropertySets=st({apiHandler:e}),this.cashierRequests=ut({apiHandler:e}),this.cashierStrategies=lt({apiHandler:e}),this.checkoutForms=ot({apiHandler:e}),this.coupons=ct({apiHandler:e}),this.credentialHashes=it({apiHandler:e}),this.creditMemos=at({apiHandler:e}),this.customDomains=gt({apiHandler:e}),this.customFields=mt({apiHandler:e}),this.customerAuthentication=ht({apiHandler:e}),this.customers=ft({apiHandler:e}),this.digitalWallets=$t({apiHandler:e}),this.disputes=pt({apiHandler:e}),this.emailDeliverySettings=yt({apiHandler:e}),this.emailMessages=At({apiHandler:e}),this.emailNotifications=bt({apiHandler:e}),this.events=Rt({apiHandler:e}),this.fees=dt({apiHandler:e}),this.files=wt({apiHandler:e}),this.gatewayAccounts=vt({apiHandler:e}),this.integrations=kt({apiHandler:e}),this.invoices=Tt({apiHandler:e}),this.journalAccounts=Et({apiHandler:e}),this.journalEntries=St({apiHandler:e}),this.kycDocuments=It({apiHandler:e}),this.kycRequests=Ct({apiHandler:e}),this.kycSettings=xt({apiHandler:e}),this.lists=jt({apiHandler:e}),this.memberships=Pt({apiHandler:e}),this.organizationExports=qt({apiHandler:e}),this.organizations=Mt({apiHandler:e}),this.paymentCardsBankNames=Ot({apiHandler:e}),this.paymentInstruments=Dt({apiHandler:e}),this.paymentMethods=Ft({apiHandler:e}),this.paymentTokens=Kt({apiHandler:e}),this.payoutRequests=Bt({apiHandler:e}),this.payouts=Nt({apiHandler:e}),this.plans=Lt({apiHandler:e}),this.previews=Vt({apiHandler:e}),this.products=zt({apiHandler:e}),this.profile=Ut({apiHandler:e}),this.purchase=Wt({apiHandler:e}),this.riskScoreRules=Jt({apiHandler:e}),this.roles=Gt({apiHandler:e}),this.search=Yt({apiHandler:e}),this.segments=_t({apiHandler:e}),this.sendThroughAttribution=Qt({apiHandler:e}),this.serviceCredentials=Xt({apiHandler:e}),this.shippingRates=Zt({apiHandler:e}),this.status=Ht({apiHandler:e}),this.subscriptionCancellations=er({apiHandler:e}),this.subscriptionPauses=tr({apiHandler:e}),this.subscriptionReactivations=rr({apiHandler:e}),this.subscriptions=nr({apiHandler:e}),this.tags=sr({apiHandler:e}),this.tagsRules=ur({apiHandler:e}),this.tracking=lr({apiHandler:e}),this.transactions=or({apiHandler:e}),this.usages=cr({apiHandler:e}),this.users=ir({apiHandler:e}),this.webhooks=ar({apiHandler:e}),this.websites=gr({apiHandler:e}),this.addRequestInterceptor=e.addRequestInterceptor,this.removeRequestInterceptor=e.removeRequestInterceptor,this.addResponseInterceptor=e.addResponseInterceptor,this.removeResponseInterceptor=e.removeResponseInterceptor,this.setTimeout=e.setTimeout,this.setProxyAgent=e.setProxyAgent,this.setSessionToken=e.setSessionToken,this.setPublishableKey=e.setPublishableKey,this.setEndpoints=e.setEndpoints,this.getCancellationToken=e.getCancellationToken,this.generateSignature=e.generateSignature}}function hr({apiHandler:r}){return{getCustomerLifetimeSummaryMetrics({customerId:e}){return r.get(`customers/${e}/summary-metrics`)}}}function fr({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,sort:n=null,expand:s=null,filter:u=null,q:l=null,criteria:o=null}={}){const g={limit:e,offset:t,sort:n,expand:s,filter:u,q:l,criteria:o};return r.getAll("data-exports",g)},queue({id:e="",data:t,expand:n=null}){const s={expand:n};return r.create(`data-exports/${e}`,e,t,s)},get({id:e,expand:t=null}){const n={expand:t};return r.get(`data-exports/${e}`,n)},update({id:e,data:t,expand:n=null}){const s={expand:n};return r.put(`data-exports/${e}`,t,s)},delete({id:e}){return r.delete(`data-exports/${e}`)}}}function $r({apiHandler:r}){return{getTransactionHistogramReport({periodStart:e,periodEnd:t,aggregationPeriod:n,metric:s,filter:u=null}){const l={periodStart:e,periodEnd:t,aggregationPeriod:n,metric:s,filter:u};return r.get("histograms/transactions",l)}}}function pr({apiHandler:r}){return{getApiLogSummary({periodStart:e,periodEnd:t,limit:n=null,offset:s=null}){const u={periodStart:e,periodEnd:t,limit:n,offset:s};return r.get("reports/api-log-summary",u)},getCumulativeSubscriptions({aggregationField:e,periodStart:t,periodEnd:n,limit:s=null,offset:u=null,filter:l=null}){const o={aggregationField:e,periodStart:t,periodEnd:n,limit:s,offset:u,filter:l};return r.get("reports/cumulative-subscriptions",o)},getDashboardMetrics({periodStart:e,periodEnd:t,metrics:n=null,segments:s=null}){const u={periodStart:e,periodEnd:t,metrics:n,segments:s};return r.get("reports/dashboard",u)},getDccMarkup({aggregationField:e,periodStart:t,periodEnd:n,limit:s=null,offset:u=null,filter:l=null}){const o={aggregationField:e,periodStart:t,periodEnd:n,limit:s,offset:u,filter:l};return r.get("reports/dcc-markup",o)},getDisputes({aggregationField:e,periodMonth:t,limit:n=null,offset:s=null,filter:u=null}){const l={aggregationField:e,periodMonth:t,limit:n,offset:s,filter:u};return r.get("reports/disputes",l)},getEventsTriggeredSummary({periodStart:e,periodEnd:t,limit:n=null,offset:s=null}){const u={periodStart:e,periodEnd:t,limit:n,offset:s};return r.get("reports/events-triggered",u)},getTriggeredEventRuleReport({eventType:e,periodStart:t,periodEnd:n,limit:s=null,offset:u=null}){const l={periodStart:t,periodEnd:n,limit:s,offset:u};return r.get(`reports/events-triggered/${e}/rules`,l)},getFutureRenewals({periodStart:e,periodEnd:t,limit:n=null,offset:s=null}){const u={periodStart:e,periodEnd:t,limit:n,offset:s};return r.get("reports/future-renewals",u)},getJournal({currency:e,bookedFrom:t=null,bookedTo:n=null,recognizedAt:s,aggregationField:u,limit:l=null,offset:o=null,filter:g=null}){const p={currency:e,bookedFrom:t,bookedTo:n,recognizedAt:s,aggregationField:u,limit:l,offset:o,filter:g};return r.get("reports/journal",p)},getKycAcceptanceSummary({periodStart:e,periodEnd:t}){const n={periodStart:e,periodEnd:t};return r.get("reports/kyc-acceptance-summary",n)},getKycRejectionSummary({periodStart:e,periodEnd:t}){const n={periodStart:e,periodEnd:t};return r.get("reports/kyc-rejection-summary",n)},getKycRequestSummary({periodStart:e,periodEnd:t}){const n={periodStart:e,periodEnd:t};return r.get("reports/kyc-request-summary",n)},getMonthlyRecurringRevenue({currency:e,periodStart:t,periodEnd:n,limit:s=null,offset:u=null}){const l={currency:e,periodStart:t,periodEnd:n,limit:s,offset:u};return r.get("reports/monthly-recurring-revenue",l)},getRenewalSales({periodStart:e,periodEnd:t,limit:n=null,offset:s=null}){const u={periodStart:e,periodEnd:t,limit:n,offset:s};return r.get("reports/renewal-sales",u)},getRetentionPercentage({aggregationField:e,aggregationPeriod:t,includeSwitchedSubscriptions:n=null,periodStart:s,periodEnd:u,limit:l=null,offset:o=null,filter:g=null,criteria:p=null}){const k={aggregationField:e,aggregationPeriod:t,includeSwitchedSubscriptions:n,periodStart:s,periodEnd:u,limit:l,offset:o,filter:g,criteria:p};return r.get("reports/retention-percentage",k)},getRetentionValue({aggregationField:e,aggregationPeriod:t,includeRefunds:n=null,includeDisputes:s=null,periodStart:u,periodEnd:l,limit:o=null,offset:g=null,filter:p=null,sort:k=null,criteria:F=null}){const K={aggregationField:e,aggregationPeriod:t,includeRefunds:n,includeDisputes:s,periodStart:u,periodEnd:l,limit:o,offset:g,filter:p,sort:k,criteria:F};return r.get("reports/retention-value",K)},getRevenueWaterfall({currency:e,issuedFrom:t,issuedTo:n,recognizedTo:s}){const u={currency:e,issuedFrom:t,issuedTo:n,recognizedTo:s};return r.get("reports/revenue-waterfall",u)},getRevenueAudit({filter:e=null,sort:t=null,limit:n=null,offset:s=null}){const u={filter:e,sort:t,limit:n,offset:s};return r.get("reports/revenue-audit",u)},getSubscriptionCancellation({periodStart:e,periodEnd:t,aggregationField:n,limit:s=null,offset:u=null,filter:l=null}){const o={periodStart:e,periodEnd:t,aggregationField:n,limit:s,offset:u,filter:l};return r.get("reports/subscription-cancellation",o)},getSubscriptionRenewal({periodStart:e,periodEnd:t,limit:n=null,offset:s=null}){const u={periodStart:e,periodEnd:t,limit:n,offset:s};return r.get("reports/subscription-renewal",u)},getTimeSeriesTransaction({type:e,subaggregate:t,periodStart:n,periodEnd:s,limit:u=null,offset:l=null}){const o={type:e,subaggregate:t,periodStart:n,periodEnd:s,limit:u,offset:l};return r.get("reports/time-series-transaction",o)},getTransactionsTimeDispute({aggregationField:e,periodStart:t,periodEnd:n,limit:s=null,offset:u=null,filter:l=null}){const o={aggregationField:e,periodStart:t,periodEnd:n,limit:s,offset:u,filter:l};return r.get("reports/transactions-time-dispute",o)},getTransactions({periodStart:e,periodEnd:t,aggregationField:n,limit:s=null,offset:u=null,filter:l=null}){const o={periodStart:e,periodEnd:t,aggregationField:n,limit:s,offset:u,filter:l};return r.get("reports/transactions",o)}}}function yr({apiHandler:r}){return{getSubscriptionSummaryMetrics({subscriptionId:e}){return r.get(`subscriptions/${e}/summary-metrics`)}}}function Ar({apiHandler:r}){return{getActivityFeed({eventTypes:e=null,limit:t=1e3,offset:n=0}){const s={eventTypes:e,limit:t,offset:n};return r.getAll("activity-feed",s)},getTransaction({id:e="",eventTypes:t=null,limit:n=1e3,offset:s=0}){const u={eventTypes:t,limit:n,offset:s};return r.getAll(`transactions/${e}/timeline`,u)},getCustomer({id:e="",eventTypes:t=null,limit:n=1e3,offset:s=0}){const u={eventTypes:t,limit:n,offset:s};return r.getAll(`customers/${e}/timeline`,u)}}}function br({apiHandler:r}){return{query(){return r.get("location")}}}const v={CustomersResource:hr,DataExportsResource:fr,HistogramsResource:$r,ReportsResource:pr,SubscriptionsResource:yr,TimelinesResource:Ar,LocationResource:br};class Rr{constructor({apiHandler:e}){this.customers=v.CustomersResource({apiHandler:e}),this.dataExports=v.DataExportsResource({apiHandler:e}),this.histograms=v.HistogramsResource({apiHandler:e}),this.reports=v.ReportsResource({apiHandler:e}),this.subscriptions=v.SubscriptionsResource({apiHandler:e}),this.timelines=v.TimelinesResource({apiHandler:e}),this.location=v.LocationResource({apiHandler:e}),this.addRequestInterceptor=e.addRequestInterceptor,this.removeRequestInterceptor=e.removeRequestInterceptor,this.addResponseInterceptor=e.addResponseInterceptor,this.removeResponseInterceptor=e.removeResponseInterceptor,this.setTimeout=e.setTimeout,this.setProxyAgent=e.setProxyAgent,this.setSessionToken=e.setSessionToken,this.setEndpoints=e.setEndpoints,this.getCancellationToken=e.getCancellationToken}}function dr({apiHandler:r}){return{get({expand:e=null}={}){const t={expand:e};return r.get("account",t)},update({data:e}){return r.patch("account",e)},requestPasswordReset({data:e}){return r.post("account/forgot-password",e)},changePassword({data:e}){return r.patch("account/password",e)},resendEmailVerification({data:e}){return r.post("account/resend-verification",e)},confirmPasswordReset({token:e,data:t}){return r.post(`account/reset-password/${e}`,t)},verifyEmail({token:e}){return r.post(`account/verification/${e}`)},register({data:e}){return r.post("register",e)}}}function wr({apiHandler:r}){return{login({data:e}){return r.post("login",e)},logout(){return r.post("logout")}}}function vr({apiHandler:r}){return{get({slug:e}){return r.get(`billing-portals/${e}`)}}}function kr({apiHandler:r}){return{create({data:e}){return r.post("cashier-deposit",e)}}}function Tr({apiHandler:r}){return{get({id:e,expand:t=null}){const n={expand:t};return r.get(`cashier-requests/${e}`,n)}}}function Er({apiHandler:r}){return{get({id:e}){return r.get(`checkout-forms/${e}`)}}}function Sr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("invoices",l)},get({id:e}){return r.get(`invoices/${e}`)},downloadPDF({id:e}){const t={headers:G,responseType:"arraybuffer"};return r.download(`invoices/${e}`,t)}}}function Ir({apiHandler:r}){return{getAll({limit:e=null,offset:t=null}={}){const n={limit:e,offset:t};return r.getAll("kyc-documents",n)},create({data:e}){return r.post("kyc-documents",e)},get({id:e}){return r.get(`kyc-documents/${e}`)},update({id:e,data:t}){return r.patch(`kyc-documents/${e}`,t)}}}function Cr({apiHandler:r}){return{get({id:e,expand:t=null}){const n={expand:t};return r.get(`kyc-requests/${e}`,n)}}}function xr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("orders",l)},get({id:e}){return r.get(`orders/${e}`)},update({id:e,data:t}){return r.patch(`orders/${e}`,t)},cancel({id:e,data:t}){return r.post(`orders/${e}/cancellation`,t)},pause({id:e,data:t}){return r.post(`orders/${e}/pause`,t)}}}function jr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("payment-instruments",l)},create({data:e}){return r.post("payment-instruments",e)},get({id:e,limit:t=null,offset:n=null}){const s={limit:t,offset:n};return r.get(`payment-instruments/${e}`,s)},update({id:e,data:t}){return r.patch(`payment-instruments/${e}`,t)},deactivate({id:e}){return r.post(`payment-instruments/${e}/deactivation`)},getSetupTransaction({id:e}){return r.get(`payment-instruments/${e}/setup`)},setup({id:e,data:t}){return r.post(`payment-instruments/${e}/setup`,t)}}}function Pr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("payout-requests",l)},get({id:e}){return r.get(`payout-requests/${e}`)},update({id:e,data:t}){return r.patch(`payout-requests/${e}`,t)}}}function qr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null,expand:l=null}={}){const o={filter:e,sort:t,limit:n,offset:s,q:u,expand:l};return r.getAll("plans",o)},get({id:e,expand:t=null}){const n={expand:t};return r.get(`plans/${e}`,n)}}}function Mr({apiHandler:r}){return{getAll({filter:e=null,sort:t=null,limit:n=null,offset:s=null,q:u=null}={}){const l={filter:e,sort:t,limit:n,offset:s,q:u};return r.getAll("products",l)},get({id:e}){return r.get(`products/${e}`)}}}function Or({apiHandler:r}){return{payment({data:e}){return r.post("payment",e)},purchase({data:e}){return r.post("purchase",e)},preview({data:e}){return r.post("preview-purchase",e)},readyToPay({data:e}){return r.post("ready-to-pay",e)}}}function Dr({apiHandler:r}){return{getAll({limit:e=null,offset:t=null,filter:n=null,q:s=null,sort:u=null}={}){const l={limit:e,offset:t,filter:n,q:s,sort:u};return r.getAll("transactions",l)},get({id:e}){return r.get(`transactions/${e}`)},finishKyc({id:e,token:t}){return r.post(`transactions/${e}/${t}/continue`)},skipKyc({id:e,token:t}){return r.post(`transactions/${e}/${t}/bypass`)},update({id:e,data:t}){return r.patch(`transactions/${e}`,t)}}}function Fr({apiHandler:r}){return{get({id:e}){return r.get(`websites/${e}`)}}}class Kr{constructor({apiHandler:e}){this.account=dr({apiHandler:e}),this.authorization=wr({apiHandler:e}),this.billingPortals=vr({apiHandler:e}),this.cashierDeposit=kr({apiHandler:e}),this.cashierRequests=Tr({apiHandler:e}),this.checkoutForms=Er({apiHandler:e}),this.invoices=Sr({apiHandler:e}),this.kycDocuments=Ir({apiHandler:e}),this.kycRequests=Cr({apiHandler:e}),this.orders=xr({apiHandler:e}),this.paymentInstruments=jr({apiHandler:e}),this.payoutRequests=Pr({apiHandler:e}),this.plans=qr({apiHandler:e}),this.products=Mr({apiHandler:e}),this.purchase=Or({apiHandler:e}),this.transactions=Dr({apiHandler:e}),this.websites=Fr({apiHandler:e}),this.checkoutForm=this.checkoutForms,this.billingPortal=this.billingPortals,this.addRequestInterceptor=e.addRequestInterceptor,this.removeRequestInterceptor=e.removeRequestInterceptor,this.addResponseInterceptor=e.addResponseInterceptor,this.removeResponseInterceptor=e.removeResponseInterceptor,this.setTimeout=e.setTimeout,this.setProxyAgent=e.setProxyAgent,this.setSessionToken=e.setSessionToken,this.setPublishableKey=e.setPublishableKey,this.setEndpoints=e.setEndpoints,this.getCancellationToken=e.getCancellationToken,this.generateSignature=e.generateSignature}}function Br({apiHandler:r}){return new mr({apiHandler:r})}function Nr({apiHandler:r}){return new Rr({apiHandler:r})}function Lr({apiHandler:r}){return new Kr({apiHandler:r})}const O={live:"https://api.rebilly.com",sandbox:"https://api-sandbox.rebilly.com"},D=6e3;function Y({apiKey:r=null,sandbox:e=!1,timeout:t=D,organizationId:n=null,urls:s=O}={}){if(!s.live||!s.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof s.live!="string"||typeof s.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const l=M({options:{apiEndpoints:s,apiKey:r,apiVersion:"",isSandbox:e,requestTimeout:t,jwt:null,organizationId:n}});return Br({apiHandler:l})}function Vr({apiKey:r=null,sandbox:e=!1,timeout:t=D,organizationId:n=null,urls:s=O}={}){if(!s.live||!s.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof s.live!="string"||typeof s.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const l=M({options:{apiEndpoints:s,apiKey:r,apiVersion:"experimental",isSandbox:e,requestTimeout:t,jwt:null,organizationId:n}});return Nr({apiHandler:l})}function zr({publishableKey:r=null,jwt:e=null,sandbox:t=!1,timeout:n=D,organizationId:s=null,urls:u=O}={}){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 l={apiEndpoints:u,publishableKey:r,jwt:e,apiVersion:"storefront",isSandbox:t,requestTimeout:n,organizationId:s},o=M({options:l});return o.setSessionToken(l.jwt),Lr({apiHandler:o})}m.RebillyAPI=Y,m.RebillyErrors=y,m.RebillyExperimentalAPI=Vr,m.RebillyStorefrontAPI=zr,m.cancellation=Ge,m.default=Y,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|