rebilly-js-sdk 51.7.0 → 52.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/rebilly-js-sdk.d.ts +126 -212
- package/dist/rebilly-js-sdk.es.js +1 -10
- package/dist/rebilly-js-sdk.umd.js +2 -2
- package/package.json +2 -2
- package/scripts/type-generation/schema-sources.js +1 -1
- package/src/resources/api-instance.js +0 -2
- package/src/resources/aml-resource.js +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [52.0.0](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v51.7.0...rebilly-js-sdk-v52.0.0) (2023-09-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### ⚠ BREAKING CHANGES
|
|
5
|
+
|
|
6
|
+
* **js-sdk:** Remove deprecated AML endpoint (#1382)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **js-sdk:** Remove deprecated AML endpoint ([#1382](https://github.com/Rebilly/rebilly/issues/1382)) ([06faea4](https://github.com/Rebilly/rebilly/commit/06faea46ba8dbe89459050e6b23a41223a50c6dd))
|
|
11
|
+
|
|
1
12
|
## [51.7.0](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v51.6.1...rebilly-js-sdk-v51.7.0) (2023-09-05)
|
|
2
13
|
|
|
3
14
|
|
package/dist/rebilly-js-sdk.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
declare module rebilly {
|
|
2
2
|
|
|
3
3
|
//**JS-SDK types generated with Rebilly custom scripts (from-schema-to-sdk-types)**
|
|
4
|
-
type GetAmlHitRequest = operations['GetAmlHit']['parameters']
|
|
5
|
-
|
|
6
|
-
type GetAmlHitResponse = operations['GetAmlHit']['responses']['200']['content']['application/json']
|
|
7
|
-
type GetAmlHitResponsePromise = Promise<{fields: GetAmlHitResponse}>
|
|
8
|
-
|
|
9
4
|
type GetAmlCheckCollectionRequest = operations['GetAmlCheckCollection']['parameters']["query"] & (operations['GetAmlCheckCollection']['parameters'] extends {path: {}} ? operations['GetAmlCheckCollection']['parameters']["path"] : {})
|
|
10
5
|
|
|
11
6
|
type GetAmlCheckCollectionResponse = operations['GetAmlCheckCollection']['responses']['200']['content']['application/json'][0]
|
|
@@ -2207,14 +2202,6 @@ declare module rebilly {
|
|
|
2207
2202
|
*/
|
|
2208
2203
|
|
|
2209
2204
|
export interface corePaths {
|
|
2210
|
-
"/aml": {
|
|
2211
|
-
/**
|
|
2212
|
-
* Searches a individual's details against multiple Politically Exposed Person (PEP), sanction, or adverse media lists to determine if the customer is blocklisted.
|
|
2213
|
-
* Performs a fuzzy search that uses Soundex.
|
|
2214
|
-
* Note that some returned fields may not contain values.
|
|
2215
|
-
*/
|
|
2216
|
-
get: operations["GetAmlHit"];
|
|
2217
|
-
};
|
|
2218
2205
|
"/aml-checks": {
|
|
2219
2206
|
/**
|
|
2220
2207
|
* Retrieves a list of AML checks.
|
|
@@ -2422,23 +2409,23 @@ export interface corePaths {
|
|
|
2422
2409
|
};
|
|
2423
2410
|
};
|
|
2424
2411
|
"/custom-fields/{resource}": {
|
|
2425
|
-
/** Retrieves
|
|
2412
|
+
/** Retrieves the custom fields schema for a specified resource. */
|
|
2426
2413
|
get: operations["GetCustomFieldCollection"];
|
|
2427
2414
|
parameters: {
|
|
2428
2415
|
path: {
|
|
2429
|
-
/**
|
|
2416
|
+
/** Type of resource schema. */
|
|
2430
2417
|
resource: coreComponents["parameters"]["customFieldResource"];
|
|
2431
2418
|
};
|
|
2432
2419
|
};
|
|
2433
2420
|
};
|
|
2434
2421
|
"/custom-fields/{resource}/{name}": {
|
|
2435
|
-
/** Retrieves a
|
|
2422
|
+
/** Retrieves a specified custom field schema for a specified resource. */
|
|
2436
2423
|
get: operations["GetCustomField"];
|
|
2437
|
-
/** Creates or alters a
|
|
2424
|
+
/** Creates or alters a specified custom field schema for a specified resource. */
|
|
2438
2425
|
put: operations["PutCustomField"];
|
|
2439
2426
|
parameters: {
|
|
2440
2427
|
path: {
|
|
2441
|
-
/**
|
|
2428
|
+
/** Type of resource schema. */
|
|
2442
2429
|
resource: coreComponents["parameters"]["customFieldResource"];
|
|
2443
2430
|
/** ID of the custom field. */
|
|
2444
2431
|
name: string;
|
|
@@ -4079,8 +4066,12 @@ export interface corePaths {
|
|
|
4079
4066
|
|
|
4080
4067
|
export interface coreComponents {
|
|
4081
4068
|
schemas: {
|
|
4082
|
-
/**
|
|
4083
|
-
|
|
4069
|
+
/** Date and time which is set automatically when the resource is created. */
|
|
4070
|
+
CreatedTime: string;
|
|
4071
|
+
/** Date and time which updates automatically when the resource is updated. */
|
|
4072
|
+
UpdatedTime: string;
|
|
4073
|
+
/** Unique resource ID. */
|
|
4074
|
+
ResourceId: string;
|
|
4084
4075
|
/** Related links. */
|
|
4085
4076
|
SelfLink: {
|
|
4086
4077
|
/** Link URL. */
|
|
@@ -4088,6 +4079,28 @@ export interface coreComponents {
|
|
|
4088
4079
|
/** Type of link. */
|
|
4089
4080
|
rel?: "self";
|
|
4090
4081
|
}[];
|
|
4082
|
+
/**
|
|
4083
|
+
* Use tags to organize and categorize customers or KYC documents based on keywords.
|
|
4084
|
+
* For more information, see [Tags](https://www.rebilly.com/docs/dev-docs/api/tag/Tags/).
|
|
4085
|
+
*/
|
|
4086
|
+
Tag: {
|
|
4087
|
+
/** ID of the tag. */
|
|
4088
|
+
id?: coreComponents["schemas"]["ResourceId"];
|
|
4089
|
+
/**
|
|
4090
|
+
* Unique name for the tag.
|
|
4091
|
+
* Tag names are not case-sensitive.
|
|
4092
|
+
*/
|
|
4093
|
+
name: string;
|
|
4094
|
+
/**
|
|
4095
|
+
* Type of tag.
|
|
4096
|
+
* Tags of a specific type can only be assigned to corresponding entity types.
|
|
4097
|
+
* For example, you can only use customer tags on customers.
|
|
4098
|
+
*/
|
|
4099
|
+
type: "customer" | "kyc-document" | "aml-check";
|
|
4100
|
+
createdTime?: coreComponents["schemas"]["CreatedTime"];
|
|
4101
|
+
updatedTime?: coreComponents["schemas"]["UpdatedTime"];
|
|
4102
|
+
_links?: coreComponents["schemas"]["SelfLink"];
|
|
4103
|
+
};
|
|
4091
4104
|
AML: {
|
|
4092
4105
|
/** First name of the individual, or name of entity. */
|
|
4093
4106
|
firstName?: string;
|
|
@@ -4154,34 +4167,6 @@ export interface coreComponents {
|
|
|
4154
4167
|
comments?: string | null;
|
|
4155
4168
|
_links?: coreComponents["schemas"]["SelfLink"];
|
|
4156
4169
|
};
|
|
4157
|
-
/** Date and time which is set automatically when the resource is created. */
|
|
4158
|
-
CreatedTime: string;
|
|
4159
|
-
/** Date and time which updates automatically when the resource is updated. */
|
|
4160
|
-
UpdatedTime: string;
|
|
4161
|
-
/** Unique resource ID. */
|
|
4162
|
-
ResourceId: string;
|
|
4163
|
-
/**
|
|
4164
|
-
* Use tags to organize and categorize customers or KYC documents based on keywords.
|
|
4165
|
-
* For more information, see [Tags](https://www.rebilly.com/docs/dev-docs/api/tag/Tags/).
|
|
4166
|
-
*/
|
|
4167
|
-
Tag: {
|
|
4168
|
-
/** ID of the tag. */
|
|
4169
|
-
id?: coreComponents["schemas"]["ResourceId"];
|
|
4170
|
-
/**
|
|
4171
|
-
* Unique name for the tag.
|
|
4172
|
-
* Tag names are not case-sensitive.
|
|
4173
|
-
*/
|
|
4174
|
-
name: string;
|
|
4175
|
-
/**
|
|
4176
|
-
* Type of tag.
|
|
4177
|
-
* Tags of a specific type can only be assigned to corresponding entity types.
|
|
4178
|
-
* For example, you can only use customer tags on customers.
|
|
4179
|
-
*/
|
|
4180
|
-
type: "customer" | "kyc-document" | "aml-check";
|
|
4181
|
-
createdTime?: coreComponents["schemas"]["CreatedTime"];
|
|
4182
|
-
updatedTime?: coreComponents["schemas"]["UpdatedTime"];
|
|
4183
|
-
_links?: coreComponents["schemas"]["SelfLink"];
|
|
4184
|
-
};
|
|
4185
4170
|
/** AML check result. */
|
|
4186
4171
|
AmlCheck: {
|
|
4187
4172
|
/** Unique resource ID. */
|
|
@@ -5978,6 +5963,14 @@ export interface coreComponents {
|
|
|
5978
5963
|
rawResponse?: string | null;
|
|
5979
5964
|
/** Date and time when the dispute is resolved. */
|
|
5980
5965
|
resolvedTime?: string | null;
|
|
5966
|
+
/**
|
|
5967
|
+
* Number of times the dispute data has been modified.
|
|
5968
|
+
*
|
|
5969
|
+
* Use the revision number when analyzing webhook data to
|
|
5970
|
+
* determine if a change should take precedence over the current
|
|
5971
|
+
* representation.
|
|
5972
|
+
*/
|
|
5973
|
+
revision?: number;
|
|
5981
5974
|
createdTime?: coreComponents["schemas"]["CreatedTime"];
|
|
5982
5975
|
updatedTime?: coreComponents["schemas"]["UpdatedTime"];
|
|
5983
5976
|
/** Related links. */
|
|
@@ -7763,8 +7756,7 @@ export interface coreComponents {
|
|
|
7763
7756
|
| "other"
|
|
7764
7757
|
)
|
|
7765
7758
|
| null;
|
|
7766
|
-
|
|
7767
|
-
KycRequestDocuments: {
|
|
7759
|
+
KycRequestDocument: {
|
|
7768
7760
|
/** Type of document to request from the customer. */
|
|
7769
7761
|
type: coreComponents["schemas"]["KycDocumentTypes"];
|
|
7770
7762
|
/** Permitted document subtype. */
|
|
@@ -7776,13 +7768,14 @@ export interface coreComponents {
|
|
|
7776
7768
|
maxAttempts: number;
|
|
7777
7769
|
/** Specifies if the customer must upload a photo of their face (selfie) that matches a provided KYC document. */
|
|
7778
7770
|
faceProofRequired?: boolean;
|
|
7779
|
-
}
|
|
7771
|
+
};
|
|
7780
7772
|
/** KYC request information. */
|
|
7781
7773
|
KycRequest: {
|
|
7782
7774
|
/** ID of the KYC request. */
|
|
7783
7775
|
id?: string;
|
|
7784
7776
|
customerId: coreComponents["schemas"]["CustomerId"];
|
|
7785
|
-
|
|
7777
|
+
/** Documents to request from the customer. */
|
|
7778
|
+
documents: coreComponents["schemas"]["KycRequestDocument"][];
|
|
7786
7779
|
/** Status of the request. */
|
|
7787
7780
|
status?:
|
|
7788
7781
|
| "gathering"
|
|
@@ -9646,30 +9639,34 @@ export interface coreComponents {
|
|
|
9646
9639
|
_links?: coreComponents["schemas"]["SelfLink"];
|
|
9647
9640
|
};
|
|
9648
9641
|
ReadyToPayAmount: {
|
|
9642
|
+
websiteId: coreComponents["schemas"]["WebsiteId"];
|
|
9649
9643
|
currency: coreComponents["schemas"]["CurrencyCode"];
|
|
9650
9644
|
/** Amount to pay. */
|
|
9651
9645
|
amount: number;
|
|
9646
|
+
/** Billing address. */
|
|
9647
|
+
billingAddress?: coreComponents["schemas"]["ContactObject"];
|
|
9648
|
+
riskMetadata: coreComponents["schemas"]["RiskMetadata"];
|
|
9652
9649
|
};
|
|
9653
9650
|
ReadyToPayItems: {
|
|
9651
|
+
websiteId: coreComponents["schemas"]["WebsiteId"];
|
|
9654
9652
|
items: {
|
|
9655
9653
|
/** ID of the plan. */
|
|
9656
9654
|
planId: string;
|
|
9657
9655
|
/** Number of product units in the specified plan. */
|
|
9658
9656
|
quantity: number;
|
|
9659
9657
|
}[];
|
|
9660
|
-
};
|
|
9661
|
-
ReadyToPay: (
|
|
9662
|
-
| coreComponents["schemas"]["ReadyToPayAmount"]
|
|
9663
|
-
| coreComponents["schemas"]["ReadyToPayItems"]
|
|
9664
|
-
) & {
|
|
9665
|
-
websiteId: coreComponents["schemas"]["WebsiteId"];
|
|
9666
9658
|
/** Billing address. */
|
|
9667
9659
|
billingAddress?: coreComponents["schemas"]["ContactObject"];
|
|
9668
9660
|
riskMetadata: coreComponents["schemas"]["RiskMetadata"];
|
|
9669
9661
|
};
|
|
9662
|
+
ReadyToPay:
|
|
9663
|
+
| coreComponents["schemas"]["ReadyToPayAmount"]
|
|
9664
|
+
| coreComponents["schemas"]["ReadyToPayItems"];
|
|
9670
9665
|
PostReadyToPay: {
|
|
9671
9666
|
customerId?: coreComponents["schemas"]["CustomerId"];
|
|
9672
9667
|
} & coreComponents["schemas"]["ReadyToPay"];
|
|
9668
|
+
/** ISO 3166 alpha-2 country code. For examples, see [ISO.org](https://www.iso.org/obp/ui/#search/code/). */
|
|
9669
|
+
Country: string;
|
|
9673
9670
|
/**
|
|
9674
9671
|
* ISO 3166 alpha-2 country code where the payment is processed.
|
|
9675
9672
|
* This is often the location for settling the payment.
|
|
@@ -11849,7 +11846,7 @@ export interface coreComponents {
|
|
|
11849
11846
|
* The ID value is always returned.
|
|
11850
11847
|
*/
|
|
11851
11848
|
collectionFields: string;
|
|
11852
|
-
/**
|
|
11849
|
+
/** Type of resource schema. */
|
|
11853
11850
|
customFieldResource:
|
|
11854
11851
|
| "customers"
|
|
11855
11852
|
| "payment-instruments"
|
|
@@ -11858,7 +11855,8 @@ export interface coreComponents {
|
|
|
11858
11855
|
| "websites"
|
|
11859
11856
|
| "products"
|
|
11860
11857
|
| "plans"
|
|
11861
|
-
| "bump-offers"
|
|
11858
|
+
| "bump-offers"
|
|
11859
|
+
| "gateway-accounts";
|
|
11862
11860
|
/**
|
|
11863
11861
|
* Resize image to specified size.
|
|
11864
11862
|
* Supports any sizes from 10x10 to 2000x2000, in the following format: `{width}x{height}`.
|
|
@@ -11962,14 +11960,6 @@ export interface coreComponents {
|
|
|
11962
11960
|
| coreComponents["schemas"]["BankAccountUpdatePlain"];
|
|
11963
11961
|
};
|
|
11964
11962
|
};
|
|
11965
|
-
/** Plan resource. */
|
|
11966
|
-
Plan: {
|
|
11967
|
-
content: {
|
|
11968
|
-
"application/json": Partial<coreComponents["schemas"]["OneTimeSalePlan"]> &
|
|
11969
|
-
Partial<coreComponents["schemas"]["SubscriptionOrderPlan"]> &
|
|
11970
|
-
Partial<coreComponents["schemas"]["TrialOnlyPlan"]>;
|
|
11971
|
-
};
|
|
11972
|
-
};
|
|
11973
11963
|
/** Product resource. */
|
|
11974
11964
|
Product: {
|
|
11975
11965
|
content: {
|
|
@@ -12304,18 +12294,21 @@ export interface coreComponents {
|
|
|
12304
12294
|
"application/json": {
|
|
12305
12295
|
/** ID of the dispute. */
|
|
12306
12296
|
disputeId?: string;
|
|
12297
|
+
/** ID of the transaction. */
|
|
12298
|
+
transactionId?: string | null;
|
|
12307
12299
|
/** Type of webhook event. */
|
|
12308
12300
|
eventType?: "dispute-created" | "dispute-modified";
|
|
12309
12301
|
/** Embedded objects. */
|
|
12310
12302
|
_embedded?: {
|
|
12311
12303
|
dispute?: coreComponents["schemas"]["Dispute"];
|
|
12304
|
+
transaction?: coreComponents["schemas"]["Transaction"] | null;
|
|
12312
12305
|
};
|
|
12313
12306
|
/** Related links. */
|
|
12314
12307
|
_links?: {
|
|
12315
12308
|
/** Link URL. */
|
|
12316
12309
|
href?: string;
|
|
12317
12310
|
/** Type of link. */
|
|
12318
|
-
rel?: "dispute";
|
|
12311
|
+
rel?: "dispute" | "transaction";
|
|
12319
12312
|
}[];
|
|
12320
12313
|
};
|
|
12321
12314
|
};
|
|
@@ -12706,42 +12699,6 @@ export interface coreComponents {
|
|
|
12706
12699
|
}
|
|
12707
12700
|
|
|
12708
12701
|
export interface operations {
|
|
12709
|
-
/**
|
|
12710
|
-
* Searches a individual's details against multiple Politically Exposed Person (PEP), sanction, or adverse media lists to determine if the customer is blocklisted.
|
|
12711
|
-
* Performs a fuzzy search that uses Soundex.
|
|
12712
|
-
* Note that some returned fields may not contain values.
|
|
12713
|
-
*/
|
|
12714
|
-
GetAmlHit: {
|
|
12715
|
-
parameters: {
|
|
12716
|
-
query: {
|
|
12717
|
-
/** First name of the individual to search. */
|
|
12718
|
-
firstName: string;
|
|
12719
|
-
/** Last name of the individual to search. */
|
|
12720
|
-
lastName: string;
|
|
12721
|
-
/** Individual's date of birth in YYYY-MM-DD format. */
|
|
12722
|
-
dob?: string;
|
|
12723
|
-
/**
|
|
12724
|
-
* Country where the individual lives in
|
|
12725
|
-
* ISO Alpha-2 code format. For examples, see
|
|
12726
|
-
* [ISO.org](https://www.iso.org/obp/ui/#search/code/).
|
|
12727
|
-
*/
|
|
12728
|
-
country?: coreComponents["schemas"]["Country"];
|
|
12729
|
-
};
|
|
12730
|
-
};
|
|
12731
|
-
responses: {
|
|
12732
|
-
/**
|
|
12733
|
-
* Results retrieved.
|
|
12734
|
-
* - - -
|
|
12735
|
-
* Returns an array of objects that represent hits, or an empty array if no hits are found.
|
|
12736
|
-
*/
|
|
12737
|
-
200: {
|
|
12738
|
-
headers: {};
|
|
12739
|
-
content: {
|
|
12740
|
-
"application/json": coreComponents["schemas"]["AML"][];
|
|
12741
|
-
};
|
|
12742
|
-
};
|
|
12743
|
-
};
|
|
12744
|
-
};
|
|
12745
12702
|
/**
|
|
12746
12703
|
* Retrieves a list of AML checks.
|
|
12747
12704
|
* These checks are records of customer data and potentially matching data in AML lists.
|
|
@@ -13627,11 +13584,11 @@ export interface operations {
|
|
|
13627
13584
|
404: coreComponents["responses"]["NotFound"];
|
|
13628
13585
|
};
|
|
13629
13586
|
};
|
|
13630
|
-
/** Retrieves
|
|
13587
|
+
/** Retrieves the custom fields schema for a specified resource. */
|
|
13631
13588
|
GetCustomFieldCollection: {
|
|
13632
13589
|
parameters: {
|
|
13633
13590
|
path: {
|
|
13634
|
-
/**
|
|
13591
|
+
/** Type of resource schema. */
|
|
13635
13592
|
resource: coreComponents["parameters"]["customFieldResource"];
|
|
13636
13593
|
};
|
|
13637
13594
|
query: {
|
|
@@ -13652,11 +13609,11 @@ export interface operations {
|
|
|
13652
13609
|
403: coreComponents["responses"]["Forbidden"];
|
|
13653
13610
|
};
|
|
13654
13611
|
};
|
|
13655
|
-
/** Retrieves a
|
|
13612
|
+
/** Retrieves a specified custom field schema for a specified resource. */
|
|
13656
13613
|
GetCustomField: {
|
|
13657
13614
|
parameters: {
|
|
13658
13615
|
path: {
|
|
13659
|
-
/**
|
|
13616
|
+
/** Type of resource schema. */
|
|
13660
13617
|
resource: coreComponents["parameters"]["customFieldResource"];
|
|
13661
13618
|
/** ID of the custom field. */
|
|
13662
13619
|
name: string;
|
|
@@ -13674,11 +13631,11 @@ export interface operations {
|
|
|
13674
13631
|
404: coreComponents["responses"]["NotFound"];
|
|
13675
13632
|
};
|
|
13676
13633
|
};
|
|
13677
|
-
/** Creates or alters a
|
|
13634
|
+
/** Creates or alters a specified custom field schema for a specified resource. */
|
|
13678
13635
|
PutCustomField: {
|
|
13679
13636
|
parameters: {
|
|
13680
13637
|
path: {
|
|
13681
|
-
/**
|
|
13638
|
+
/** Type of resource schema. */
|
|
13682
13639
|
resource: coreComponents["parameters"]["customFieldResource"];
|
|
13683
13640
|
/** ID of the custom field. */
|
|
13684
13641
|
name: string;
|
|
@@ -13710,7 +13667,7 @@ export interface operations {
|
|
|
13710
13667
|
};
|
|
13711
13668
|
422: coreComponents["responses"]["ValidationError"];
|
|
13712
13669
|
};
|
|
13713
|
-
/** Custom fields schema of the specified resource
|
|
13670
|
+
/** Custom fields schema of the specified resource. */
|
|
13714
13671
|
requestBody: {
|
|
13715
13672
|
content: {
|
|
13716
13673
|
"application/json": coreComponents["schemas"]["CustomField"];
|
|
@@ -16361,7 +16318,12 @@ export interface operations {
|
|
|
16361
16318
|
403: coreComponents["responses"]["Forbidden"];
|
|
16362
16319
|
422: coreComponents["responses"]["ValidationError"];
|
|
16363
16320
|
};
|
|
16364
|
-
|
|
16321
|
+
/** Plan resource. */
|
|
16322
|
+
requestBody: {
|
|
16323
|
+
content: {
|
|
16324
|
+
"application/json": coreComponents["schemas"]["Plan"];
|
|
16325
|
+
};
|
|
16326
|
+
};
|
|
16365
16327
|
};
|
|
16366
16328
|
/** Retrieves a plan with a specified ID. */
|
|
16367
16329
|
GetPlan: {
|
|
@@ -16410,7 +16372,12 @@ export interface operations {
|
|
|
16410
16372
|
404: coreComponents["responses"]["NotFound"];
|
|
16411
16373
|
422: coreComponents["responses"]["ValidationError"];
|
|
16412
16374
|
};
|
|
16413
|
-
|
|
16375
|
+
/** Plan resource. */
|
|
16376
|
+
requestBody: {
|
|
16377
|
+
content: {
|
|
16378
|
+
"application/json": coreComponents["schemas"]["Plan"];
|
|
16379
|
+
};
|
|
16380
|
+
};
|
|
16414
16381
|
};
|
|
16415
16382
|
/** Deletes a plan with a specified ID. */
|
|
16416
16383
|
DeletePlan: {
|
|
@@ -21225,8 +21192,12 @@ export interface usersPaths {
|
|
|
21225
21192
|
|
|
21226
21193
|
export interface usersComponents {
|
|
21227
21194
|
schemas: {
|
|
21228
|
-
/**
|
|
21229
|
-
|
|
21195
|
+
/** Date and time which is set automatically when the resource is created. */
|
|
21196
|
+
CreatedTime: string;
|
|
21197
|
+
/** Date and time which updates automatically when the resource is updated. */
|
|
21198
|
+
UpdatedTime: string;
|
|
21199
|
+
/** Unique resource ID. */
|
|
21200
|
+
ResourceId: string;
|
|
21230
21201
|
/** Related links. */
|
|
21231
21202
|
SelfLink: {
|
|
21232
21203
|
/** Link URL. */
|
|
@@ -21234,12 +21205,6 @@ export interface usersComponents {
|
|
|
21234
21205
|
/** Type of link. */
|
|
21235
21206
|
rel?: "self";
|
|
21236
21207
|
}[];
|
|
21237
|
-
/** Date and time which is set automatically when the resource is created. */
|
|
21238
|
-
CreatedTime: string;
|
|
21239
|
-
/** Date and time which updates automatically when the resource is updated. */
|
|
21240
|
-
UpdatedTime: string;
|
|
21241
|
-
/** Unique resource ID. */
|
|
21242
|
-
ResourceId: string;
|
|
21243
21208
|
/** RFC-7807 [problem details](https://tools.ietf.org/html/rfc7807) JSON object. */
|
|
21244
21209
|
BaseProblem: {
|
|
21245
21210
|
/**
|
|
@@ -23240,8 +23205,7 @@ export interface usersComponents {
|
|
|
23240
23205
|
| "other"
|
|
23241
23206
|
)
|
|
23242
23207
|
| null;
|
|
23243
|
-
|
|
23244
|
-
KycRequestDocuments: {
|
|
23208
|
+
KycRequestDocument: {
|
|
23245
23209
|
/** Type of document to request from the customer. */
|
|
23246
23210
|
type: usersComponents["schemas"]["KycDocumentTypes"];
|
|
23247
23211
|
/** Permitted document subtype. */
|
|
@@ -23253,7 +23217,7 @@ export interface usersComponents {
|
|
|
23253
23217
|
maxAttempts: number;
|
|
23254
23218
|
/** Specifies if the customer must upload a photo of their face (selfie) that matches a provided KYC document. */
|
|
23255
23219
|
faceProofRequired?: boolean;
|
|
23256
|
-
}
|
|
23220
|
+
};
|
|
23257
23221
|
/** Brand of payment card. */
|
|
23258
23222
|
PaymentCardBrand:
|
|
23259
23223
|
| "Visa"
|
|
@@ -23424,6 +23388,8 @@ export interface usersComponents {
|
|
|
23424
23388
|
| "Yandex-money"
|
|
23425
23389
|
| "Zotapay"
|
|
23426
23390
|
| "Zimpler";
|
|
23391
|
+
/** ISO 3166 alpha-2 country code. For examples, see [ISO.org](https://www.iso.org/obp/ui/#search/code/). */
|
|
23392
|
+
Country: string;
|
|
23427
23393
|
/**
|
|
23428
23394
|
* ISO 3166 alpha-2 country code where the payment is processed.
|
|
23429
23395
|
* This is often the location for settling the payment.
|
|
@@ -24863,7 +24829,8 @@ export interface usersComponents {
|
|
|
24863
24829
|
};
|
|
24864
24830
|
/** Request KYC page to verify customer identity. */
|
|
24865
24831
|
RuleActionRequestKyc: usersComponents["schemas"]["RuleAction"] & {
|
|
24866
|
-
|
|
24832
|
+
/** Documents to request from the customer. */
|
|
24833
|
+
documents: usersComponents["schemas"]["KycRequestDocument"][];
|
|
24867
24834
|
/** Specifies who should be excluded from the verification. */
|
|
24868
24835
|
excludePolicy:
|
|
24869
24836
|
| "customers-with-accepted-document"
|
|
@@ -25283,6 +25250,7 @@ export interface usersComponents {
|
|
|
25283
25250
|
| "authorize-and-void"
|
|
25284
25251
|
| "sca"
|
|
25285
25252
|
| "do-nothing";
|
|
25253
|
+
customFields?: usersComponents["schemas"]["ResourceCustomFields"];
|
|
25286
25254
|
createdTime?: usersComponents["schemas"]["CreatedTime"];
|
|
25287
25255
|
updatedTime?: usersComponents["schemas"]["UpdatedTime"];
|
|
25288
25256
|
organizationId?: usersComponents["schemas"]["OrganizationId"];
|
|
@@ -25395,6 +25363,8 @@ export interface usersComponents {
|
|
|
25395
25363
|
currency?: usersComponents["schemas"]["CurrencyCode"];
|
|
25396
25364
|
/** ID of the balance account where the split amount is sent. */
|
|
25397
25365
|
account?: string;
|
|
25366
|
+
/** Two-letter ISO 3166 alpha-2 code of the merchant's country. */
|
|
25367
|
+
merchantCountry?: string;
|
|
25398
25368
|
/** Account type of the split payment. */
|
|
25399
25369
|
type?: "BalanceAccount" | "Commission" | "Remainder" | "PaymentFee";
|
|
25400
25370
|
}[];
|
|
@@ -28924,21 +28894,8 @@ export interface usersComponents {
|
|
|
28924
28894
|
reportingCurrency?: string;
|
|
28925
28895
|
/** Date and time when the user last logged in. */
|
|
28926
28896
|
loginTime?: string | null;
|
|
28927
|
-
/** Specifies if two-factor authentication is enabled for the user. */
|
|
28928
|
-
totpRequired?: boolean;
|
|
28929
|
-
/** User's Time-based One-Time Password (TOTP) key for the authentication application, if TOTP is enabled. */
|
|
28930
|
-
totpSecret?: string;
|
|
28931
|
-
/** QR-code link that redirects the user to the authentication application, if TOTP is enabled. */
|
|
28932
|
-
totpUrl?: string;
|
|
28933
28897
|
/** Status of the user account. */
|
|
28934
28898
|
status?: "active" | "inactive" | "pending-confirmation";
|
|
28935
|
-
/**
|
|
28936
|
-
* One-time password generated by Google Authenticator.
|
|
28937
|
-
* This value is required when enabling or disabling 2FA.
|
|
28938
|
-
*
|
|
28939
|
-
* This field must use digits only.
|
|
28940
|
-
*/
|
|
28941
|
-
oneTimePassword?: string;
|
|
28942
28899
|
/**
|
|
28943
28900
|
* User's country of residence in ISO 3166 alpha-2 country code.
|
|
28944
28901
|
* For examples, see [ISO.org](https://www.iso.org/obp/ui/#search/code/).
|
|
@@ -29170,11 +29127,6 @@ export interface usersComponents {
|
|
|
29170
29127
|
businessPhone?: string | null;
|
|
29171
29128
|
/** User's mobile phone number. */
|
|
29172
29129
|
mobilePhone?: string | null;
|
|
29173
|
-
/**
|
|
29174
|
-
* User's password.
|
|
29175
|
-
* If this value is not provided, a password reset email is sent.
|
|
29176
|
-
*/
|
|
29177
|
-
password?: string;
|
|
29178
29130
|
/**
|
|
29179
29131
|
* Permissions that the user has within organizations.
|
|
29180
29132
|
* Use the wildcard character `*` for full access.
|
|
@@ -29193,12 +29145,6 @@ export interface usersComponents {
|
|
|
29193
29145
|
reportingCurrency?: string;
|
|
29194
29146
|
/** Array of reporting currencies that are enabled for the merchant. */
|
|
29195
29147
|
availableCurrencies?: string[];
|
|
29196
|
-
/** Specifies if two-factor authentication is enabled for the user. */
|
|
29197
|
-
totpRequired?: boolean;
|
|
29198
|
-
/** User's Time-based One-Time Password (TOTP) key for the authentication application, if TOTP is enabled.. */
|
|
29199
|
-
totpSecret?: string;
|
|
29200
|
-
/** QR-code link that redirects the user to the authentication application, if TOTP is enabled. */
|
|
29201
|
-
totpUrl?: string;
|
|
29202
29148
|
/** Status of the user's account. */
|
|
29203
29149
|
status?: "active" | "inactive" | "pending-confirmation";
|
|
29204
29150
|
/**
|
|
@@ -29258,6 +29204,8 @@ export interface usersComponents {
|
|
|
29258
29204
|
showCoupons?: string[] | null;
|
|
29259
29205
|
/** Specifies whether the hosted payment form uses a full page redirect, or the default iframe modal, for approval URL redirects. */
|
|
29260
29206
|
fullPageRedirect: boolean | null;
|
|
29207
|
+
/** Specifies whether the hosted payment form skips the redirect to the website URL when the payment is completed. */
|
|
29208
|
+
skipRedirectOnPaymentComplete: boolean | null;
|
|
29261
29209
|
} | null;
|
|
29262
29210
|
};
|
|
29263
29211
|
};
|
|
@@ -34112,11 +34060,11 @@ export interface storefrontPaths {
|
|
|
34112
34060
|
};
|
|
34113
34061
|
};
|
|
34114
34062
|
"/custom-fields/{resource}": {
|
|
34115
|
-
/** Retrieves
|
|
34063
|
+
/** Retrieves the custom fields schema for a specified resource. */
|
|
34116
34064
|
get: operations["StorefrontGetCustomFieldCollection"];
|
|
34117
34065
|
parameters: {
|
|
34118
34066
|
path: {
|
|
34119
|
-
/**
|
|
34067
|
+
/** Type of resource schema. */
|
|
34120
34068
|
resource: storefrontComponents["parameters"]["storefrontCustomFieldResource"];
|
|
34121
34069
|
};
|
|
34122
34070
|
};
|
|
@@ -34462,8 +34410,12 @@ export interface storefrontPaths {
|
|
|
34462
34410
|
|
|
34463
34411
|
export interface storefrontComponents {
|
|
34464
34412
|
schemas: {
|
|
34465
|
-
/**
|
|
34466
|
-
|
|
34413
|
+
/** Date and time which is set automatically when the resource is created. */
|
|
34414
|
+
CreatedTime: string;
|
|
34415
|
+
/** Date and time which updates automatically when the resource is updated. */
|
|
34416
|
+
UpdatedTime: string;
|
|
34417
|
+
/** Unique resource ID. */
|
|
34418
|
+
ResourceId: string;
|
|
34467
34419
|
/** Related links. */
|
|
34468
34420
|
SelfLink: {
|
|
34469
34421
|
/** Link URL. */
|
|
@@ -34471,12 +34423,6 @@ export interface storefrontComponents {
|
|
|
34471
34423
|
/** Type of link. */
|
|
34472
34424
|
rel?: "self";
|
|
34473
34425
|
}[];
|
|
34474
|
-
/** Date and time which is set automatically when the resource is created. */
|
|
34475
|
-
CreatedTime: string;
|
|
34476
|
-
/** Date and time which updates automatically when the resource is updated. */
|
|
34477
|
-
UpdatedTime: string;
|
|
34478
|
-
/** Unique resource ID. */
|
|
34479
|
-
ResourceId: string;
|
|
34480
34426
|
/** RFC-7807 [problem details](https://tools.ietf.org/html/rfc7807) JSON object. */
|
|
34481
34427
|
BaseProblem: {
|
|
34482
34428
|
/**
|
|
@@ -35569,8 +35515,7 @@ export interface storefrontComponents {
|
|
|
35569
35515
|
| "other"
|
|
35570
35516
|
)
|
|
35571
35517
|
| null;
|
|
35572
|
-
|
|
35573
|
-
KycRequestDocuments: {
|
|
35518
|
+
KycRequestDocument: {
|
|
35574
35519
|
/** Type of document to request from the customer. */
|
|
35575
35520
|
type: storefrontComponents["schemas"]["KycDocumentTypes"];
|
|
35576
35521
|
/** Permitted document subtype. */
|
|
@@ -35582,7 +35527,7 @@ export interface storefrontComponents {
|
|
|
35582
35527
|
maxAttempts: number;
|
|
35583
35528
|
/** Specifies if the customer must upload a photo of their face (selfie) that matches a provided KYC document. */
|
|
35584
35529
|
faceProofRequired?: boolean;
|
|
35585
|
-
}
|
|
35530
|
+
};
|
|
35586
35531
|
/** Reason the document is rejected. */
|
|
35587
35532
|
KycDocumentRejectionReasonTypes:
|
|
35588
35533
|
| "document-unreadable"
|
|
@@ -36565,27 +36510,31 @@ export interface storefrontComponents {
|
|
|
36565
36510
|
id: string;
|
|
36566
36511
|
} & storefrontComponents["schemas"]["Plan"];
|
|
36567
36512
|
ReadyToPayAmount: {
|
|
36513
|
+
websiteId: storefrontComponents["schemas"]["WebsiteId"];
|
|
36568
36514
|
currency: storefrontComponents["schemas"]["CurrencyCode"];
|
|
36569
36515
|
/** Amount to pay. */
|
|
36570
36516
|
amount: number;
|
|
36517
|
+
/** Billing address. */
|
|
36518
|
+
billingAddress?: storefrontComponents["schemas"]["ContactObject"];
|
|
36519
|
+
riskMetadata: storefrontComponents["schemas"]["RiskMetadata"];
|
|
36571
36520
|
};
|
|
36572
36521
|
ReadyToPayItems: {
|
|
36522
|
+
websiteId: storefrontComponents["schemas"]["WebsiteId"];
|
|
36573
36523
|
items: {
|
|
36574
36524
|
/** ID of the plan. */
|
|
36575
36525
|
planId: string;
|
|
36576
36526
|
/** Number of product units in the specified plan. */
|
|
36577
36527
|
quantity: number;
|
|
36578
36528
|
}[];
|
|
36579
|
-
};
|
|
36580
|
-
ReadyToPay: (
|
|
36581
|
-
| storefrontComponents["schemas"]["ReadyToPayAmount"]
|
|
36582
|
-
| storefrontComponents["schemas"]["ReadyToPayItems"]
|
|
36583
|
-
) & {
|
|
36584
|
-
websiteId: storefrontComponents["schemas"]["WebsiteId"];
|
|
36585
36529
|
/** Billing address. */
|
|
36586
36530
|
billingAddress?: storefrontComponents["schemas"]["ContactObject"];
|
|
36587
36531
|
riskMetadata: storefrontComponents["schemas"]["RiskMetadata"];
|
|
36588
36532
|
};
|
|
36533
|
+
ReadyToPay:
|
|
36534
|
+
| storefrontComponents["schemas"]["ReadyToPayAmount"]
|
|
36535
|
+
| storefrontComponents["schemas"]["ReadyToPayItems"];
|
|
36536
|
+
/** ISO 3166 alpha-2 country code. For examples, see [ISO.org](https://www.iso.org/obp/ui/#search/code/). */
|
|
36537
|
+
Country: string;
|
|
36589
36538
|
/**
|
|
36590
36539
|
* ISO 3166 alpha-2 country code where the payment is processed.
|
|
36591
36540
|
* This is often the location for settling the payment.
|
|
@@ -36991,6 +36940,8 @@ export interface storefrontComponents {
|
|
|
36991
36940
|
showCoupons?: string[] | null;
|
|
36992
36941
|
/** Specifies whether the hosted payment form uses a full page redirect, or the default iframe modal, for approval URL redirects. */
|
|
36993
36942
|
fullPageRedirect: boolean | null;
|
|
36943
|
+
/** Specifies whether the hosted payment form skips the redirect to the website URL when the payment is completed. */
|
|
36944
|
+
skipRedirectOnPaymentComplete: boolean | null;
|
|
36994
36945
|
} | null;
|
|
36995
36946
|
};
|
|
36996
36947
|
};
|
|
@@ -37148,7 +37099,7 @@ export interface storefrontComponents {
|
|
|
37148
37099
|
/** Related invoice IDs. */
|
|
37149
37100
|
invoiceIds?: storefrontComponents["schemas"]["ResourceId"][];
|
|
37150
37101
|
/** Subscription IDs of invoices that are related to the transaction. */
|
|
37151
|
-
|
|
37102
|
+
orderIds?: storefrontComponents["schemas"]["ResourceId"][];
|
|
37152
37103
|
/** Plan IDs of orders that are related to the transaction. */
|
|
37153
37104
|
planIds?: storefrontComponents["schemas"]["ResourceId"][];
|
|
37154
37105
|
/** Specifies if the transaction is one of a number of recurring payments in a subscription, excluding trials or setup fees. */
|
|
@@ -37160,24 +37111,6 @@ export interface storefrontComponents {
|
|
|
37160
37111
|
rebillNumber?: number;
|
|
37161
37112
|
/** Billing address. */
|
|
37162
37113
|
billingAddress?: storefrontComponents["schemas"]["ContactObject"];
|
|
37163
|
-
/** Specifies if the transaction uses 3D Secure. */
|
|
37164
|
-
has3ds?: boolean;
|
|
37165
|
-
/** Authentication object. */
|
|
37166
|
-
"3ds"?: {
|
|
37167
|
-
/** Name of the 3D Secure server. */
|
|
37168
|
-
server?: string;
|
|
37169
|
-
/** Version of 3D Secure. */
|
|
37170
|
-
version?: "1.0.2" | "2.1.0" | "2.2.0";
|
|
37171
|
-
/** Specifies if the cardholder is enrolled in 3D Secure. */
|
|
37172
|
-
enrolled?: "yes" | "no" | "invalid card/timeout" | "unavailable";
|
|
37173
|
-
/** Authentication response status for 3D Secure. */
|
|
37174
|
-
authenticated?: "yes" | "no" | "not applicable" | "attempted";
|
|
37175
|
-
liability?: "protected" | "not protected" | "protected (attempt)";
|
|
37176
|
-
/** Authentication flow for 3D Secure 2. */
|
|
37177
|
-
flow?: "frictionless" | "challenge";
|
|
37178
|
-
/** Specifies if 3D Secure 2 is attempted and downgraded to 3D Secure 1. */
|
|
37179
|
-
isDowngraded: boolean;
|
|
37180
|
-
};
|
|
37181
37114
|
/**
|
|
37182
37115
|
* URL where the end-user is redirected to when an offsite transaction is completed.
|
|
37183
37116
|
* The default value is the website URL.
|
|
@@ -37600,7 +37533,8 @@ export interface storefrontComponents {
|
|
|
37600
37533
|
StorefrontKycRequest: {
|
|
37601
37534
|
/** ID of the KYC request. */
|
|
37602
37535
|
id?: string;
|
|
37603
|
-
|
|
37536
|
+
/** Documents to request from the customer. */
|
|
37537
|
+
documents?: storefrontComponents["schemas"]["KycRequestDocument"][];
|
|
37604
37538
|
/** Status of the request. */
|
|
37605
37539
|
status?:
|
|
37606
37540
|
| "gathering"
|
|
@@ -38585,7 +38519,7 @@ export interface storefrontComponents {
|
|
|
38585
38519
|
mediaTypeJsonPdf: "application/json" | "application/pdf";
|
|
38586
38520
|
/** Token string. */
|
|
38587
38521
|
token: string;
|
|
38588
|
-
/**
|
|
38522
|
+
/** Type of resource schema. */
|
|
38589
38523
|
storefrontCustomFieldResource:
|
|
38590
38524
|
| "customers"
|
|
38591
38525
|
| "payment-instruments"
|
|
@@ -39043,11 +38977,11 @@ export interface operations {
|
|
|
39043
38977
|
404: storefrontComponents["responses"]["NotFound"];
|
|
39044
38978
|
};
|
|
39045
38979
|
};
|
|
39046
|
-
/** Retrieves
|
|
38980
|
+
/** Retrieves the custom fields schema for a specified resource. */
|
|
39047
38981
|
StorefrontGetCustomFieldCollection: {
|
|
39048
38982
|
parameters: {
|
|
39049
38983
|
path: {
|
|
39050
|
-
/**
|
|
38984
|
+
/** Type of resource schema. */
|
|
39051
38985
|
resource: storefrontComponents["parameters"]["storefrontCustomFieldResource"];
|
|
39052
38986
|
};
|
|
39053
38987
|
query: {
|
|
@@ -42818,18 +42752,6 @@ declare module "resources/aml-checks-resource" {
|
|
|
42818
42752
|
}): any;
|
|
42819
42753
|
};
|
|
42820
42754
|
}
|
|
42821
|
-
declare module "resources/aml-resource" {
|
|
42822
|
-
export default function AmlResource({ apiHandler }: {
|
|
42823
|
-
apiHandler: any;
|
|
42824
|
-
}): {
|
|
42825
|
-
getAll({ firstName, lastName, dob, country }: {
|
|
42826
|
-
firstName: any;
|
|
42827
|
-
lastName: any;
|
|
42828
|
-
dob?: any;
|
|
42829
|
-
country?: any;
|
|
42830
|
-
}): rebilly.GetAmlHitResponsePromise;
|
|
42831
|
-
};
|
|
42832
|
-
}
|
|
42833
42755
|
declare module "resources/aml-settings-resource" {
|
|
42834
42756
|
export default function AmlSettingsResource({ apiHandler }: {
|
|
42835
42757
|
apiHandler: any;
|
|
@@ -44633,14 +44555,6 @@ declare module "resources/api-instance" {
|
|
|
44633
44555
|
data: any;
|
|
44634
44556
|
}): any;
|
|
44635
44557
|
};
|
|
44636
|
-
aml: {
|
|
44637
|
-
getAll({ firstName, lastName, dob, country }: {
|
|
44638
|
-
firstName: any;
|
|
44639
|
-
lastName: any;
|
|
44640
|
-
dob?: any;
|
|
44641
|
-
country?: any;
|
|
44642
|
-
}): rebilly.GetAmlHitResponsePromise;
|
|
44643
|
-
};
|
|
44644
44558
|
amlSettings: {
|
|
44645
44559
|
getAmlSettings(): rebilly.GetAmlSettingsResponsePromise;
|
|
44646
44560
|
putAmlSettings({ data }: {
|
|
@@ -388,7 +388,7 @@ function cloneArrayDeep(val, instanceClone) {
|
|
|
388
388
|
return res;
|
|
389
389
|
}
|
|
390
390
|
var cloneDeep_1 = cloneDeep;
|
|
391
|
-
const version = "51.
|
|
391
|
+
const version = "51.7.0";
|
|
392
392
|
let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
393
393
|
let nanoid = (size = 21) => {
|
|
394
394
|
let id = "";
|
|
@@ -765,14 +765,6 @@ function AmlChecksResource({ apiHandler }) {
|
|
|
765
765
|
}
|
|
766
766
|
};
|
|
767
767
|
}
|
|
768
|
-
function AmlResource({ apiHandler }) {
|
|
769
|
-
return {
|
|
770
|
-
getAll({ firstName, lastName, dob = null, country = null }) {
|
|
771
|
-
const params = { firstName, lastName, dob, country };
|
|
772
|
-
return apiHandler.get(`aml`, params);
|
|
773
|
-
}
|
|
774
|
-
};
|
|
775
|
-
}
|
|
776
768
|
function AmlSettingsResource({ apiHandler }) {
|
|
777
769
|
return {
|
|
778
770
|
getAmlSettings() {
|
|
@@ -2980,7 +2972,6 @@ class ApiInstance {
|
|
|
2980
2972
|
this.account = AccountResource$1({ apiHandler });
|
|
2981
2973
|
this.allowlists = AllowlistsResource({ apiHandler });
|
|
2982
2974
|
this.amlChecks = AmlChecksResource({ apiHandler });
|
|
2983
|
-
this.aml = AmlResource({ apiHandler });
|
|
2984
2975
|
this.amlSettings = AmlSettingsResource({ apiHandler });
|
|
2985
2976
|
this.apiKeys = ApiKeysResource({ apiHandler });
|
|
2986
2977
|
this.applicationInstances = ApplicationInstancesResource({ apiHandler });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(f,$){typeof exports=="object"&&typeof module!="undefined"?$(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],$):(f=typeof globalThis!="undefined"?globalThis:f||self,$(f["rebilly-js-sdk"]={},f.axios))})(this,function(f,$){"use strict";var
|
|
1
|
+
(function(f,$){typeof exports=="object"&&typeof module!="undefined"?$(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],$):(f=typeof globalThis!="undefined"?globalThis:f||self,$(f["rebilly-js-sdk"]={},f.axios))})(this,function(f,$){"use strict";var rr=Object.defineProperty;var nr=(f,$,R)=>$ in f?rr(f,$,{enumerable:!0,configurable:!0,writable:!0,value:R}):f[$]=R;var F=(f,$,R)=>(nr(f,typeof $!="symbol"?$+"":$,R),R);function R(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var x=R($);function S(t,{exclude:e=[]}={}){Object.freeze(t);const s=typeof t=="function";return Object.getOwnPropertyNames(t).forEach(r=>{(s?r!=="caller"&&r!=="callee"&&r!=="arguments":!0)&&t[r]!==null&&!e.includes(r)&&(typeof t[r]=="object"||typeof t[r]=="function")&&!Object.isFrozen(t[r])&&S(t[r],{exclude:e})}),t}class K{constructor({data:e,status:s,statusText:r,headers:n},u={}){this.response={status:s,statusText:r,headers:n},this.fields={...e},this.config=u,S(this,{exclude:["cancelToken"]})}getJSON(){return JSON.parse(JSON.stringify({fields:this.fields}))}}const B={limit:"pagination-limit",offset:"pagination-offset",total:"pagination-total"};class ee{constructor({data:e,status:s,statusText:r,headers:n},u={}){this.limit=null,this.offset=null,this.total=null,Object.keys(B).forEach(o=>{const l=n[B[o]];this[o]=l?Number(l):null}),this.response={status:s,statusText:r,headers:n},this.items=e.map(o=>new K({data:o,status:s,statusText:r,headers:n})),this.config=u,S(this,{exclude:["cancelToken"]})}getJSON(){return JSON.parse(JSON.stringify({items:this.items}))}}class te{constructor({data:e,status:s,statusText:r,headers:n},u={}){this.response={status:s,statusText:r,headers:n},this.data=e,this.config=u}}class y extends Error{constructor({error:e,name:s=null}){let{config:r=null,response:n=null,request:u=null,message:o=null}=e,l=o||"Request Error";n&&n.data&&n.data.error&&(l=n.data.error),super(l),this.name=s||"RebillyError",this.response=n,this.request=u,this.config=r,this.status=n&&n.status?n.status:null,this.statusText=n&&n.statusText?n.statusText:null,this.details=n&&n.data&&n.data.details?n.data.details:null,this.invalidFields=n&&n.data&&n.data.invalidFields?n.data.invalidFields:null}}class se extends y{constructor(e){super({error:e,name:"RebillyRequestError"})}}class re extends y{constructor(e){super({error:e,name:"RebillyValidationError"})}}class ne extends y{constructor(e){super({error:e,name:"RebillyNotFoundError"})}}class ue extends y{constructor(e){super({error:e,name:"RebillyConflictError"})}}class oe extends y{constructor(e){super({error:e,name:"RebillyForbiddenError"})}}class le extends y{constructor(e){super({error:e,name:"RebillyMethodNotAllowedError"})}}class ce extends y{constructor(e){super({error:e,name:"RebillyTimeoutError"})}}class ie extends y{constructor(e){super({error:e,name:"RebillyCanceledError"})}}const p={RebillyError:y,RebillyRequestError:se,RebillyValidationError:re,RebillyNotFoundError:ne,RebillyConflictError:ue,RebillyForbiddenError:oe,RebillyMethodNotAllowedError:le,RebillyTimeoutError:ce,RebillyCanceledError:ie};var ge=Object.prototype.toString,L=function(e){if(e===void 0)return"undefined";if(e===null)return"null";var s=typeof e;if(s==="boolean")return"boolean";if(s==="string")return"string";if(s==="number")return"number";if(s==="symbol")return"symbol";if(s==="function")return he(e)?"generatorfunction":"function";if(ae(e))return"array";if(Ae(e))return"buffer";if(ye(e))return"arguments";if(fe(e))return"date";if(me(e))return"error";if($e(e))return"regexp";switch(N(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(pe(e))return"generator";switch(s=ge.call(e),s){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return s.slice(8,-1).toLowerCase().replace(/\s/g,"")};function N(t){return typeof t.constructor=="function"?t.constructor.name:null}function ae(t){return Array.isArray?Array.isArray(t):t instanceof Array}function me(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function fe(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function $e(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function he(t,e){return N(t)==="GeneratorFunction"}function pe(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function ye(t){try{if(typeof t.length=="number"&&typeof t.callee=="function")return!0}catch(e){if(e.message.indexOf("callee")!==-1)return!0}return!1}function Ae(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}/*!
|
|
2
2
|
* shallow-clone <https://github.com/jonschlinkert/shallow-clone>
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
*
|
|
14
14
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
15
15
|
* Released under the MIT License.
|
|
16
|
-
*/var Ie=Se;function U(t){return Ie(t)===!0&&Object.prototype.toString.call(t)==="[object Object]"}var qe=function(e){var s,r;return!(U(e)===!1||(s=e.constructor,typeof s!="function")||(r=s.prototype,U(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};const xe=Ee,Ce=L,Pe=qe;function C(t,e){switch(Ce(t)){case"object":return je(t,e);case"array":return Me(t,e);default:return xe(t)}}function je(t,e){if(typeof e=="function")return e(t);if(e||Pe(t)){const s=new t.constructor;for(let r in t)s[r]=C(t[r],e);return s}return t}function Me(t,e){const s=new t.constructor(t.length);for(let r=0;r<t.length;r++)s[r]=C(t[r],e);return s}var De=C;const Oe="51.6.1";let Fe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ke=(t=21)=>{let e="",s=t;for(;s--;)e+=Fe[Math.random()*64|0];return e};class Be{constructor({id:e=null,created:s=null}={}){this.id=e||Ke(),this.created=s||new Date().getTime(),this.cancelSource=x.default.CancelToken.source(),this.cancel=this.cancelSource.cancel,this.cancelToken=this.cancelSource.token,S(this,{exclude:["cancelSource","cancelToken","cancel"]})}}class v{constructor(){if(v.instance)return v.instance;this.requests={},v.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 Be;return this.requests[e.id]=e,{id:e.id,cancelToken:e.cancelToken}}}var T=new v;class I{}F(I,"cancelById",(e,s)=>{try{T.getById(e).cancel(s),T.deleteById(e)}catch{}}),F(I,"cancelAll",e=>T.getAll().forEach(s=>{s.cancel(e),T.deleteById(s.id)}));var Le={cancelAll:(...t)=>I.cancelAll(...t)};const b={request:"request",response:"response"},V=t=>{if(!Object.values(b).includes(t))throw new Error(`There is no such interceptor type as "${t}"`);return!0};function P({options:t}){const e=s();function s(){return x.default.create(n())}function r(){return e}function n(){return{baseURL:u(),timeout:t.requestTimeout,headers:o()}}function u(){let c=t.isSandbox?t.apiEndpoints.sandbox:t.apiEndpoints.live;return t.apiVersion&&(c=`${c}/${t.apiVersion}`),t.organizationId&&(c=`${c}/organizations/${t.organizationId}`),`${c}`}function o(){const c={"REB-API-CONSUMER":`RebillySDK/JS-SDK ${Oe}`};return t.apiKey&&(c["REB-APIKEY"]=t.apiKey),c}function l(){return De(e.defaults.headers)}function a(c){t.requestTimeout=Number(c),e.defaults.timeout=t.requestTimeout}function h(c=t.jwt){const i=l();t.apiKey=null,t.jwt=c,delete i.common["REB-APIKEY"],i.common.Authorization=`Bearer ${c}`,e.defaults.headers=i}function k(c=t.publishableKey){const i=l();t.publishableKey=c,i.common.Authorization=`${c}`,e.defaults.headers=i}function D({host:c,port:i,auth:g}){e.defaults.proxy={host:c,port:i,auth:g}}function O({live:c=null,sandbox:i=null}){c&&(t.apiEndpoints.live=c),i&&(t.apiEndpoints.sandbox=i),e.defaults.baseURL=u()}function J(c,{thenDelegate:i,catchDelegate:g=()=>{}}){return V(c)&&e.interceptors[b[c]].use(i,g)}function G(c,i){return V(c)&&e.interceptors[b[c]].eject(i)}function Ws({thenDelegate:c,catchDelegate:i=()=>{}}){return J(b.request,{thenDelegate:c,catchDelegate:i})}function Js(c){G(b.request,c)}function Gs({thenDelegate:c,catchDelegate:i=()=>{}}){return J(b.response,{thenDelegate:c,catchDelegate:i})}function Ys(c){G(b.response,c)}function d({request:c,isCollection:i,config:g}){const m=_(g),{id:A,cancelToken:rr}=T.save();m.cancelToken=rr;const H=async function(){try{const E=await c(m);return _s({response:E,isCollection:i,config:m})}catch(E){return Y({error:E,config:m})}finally{T.deleteById(A)}}();return H.cancel=E=>I.cancelById(A,E),H}function _s({response:c,isCollection:i,config:g}){return i?new ee(c,g):new K(c,g)}function Y({error:c}){if(x.default.isCancel(c))throw new p.RebillyCanceledError(c);if(c.response)switch(Number(c.response.status)){case 401:throw new p.RebillyForbiddenError(c);case 404:throw new p.RebillyNotFoundError(c);case 405:throw new p.RebillyMethodNotAllowedError(c);case 409:throw new p.RebillyConflictError(c);case 422:throw new p.RebillyValidationError(c);default:throw new p.RebillyRequestError(c)}throw c.code==="ECONNABORTED"?new p.RebillyTimeoutError(c):new p.RebillyRequestError(c)}function Qs(c){return c.params!==void 0&&(c.params=Object.keys(c.params).filter(i=>c.params[i]!==null&&c.params[i]!=="").reduce((i,g)=>(i[g]=c.params[g],i),{})),c}function _(c={}){return{...Qs(c)}}function Q(c,i={}){return d({request:g=>e.get(c,g),config:{params:i}})}function Xs(c,i){return d({request:g=>e.get(c,g),config:{params:i},isCollection:!0})}function X(c,i,g={}){let m={};return g.authenticate===!1&&(m={headers:l()},delete m.headers.common["REB-APIKEY"],delete m.headers.common.Authorization),g.params&&(m.params={...g.params}),d({request:A=>e.post(c,i,A),config:m})}function Z(c,i,g={}){return d({request:m=>e.put(c,i,m),config:{params:g}})}function Zs(c,i){return d({request:g=>e.patch(c,i,g),config:{}})}function Hs(c){return d({request:i=>e.delete(c,i),config:{}})}function er(c,i){return d({request:g=>e.delete(c,g),config:{data:{...i}}})}async function tr(c,i,g,m={}){if(i==="")return X(c,g,{params:m});try{if((await Q(c)).response.status===200)throw new p.RebillyConflictError({message:"A resource already exists with this ID. Please use a different ID."})}catch(A){if(A.name==="RebillyNotFoundError")return Z(c,g,m);throw A}}async function sr(c,i){const g=_(i);try{const m=await e.get(c,g);return new te(m,g)}catch(m){return Y({error:m,config:g})}}return{getInstance:r,addRequestInterceptor:Ws,removeRequestInterceptor:Js,addResponseInterceptor:Gs,removeResponseInterceptor:Ys,setTimeout:a,setProxyAgent:D,setSessionToken:h,setPublishableKey:k,setEndpoints:O,get:Q,getAll:Xs,post:X,put:Z,patch:Zs,delete:Hs,deleteAll:er,create:tr,download:sr}}function Ne({apiHandler:t}){return{forgotPassword({data:e}){return t.post("forgot-password",e,{authenticate:!1})}}}function ze({apiHandler:t}){return{getAllowlistCollection({filter:e=null,sort:s=null,limit:r=null,offset:n=null}={}){const u={filter:e,sort:s,limit:r,offset:n};return t.getAll("allowlists",u)},storeAllowlist({data:e}){return t.post("allowlists",e)},getAllowlist({id:e}){return t.get(`allowlists/${e}`)},delete({id:e}){return t.delete(`allowlists/${e}`)}}}function Ue({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("aml-checks",o)},get({id:e}){return t.get(`aml-checks/${e}`)},review({id:e,data:s}){return t.post(`aml-checks/${e}/review`,s)}}}function Ve({apiHandler:t}){return{getAll({firstName:e,lastName:s,dob:r=null,country:n=null}){const u={firstName:e,lastName:s,dob:r,country:n};return t.get("aml",u)}}}function We({apiHandler:t}){return{getAmlSettings(){return t.get("aml-settings")},putAmlSettings({data:e}){return t.put("aml-settings",e)}}}function Je({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null}={}){const n={limit:e,offset:s,sort:r};return t.getAll("api-keys",n)},create({id:e="",data:s}){return t.create(`api-keys/${e}`,e,s)},get({id:e}){return t.get(`api-keys/${e}`)},update({id:e,data:s}){return t.put(`api-keys/${e}`,s)},delete({id:e}){return t.delete(`api-keys/${e}`)}}}function Ge({apiHandler:t}){return{get({applicationId:e}){return t.get(`application-instances/${e}`)},upsert({applicationId:e,data:s}){return t.put(`application-instances/${e}`,s)},delete({applicationId:e}){return t.delete(`application-instances/${e}`)},getConfiguration({applicationId:e}){return t.get(`application-instances/${e}/configuration`)},upsertConfiguration({applicationId:e,data:s}){return t.put(`application-instances/${e}/configuration`,s)}}}function Ye({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,expand:u=null,fields:o=null,sort:l=null}={}){const a={limit:e,offset:s,filter:r,q:n,expand:u,fields:o,sort:l};return t.getAll("applications",a)},create({data:e}){return t.post("applications",e)},get({id:e}){return t.get(`applications/${e}`)},getInstances({id:e,limit:s=null,offset:r=null}){const n={limit:s,offset:r};return t.getAll(`applications/${e}/instances`,n)},getInstance({id:e,organizationId:s}){return t.get(`applications/${e}/instances/${s}`)}}}function _e({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("balance-transactions",u)},get({id:e}){return t.get(`balance-transactions/${e}`)}}}function Qe({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("billing-portals",o)},create({id:e="",data:s}){return t.create(`billing-portals/${e}`,e,s)},get({id:e}){return t.get(`billing-portals/${e}`)},update({id:e,data:s}){return t.put(`billing-portals/${e}`,s)},delete({id:e}){return t.delete(`billing-portals/${e}`)}}}function Xe({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("blocklists",o)},create({id:e="",data:s}){return t.create(`blocklists/${e}`,e,s)},get({id:e}){return t.get(`blocklists/${e}`)},delete({id:e}){return t.delete(`blocklists/${e}`)}}}function Ze({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null}={}){const u={limit:e,offset:s,sort:r,filter:n};return t.getAll("broadcast-messages",u)},create({data:e}){return t.post("broadcast-messages",e)},get({id:e}){return t.get(`broadcast-messages/${e}`)},delete({id:e}){return t.delete(`broadcast-messages/${e}`)},update({id:e,data:s}){return t.patch(`broadcast-messages/${e}`,s)}}}function He({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("cashier-custom-property-sets",u)},create({id:e="",data:s}){return t.create(`cashier-custom-property-sets/${e}`,e,s)},get({id:e}){return t.get(`cashier-custom-property-sets/${e}`)},update({id:e,data:s}){return t.put(`cashier-custom-property-sets/${e}`,s)},delete({id:e}){return t.delete(`cashier-custom-property-sets/${e}`)}}}function et({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("cashier-requests",u)},create({data:e}){return t.post("cashier-requests",e)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`cashier-requests/${e}`,r)}}}function tt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("cashier-strategies",u)},create({id:e="",data:s}){return t.create(`cashier-strategies/${e}`,e,s)},get({id:e}){return t.get(`cashier-strategies/${e}`)},update({id:e,data:s}){return t.put(`cashier-strategies/${e}`,s)},delete({id:e}){return t.delete(`cashier-strategies/${e}`)}}}function st({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("checkout-forms",o)},create({id:e="",data:s}){return t.create(`checkout-forms/${e}`,e,s)},get({id:e}){return t.get(`checkout-forms/${e}`)},update({id:e,data:s}){return t.put(`checkout-forms/${e}`,s)},delete({id:e}){return t.delete(`checkout-forms/${e}`)}}}function rt({apiHandler:t}){return{getAllRedemptions({limit:e=null,offset:s=null,filter:r=null,q:n=null,sort:u=null}={}){const o={limit:e,offset:s,filter:r,q:n,sort:u};return t.getAll("coupons-redemptions",o)},redeem({data:e}){return t.post("coupons-redemptions",e)},getRedemption({id:e}){return t.get(`coupons-redemptions/${e}`)},cancelRedemption({id:e}){return t.post(`coupons-redemptions/${e}/cancel`)},getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,sort:u=null}={}){const o={limit:e,offset:s,filter:r,q:n,sort:u};return t.getAll("coupons",o)},create({id:e="",data:s}){return t.create(`coupons/${e}`,e,s)},get({id:e}){return t.get(`coupons/${e}`)},update({id:e,data:s}){return t.put(`coupons/${e}`,s)},setExpiration({id:e,data:s}){return t.post(`coupons/${e}/expiration`,s)}}}function nt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("credit-memos",o)},create({id:e="",data:s}){return t.create(`credit-memos/${e}`,e,s)},get({id:e}){return t.get(`credit-memos/${e}`)},update({id:e,data:s}){return t.put(`credit-memos/${e}`,s)},patch({id:e,data:s}){return t.patch(`credit-memos/${e}`,s)},void({id:e}){return t.post(`credit-memos/${e}/void`)},getAllTimelineMessages({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`credit-memos/${e}/timeline`,l)},createTimelineComment({id:e,data:s}){return t.post(`credit-memos/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`credit-memos/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`credit-memos/${e}/timeline/${s}`)}}}function ut({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("custom-domains",o)},create({data:e}){return t.post("custom-domains",e)},get({domain:e}){return t.get(`custom-domains/${e}`)},delete({domain:e}){return t.delete(`custom-domains/${e}`)}}}function ot({apiHandler:t}){return{getAll({resource:e,limit:s=null,offset:r=null}){const n={limit:s,offset:r};return t.getAll(`custom-fields/${e}`,n)},get({resource:e,name:s}){return t.get(`custom-fields/${e}/${s}`)},create({resource:e,name:s,data:r}){return t.put(`custom-fields/${e}/${s}`,r)},update({resource:e,name:s,data:r}){return t.put(`custom-fields/${e}/${s}`,r)}}}function lt({apiHandler:t}){return{getAuthOptions(){return t.get("authentication-options")},updateAuthOptions({data:e}){return t.put("authentication-options",e)},getAllAuthTokens({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("authentication-tokens",r)},login({data:e}){return t.post("authentication-tokens",e)},verify({token:e}){return t.get(`authentication-tokens/${e}`)},logout({token:e}){return t.delete(`authentication-tokens/${e}`)},exchangeToken({token:e,data:s}){return t.post(`authentication-tokens/${e}/exchange`,s)},getAllCredentials({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("credentials",r)},createCredential({id:e="",data:s}){return t.create(`credentials/${e}`,e,s)},getCredential({id:e}){return t.get(`credentials/${e}`)},updateCredential({id:e,data:s}){return t.put(`credentials/${e}`,s)},deleteCredential({id:e}){return t.delete(`credentials/${e}`)},getAllResetPasswordTokens({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("password-tokens",r)},createResetPasswordToken({data:e}){return t.post("password-tokens",e)},getResetPasswordToken({id:e}){return t.get(`password-tokens/${e}`)},deleteResetPasswordToken({id:e}){return t.delete(`password-tokens/${e}`)}}}function ct({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,expand:u=null,fields:o=null,sort:l=null}={}){const a={limit:e,offset:s,filter:r,q:n,expand:u,fields:o,sort:l};return t.getAll("customers",a)},create({id:e="",data:s,expand:r=null}){const n={expand:r};return t.create(`customers/${e}`,e,s,n)},get({id:e,expand:s=null,fields:r=null}){const n={expand:s,fields:r};return t.get(`customers/${e}`,n)},update({id:e,data:s,expand:r=null}){const n={expand:r};return t.put(`customers/${e}`,s,n)},merge({id:e,targetCustomerId:s}){return t.delete(`customers/${e}?targetCustomerId=${s}`)},getAml({id:e}){return t.get(`customers/${e}/aml`)},getLeadSource({id:e}){return t.get(`customers/${e}/lead-source`)},createLeadSource({id:e,data:s}){return t.put(`customers/${e}/lead-source`,s)},updateLeadSource({id:e,data:s}){return t.put(`customers/${e}/lead-source`,s)},deleteLeadSource({id:e}){return t.delete(`customers/${e}/lead-source`)},getAllTimelineMessages({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`customers/${e}/timeline`,l)},createTimelineComment({id:e,data:s}){return t.post(`customers/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`customers/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`customers/${e}/timeline/${s}`)},getCustomerEddScore({id:e}){return t.get(`customers/${e}/edd-score`)},patchCustomerEddScore({id:e,data:s}){return t.patch(`customers/${e}/edd-score`,s)},getEddTimelineCollection({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`customers/${e}/edd-timeline`,l)},createEddTimelineComment({id:e,data:s}){return t.post(`customers/${e}/edd-timeline`,s)},getEddTimelineMessage({id:e,messageId:s}){return t.get(`customers/${e}/edd-timeline/${s}`)},deleteEddTimelineMessage({id:e,messageId:s}){return t.delete(`customers/${e}/edd-timeline/${s}`)},getAllEddSearchResults({id:e,limit:s=null,offset:r=null}){const n={limit:s,offset:r};return t.getAll(`customers/${e}/edd-search-results`,n)},getEddSearchResult({id:e,searchResultId:s}){return t.get(`customers/${e}/edd-search-results/${s}`)}}}function it({apiHandler:t}){return{create({data:e}){return t.post("digital-wallets/onboarding/apple-pay",e)},validate({data:e}){return t.post("digital-wallets/validation",e)}}}function gt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null,expand:o=null}={}){const l={filter:e,sort:s,limit:r,offset:n,q:u,expand:o};return t.getAll("disputes",l)},create({id:e="",data:s,expand:r=null}){const n={expand:r};return t.create(`disputes/${e}`,e,s,n)},get({id:e}){return t.get(`disputes/${e}`)},update({id:e,data:s,expand:r=null}){const n={expand:r};return t.put(`disputes/${e}`,s,n)}}}function at({apiHandler:t}){return{verify({token:e}){return t.put(`email-delivery-setting-verifications/${e}`)},getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null,q:u=null}={}){const o={limit:e,offset:s,filter:r,sort:n,q:u};return t.getAll("email-delivery-settings",o)},create({data:e}){return t.post("email-delivery-settings",e)},get({id:e}){return t.get(`email-delivery-settings/${e}`)},delete({id:e}){return t.delete(`email-delivery-settings/${e}`)},update({id:e,data:s}){return t.patch(`email-delivery-settings/${e}`,s)},resendVerification({id:e}){return t.post(`email-delivery-settings/${e}/resend-email-verification`)}}}function mt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,q:r=null,sort:n=null,filter:u=null}={}){const o={limit:e,offset:s,q:r,sort:n,filter:u};return t.getAll("email-messages",o)},create({data:e}){return t.post("email-messages",e)},get({id:e}){return t.get(`email-messages/${e}`)},delete({id:e}){return t.delete(`email-messages/${e}`)},send({id:e,data:s={status:"outbox"}}){return t.patch(`email-messages/${e}`,s)}}}function ft({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("email-notifications",r)}}}function $t({apiHandler:t}){return{getAll(){return t.getAll("events")},get({eventType:e}){return t.get(`events/${e}`)},getRules({eventType:e}){return t.get(`events/${e}/rules`)},createRules({eventType:e,data:s}){return t.put(`events/${e}/rules`,s)},updateRules({eventType:e,data:s}){return t.put(`events/${e}/rules`,s)},getAllTimelineMessages({eventType:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`events/${e}/timeline`,l)},createTimelineComment({eventType:e,data:s}){return t.post(`events/${e}/timeline`,s)},getTimelineMessage({eventType:e,messageId:s}){return t.get(`events/${e}/timeline/${s}`)},deleteTimelineMessage({eventType:e,messageId:s}){return t.delete(`events/${e}/timeline/${s}`)},getRulesHistory({eventType:e,limit:s=null,offset:r=null,filter:n=null,q:u=null,sort:o=null,fields:l=null}){const a={limit:s,offset:r,filter:n,q:u,sort:o,fields:l};return t.getAll(`events/${e}/rules/history`,a)},getRulesVersionNumber({eventType:e,version:s,fields:r=null}){const n={fields:r};return t.get(`events/${e}/rules/history/${s}`,n)},getRulesVersionDetail({eventType:e,version:s,fields:r=null}){const n={fields:r};return t.get(`events/${e}/rules/versions/${s}`,n)},getAllDraftRulesets({eventType:e,limit:s=null,offset:r=null,filter:n=null,q:u=null,sort:o=null,fields:l=null}){const a={limit:s,offset:r,filter:n,q:u,sort:o,fields:l};return t.getAll(`events/${e}/rules/drafts`,a)},createDraftRuleset({eventType:e,data:s}){return t.post(`events/${e}/rules/drafts`,s)},getDraftRuleset({eventType:e,id:s,fields:r=null}){const n={fields:r};return t.get(`events/${e}/rules/drafts/${s}`,n)},updateDraftRuleset({eventType:e,id:s,data:r}){return t.put(`events/${e}/rules/drafts/${s}`,r)},deleteDraftRuleset({eventType:e,id:s}){return t.delete(`events/${e}/rules/drafts/${s}`)}}}function ht({apiHandler:t}){return{get({resource:e,resourceId:s,service:r}){return t.get(`${e}/${s}/external-identifiers/${r}`)},sync({resource:e,resourceId:s,service:r}){return t.post(`${e}/${s}/external-identifiers/${r}`)},update({resource:e,resourceId:s,service:r,data:n}){return t.put(`${e}/${s}/external-identifiers/${r}`,n)},delete({resource:e,resourceId:s,service:r}){return t.delete(`${e}/${s}/external-identifiers/${r}`)}}}function pt({apiHandler:t}){return{getExternalServiceSettings(){return t.get("external-services-settings")},updateExternalServiceSettings({data:e}){return t.put("external-services-settings",e)}}}function yt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("fees",u)},create({id:e="",data:s}){return t.create(`fees/${e}`,e,s)},get({id:e}){return t.get(`fees/${e}`)},upsert({id:e,data:s}){return t.put(`fees/${e}`,s)},delete({id:e}){return t.delete(`fees/${e}`)},patch({id:e,data:s}){return t.patch(`fees/${e}`,s)}}}function At({apiHandler:t}){return{getAllAttachments({limit:e=null,offset:s=null,filter:r=null,q:n=null,expand:u=null,fields:o=null,sort:l=null}={}){const a={limit:e,offset:s,filter:r,q:n,expand:u,fields:o,sort:l};return t.getAll("attachments",a)},attach({id:e="",data:s,expand:r=null}){const n={expand:r};return t.create(`attachments/${e}`,e,s,n)},getAttachment({id:e}){return t.get(`attachments/${e}`)},updateAttachment({id:e,data:s,expand:r=null}){const n={expand:r};return t.put(`attachments/${e}`,s,n)},detach({id:e}){return t.delete(`attachments/${e}`)},getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,fields:u=null,sort:o=null}={}){const l={limit:e,offset:s,filter:r,q:n,fields:u,sort:o};return t.getAll("files",l)},upload({fileObject:e}){return t.post("files",e)},get({id:e}){return t.get(`files/${e}`)},update({id:e,data:s}){return t.put(`files/${e}`,s)},delete({id:e}){return t.delete(`files/${e}`)},download({id:e}){const s={responseType:"arraybuffer"};return t.download(`files/${e}/download`,s)},detachAndDelete({id:e}){const s={filter:`fileId:${e}`};let r=[];const u=(async()=>{const o=this.getAllAttachments(s);r.push(o);const a=(await o).items.map(k=>this.detach({id:k.fields.id}));r=[...r,a],await Promise.all(a);const h=t.delete(`files/${e}`);return r.push(h),h})();return u.cancel=()=>{r.forEach(o=>o.cancel())},u},uploadAndUpdate({fileObject:e,data:s={description:"",tags:[""]}}){const r=[],u=(async()=>{const o=this.upload({fileObject:e});r.push(o),await o;const l={name:o.name,extension:o.extension,description:s.description,tags:s.tags,url:""},a=this.update({id:o.fields.id,data:l});return r.push(a),a})();return u.cancel=()=>{r.forEach(o=>o.cancel())},u}}}function Rt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null,fields:o=null}={}){const l={limit:e,offset:s,sort:r,filter:n,q:u,fields:o};return t.getAll("gateway-accounts",l)},create({id:e="",data:s}){return t.create(`gateway-accounts/${e}`,e,s)},get({id:e}){return t.get(`gateway-accounts/${e}`)},update({id:e,data:s}){return t.patch(`gateway-accounts/${e}`,s)},delete({id:e}){return t.delete(`gateway-accounts/${e}`)},close({id:e}){return t.post(`gateway-accounts/${e}/close`)},disable({id:e}){return t.post(`gateway-accounts/${e}/disable`)},getAllDowntimeSchedules({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null}){const o={limit:s,offset:r,filter:n,sort:u};return t.getAll(`gateway-accounts/${e}/downtime-schedules`,o)},createDowntimeSchedule({id:e,data:s}){return t.post(`gateway-accounts/${e}/downtime-schedules`,s)},getDowntimeSchedule({id:e,downtimeId:s}){return t.get(`gateway-accounts/${e}/downtime-schedules/${s}`)},updateDowntimeSchedule({id:e,downtimeId:s,data:r}){return t.put(`gateway-accounts/${e}/downtime-schedules/${s}`,r)},deleteDowntimeSchedule({id:e,downtimeId:s}){return t.delete(`gateway-accounts/${e}/downtime-schedules/${s}`)},enable({id:e}){return t.post(`gateway-accounts/${e}/enable`)},getAllVolumeLimits({id:e}){return t.getAll(`gateway-accounts/${e}/limits`)},getVolumeLimit({id:e,limitId:s}){return t.get(`gateway-accounts/${e}/limits/${s}`)},updateVolumeLimit({id:e,limitId:s,data:r}){return t.put(`gateway-accounts/${e}/limits/${s}`,r)},deleteVolumeLimit({id:e,limitId:s}){return t.delete(`gateway-accounts/${e}/limits/${s}`)},getAllTimelineMessages({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`gateway-accounts/${e}/timeline`,l)},createTimelineComment({id:e,data:s}){return t.post(`gateway-accounts/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`gateway-accounts/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`gateway-accounts/${e}/timeline/${s}`)},checkCredentials({id:e}){return t.post(`gateway-accounts/${e}/check-credentials`)},getFinancialSettings({id:e}){return t.get(`gateway-accounts/${e}/financial-settings`)},setFinancialSettings({id:e,data:s}){return t.put(`gateway-accounts/${e}/financial-settings`,s)}}}function bt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("integrations",r)},get({label:e}){return t.get(`integrations/${e}`)}}}const q={Accept:"application/pdf"};function wt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null,expand:o=null}={}){const l={filter:e,sort:s,limit:r,offset:n,q:u,expand:o};return t.getAll("invoices",l)},create({id:e="",data:s}){return t.create(`invoices/${e}`,e,s)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`invoices/${e}`,r)},update({id:e,data:s}){return t.put(`invoices/${e}`,s)},getAllInvoiceItems({id:e,limit:s=null,offset:r=null,expand:n=null}){const u={limit:s,offset:r,expand:n};return t.getAll(`invoices/${e}/items`,u)},createInvoiceItem({id:e,data:s}){return t.post(`invoices/${e}/items`,s)},getInvoiceItem({id:e,itemId:s}){return t.get(`invoices/${e}/items/${s}`)},updateInvoiceItem({id:e,itemId:s,data:r}){return t.put(`invoices/${e}/items/${s}`,r)},deleteInvoiceItem({id:e,itemId:s}){return t.delete(`invoices/${e}/items/${s}`)},issue({id:e,data:s}){return t.post(`invoices/${e}/issue`,s)},abandon({id:e}){return t.post(`invoices/${e}/abandon`)},void({id:e}){return t.post(`invoices/${e}/void`)},recalculate({id:e}){return t.post(`invoices/${e}/recalculate`)},reissue({id:e,data:s}){return t.post(`invoices/${e}/reissue`,s)},getAllTransactionAllocations({id:e,limit:s=null,offset:r=null}){const n={limit:s,offset:r};return t.getAll(`invoices/${e}/transaction-allocations`,n)},applyTransaction({id:e,data:s}){return t.post(`invoices/${e}/transaction`,s)},getAllTimelineMessages({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`invoices/${e}/timeline`,l)},createTimelineComment({id:e,data:s}){return t.post(`invoices/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`invoices/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`invoices/${e}/timeline/${s}`)},downloadPDF({id:e}){const s={headers:q,responseType:"arraybuffer"};return t.download(`invoices/${e}`,s)}}}function kt({apiHandler:t}){return{getAllAccounts({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("journal-accounts",u)},createAccount({id:e="",data:s}){return t.create(`journal-accounts/${e}`,e,s)},getAccount({id:e}){return t.get(`journal-accounts/${e}`)},updateAccount({id:e,data:s}){return t.put(`journal-accounts/${e}`,s)}}}function dt({apiHandler:t}){return{getAllEntries({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("journal-entries",u)},createEntry({id:e="",data:s}){return t.create(`journal-entries/${e}`,e,s)},getEntry({id:e}){return t.get(`journal-entries/${e}`)},updateEntry({id:e,data:s}){return t.put(`journal-entries/${e}`,s)},getAllRecords({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,expand:o=null}){const l={limit:s,offset:r,filter:n,sort:u,expand:o};return t.getAll(`journal-entries/${e}/records`,l)},createRecord({id:e,data:s}){return t.post(`journal-entries/${e}/records`,s)},getRecord({id:e,journalRecordId:s}){return t.get(`journal-entries/${e}/records/${s}`)},updateRecord({id:e,journalRecordId:s,data:r}){return t.put(`journal-entries/${e}/records/${s}`,r)},deleteRecord({id:e,journalRecordId:s}){return t.delete(`journal-entries/${e}/records/${s}`)}}}function Tt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null,expand:u=null}={}){const o={limit:e,offset:s,filter:r,sort:n,expand:u};return t.getAll("kyc-documents",o)},create({id:e="",data:s}){return t.create(`kyc-documents/${e}`,e,s)},get({id:e}){return t.get(`kyc-documents/${e}`)},update({id:e,data:s}){return t.put(`kyc-documents/${e}`,s)},accept({id:e}){return t.post(`kyc-documents/${e}/acceptance`)},matches({id:e,data:s}){return t.post(`kyc-documents/${e}/matches`,s)},reject({id:e,data:s}){return t.post(`kyc-documents/${e}/rejection`,s)},review({id:e}){return t.post(`kyc-documents/${e}/review`)},startReview({id:e}){return t.post(`kyc-documents/${e}/start-review`)},stopReview({id:e}){return t.post(`kyc-documents/${e}/stop-review`)}}}function vt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("kyc-requests",u)},create({data:e}){return t.post("kyc-requests",e)},get({id:e}){return t.get(`kyc-requests/${e}`)},delete({id:e}){return t.delete(`kyc-requests/${e}`)},update({id:e,data:s}){return t.patch(`kyc-requests/${e}`,s)}}}function Et({apiHandler:t}){return{getKycSettings(){return t.get("kyc-settings")},updateKycSettings({data:e}){return t.put("kyc-settings",e)}}}function St({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null,fields:u=null,q:o=null}={}){const l={limit:e,offset:s,filter:r,sort:n,fields:u,q:o};return t.getAll("lists",l)},create({id:e="",data:s}){return t.create(`lists/${e}`,e,s)},getLatestVersion({id:e}){return t.get(`lists/${e}`)},update({id:e,data:s}){return t.put(`lists/${e}`,s)},delete({id:e}){return t.delete(`lists/${e}`)},getByVersion({id:e,version:s}){return t.get(`lists/${e}/${s}`)}}}function It({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("memberships",u)},get({organizationId:e,userId:s}){return t.get(`memberships/${e}/${s}`)},update({organizationId:e,userId:s,data:r}){return t.put(`memberships/${e}/${s}`,r)},delete({organizationId:e,userId:s}){return t.delete(`memberships/${e}/${s}`)}}}function qt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,sort:u=null}={}){const o={limit:e,offset:s,filter:r,q:n,sort:u};return t.getAll("organization-exports",o)},create({data:e}){return t.post("organization-exports",e)},get({id:e}){return t.get(`organization-exports/${e}`)}}}function xt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null,q:u=null}={}){const o={limit:e,offset:s,filter:r,sort:n,q:u};return t.getAll("organizations",o)},create({data:e}){return t.post("organizations",e)},get({id:e}){return t.get(`organizations/${e}`)},update({id:e,data:s}){return t.patch(`organizations/${e}`,s)}}}function Ct({apiHandler:t}){return{getAll({limit:e=null,q:s=null}={}){const r={limit:e,q:s};return t.getAll("payment-cards-bank-names",r)}}}function Pt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null,expand:o=null}={}){const l={filter:e,sort:s,limit:r,offset:n,q:u,expand:o};return t.getAll("payment-instruments",l)},create({data:e}){return t.post("payment-instruments",e)},get({id:e}){return t.get(`payment-instruments/${e}`)},update({id:e,data:s}){return t.patch(`payment-instruments/${e}`,s)},deactivate({id:e}){return t.post(`payment-instruments/${e}/deactivation`)}}}function jt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("payment-methods",r)},get({apiName:e}){return t.get(`payment-methods/${e}`)}}}function Mt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("tokens",r)},create({data:e}){return t.post("tokens",e)},get({token:e}){return t.get(`tokens/${e}`)}}}function Dt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("payout-requests",u)},create({id:e="",data:s}){return t.create(`payout-requests/${e}`,e,s)},get({id:e}){return t.get(`payout-requests/${e}`)},update({id:e,data:s}){return t.put(`payout-requests/${e}`,s)},getPaymentInstruments({id:e}){return t.get(`payout-requests/${e}/payment-instruments`)}}}function Ot({apiHandler:t}){return{create({data:e}){return t.post("payouts",e)}}}function Ft({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("plans",o)},create({id:e="",data:s}){return t.create(`plans/${e}`,e,s)},get({id:e}){return t.get(`plans/${e}`)},update({id:e,data:s}){return t.put(`plans/${e}`,s)},delete({id:e}){return t.delete(`plans/${e}`)}}}function Kt({apiHandler:t}){return{sendEmailRuleAction({data:e}){return t.post("previews/rule-actions/send-email",e)},webhook({data:e}){return t.post("previews/webhooks",e)},order({data:e}){return t.post("previews/orders",e)}}}function Bt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("products",o)},create({id:e="",data:s}){return t.create(`products/${e}`,e,s)},get({id:e}){return t.get(`products/${e}`)},update({id:e,data:s}){return t.put(`products/${e}`,s)},delete({id:e}){return t.delete(`products/${e}`)}}}function Lt({apiHandler:t}){return{startPermissionsEmulation({data:e}){return t.post("permissions-emulation",e)},stopPermissionsEmulation(){return t.delete("permissions-emulation")},get(){return t.get("profile")},update({data:e}){return t.put("profile",e)},getMfa(){return t.get("profile/mfa")},updateMfa(){return t.post("profile/mfa")},deleteMfa(){return t.delete("profile/mfa")}}}function Nt({apiHandler:t}){return{readyToPay({data:e}){return t.post("ready-to-pay",e)}}}function zt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,expand:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,expand:u};return t.getAll("quotes",o)},create({id:e="",data:s}){return t.create(`quotes/${e}`,e,s)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`quotes/${e}`,r)},update({id:e,data:s}){return t.put(`quotes/${e}`,s)},accept({id:e}){return t.post(`quotes/${e}/accept`)},cancel({id:e}){return t.post(`quotes/${e}/cancel`)},issue({id:e}){return t.post(`quotes/${e}/issue`)},recall({id:e}){return t.post(`quotes/${e}/recall`)},reject({id:e}){return t.post(`quotes/${e}/reject`)},getAllTimelineMessages({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`quotes/${e}/timeline`,l)},createTimelineComment({id:e,data:s}){return t.post(`quotes/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`quotes/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`quotes/${e}/timeline/${s}`)},downloadPDF({id:e}){const s={headers:q,responseType:"arraybuffer"};return t.download(`quotes/${e}`,s)}}}function Ut({apiHandler:t}){return{get({resource:e,resourceId:s,service:r}){return t.get(`${e}/${s}/external-identifiers/${r}`)},sync({resource:e,resourceId:s,service:r}){return t.post(`${e}/${s}/external-identifiers/${r}`)},update({resource:e,resourceId:s,service:r,data:n}){return t.put(`${e}/${s}/external-identifiers/${r}`,n)},delete({resource:e,resourceId:s,service:r}){return t.delete(`${e}/${s}/external-identifiers/${r}`)}}}function Vt({apiHandler:t}){return{getAll(){return t.get("risk-score-rules")},updateRiskScoreRules({data:e}){return t.put("risk-score-rules",e)},getAllBlocklistRules(){return t.get("risk-score-rules/blocklists")},updateRiskScoreBlocklistRules({data:e}){return t.put("risk-score-rules/blocklists",e)}}}function Wt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null,q:u=null,expand:o=null}={}){const l={limit:e,offset:s,filter:r,sort:n,q:u,expand:o};return t.getAll("roles",l)},create({id:e="",data:s}){return t.create(`roles/${e}`,e,s)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`roles/${e}`,r)},update({id:e,data:s}){return t.put(`roles/${e}`,s)},delete({id:e}){return t.delete(`roles/${e}`)}}}function Jt({apiHandler:t}){return{get({sort:e=null,limit:s=null,offset:r=null,q:n=null}){const u={sort:e,limit:s,offset:r,q:n};return t.get("search",u)}}}function Gt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("grid-segments",o)},create({id:e="",data:s}){return t.create(`grid-segments/${e}`,e,s)},get({id:e}){return t.get(`grid-segments/${e}`)},update({id:e,data:s}){return t.put(`grid-segments/${e}`,s)},delete({id:e}){return t.delete(`grid-segments/${e}`)}}}function Yt({apiHandler:t}){return{getAll({eventType:e}){return t.getAll(`send-through-attribution/${e}`)}}}function _t({apiHandler:t}){return{getAll({type:e,filter:s=null,limit:r=null,offset:n=null,sort:u=null,q:o=null}){const l={filter:s,limit:r,offset:n,sort:u,q:o};return t.getAll(`service-credentials/${e}`,l)},create({type:e,data:s}){return t.post(`service-credentials/${e}`,s)},get({type:e,id:s}){return t.get(`service-credentials/${e}/${s}`)},update({type:e,id:s,data:r}){return t.patch(`service-credentials/${e}/${s}`,r)},getItems({type:e,id:s,limit:r=null,offset:n=null,filter:u=null,q:o=null,fields:l=null,sort:a=null}){const h={limit:r,offset:n,filter:u,q:o,fields:l,sort:a};return t.getAll(`service-credentials/${e}/${s}/items`,h)}}}function Qt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null,q:u=null}={}){const o={limit:e,offset:s,filter:r,sort:n,q:u};return t.getAll("shipping-rates",o)},create({id:e="",data:s}){return t.create(`shipping-rates/${e}`,e,s)},get({id:e}){return t.get(`shipping-rates/${e}`)},update({id:e,data:s}){return t.put(`shipping-rates/${e}`,s)},delete({id:e}){return t.delete(`shipping-rates/${e}`)}}}function Xt({apiHandler:t}){return{get(){return t.get("status")}}}function Zt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("subscription-cancellations",u)},create({id:e="",data:s}){return t.create(`subscription-cancellations/${e}`,e,s)},get({id:e}){return t.get(`subscription-cancellations/${e}`)},delete({id:e}){return t.delete(`subscription-cancellations/${e}`)},patch({id:e,data:s}){return t.patch(`subscription-cancellations/${e}`,s)}}}function Ht({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("subscription-pauses",u)},pause({id:e="",data:s}){return t.create(`subscription-pauses/${e}`,e,s)},get({id:e}){return t.get(`subscription-pauses/${e}`)},update({id:e,data:s}){return t.put(`subscription-pauses/${e}`,s)},delete({id:e}){return t.delete(`subscription-pauses/${e}`)}}}function es({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("subscription-reactivations",u)},reactivate({data:e}){return t.post("subscription-reactivations",e)},get({id:e}){return t.get(`subscription-reactivations/${e}`)}}}function ts({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null,expand:o=null}={}){const l={filter:e,sort:s,limit:r,offset:n,q:u,expand:o};return t.getAll("subscriptions",l)},create({id:e="",data:s,expand:r=null}){const n={expand:r};return t.create(`subscriptions/${e}`,e,s,n)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`subscriptions/${e}`,r)},update({id:e,data:s,expand:r=null}){const n={expand:r};return t.put(`subscriptions/${e}`,s,n)},delete({id:e}){return t.delete(`subscriptions/${e}`)},void({id:e}){return t.post(`subscriptions/${e}/void`)},changeItems({id:e,data:s}){return t.post(`subscriptions/${e}/change-items`,s)},createInterimInvoice({id:e,data:s}){return t.post(`subscriptions/${e}/interim-invoice`,s)},getAllUpcomingInvoices({id:e,expand:s=null}){const r={expand:s};return t.getAll(`subscriptions/${e}/upcoming-invoices`,r)},getUpcomingInvoice({id:e,expand:s=null}){const r={expand:s};return t.get(`subscriptions/${e}/upcoming-invoice`,r)},issueEarlyUpcomingInvoice({id:e,data:s}){return t.post(`subscriptions/${e}/upcoming-invoice/issue`,s)},issueUpcomingInvoice({id:e,invoiceId:s,data:r}){return t.post(`subscriptions/${e}/upcoming-invoices/${s}/issue`,r)},getAllTimelineMessages({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`subscriptions/${e}/timeline`,l)},createTimelineComment({id:e,data:s}){return t.post(`subscriptions/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`subscriptions/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`subscriptions/${e}/timeline/${s}`)}}}function ss({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,sort:u=null}={}){const o={limit:e,offset:s,filter:r,q:n,sort:u};return t.getAll("tags",o)},create({data:e}){return t.post("tags",e)},get({tag:e}){return t.get(`tags/${e}`)},delete({tag:e}){return t.delete(`tags/${e}`)},update({tag:e,data:s}){return t.patch(`tags/${e}`,s)},tagCustomers({tag:e,data:s}){return t.post(`tags/${e}/customers`,s)},untagCustomers({tag:e,data:s}){return t.delete(`tags/${e}/customers`,s)},tagCustomer({tag:e,customerId:s}){return t.post(`tags/${e}/customers/${s}`)},untagCustomer({tag:e,customerId:s}){return t.delete(`tags/${e}/customers/${s}`)},tagKycDocuments({tag:e,data:s}){return t.post(`tags/${e}/kyc-documents`,s)},untagKycDocuments({tag:e,data:s}){return t.delete(`tags/${e}/kyc-documents`,s)},tagKycDocument({tag:e,kycDocumentId:s}){return t.post(`tags/${e}/kyc-documents/${s}`)},untagKycDocument({tag:e,kycDocumentId:s}){return t.delete(`tags/${e}/kyc-documents/${s}`)},tagAmlChecks({tag:e,data:s}){return t.post(`tags/${e}/aml-checks`,s)},untagAmlChecks({tag:e,data:s}){return t.delete(`tags/${e}/aml-checks`,s)},tagAmlCheck({tag:e,amlCheckId:s}){return t.post(`tags/${e}/aml-checks/${s}`)},untagAmlCheck({tag:e,amlCheckId:s}){return t.delete(`tags/${e}/aml-checks/${s}`)}}}function rs({apiHandler:t}){return{getAllTagsRules({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("tags-rules",o)},createTagsRule({id:e="",data:s}){return t.create(`tags-rules/${e}`,e,s)},getTagsRule({id:e}){return t.get(`tags-rules/${e}`)},updateTagsRule({id:e,data:s}){return t.put(`tags-rules/${e}`,s)},deleteTagsRule({id:e}){return t.delete(`tags-rules/${e}`)}}}function ns({apiHandler:t}){return{getAllApiLogs({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null,expand:o=null}={}){const l={limit:e,offset:s,sort:r,filter:n,q:u,expand:o};return t.getAll("tracking/api",l)},getApiLog({id:e}){return t.get(`tracking/api/${e}`)},getAllTaxTrackingLogs({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("tracking/taxes",o)},getTaxTrackingLog({id:e}){return t.get(`tracking/taxes/${e}`)},getAllListsChangesHistory({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("tracking/lists",o)},getAllWebhookTrackingLogs({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("tracking/webhooks",o)},getWebhookTrackingLog({id:e}){return t.get(`tracking/webhooks/${e}`)},resendWebhook({id:e}){return t.post(`tracking/webhooks/${e}/resend`)}}}function us({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,sort:u=null,expand:o=null}={}){const l={limit:e,offset:s,filter:r,q:n,sort:u,expand:o};return t.getAll("transactions",l)},create({data:e,expand:s=null}){const r={expand:s};return t.post("transactions",e,r)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`transactions/${e}`,r)},patch({id:e,data:s}){return t.patch(`transactions/${e}`,s)},query({id:e}){return t.post(`transactions/${e}/query`)},update({id:e,data:s}){return t.post(`transactions/${e}/update`,s)},refund({id:e,data:s}){return t.post(`transactions/${e}/refund`,s)},getAllTimelineMessages({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`transactions/${e}/timeline`,l)},createTimelineComment({id:e,data:s}){return t.post(`transactions/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`transactions/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`transactions/${e}/timeline/${s}`)}}}function os({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("usages",o)},create({id:e="",data:s}){return t.create(`usages/${e}`,e,s)},get({id:e}){return t.get(`usages/${e}`)},update({id:e,data:s}){return t.put(`usages/${e}`,s)},delete({id:e}){return t.delete(`usages/${e}`)}}}function ls({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("users",o)},create({id:e="",data:s}){return t.create(`users/${e}`,e,s)},get({id:e}){return t.get(`users/${e}`)},update({id:e,data:s}){return t.put(`users/${e}`,s)},getMfa({id:e}){return t.get(`users/${e}/mfa`)}}}function cs({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null}={}){const n={limit:e,offset:s,filter:r};return t.getAll("webhooks",n)},create({id:e="",data:s}){return t.create(`webhooks/${e}`,e,s)},get({id:e}){return t.get(`webhooks/${e}`)},update({id:e,data:s}){return t.put(`webhooks/${e}`,s)}}}function is({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,q:r=null,filter:n=null,sort:u=null}={}){const o={limit:e,offset:s,q:r,filter:n,sort:u};return t.getAll("websites",o)},create({id:e="",data:s}){return t.create(`websites/${e}`,e,s)},get({id:e}){return t.get(`websites/${e}`)},update({id:e,data:s}){return t.put(`websites/${e}`,s)},delete({id:e}){return t.delete(`websites/${e}`)}}}class gs{constructor({apiHandler:e}){this.account=Ne({apiHandler:e}),this.allowlists=ze({apiHandler:e}),this.amlChecks=Ue({apiHandler:e}),this.aml=Ve({apiHandler:e}),this.amlSettings=We({apiHandler:e}),this.apiKeys=Je({apiHandler:e}),this.applicationInstances=Ge({apiHandler:e}),this.applications=Ye({apiHandler:e}),this.balanceTransactions=_e({apiHandler:e}),this.billingPortals=Qe({apiHandler:e}),this.blocklists=Xe({apiHandler:e}),this.broadcastMessages=Ze({apiHandler:e}),this.cashierCustomPropertySets=He({apiHandler:e}),this.cashierRequests=et({apiHandler:e}),this.cashierStrategies=tt({apiHandler:e}),this.checkoutForms=st({apiHandler:e}),this.coupons=rt({apiHandler:e}),this.creditMemos=nt({apiHandler:e}),this.customDomains=ut({apiHandler:e}),this.customFields=ot({apiHandler:e}),this.customerAuthentication=lt({apiHandler:e}),this.customers=ct({apiHandler:e}),this.digitalWallets=it({apiHandler:e}),this.disputes=gt({apiHandler:e}),this.emailDeliverySettings=at({apiHandler:e}),this.emailMessages=mt({apiHandler:e}),this.emailNotifications=ft({apiHandler:e}),this.events=$t({apiHandler:e}),this.externalIdentifiers=ht({apiHandler:e}),this.externalServicesSettings=pt({apiHandler:e}),this.fees=yt({apiHandler:e}),this.files=At({apiHandler:e}),this.gatewayAccounts=Rt({apiHandler:e}),this.integrations=bt({apiHandler:e}),this.invoices=wt({apiHandler:e}),this.journalAccounts=kt({apiHandler:e}),this.journalEntries=dt({apiHandler:e}),this.kycDocuments=Tt({apiHandler:e}),this.kycRequests=vt({apiHandler:e}),this.kycSettings=Et({apiHandler:e}),this.lists=St({apiHandler:e}),this.memberships=It({apiHandler:e}),this.organizationExports=qt({apiHandler:e}),this.organizations=xt({apiHandler:e}),this.paymentCardsBankNames=Ct({apiHandler:e}),this.paymentInstruments=Pt({apiHandler:e}),this.paymentMethods=jt({apiHandler:e}),this.paymentTokens=Mt({apiHandler:e}),this.payoutRequests=Dt({apiHandler:e}),this.payouts=Ot({apiHandler:e}),this.plans=Ft({apiHandler:e}),this.previews=Kt({apiHandler:e}),this.products=Bt({apiHandler:e}),this.profile=Lt({apiHandler:e}),this.purchase=Nt({apiHandler:e}),this.quotes=zt({apiHandler:e}),this.resource=Ut({apiHandler:e}),this.riskScoreRules=Vt({apiHandler:e}),this.roles=Wt({apiHandler:e}),this.search=Jt({apiHandler:e}),this.segments=Gt({apiHandler:e}),this.sendThroughAttribution=Yt({apiHandler:e}),this.serviceCredentials=_t({apiHandler:e}),this.shippingRates=Qt({apiHandler:e}),this.status=Xt({apiHandler:e}),this.subscriptionCancellations=Zt({apiHandler:e}),this.subscriptionPauses=Ht({apiHandler:e}),this.subscriptionReactivations=es({apiHandler:e}),this.subscriptions=ts({apiHandler:e}),this.tags=ss({apiHandler:e}),this.tagsRules=rs({apiHandler:e}),this.tracking=ns({apiHandler:e}),this.transactions=us({apiHandler:e}),this.usages=os({apiHandler:e}),this.users=ls({apiHandler:e}),this.webhooks=cs({apiHandler:e}),this.websites=is({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 as({apiHandler:t}){return{getCustomerLifetimeSummaryMetrics({customerId:e}){return t.get(`customers/${e}/summary-metrics`)}}}function ms({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,expand:n=null,filter:u=null,q:o=null,criteria:l=null}={}){const a={limit:e,offset:s,sort:r,expand:n,filter:u,q:o,criteria:l};return t.getAll("data-exports",a)},queue({id:e="",data:s,expand:r=null}){const n={expand:r};return t.create(`data-exports/${e}`,e,s,n)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`data-exports/${e}`,r)},update({id:e,data:s,expand:r=null}){const n={expand:r};return t.put(`data-exports/${e}`,s,n)},delete({id:e}){return t.delete(`data-exports/${e}`)}}}function fs({apiHandler:t}){return{getTransactionHistogramReport({periodStart:e,periodEnd:s,aggregationPeriod:r,metric:n,filter:u=null}){const o={periodStart:e,periodEnd:s,aggregationPeriod:r,metric:n,filter:u};return t.get("histograms/transactions",o)}}}function $s({apiHandler:t}){return{getApiLogSummary({periodStart:e,periodEnd:s,limit:r=null,offset:n=null}){const u={periodStart:e,periodEnd:s,limit:r,offset:n};return t.get("reports/api-log-summary",u)},getCumulativeSubscriptions({aggregationField:e,periodStart:s,periodEnd:r,limit:n=null,offset:u=null,filter:o=null}){const l={aggregationField:e,periodStart:s,periodEnd:r,limit:n,offset:u,filter:o};return t.get("reports/cumulative-subscriptions",l)},getDashboardMetrics({periodStart:e,periodEnd:s,metrics:r=null,segments:n=null}){const u={periodStart:e,periodEnd:s,metrics:r,segments:n};return t.get("reports/dashboard",u)},getDccMarkup({aggregationField:e,periodStart:s,periodEnd:r,limit:n=null,offset:u=null,filter:o=null}){const l={aggregationField:e,periodStart:s,periodEnd:r,limit:n,offset:u,filter:o};return t.get("reports/dcc-markup",l)},getDisputes({aggregationField:e,periodMonth:s,limit:r=null,offset:n=null,filter:u=null}){const o={aggregationField:e,periodMonth:s,limit:r,offset:n,filter:u};return t.get("reports/disputes",o)},getEventsTriggeredSummary({periodStart:e,periodEnd:s,limit:r=null,offset:n=null}){const u={periodStart:e,periodEnd:s,limit:r,offset:n};return t.get("reports/events-triggered",u)},getTriggeredEventRuleReport({eventType:e,periodStart:s,periodEnd:r,limit:n=null,offset:u=null}){const o={periodStart:s,periodEnd:r,limit:n,offset:u};return t.get(`reports/events-triggered/${e}/rules`,o)},getFutureRenewals({periodStart:e,periodEnd:s,limit:r=null,offset:n=null}){const u={periodStart:e,periodEnd:s,limit:r,offset:n};return t.get("reports/future-renewals",u)},getJournal({currency:e,bookedFrom:s=null,bookedTo:r=null,recognizedAt:n,aggregationField:u,limit:o=null,offset:l=null,filter:a=null}){const h={currency:e,bookedFrom:s,bookedTo:r,recognizedAt:n,aggregationField:u,limit:o,offset:l,filter:a};return t.get("reports/journal",h)},getKycAcceptanceSummary({periodStart:e,periodEnd:s}){const r={periodStart:e,periodEnd:s};return t.get("reports/kyc-acceptance-summary",r)},getKycRejectionSummary({periodStart:e,periodEnd:s}){const r={periodStart:e,periodEnd:s};return t.get("reports/kyc-rejection-summary",r)},getKycRequestSummary({periodStart:e,periodEnd:s}){const r={periodStart:e,periodEnd:s};return t.get("reports/kyc-request-summary",r)},getMonthlyRecurringRevenue({currency:e,periodStart:s,periodEnd:r,limit:n=null,offset:u=null}){const o={currency:e,periodStart:s,periodEnd:r,limit:n,offset:u};return t.get("reports/monthly-recurring-revenue",o)},getRenewalSales({periodStart:e,periodEnd:s,limit:r=null,offset:n=null}){const u={periodStart:e,periodEnd:s,limit:r,offset:n};return t.get("reports/renewal-sales",u)},getRetentionPercentage({aggregationField:e,aggregationPeriod:s,includeSwitchedSubscriptions:r=null,periodStart:n,periodEnd:u,limit:o=null,offset:l=null,filter:a=null,criteria:h=null}){const k={aggregationField:e,aggregationPeriod:s,includeSwitchedSubscriptions:r,periodStart:n,periodEnd:u,limit:o,offset:l,filter:a,criteria:h};return t.get("reports/retention-percentage",k)},getRetentionValue({aggregationField:e,aggregationPeriod:s,includeRefunds:r=null,includeDisputes:n=null,periodStart:u,periodEnd:o,limit:l=null,offset:a=null,filter:h=null,sort:k=null,criteria:D=null}){const O={aggregationField:e,aggregationPeriod:s,includeRefunds:r,includeDisputes:n,periodStart:u,periodEnd:o,limit:l,offset:a,filter:h,sort:k,criteria:D};return t.get("reports/retention-value",O)},getRevenueWaterfall({currency:e,issuedFrom:s,issuedTo:r,recognizedTo:n}){const u={currency:e,issuedFrom:s,issuedTo:r,recognizedTo:n};return t.get("reports/revenue-waterfall",u)},getRevenueAudit({filter:e=null,sort:s=null,limit:r=null,offset:n=null}){const u={filter:e,sort:s,limit:r,offset:n};return t.get("reports/revenue-audit",u)},getSubscriptionCancellation({periodStart:e,periodEnd:s,aggregationField:r,limit:n=null,offset:u=null,filter:o=null}){const l={periodStart:e,periodEnd:s,aggregationField:r,limit:n,offset:u,filter:o};return t.get("reports/subscription-cancellation",l)},getSubscriptionRenewal({periodStart:e,periodEnd:s,limit:r=null,offset:n=null}){const u={periodStart:e,periodEnd:s,limit:r,offset:n};return t.get("reports/subscription-renewal",u)},getTax({periodStart:e,periodEnd:s,accountingMethod:r,limit:n=null,offset:u=null}){const o={periodStart:e,periodEnd:s,accountingMethod:r,limit:n,offset:u};return t.get("reports/tax",o)},getTimeSeriesTransaction({type:e,subaggregate:s,periodStart:r,periodEnd:n,limit:u=null,offset:o=null}){const l={type:e,subaggregate:s,periodStart:r,periodEnd:n,limit:u,offset:o};return t.get("reports/time-series-transaction",l)},getTransactionsTimeDispute({aggregationField:e,periodStart:s,periodEnd:r,limit:n=null,offset:u=null,filter:o=null}){const l={aggregationField:e,periodStart:s,periodEnd:r,limit:n,offset:u,filter:o};return t.get("reports/transactions-time-dispute",l)},getTransactions({periodStart:e,periodEnd:s,aggregationField:r,limit:n=null,offset:u=null,filter:o=null}){const l={periodStart:e,periodEnd:s,aggregationField:r,limit:n,offset:u,filter:o};return t.get("reports/transactions",l)}}}function hs({apiHandler:t}){return{getSubscriptionSummaryMetrics({subscriptionId:e}){return t.get(`subscriptions/${e}/summary-metrics`)}}}function ps({apiHandler:t}){return{getActivityFeed({eventTypes:e=null,limit:s=1e3,offset:r=0}){const n={eventTypes:e,limit:s,offset:r};return t.getAll("activity-feed",n)},getTransaction({id:e="",eventTypes:s=null,limit:r=1e3,offset:n=0}){const u={eventTypes:s,limit:r,offset:n};return t.getAll(`transactions/${e}/timeline`,u)},getCustomer({id:e="",eventTypes:s=null,limit:r=1e3,offset:n=0}){const u={eventTypes:s,limit:r,offset:n};return t.getAll(`customers/${e}/timeline`,u)}}}function ys({apiHandler:t}){return{query(){return t.get("location")}}}const w={CustomersResource:as,DataExportsResource:ms,HistogramsResource:fs,ReportsResource:$s,SubscriptionsResource:hs,TimelinesResource:ps,LocationResource:ys};class As{constructor({apiHandler:e}){this.customers=w.CustomersResource({apiHandler:e}),this.dataExports=w.DataExportsResource({apiHandler:e}),this.histograms=w.HistogramsResource({apiHandler:e}),this.reports=w.ReportsResource({apiHandler:e}),this.subscriptions=w.SubscriptionsResource({apiHandler:e}),this.timelines=w.TimelinesResource({apiHandler:e}),this.location=w.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 Rs({apiHandler:t}){return{get({expand:e=null}={}){const s={expand:e};return t.get("account",s)},update({data:e}){return t.patch("account",e)},requestPasswordReset({data:e}){return t.post("account/forgot-password",e)},changePassword({data:e}){return t.patch("account/password",e)},resendEmailVerification({data:e}){return t.post("account/resend-verification",e)},confirmPasswordReset({token:e,data:s}){return t.post(`account/reset-password/${e}`,s)},verifyEmail({token:e}){return t.post(`account/verification/${e}`)},register({data:e}){return t.post("register",e)}}}function bs({apiHandler:t}){return{login({data:e}){return t.post("login",e)},logout(){return t.post("logout")}}}function ws({apiHandler:t}){return{get({slug:e}){return t.get(`billing-portals/${e}`)}}}function ks({apiHandler:t}){return{create({data:e}){return t.post("cashier-deposit",e)}}}function ds({apiHandler:t}){return{get({id:e,expand:s=null}){const r={expand:s};return t.get(`cashier-requests/${e}`,r)}}}function Ts({apiHandler:t}){return{get({id:e}){return t.get(`cashier-strategies/${e}`)}}}function vs({apiHandler:t}){return{get({id:e}){return t.get(`checkout-forms/${e}`)}}}function Es({apiHandler:t}){return{getAll({resource:e,limit:s=null,offset:r=null}){const n={limit:s,offset:r};return t.getAll(`custom-fields/${e}`,n)}}}function Ss({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("invoices",o)},get({id:e}){return t.get(`invoices/${e}`)},downloadPDF({id:e}){const s={headers:q,responseType:"arraybuffer"};return t.download(`invoices/${e}`,s)}}}function Is({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("kyc-documents",r)},create({data:e}){return t.post("kyc-documents",e)},get({id:e}){return t.get(`kyc-documents/${e}`)},update({id:e,data:s}){return t.patch(`kyc-documents/${e}`,s)}}}function qs({apiHandler:t}){return{get({id:e,expand:s=null}){const r={expand:s};return t.get(`kyc-requests/${e}`,r)}}}function xs({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("orders",o)},get({id:e}){return t.get(`orders/${e}`)},update({id:e,data:s}){return t.patch(`orders/${e}`,s)},cancel({id:e,data:s}){return t.post(`orders/${e}/cancellation`,s)},pause({id:e,data:s}){return t.post(`orders/${e}/pause`,s)}}}function Cs({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("payment-instruments",o)},create({data:e}){return t.post("payment-instruments",e)},get({id:e,limit:s=null,offset:r=null}){const n={limit:s,offset:r};return t.get(`payment-instruments/${e}`,n)},update({id:e,data:s}){return t.patch(`payment-instruments/${e}`,s)},deactivate({id:e}){return t.post(`payment-instruments/${e}/deactivation`)},getSetupTransaction({id:e}){return t.get(`payment-instruments/${e}/setup`)},setup({id:e,data:s}){return t.post(`payment-instruments/${e}/setup`,s)}}}function Ps({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("payout-requests",o)},get({id:e}){return t.get(`payout-requests/${e}`)},update({id:e,data:s}){return t.patch(`payout-requests/${e}`,s)}}}function js({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null,expand:o=null}={}){const l={filter:e,sort:s,limit:r,offset:n,q:u,expand:o};return t.getAll("plans",l)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`plans/${e}`,r)}}}function Ms({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("products",o)},get({id:e}){return t.get(`products/${e}`)}}}function Ds({apiHandler:t}){return{payment({data:e}){return t.post("payment",e)},purchase({data:e}){return t.post("purchase",e)},preview({data:e}){return t.post("preview-purchase",e)},readyToPay({data:e}){return t.post("ready-to-pay",e)}}}function Os({apiHandler:t}){return{get({id:e,expand:s=null}){const r={expand:s};return t.get(`quotes/${e}`,r)},accept({id:e}){return t.post(`quotes/${e}/accept`)},reject({id:e}){return t.post(`quotes/${e}/reject`)},downloadPDF({id:e}){const s={headers:q,responseType:"arraybuffer"};return t.download(`quotes/${e}`,s)}}}function Fs({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,sort:u=null}={}){const o={limit:e,offset:s,filter:r,q:n,sort:u};return t.getAll("transactions",o)},get({id:e}){return t.get(`transactions/${e}`)},finishKyc({id:e,token:s}){return t.post(`transactions/${e}/${s}/continue`)},skipKyc({id:e,token:s}){return t.post(`transactions/${e}/${s}/bypass`)},update({id:e,data:s}){return t.patch(`transactions/${e}`,s)}}}function Ks({apiHandler:t}){return{get({id:e}){return t.get(`websites/${e}`)}}}class Bs{constructor({apiHandler:e}){this.account=Rs({apiHandler:e}),this.authorization=bs({apiHandler:e}),this.billingPortals=ws({apiHandler:e}),this.cashierDeposit=ks({apiHandler:e}),this.cashierRequests=ds({apiHandler:e}),this.cashierStrategies=Ts({apiHandler:e}),this.checkoutForms=vs({apiHandler:e}),this.customFields=Es({apiHandler:e}),this.invoices=Ss({apiHandler:e}),this.kycDocuments=Is({apiHandler:e}),this.kycRequests=qs({apiHandler:e}),this.orders=xs({apiHandler:e}),this.paymentInstruments=Cs({apiHandler:e}),this.payoutRequests=Ps({apiHandler:e}),this.plans=js({apiHandler:e}),this.products=Ms({apiHandler:e}),this.purchase=Ds({apiHandler:e}),this.quotes=Os({apiHandler:e}),this.transactions=Fs({apiHandler:e}),this.websites=Ks({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 Ls({apiHandler:t}){return new gs({apiHandler:t})}function Ns({apiHandler:t}){return new As({apiHandler:t})}function zs({apiHandler:t}){return new Bs({apiHandler:t})}const j={live:"https://api.rebilly.com",sandbox:"https://api-sandbox.rebilly.com"},M=6e3;function W({apiKey:t=null,sandbox:e=!1,timeout:s=M,organizationId:r=null,urls:n=j}={}){if(!n.live||!n.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof n.live!="string"||typeof n.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const o=P({options:{apiEndpoints:n,apiKey:t,apiVersion:"",isSandbox:e,requestTimeout:s,jwt:null,organizationId:r}});return Ls({apiHandler:o})}function Us({apiKey:t=null,sandbox:e=!1,timeout:s=M,organizationId:r=null,urls:n=j}={}){if(!n.live||!n.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof n.live!="string"||typeof n.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const o=P({options:{apiEndpoints:n,apiKey:t,apiVersion:"experimental",isSandbox:e,requestTimeout:s,jwt:null,organizationId:r}});return Ns({apiHandler:o})}function Vs({publishableKey:t=null,jwt:e=null,sandbox:s=!1,timeout:r=M,organizationId:n=null,urls:u=j}={}){if(!u.live||!u.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof u.live!="string"||typeof u.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const o={apiEndpoints:u,publishableKey:t,jwt:e,apiVersion:"storefront",isSandbox:s,requestTimeout:r,organizationId:n},l=P({options:o});return l.setSessionToken(o.jwt),zs({apiHandler:l})}f.RebillyAPI=W,f.RebillyErrors=p,f.RebillyExperimentalAPI=Us,f.RebillyStorefrontAPI=Vs,f.cancellation=Le,f.default=W,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
16
|
+
*/var Ie=Se;function U(t){return Ie(t)===!0&&Object.prototype.toString.call(t)==="[object Object]"}var qe=function(e){var s,r;return!(U(e)===!1||(s=e.constructor,typeof s!="function")||(r=s.prototype,U(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};const xe=Ee,Ce=L,Pe=qe;function C(t,e){switch(Ce(t)){case"object":return je(t,e);case"array":return Me(t,e);default:return xe(t)}}function je(t,e){if(typeof e=="function")return e(t);if(e||Pe(t)){const s=new t.constructor;for(let r in t)s[r]=C(t[r],e);return s}return t}function Me(t,e){const s=new t.constructor(t.length);for(let r=0;r<t.length;r++)s[r]=C(t[r],e);return s}var De=C;const Oe="51.7.0";let Fe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ke=(t=21)=>{let e="",s=t;for(;s--;)e+=Fe[Math.random()*64|0];return e};class Be{constructor({id:e=null,created:s=null}={}){this.id=e||Ke(),this.created=s||new Date().getTime(),this.cancelSource=x.default.CancelToken.source(),this.cancel=this.cancelSource.cancel,this.cancelToken=this.cancelSource.token,S(this,{exclude:["cancelSource","cancelToken","cancel"]})}}class v{constructor(){if(v.instance)return v.instance;this.requests={},v.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 Be;return this.requests[e.id]=e,{id:e.id,cancelToken:e.cancelToken}}}var T=new v;class I{}F(I,"cancelById",(e,s)=>{try{T.getById(e).cancel(s),T.deleteById(e)}catch{}}),F(I,"cancelAll",e=>T.getAll().forEach(s=>{s.cancel(e),T.deleteById(s.id)}));var Le={cancelAll:(...t)=>I.cancelAll(...t)};const b={request:"request",response:"response"},V=t=>{if(!Object.values(b).includes(t))throw new Error(`There is no such interceptor type as "${t}"`);return!0};function P({options:t}){const e=s();function s(){return x.default.create(n())}function r(){return e}function n(){return{baseURL:u(),timeout:t.requestTimeout,headers:o()}}function u(){let c=t.isSandbox?t.apiEndpoints.sandbox:t.apiEndpoints.live;return t.apiVersion&&(c=`${c}/${t.apiVersion}`),t.organizationId&&(c=`${c}/organizations/${t.organizationId}`),`${c}`}function o(){const c={"REB-API-CONSUMER":`RebillySDK/JS-SDK ${Oe}`};return t.apiKey&&(c["REB-APIKEY"]=t.apiKey),c}function l(){return De(e.defaults.headers)}function a(c){t.requestTimeout=Number(c),e.defaults.timeout=t.requestTimeout}function h(c=t.jwt){const i=l();t.apiKey=null,t.jwt=c,delete i.common["REB-APIKEY"],i.common.Authorization=`Bearer ${c}`,e.defaults.headers=i}function k(c=t.publishableKey){const i=l();t.publishableKey=c,i.common.Authorization=`${c}`,e.defaults.headers=i}function D({host:c,port:i,auth:g}){e.defaults.proxy={host:c,port:i,auth:g}}function O({live:c=null,sandbox:i=null}){c&&(t.apiEndpoints.live=c),i&&(t.apiEndpoints.sandbox=i),e.defaults.baseURL=u()}function J(c,{thenDelegate:i,catchDelegate:g=()=>{}}){return V(c)&&e.interceptors[b[c]].use(i,g)}function G(c,i){return V(c)&&e.interceptors[b[c]].eject(i)}function Vs({thenDelegate:c,catchDelegate:i=()=>{}}){return J(b.request,{thenDelegate:c,catchDelegate:i})}function Ws(c){G(b.request,c)}function Js({thenDelegate:c,catchDelegate:i=()=>{}}){return J(b.response,{thenDelegate:c,catchDelegate:i})}function Gs(c){G(b.response,c)}function d({request:c,isCollection:i,config:g}){const m=_(g),{id:A,cancelToken:sr}=T.save();m.cancelToken=sr;const H=async function(){try{const E=await c(m);return Ys({response:E,isCollection:i,config:m})}catch(E){return Y({error:E,config:m})}finally{T.deleteById(A)}}();return H.cancel=E=>I.cancelById(A,E),H}function Ys({response:c,isCollection:i,config:g}){return i?new ee(c,g):new K(c,g)}function Y({error:c}){if(x.default.isCancel(c))throw new p.RebillyCanceledError(c);if(c.response)switch(Number(c.response.status)){case 401:throw new p.RebillyForbiddenError(c);case 404:throw new p.RebillyNotFoundError(c);case 405:throw new p.RebillyMethodNotAllowedError(c);case 409:throw new p.RebillyConflictError(c);case 422:throw new p.RebillyValidationError(c);default:throw new p.RebillyRequestError(c)}throw c.code==="ECONNABORTED"?new p.RebillyTimeoutError(c):new p.RebillyRequestError(c)}function _s(c){return c.params!==void 0&&(c.params=Object.keys(c.params).filter(i=>c.params[i]!==null&&c.params[i]!=="").reduce((i,g)=>(i[g]=c.params[g],i),{})),c}function _(c={}){return{..._s(c)}}function Q(c,i={}){return d({request:g=>e.get(c,g),config:{params:i}})}function Qs(c,i){return d({request:g=>e.get(c,g),config:{params:i},isCollection:!0})}function X(c,i,g={}){let m={};return g.authenticate===!1&&(m={headers:l()},delete m.headers.common["REB-APIKEY"],delete m.headers.common.Authorization),g.params&&(m.params={...g.params}),d({request:A=>e.post(c,i,A),config:m})}function Z(c,i,g={}){return d({request:m=>e.put(c,i,m),config:{params:g}})}function Xs(c,i){return d({request:g=>e.patch(c,i,g),config:{}})}function Zs(c){return d({request:i=>e.delete(c,i),config:{}})}function Hs(c,i){return d({request:g=>e.delete(c,g),config:{data:{...i}}})}async function er(c,i,g,m={}){if(i==="")return X(c,g,{params:m});try{if((await Q(c)).response.status===200)throw new p.RebillyConflictError({message:"A resource already exists with this ID. Please use a different ID."})}catch(A){if(A.name==="RebillyNotFoundError")return Z(c,g,m);throw A}}async function tr(c,i){const g=_(i);try{const m=await e.get(c,g);return new te(m,g)}catch(m){return Y({error:m,config:g})}}return{getInstance:r,addRequestInterceptor:Vs,removeRequestInterceptor:Ws,addResponseInterceptor:Js,removeResponseInterceptor:Gs,setTimeout:a,setProxyAgent:D,setSessionToken:h,setPublishableKey:k,setEndpoints:O,get:Q,getAll:Qs,post:X,put:Z,patch:Xs,delete:Zs,deleteAll:Hs,create:er,download:tr}}function Ne({apiHandler:t}){return{forgotPassword({data:e}){return t.post("forgot-password",e,{authenticate:!1})}}}function ze({apiHandler:t}){return{getAllowlistCollection({filter:e=null,sort:s=null,limit:r=null,offset:n=null}={}){const u={filter:e,sort:s,limit:r,offset:n};return t.getAll("allowlists",u)},storeAllowlist({data:e}){return t.post("allowlists",e)},getAllowlist({id:e}){return t.get(`allowlists/${e}`)},delete({id:e}){return t.delete(`allowlists/${e}`)}}}function Ue({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("aml-checks",o)},get({id:e}){return t.get(`aml-checks/${e}`)},review({id:e,data:s}){return t.post(`aml-checks/${e}/review`,s)}}}function Ve({apiHandler:t}){return{getAmlSettings(){return t.get("aml-settings")},putAmlSettings({data:e}){return t.put("aml-settings",e)}}}function We({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null}={}){const n={limit:e,offset:s,sort:r};return t.getAll("api-keys",n)},create({id:e="",data:s}){return t.create(`api-keys/${e}`,e,s)},get({id:e}){return t.get(`api-keys/${e}`)},update({id:e,data:s}){return t.put(`api-keys/${e}`,s)},delete({id:e}){return t.delete(`api-keys/${e}`)}}}function Je({apiHandler:t}){return{get({applicationId:e}){return t.get(`application-instances/${e}`)},upsert({applicationId:e,data:s}){return t.put(`application-instances/${e}`,s)},delete({applicationId:e}){return t.delete(`application-instances/${e}`)},getConfiguration({applicationId:e}){return t.get(`application-instances/${e}/configuration`)},upsertConfiguration({applicationId:e,data:s}){return t.put(`application-instances/${e}/configuration`,s)}}}function Ge({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,expand:u=null,fields:o=null,sort:l=null}={}){const a={limit:e,offset:s,filter:r,q:n,expand:u,fields:o,sort:l};return t.getAll("applications",a)},create({data:e}){return t.post("applications",e)},get({id:e}){return t.get(`applications/${e}`)},getInstances({id:e,limit:s=null,offset:r=null}){const n={limit:s,offset:r};return t.getAll(`applications/${e}/instances`,n)},getInstance({id:e,organizationId:s}){return t.get(`applications/${e}/instances/${s}`)}}}function Ye({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("balance-transactions",u)},get({id:e}){return t.get(`balance-transactions/${e}`)}}}function _e({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("billing-portals",o)},create({id:e="",data:s}){return t.create(`billing-portals/${e}`,e,s)},get({id:e}){return t.get(`billing-portals/${e}`)},update({id:e,data:s}){return t.put(`billing-portals/${e}`,s)},delete({id:e}){return t.delete(`billing-portals/${e}`)}}}function Qe({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("blocklists",o)},create({id:e="",data:s}){return t.create(`blocklists/${e}`,e,s)},get({id:e}){return t.get(`blocklists/${e}`)},delete({id:e}){return t.delete(`blocklists/${e}`)}}}function Xe({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null}={}){const u={limit:e,offset:s,sort:r,filter:n};return t.getAll("broadcast-messages",u)},create({data:e}){return t.post("broadcast-messages",e)},get({id:e}){return t.get(`broadcast-messages/${e}`)},delete({id:e}){return t.delete(`broadcast-messages/${e}`)},update({id:e,data:s}){return t.patch(`broadcast-messages/${e}`,s)}}}function Ze({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("cashier-custom-property-sets",u)},create({id:e="",data:s}){return t.create(`cashier-custom-property-sets/${e}`,e,s)},get({id:e}){return t.get(`cashier-custom-property-sets/${e}`)},update({id:e,data:s}){return t.put(`cashier-custom-property-sets/${e}`,s)},delete({id:e}){return t.delete(`cashier-custom-property-sets/${e}`)}}}function He({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("cashier-requests",u)},create({data:e}){return t.post("cashier-requests",e)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`cashier-requests/${e}`,r)}}}function et({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("cashier-strategies",u)},create({id:e="",data:s}){return t.create(`cashier-strategies/${e}`,e,s)},get({id:e}){return t.get(`cashier-strategies/${e}`)},update({id:e,data:s}){return t.put(`cashier-strategies/${e}`,s)},delete({id:e}){return t.delete(`cashier-strategies/${e}`)}}}function tt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("checkout-forms",o)},create({id:e="",data:s}){return t.create(`checkout-forms/${e}`,e,s)},get({id:e}){return t.get(`checkout-forms/${e}`)},update({id:e,data:s}){return t.put(`checkout-forms/${e}`,s)},delete({id:e}){return t.delete(`checkout-forms/${e}`)}}}function st({apiHandler:t}){return{getAllRedemptions({limit:e=null,offset:s=null,filter:r=null,q:n=null,sort:u=null}={}){const o={limit:e,offset:s,filter:r,q:n,sort:u};return t.getAll("coupons-redemptions",o)},redeem({data:e}){return t.post("coupons-redemptions",e)},getRedemption({id:e}){return t.get(`coupons-redemptions/${e}`)},cancelRedemption({id:e}){return t.post(`coupons-redemptions/${e}/cancel`)},getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,sort:u=null}={}){const o={limit:e,offset:s,filter:r,q:n,sort:u};return t.getAll("coupons",o)},create({id:e="",data:s}){return t.create(`coupons/${e}`,e,s)},get({id:e}){return t.get(`coupons/${e}`)},update({id:e,data:s}){return t.put(`coupons/${e}`,s)},setExpiration({id:e,data:s}){return t.post(`coupons/${e}/expiration`,s)}}}function rt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("credit-memos",o)},create({id:e="",data:s}){return t.create(`credit-memos/${e}`,e,s)},get({id:e}){return t.get(`credit-memos/${e}`)},update({id:e,data:s}){return t.put(`credit-memos/${e}`,s)},patch({id:e,data:s}){return t.patch(`credit-memos/${e}`,s)},void({id:e}){return t.post(`credit-memos/${e}/void`)},getAllTimelineMessages({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`credit-memos/${e}/timeline`,l)},createTimelineComment({id:e,data:s}){return t.post(`credit-memos/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`credit-memos/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`credit-memos/${e}/timeline/${s}`)}}}function nt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("custom-domains",o)},create({data:e}){return t.post("custom-domains",e)},get({domain:e}){return t.get(`custom-domains/${e}`)},delete({domain:e}){return t.delete(`custom-domains/${e}`)}}}function ut({apiHandler:t}){return{getAll({resource:e,limit:s=null,offset:r=null}){const n={limit:s,offset:r};return t.getAll(`custom-fields/${e}`,n)},get({resource:e,name:s}){return t.get(`custom-fields/${e}/${s}`)},create({resource:e,name:s,data:r}){return t.put(`custom-fields/${e}/${s}`,r)},update({resource:e,name:s,data:r}){return t.put(`custom-fields/${e}/${s}`,r)}}}function ot({apiHandler:t}){return{getAuthOptions(){return t.get("authentication-options")},updateAuthOptions({data:e}){return t.put("authentication-options",e)},getAllAuthTokens({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("authentication-tokens",r)},login({data:e}){return t.post("authentication-tokens",e)},verify({token:e}){return t.get(`authentication-tokens/${e}`)},logout({token:e}){return t.delete(`authentication-tokens/${e}`)},exchangeToken({token:e,data:s}){return t.post(`authentication-tokens/${e}/exchange`,s)},getAllCredentials({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("credentials",r)},createCredential({id:e="",data:s}){return t.create(`credentials/${e}`,e,s)},getCredential({id:e}){return t.get(`credentials/${e}`)},updateCredential({id:e,data:s}){return t.put(`credentials/${e}`,s)},deleteCredential({id:e}){return t.delete(`credentials/${e}`)},getAllResetPasswordTokens({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("password-tokens",r)},createResetPasswordToken({data:e}){return t.post("password-tokens",e)},getResetPasswordToken({id:e}){return t.get(`password-tokens/${e}`)},deleteResetPasswordToken({id:e}){return t.delete(`password-tokens/${e}`)}}}function lt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,expand:u=null,fields:o=null,sort:l=null}={}){const a={limit:e,offset:s,filter:r,q:n,expand:u,fields:o,sort:l};return t.getAll("customers",a)},create({id:e="",data:s,expand:r=null}){const n={expand:r};return t.create(`customers/${e}`,e,s,n)},get({id:e,expand:s=null,fields:r=null}){const n={expand:s,fields:r};return t.get(`customers/${e}`,n)},update({id:e,data:s,expand:r=null}){const n={expand:r};return t.put(`customers/${e}`,s,n)},merge({id:e,targetCustomerId:s}){return t.delete(`customers/${e}?targetCustomerId=${s}`)},getAml({id:e}){return t.get(`customers/${e}/aml`)},getLeadSource({id:e}){return t.get(`customers/${e}/lead-source`)},createLeadSource({id:e,data:s}){return t.put(`customers/${e}/lead-source`,s)},updateLeadSource({id:e,data:s}){return t.put(`customers/${e}/lead-source`,s)},deleteLeadSource({id:e}){return t.delete(`customers/${e}/lead-source`)},getAllTimelineMessages({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`customers/${e}/timeline`,l)},createTimelineComment({id:e,data:s}){return t.post(`customers/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`customers/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`customers/${e}/timeline/${s}`)},getCustomerEddScore({id:e}){return t.get(`customers/${e}/edd-score`)},patchCustomerEddScore({id:e,data:s}){return t.patch(`customers/${e}/edd-score`,s)},getEddTimelineCollection({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`customers/${e}/edd-timeline`,l)},createEddTimelineComment({id:e,data:s}){return t.post(`customers/${e}/edd-timeline`,s)},getEddTimelineMessage({id:e,messageId:s}){return t.get(`customers/${e}/edd-timeline/${s}`)},deleteEddTimelineMessage({id:e,messageId:s}){return t.delete(`customers/${e}/edd-timeline/${s}`)},getAllEddSearchResults({id:e,limit:s=null,offset:r=null}){const n={limit:s,offset:r};return t.getAll(`customers/${e}/edd-search-results`,n)},getEddSearchResult({id:e,searchResultId:s}){return t.get(`customers/${e}/edd-search-results/${s}`)}}}function ct({apiHandler:t}){return{create({data:e}){return t.post("digital-wallets/onboarding/apple-pay",e)},validate({data:e}){return t.post("digital-wallets/validation",e)}}}function it({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null,expand:o=null}={}){const l={filter:e,sort:s,limit:r,offset:n,q:u,expand:o};return t.getAll("disputes",l)},create({id:e="",data:s,expand:r=null}){const n={expand:r};return t.create(`disputes/${e}`,e,s,n)},get({id:e}){return t.get(`disputes/${e}`)},update({id:e,data:s,expand:r=null}){const n={expand:r};return t.put(`disputes/${e}`,s,n)}}}function gt({apiHandler:t}){return{verify({token:e}){return t.put(`email-delivery-setting-verifications/${e}`)},getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null,q:u=null}={}){const o={limit:e,offset:s,filter:r,sort:n,q:u};return t.getAll("email-delivery-settings",o)},create({data:e}){return t.post("email-delivery-settings",e)},get({id:e}){return t.get(`email-delivery-settings/${e}`)},delete({id:e}){return t.delete(`email-delivery-settings/${e}`)},update({id:e,data:s}){return t.patch(`email-delivery-settings/${e}`,s)},resendVerification({id:e}){return t.post(`email-delivery-settings/${e}/resend-email-verification`)}}}function at({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,q:r=null,sort:n=null,filter:u=null}={}){const o={limit:e,offset:s,q:r,sort:n,filter:u};return t.getAll("email-messages",o)},create({data:e}){return t.post("email-messages",e)},get({id:e}){return t.get(`email-messages/${e}`)},delete({id:e}){return t.delete(`email-messages/${e}`)},send({id:e,data:s={status:"outbox"}}){return t.patch(`email-messages/${e}`,s)}}}function mt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("email-notifications",r)}}}function ft({apiHandler:t}){return{getAll(){return t.getAll("events")},get({eventType:e}){return t.get(`events/${e}`)},getRules({eventType:e}){return t.get(`events/${e}/rules`)},createRules({eventType:e,data:s}){return t.put(`events/${e}/rules`,s)},updateRules({eventType:e,data:s}){return t.put(`events/${e}/rules`,s)},getAllTimelineMessages({eventType:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`events/${e}/timeline`,l)},createTimelineComment({eventType:e,data:s}){return t.post(`events/${e}/timeline`,s)},getTimelineMessage({eventType:e,messageId:s}){return t.get(`events/${e}/timeline/${s}`)},deleteTimelineMessage({eventType:e,messageId:s}){return t.delete(`events/${e}/timeline/${s}`)},getRulesHistory({eventType:e,limit:s=null,offset:r=null,filter:n=null,q:u=null,sort:o=null,fields:l=null}){const a={limit:s,offset:r,filter:n,q:u,sort:o,fields:l};return t.getAll(`events/${e}/rules/history`,a)},getRulesVersionNumber({eventType:e,version:s,fields:r=null}){const n={fields:r};return t.get(`events/${e}/rules/history/${s}`,n)},getRulesVersionDetail({eventType:e,version:s,fields:r=null}){const n={fields:r};return t.get(`events/${e}/rules/versions/${s}`,n)},getAllDraftRulesets({eventType:e,limit:s=null,offset:r=null,filter:n=null,q:u=null,sort:o=null,fields:l=null}){const a={limit:s,offset:r,filter:n,q:u,sort:o,fields:l};return t.getAll(`events/${e}/rules/drafts`,a)},createDraftRuleset({eventType:e,data:s}){return t.post(`events/${e}/rules/drafts`,s)},getDraftRuleset({eventType:e,id:s,fields:r=null}){const n={fields:r};return t.get(`events/${e}/rules/drafts/${s}`,n)},updateDraftRuleset({eventType:e,id:s,data:r}){return t.put(`events/${e}/rules/drafts/${s}`,r)},deleteDraftRuleset({eventType:e,id:s}){return t.delete(`events/${e}/rules/drafts/${s}`)}}}function $t({apiHandler:t}){return{get({resource:e,resourceId:s,service:r}){return t.get(`${e}/${s}/external-identifiers/${r}`)},sync({resource:e,resourceId:s,service:r}){return t.post(`${e}/${s}/external-identifiers/${r}`)},update({resource:e,resourceId:s,service:r,data:n}){return t.put(`${e}/${s}/external-identifiers/${r}`,n)},delete({resource:e,resourceId:s,service:r}){return t.delete(`${e}/${s}/external-identifiers/${r}`)}}}function ht({apiHandler:t}){return{getExternalServiceSettings(){return t.get("external-services-settings")},updateExternalServiceSettings({data:e}){return t.put("external-services-settings",e)}}}function pt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("fees",u)},create({id:e="",data:s}){return t.create(`fees/${e}`,e,s)},get({id:e}){return t.get(`fees/${e}`)},upsert({id:e,data:s}){return t.put(`fees/${e}`,s)},delete({id:e}){return t.delete(`fees/${e}`)},patch({id:e,data:s}){return t.patch(`fees/${e}`,s)}}}function yt({apiHandler:t}){return{getAllAttachments({limit:e=null,offset:s=null,filter:r=null,q:n=null,expand:u=null,fields:o=null,sort:l=null}={}){const a={limit:e,offset:s,filter:r,q:n,expand:u,fields:o,sort:l};return t.getAll("attachments",a)},attach({id:e="",data:s,expand:r=null}){const n={expand:r};return t.create(`attachments/${e}`,e,s,n)},getAttachment({id:e}){return t.get(`attachments/${e}`)},updateAttachment({id:e,data:s,expand:r=null}){const n={expand:r};return t.put(`attachments/${e}`,s,n)},detach({id:e}){return t.delete(`attachments/${e}`)},getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,fields:u=null,sort:o=null}={}){const l={limit:e,offset:s,filter:r,q:n,fields:u,sort:o};return t.getAll("files",l)},upload({fileObject:e}){return t.post("files",e)},get({id:e}){return t.get(`files/${e}`)},update({id:e,data:s}){return t.put(`files/${e}`,s)},delete({id:e}){return t.delete(`files/${e}`)},download({id:e}){const s={responseType:"arraybuffer"};return t.download(`files/${e}/download`,s)},detachAndDelete({id:e}){const s={filter:`fileId:${e}`};let r=[];const u=(async()=>{const o=this.getAllAttachments(s);r.push(o);const a=(await o).items.map(k=>this.detach({id:k.fields.id}));r=[...r,a],await Promise.all(a);const h=t.delete(`files/${e}`);return r.push(h),h})();return u.cancel=()=>{r.forEach(o=>o.cancel())},u},uploadAndUpdate({fileObject:e,data:s={description:"",tags:[""]}}){const r=[],u=(async()=>{const o=this.upload({fileObject:e});r.push(o),await o;const l={name:o.name,extension:o.extension,description:s.description,tags:s.tags,url:""},a=this.update({id:o.fields.id,data:l});return r.push(a),a})();return u.cancel=()=>{r.forEach(o=>o.cancel())},u}}}function At({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null,fields:o=null}={}){const l={limit:e,offset:s,sort:r,filter:n,q:u,fields:o};return t.getAll("gateway-accounts",l)},create({id:e="",data:s}){return t.create(`gateway-accounts/${e}`,e,s)},get({id:e}){return t.get(`gateway-accounts/${e}`)},update({id:e,data:s}){return t.patch(`gateway-accounts/${e}`,s)},delete({id:e}){return t.delete(`gateway-accounts/${e}`)},close({id:e}){return t.post(`gateway-accounts/${e}/close`)},disable({id:e}){return t.post(`gateway-accounts/${e}/disable`)},getAllDowntimeSchedules({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null}){const o={limit:s,offset:r,filter:n,sort:u};return t.getAll(`gateway-accounts/${e}/downtime-schedules`,o)},createDowntimeSchedule({id:e,data:s}){return t.post(`gateway-accounts/${e}/downtime-schedules`,s)},getDowntimeSchedule({id:e,downtimeId:s}){return t.get(`gateway-accounts/${e}/downtime-schedules/${s}`)},updateDowntimeSchedule({id:e,downtimeId:s,data:r}){return t.put(`gateway-accounts/${e}/downtime-schedules/${s}`,r)},deleteDowntimeSchedule({id:e,downtimeId:s}){return t.delete(`gateway-accounts/${e}/downtime-schedules/${s}`)},enable({id:e}){return t.post(`gateway-accounts/${e}/enable`)},getAllVolumeLimits({id:e}){return t.getAll(`gateway-accounts/${e}/limits`)},getVolumeLimit({id:e,limitId:s}){return t.get(`gateway-accounts/${e}/limits/${s}`)},updateVolumeLimit({id:e,limitId:s,data:r}){return t.put(`gateway-accounts/${e}/limits/${s}`,r)},deleteVolumeLimit({id:e,limitId:s}){return t.delete(`gateway-accounts/${e}/limits/${s}`)},getAllTimelineMessages({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`gateway-accounts/${e}/timeline`,l)},createTimelineComment({id:e,data:s}){return t.post(`gateway-accounts/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`gateway-accounts/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`gateway-accounts/${e}/timeline/${s}`)},checkCredentials({id:e}){return t.post(`gateway-accounts/${e}/check-credentials`)},getFinancialSettings({id:e}){return t.get(`gateway-accounts/${e}/financial-settings`)},setFinancialSettings({id:e,data:s}){return t.put(`gateway-accounts/${e}/financial-settings`,s)}}}function Rt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("integrations",r)},get({label:e}){return t.get(`integrations/${e}`)}}}const q={Accept:"application/pdf"};function bt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null,expand:o=null}={}){const l={filter:e,sort:s,limit:r,offset:n,q:u,expand:o};return t.getAll("invoices",l)},create({id:e="",data:s}){return t.create(`invoices/${e}`,e,s)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`invoices/${e}`,r)},update({id:e,data:s}){return t.put(`invoices/${e}`,s)},getAllInvoiceItems({id:e,limit:s=null,offset:r=null,expand:n=null}){const u={limit:s,offset:r,expand:n};return t.getAll(`invoices/${e}/items`,u)},createInvoiceItem({id:e,data:s}){return t.post(`invoices/${e}/items`,s)},getInvoiceItem({id:e,itemId:s}){return t.get(`invoices/${e}/items/${s}`)},updateInvoiceItem({id:e,itemId:s,data:r}){return t.put(`invoices/${e}/items/${s}`,r)},deleteInvoiceItem({id:e,itemId:s}){return t.delete(`invoices/${e}/items/${s}`)},issue({id:e,data:s}){return t.post(`invoices/${e}/issue`,s)},abandon({id:e}){return t.post(`invoices/${e}/abandon`)},void({id:e}){return t.post(`invoices/${e}/void`)},recalculate({id:e}){return t.post(`invoices/${e}/recalculate`)},reissue({id:e,data:s}){return t.post(`invoices/${e}/reissue`,s)},getAllTransactionAllocations({id:e,limit:s=null,offset:r=null}){const n={limit:s,offset:r};return t.getAll(`invoices/${e}/transaction-allocations`,n)},applyTransaction({id:e,data:s}){return t.post(`invoices/${e}/transaction`,s)},getAllTimelineMessages({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`invoices/${e}/timeline`,l)},createTimelineComment({id:e,data:s}){return t.post(`invoices/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`invoices/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`invoices/${e}/timeline/${s}`)},downloadPDF({id:e}){const s={headers:q,responseType:"arraybuffer"};return t.download(`invoices/${e}`,s)}}}function wt({apiHandler:t}){return{getAllAccounts({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("journal-accounts",u)},createAccount({id:e="",data:s}){return t.create(`journal-accounts/${e}`,e,s)},getAccount({id:e}){return t.get(`journal-accounts/${e}`)},updateAccount({id:e,data:s}){return t.put(`journal-accounts/${e}`,s)}}}function kt({apiHandler:t}){return{getAllEntries({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("journal-entries",u)},createEntry({id:e="",data:s}){return t.create(`journal-entries/${e}`,e,s)},getEntry({id:e}){return t.get(`journal-entries/${e}`)},updateEntry({id:e,data:s}){return t.put(`journal-entries/${e}`,s)},getAllRecords({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,expand:o=null}){const l={limit:s,offset:r,filter:n,sort:u,expand:o};return t.getAll(`journal-entries/${e}/records`,l)},createRecord({id:e,data:s}){return t.post(`journal-entries/${e}/records`,s)},getRecord({id:e,journalRecordId:s}){return t.get(`journal-entries/${e}/records/${s}`)},updateRecord({id:e,journalRecordId:s,data:r}){return t.put(`journal-entries/${e}/records/${s}`,r)},deleteRecord({id:e,journalRecordId:s}){return t.delete(`journal-entries/${e}/records/${s}`)}}}function dt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null,expand:u=null}={}){const o={limit:e,offset:s,filter:r,sort:n,expand:u};return t.getAll("kyc-documents",o)},create({id:e="",data:s}){return t.create(`kyc-documents/${e}`,e,s)},get({id:e}){return t.get(`kyc-documents/${e}`)},update({id:e,data:s}){return t.put(`kyc-documents/${e}`,s)},accept({id:e}){return t.post(`kyc-documents/${e}/acceptance`)},matches({id:e,data:s}){return t.post(`kyc-documents/${e}/matches`,s)},reject({id:e,data:s}){return t.post(`kyc-documents/${e}/rejection`,s)},review({id:e}){return t.post(`kyc-documents/${e}/review`)},startReview({id:e}){return t.post(`kyc-documents/${e}/start-review`)},stopReview({id:e}){return t.post(`kyc-documents/${e}/stop-review`)}}}function Tt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("kyc-requests",u)},create({data:e}){return t.post("kyc-requests",e)},get({id:e}){return t.get(`kyc-requests/${e}`)},delete({id:e}){return t.delete(`kyc-requests/${e}`)},update({id:e,data:s}){return t.patch(`kyc-requests/${e}`,s)}}}function vt({apiHandler:t}){return{getKycSettings(){return t.get("kyc-settings")},updateKycSettings({data:e}){return t.put("kyc-settings",e)}}}function Et({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null,fields:u=null,q:o=null}={}){const l={limit:e,offset:s,filter:r,sort:n,fields:u,q:o};return t.getAll("lists",l)},create({id:e="",data:s}){return t.create(`lists/${e}`,e,s)},getLatestVersion({id:e}){return t.get(`lists/${e}`)},update({id:e,data:s}){return t.put(`lists/${e}`,s)},delete({id:e}){return t.delete(`lists/${e}`)},getByVersion({id:e,version:s}){return t.get(`lists/${e}/${s}`)}}}function St({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("memberships",u)},get({organizationId:e,userId:s}){return t.get(`memberships/${e}/${s}`)},update({organizationId:e,userId:s,data:r}){return t.put(`memberships/${e}/${s}`,r)},delete({organizationId:e,userId:s}){return t.delete(`memberships/${e}/${s}`)}}}function It({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,sort:u=null}={}){const o={limit:e,offset:s,filter:r,q:n,sort:u};return t.getAll("organization-exports",o)},create({data:e}){return t.post("organization-exports",e)},get({id:e}){return t.get(`organization-exports/${e}`)}}}function qt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null,q:u=null}={}){const o={limit:e,offset:s,filter:r,sort:n,q:u};return t.getAll("organizations",o)},create({data:e}){return t.post("organizations",e)},get({id:e}){return t.get(`organizations/${e}`)},update({id:e,data:s}){return t.patch(`organizations/${e}`,s)}}}function xt({apiHandler:t}){return{getAll({limit:e=null,q:s=null}={}){const r={limit:e,q:s};return t.getAll("payment-cards-bank-names",r)}}}function Ct({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null,expand:o=null}={}){const l={filter:e,sort:s,limit:r,offset:n,q:u,expand:o};return t.getAll("payment-instruments",l)},create({data:e}){return t.post("payment-instruments",e)},get({id:e}){return t.get(`payment-instruments/${e}`)},update({id:e,data:s}){return t.patch(`payment-instruments/${e}`,s)},deactivate({id:e}){return t.post(`payment-instruments/${e}/deactivation`)}}}function Pt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("payment-methods",r)},get({apiName:e}){return t.get(`payment-methods/${e}`)}}}function jt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("tokens",r)},create({data:e}){return t.post("tokens",e)},get({token:e}){return t.get(`tokens/${e}`)}}}function Mt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("payout-requests",u)},create({id:e="",data:s}){return t.create(`payout-requests/${e}`,e,s)},get({id:e}){return t.get(`payout-requests/${e}`)},update({id:e,data:s}){return t.put(`payout-requests/${e}`,s)},getPaymentInstruments({id:e}){return t.get(`payout-requests/${e}/payment-instruments`)}}}function Dt({apiHandler:t}){return{create({data:e}){return t.post("payouts",e)}}}function Ot({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("plans",o)},create({id:e="",data:s}){return t.create(`plans/${e}`,e,s)},get({id:e}){return t.get(`plans/${e}`)},update({id:e,data:s}){return t.put(`plans/${e}`,s)},delete({id:e}){return t.delete(`plans/${e}`)}}}function Ft({apiHandler:t}){return{sendEmailRuleAction({data:e}){return t.post("previews/rule-actions/send-email",e)},webhook({data:e}){return t.post("previews/webhooks",e)},order({data:e}){return t.post("previews/orders",e)}}}function Kt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("products",o)},create({id:e="",data:s}){return t.create(`products/${e}`,e,s)},get({id:e}){return t.get(`products/${e}`)},update({id:e,data:s}){return t.put(`products/${e}`,s)},delete({id:e}){return t.delete(`products/${e}`)}}}function Bt({apiHandler:t}){return{startPermissionsEmulation({data:e}){return t.post("permissions-emulation",e)},stopPermissionsEmulation(){return t.delete("permissions-emulation")},get(){return t.get("profile")},update({data:e}){return t.put("profile",e)},getMfa(){return t.get("profile/mfa")},updateMfa(){return t.post("profile/mfa")},deleteMfa(){return t.delete("profile/mfa")}}}function Lt({apiHandler:t}){return{readyToPay({data:e}){return t.post("ready-to-pay",e)}}}function Nt({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,expand:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,expand:u};return t.getAll("quotes",o)},create({id:e="",data:s}){return t.create(`quotes/${e}`,e,s)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`quotes/${e}`,r)},update({id:e,data:s}){return t.put(`quotes/${e}`,s)},accept({id:e}){return t.post(`quotes/${e}/accept`)},cancel({id:e}){return t.post(`quotes/${e}/cancel`)},issue({id:e}){return t.post(`quotes/${e}/issue`)},recall({id:e}){return t.post(`quotes/${e}/recall`)},reject({id:e}){return t.post(`quotes/${e}/reject`)},getAllTimelineMessages({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`quotes/${e}/timeline`,l)},createTimelineComment({id:e,data:s}){return t.post(`quotes/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`quotes/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`quotes/${e}/timeline/${s}`)},downloadPDF({id:e}){const s={headers:q,responseType:"arraybuffer"};return t.download(`quotes/${e}`,s)}}}function zt({apiHandler:t}){return{get({resource:e,resourceId:s,service:r}){return t.get(`${e}/${s}/external-identifiers/${r}`)},sync({resource:e,resourceId:s,service:r}){return t.post(`${e}/${s}/external-identifiers/${r}`)},update({resource:e,resourceId:s,service:r,data:n}){return t.put(`${e}/${s}/external-identifiers/${r}`,n)},delete({resource:e,resourceId:s,service:r}){return t.delete(`${e}/${s}/external-identifiers/${r}`)}}}function Ut({apiHandler:t}){return{getAll(){return t.get("risk-score-rules")},updateRiskScoreRules({data:e}){return t.put("risk-score-rules",e)},getAllBlocklistRules(){return t.get("risk-score-rules/blocklists")},updateRiskScoreBlocklistRules({data:e}){return t.put("risk-score-rules/blocklists",e)}}}function Vt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null,q:u=null,expand:o=null}={}){const l={limit:e,offset:s,filter:r,sort:n,q:u,expand:o};return t.getAll("roles",l)},create({id:e="",data:s}){return t.create(`roles/${e}`,e,s)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`roles/${e}`,r)},update({id:e,data:s}){return t.put(`roles/${e}`,s)},delete({id:e}){return t.delete(`roles/${e}`)}}}function Wt({apiHandler:t}){return{get({sort:e=null,limit:s=null,offset:r=null,q:n=null}){const u={sort:e,limit:s,offset:r,q:n};return t.get("search",u)}}}function Jt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("grid-segments",o)},create({id:e="",data:s}){return t.create(`grid-segments/${e}`,e,s)},get({id:e}){return t.get(`grid-segments/${e}`)},update({id:e,data:s}){return t.put(`grid-segments/${e}`,s)},delete({id:e}){return t.delete(`grid-segments/${e}`)}}}function Gt({apiHandler:t}){return{getAll({eventType:e}){return t.getAll(`send-through-attribution/${e}`)}}}function Yt({apiHandler:t}){return{getAll({type:e,filter:s=null,limit:r=null,offset:n=null,sort:u=null,q:o=null}){const l={filter:s,limit:r,offset:n,sort:u,q:o};return t.getAll(`service-credentials/${e}`,l)},create({type:e,data:s}){return t.post(`service-credentials/${e}`,s)},get({type:e,id:s}){return t.get(`service-credentials/${e}/${s}`)},update({type:e,id:s,data:r}){return t.patch(`service-credentials/${e}/${s}`,r)},getItems({type:e,id:s,limit:r=null,offset:n=null,filter:u=null,q:o=null,fields:l=null,sort:a=null}){const h={limit:r,offset:n,filter:u,q:o,fields:l,sort:a};return t.getAll(`service-credentials/${e}/${s}/items`,h)}}}function _t({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null,q:u=null}={}){const o={limit:e,offset:s,filter:r,sort:n,q:u};return t.getAll("shipping-rates",o)},create({id:e="",data:s}){return t.create(`shipping-rates/${e}`,e,s)},get({id:e}){return t.get(`shipping-rates/${e}`)},update({id:e,data:s}){return t.put(`shipping-rates/${e}`,s)},delete({id:e}){return t.delete(`shipping-rates/${e}`)}}}function Qt({apiHandler:t}){return{get(){return t.get("status")}}}function Xt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("subscription-cancellations",u)},create({id:e="",data:s}){return t.create(`subscription-cancellations/${e}`,e,s)},get({id:e}){return t.get(`subscription-cancellations/${e}`)},delete({id:e}){return t.delete(`subscription-cancellations/${e}`)},patch({id:e,data:s}){return t.patch(`subscription-cancellations/${e}`,s)}}}function Zt({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("subscription-pauses",u)},pause({id:e="",data:s}){return t.create(`subscription-pauses/${e}`,e,s)},get({id:e}){return t.get(`subscription-pauses/${e}`)},update({id:e,data:s}){return t.put(`subscription-pauses/${e}`,s)},delete({id:e}){return t.delete(`subscription-pauses/${e}`)}}}function Ht({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,sort:n=null}={}){const u={limit:e,offset:s,filter:r,sort:n};return t.getAll("subscription-reactivations",u)},reactivate({data:e}){return t.post("subscription-reactivations",e)},get({id:e}){return t.get(`subscription-reactivations/${e}`)}}}function es({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null,expand:o=null}={}){const l={filter:e,sort:s,limit:r,offset:n,q:u,expand:o};return t.getAll("subscriptions",l)},create({id:e="",data:s,expand:r=null}){const n={expand:r};return t.create(`subscriptions/${e}`,e,s,n)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`subscriptions/${e}`,r)},update({id:e,data:s,expand:r=null}){const n={expand:r};return t.put(`subscriptions/${e}`,s,n)},delete({id:e}){return t.delete(`subscriptions/${e}`)},void({id:e}){return t.post(`subscriptions/${e}/void`)},changeItems({id:e,data:s}){return t.post(`subscriptions/${e}/change-items`,s)},createInterimInvoice({id:e,data:s}){return t.post(`subscriptions/${e}/interim-invoice`,s)},getAllUpcomingInvoices({id:e,expand:s=null}){const r={expand:s};return t.getAll(`subscriptions/${e}/upcoming-invoices`,r)},getUpcomingInvoice({id:e,expand:s=null}){const r={expand:s};return t.get(`subscriptions/${e}/upcoming-invoice`,r)},issueEarlyUpcomingInvoice({id:e,data:s}){return t.post(`subscriptions/${e}/upcoming-invoice/issue`,s)},issueUpcomingInvoice({id:e,invoiceId:s,data:r}){return t.post(`subscriptions/${e}/upcoming-invoices/${s}/issue`,r)},getAllTimelineMessages({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`subscriptions/${e}/timeline`,l)},createTimelineComment({id:e,data:s}){return t.post(`subscriptions/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`subscriptions/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`subscriptions/${e}/timeline/${s}`)}}}function ts({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,sort:u=null}={}){const o={limit:e,offset:s,filter:r,q:n,sort:u};return t.getAll("tags",o)},create({data:e}){return t.post("tags",e)},get({tag:e}){return t.get(`tags/${e}`)},delete({tag:e}){return t.delete(`tags/${e}`)},update({tag:e,data:s}){return t.patch(`tags/${e}`,s)},tagCustomers({tag:e,data:s}){return t.post(`tags/${e}/customers`,s)},untagCustomers({tag:e,data:s}){return t.delete(`tags/${e}/customers`,s)},tagCustomer({tag:e,customerId:s}){return t.post(`tags/${e}/customers/${s}`)},untagCustomer({tag:e,customerId:s}){return t.delete(`tags/${e}/customers/${s}`)},tagKycDocuments({tag:e,data:s}){return t.post(`tags/${e}/kyc-documents`,s)},untagKycDocuments({tag:e,data:s}){return t.delete(`tags/${e}/kyc-documents`,s)},tagKycDocument({tag:e,kycDocumentId:s}){return t.post(`tags/${e}/kyc-documents/${s}`)},untagKycDocument({tag:e,kycDocumentId:s}){return t.delete(`tags/${e}/kyc-documents/${s}`)},tagAmlChecks({tag:e,data:s}){return t.post(`tags/${e}/aml-checks`,s)},untagAmlChecks({tag:e,data:s}){return t.delete(`tags/${e}/aml-checks`,s)},tagAmlCheck({tag:e,amlCheckId:s}){return t.post(`tags/${e}/aml-checks/${s}`)},untagAmlCheck({tag:e,amlCheckId:s}){return t.delete(`tags/${e}/aml-checks/${s}`)}}}function ss({apiHandler:t}){return{getAllTagsRules({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("tags-rules",o)},createTagsRule({id:e="",data:s}){return t.create(`tags-rules/${e}`,e,s)},getTagsRule({id:e}){return t.get(`tags-rules/${e}`)},updateTagsRule({id:e,data:s}){return t.put(`tags-rules/${e}`,s)},deleteTagsRule({id:e}){return t.delete(`tags-rules/${e}`)}}}function rs({apiHandler:t}){return{getAllApiLogs({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null,expand:o=null}={}){const l={limit:e,offset:s,sort:r,filter:n,q:u,expand:o};return t.getAll("tracking/api",l)},getApiLog({id:e}){return t.get(`tracking/api/${e}`)},getAllTaxTrackingLogs({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("tracking/taxes",o)},getTaxTrackingLog({id:e}){return t.get(`tracking/taxes/${e}`)},getAllListsChangesHistory({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("tracking/lists",o)},getAllWebhookTrackingLogs({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("tracking/webhooks",o)},getWebhookTrackingLog({id:e}){return t.get(`tracking/webhooks/${e}`)},resendWebhook({id:e}){return t.post(`tracking/webhooks/${e}/resend`)}}}function ns({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,sort:u=null,expand:o=null}={}){const l={limit:e,offset:s,filter:r,q:n,sort:u,expand:o};return t.getAll("transactions",l)},create({data:e,expand:s=null}){const r={expand:s};return t.post("transactions",e,r)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`transactions/${e}`,r)},patch({id:e,data:s}){return t.patch(`transactions/${e}`,s)},query({id:e}){return t.post(`transactions/${e}/query`)},update({id:e,data:s}){return t.post(`transactions/${e}/update`,s)},refund({id:e,data:s}){return t.post(`transactions/${e}/refund`,s)},getAllTimelineMessages({id:e,limit:s=null,offset:r=null,filter:n=null,sort:u=null,q:o=null}){const l={limit:s,offset:r,filter:n,sort:u,q:o};return t.getAll(`transactions/${e}/timeline`,l)},createTimelineComment({id:e,data:s}){return t.post(`transactions/${e}/timeline`,s)},getTimelineMessage({id:e,messageId:s}){return t.get(`transactions/${e}/timeline/${s}`)},deleteTimelineMessage({id:e,messageId:s}){return t.delete(`transactions/${e}/timeline/${s}`)}}}function us({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("usages",o)},create({id:e="",data:s}){return t.create(`usages/${e}`,e,s)},get({id:e}){return t.get(`usages/${e}`)},update({id:e,data:s}){return t.put(`usages/${e}`,s)},delete({id:e}){return t.delete(`usages/${e}`)}}}function os({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,filter:n=null,q:u=null}={}){const o={limit:e,offset:s,sort:r,filter:n,q:u};return t.getAll("users",o)},create({id:e="",data:s}){return t.create(`users/${e}`,e,s)},get({id:e}){return t.get(`users/${e}`)},update({id:e,data:s}){return t.put(`users/${e}`,s)},getMfa({id:e}){return t.get(`users/${e}/mfa`)}}}function ls({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null}={}){const n={limit:e,offset:s,filter:r};return t.getAll("webhooks",n)},create({id:e="",data:s}){return t.create(`webhooks/${e}`,e,s)},get({id:e}){return t.get(`webhooks/${e}`)},update({id:e,data:s}){return t.put(`webhooks/${e}`,s)}}}function cs({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,q:r=null,filter:n=null,sort:u=null}={}){const o={limit:e,offset:s,q:r,filter:n,sort:u};return t.getAll("websites",o)},create({id:e="",data:s}){return t.create(`websites/${e}`,e,s)},get({id:e}){return t.get(`websites/${e}`)},update({id:e,data:s}){return t.put(`websites/${e}`,s)},delete({id:e}){return t.delete(`websites/${e}`)}}}class is{constructor({apiHandler:e}){this.account=Ne({apiHandler:e}),this.allowlists=ze({apiHandler:e}),this.amlChecks=Ue({apiHandler:e}),this.amlSettings=Ve({apiHandler:e}),this.apiKeys=We({apiHandler:e}),this.applicationInstances=Je({apiHandler:e}),this.applications=Ge({apiHandler:e}),this.balanceTransactions=Ye({apiHandler:e}),this.billingPortals=_e({apiHandler:e}),this.blocklists=Qe({apiHandler:e}),this.broadcastMessages=Xe({apiHandler:e}),this.cashierCustomPropertySets=Ze({apiHandler:e}),this.cashierRequests=He({apiHandler:e}),this.cashierStrategies=et({apiHandler:e}),this.checkoutForms=tt({apiHandler:e}),this.coupons=st({apiHandler:e}),this.creditMemos=rt({apiHandler:e}),this.customDomains=nt({apiHandler:e}),this.customFields=ut({apiHandler:e}),this.customerAuthentication=ot({apiHandler:e}),this.customers=lt({apiHandler:e}),this.digitalWallets=ct({apiHandler:e}),this.disputes=it({apiHandler:e}),this.emailDeliverySettings=gt({apiHandler:e}),this.emailMessages=at({apiHandler:e}),this.emailNotifications=mt({apiHandler:e}),this.events=ft({apiHandler:e}),this.externalIdentifiers=$t({apiHandler:e}),this.externalServicesSettings=ht({apiHandler:e}),this.fees=pt({apiHandler:e}),this.files=yt({apiHandler:e}),this.gatewayAccounts=At({apiHandler:e}),this.integrations=Rt({apiHandler:e}),this.invoices=bt({apiHandler:e}),this.journalAccounts=wt({apiHandler:e}),this.journalEntries=kt({apiHandler:e}),this.kycDocuments=dt({apiHandler:e}),this.kycRequests=Tt({apiHandler:e}),this.kycSettings=vt({apiHandler:e}),this.lists=Et({apiHandler:e}),this.memberships=St({apiHandler:e}),this.organizationExports=It({apiHandler:e}),this.organizations=qt({apiHandler:e}),this.paymentCardsBankNames=xt({apiHandler:e}),this.paymentInstruments=Ct({apiHandler:e}),this.paymentMethods=Pt({apiHandler:e}),this.paymentTokens=jt({apiHandler:e}),this.payoutRequests=Mt({apiHandler:e}),this.payouts=Dt({apiHandler:e}),this.plans=Ot({apiHandler:e}),this.previews=Ft({apiHandler:e}),this.products=Kt({apiHandler:e}),this.profile=Bt({apiHandler:e}),this.purchase=Lt({apiHandler:e}),this.quotes=Nt({apiHandler:e}),this.resource=zt({apiHandler:e}),this.riskScoreRules=Ut({apiHandler:e}),this.roles=Vt({apiHandler:e}),this.search=Wt({apiHandler:e}),this.segments=Jt({apiHandler:e}),this.sendThroughAttribution=Gt({apiHandler:e}),this.serviceCredentials=Yt({apiHandler:e}),this.shippingRates=_t({apiHandler:e}),this.status=Qt({apiHandler:e}),this.subscriptionCancellations=Xt({apiHandler:e}),this.subscriptionPauses=Zt({apiHandler:e}),this.subscriptionReactivations=Ht({apiHandler:e}),this.subscriptions=es({apiHandler:e}),this.tags=ts({apiHandler:e}),this.tagsRules=ss({apiHandler:e}),this.tracking=rs({apiHandler:e}),this.transactions=ns({apiHandler:e}),this.usages=us({apiHandler:e}),this.users=os({apiHandler:e}),this.webhooks=ls({apiHandler:e}),this.websites=cs({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 gs({apiHandler:t}){return{getCustomerLifetimeSummaryMetrics({customerId:e}){return t.get(`customers/${e}/summary-metrics`)}}}function as({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,sort:r=null,expand:n=null,filter:u=null,q:o=null,criteria:l=null}={}){const a={limit:e,offset:s,sort:r,expand:n,filter:u,q:o,criteria:l};return t.getAll("data-exports",a)},queue({id:e="",data:s,expand:r=null}){const n={expand:r};return t.create(`data-exports/${e}`,e,s,n)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`data-exports/${e}`,r)},update({id:e,data:s,expand:r=null}){const n={expand:r};return t.put(`data-exports/${e}`,s,n)},delete({id:e}){return t.delete(`data-exports/${e}`)}}}function ms({apiHandler:t}){return{getTransactionHistogramReport({periodStart:e,periodEnd:s,aggregationPeriod:r,metric:n,filter:u=null}){const o={periodStart:e,periodEnd:s,aggregationPeriod:r,metric:n,filter:u};return t.get("histograms/transactions",o)}}}function fs({apiHandler:t}){return{getApiLogSummary({periodStart:e,periodEnd:s,limit:r=null,offset:n=null}){const u={periodStart:e,periodEnd:s,limit:r,offset:n};return t.get("reports/api-log-summary",u)},getCumulativeSubscriptions({aggregationField:e,periodStart:s,periodEnd:r,limit:n=null,offset:u=null,filter:o=null}){const l={aggregationField:e,periodStart:s,periodEnd:r,limit:n,offset:u,filter:o};return t.get("reports/cumulative-subscriptions",l)},getDashboardMetrics({periodStart:e,periodEnd:s,metrics:r=null,segments:n=null}){const u={periodStart:e,periodEnd:s,metrics:r,segments:n};return t.get("reports/dashboard",u)},getDccMarkup({aggregationField:e,periodStart:s,periodEnd:r,limit:n=null,offset:u=null,filter:o=null}){const l={aggregationField:e,periodStart:s,periodEnd:r,limit:n,offset:u,filter:o};return t.get("reports/dcc-markup",l)},getDisputes({aggregationField:e,periodMonth:s,limit:r=null,offset:n=null,filter:u=null}){const o={aggregationField:e,periodMonth:s,limit:r,offset:n,filter:u};return t.get("reports/disputes",o)},getEventsTriggeredSummary({periodStart:e,periodEnd:s,limit:r=null,offset:n=null}){const u={periodStart:e,periodEnd:s,limit:r,offset:n};return t.get("reports/events-triggered",u)},getTriggeredEventRuleReport({eventType:e,periodStart:s,periodEnd:r,limit:n=null,offset:u=null}){const o={periodStart:s,periodEnd:r,limit:n,offset:u};return t.get(`reports/events-triggered/${e}/rules`,o)},getFutureRenewals({periodStart:e,periodEnd:s,limit:r=null,offset:n=null}){const u={periodStart:e,periodEnd:s,limit:r,offset:n};return t.get("reports/future-renewals",u)},getJournal({currency:e,bookedFrom:s=null,bookedTo:r=null,recognizedAt:n,aggregationField:u,limit:o=null,offset:l=null,filter:a=null}){const h={currency:e,bookedFrom:s,bookedTo:r,recognizedAt:n,aggregationField:u,limit:o,offset:l,filter:a};return t.get("reports/journal",h)},getKycAcceptanceSummary({periodStart:e,periodEnd:s}){const r={periodStart:e,periodEnd:s};return t.get("reports/kyc-acceptance-summary",r)},getKycRejectionSummary({periodStart:e,periodEnd:s}){const r={periodStart:e,periodEnd:s};return t.get("reports/kyc-rejection-summary",r)},getKycRequestSummary({periodStart:e,periodEnd:s}){const r={periodStart:e,periodEnd:s};return t.get("reports/kyc-request-summary",r)},getMonthlyRecurringRevenue({currency:e,periodStart:s,periodEnd:r,limit:n=null,offset:u=null}){const o={currency:e,periodStart:s,periodEnd:r,limit:n,offset:u};return t.get("reports/monthly-recurring-revenue",o)},getRenewalSales({periodStart:e,periodEnd:s,limit:r=null,offset:n=null}){const u={periodStart:e,periodEnd:s,limit:r,offset:n};return t.get("reports/renewal-sales",u)},getRetentionPercentage({aggregationField:e,aggregationPeriod:s,includeSwitchedSubscriptions:r=null,periodStart:n,periodEnd:u,limit:o=null,offset:l=null,filter:a=null,criteria:h=null}){const k={aggregationField:e,aggregationPeriod:s,includeSwitchedSubscriptions:r,periodStart:n,periodEnd:u,limit:o,offset:l,filter:a,criteria:h};return t.get("reports/retention-percentage",k)},getRetentionValue({aggregationField:e,aggregationPeriod:s,includeRefunds:r=null,includeDisputes:n=null,periodStart:u,periodEnd:o,limit:l=null,offset:a=null,filter:h=null,sort:k=null,criteria:D=null}){const O={aggregationField:e,aggregationPeriod:s,includeRefunds:r,includeDisputes:n,periodStart:u,periodEnd:o,limit:l,offset:a,filter:h,sort:k,criteria:D};return t.get("reports/retention-value",O)},getRevenueWaterfall({currency:e,issuedFrom:s,issuedTo:r,recognizedTo:n}){const u={currency:e,issuedFrom:s,issuedTo:r,recognizedTo:n};return t.get("reports/revenue-waterfall",u)},getRevenueAudit({filter:e=null,sort:s=null,limit:r=null,offset:n=null}){const u={filter:e,sort:s,limit:r,offset:n};return t.get("reports/revenue-audit",u)},getSubscriptionCancellation({periodStart:e,periodEnd:s,aggregationField:r,limit:n=null,offset:u=null,filter:o=null}){const l={periodStart:e,periodEnd:s,aggregationField:r,limit:n,offset:u,filter:o};return t.get("reports/subscription-cancellation",l)},getSubscriptionRenewal({periodStart:e,periodEnd:s,limit:r=null,offset:n=null}){const u={periodStart:e,periodEnd:s,limit:r,offset:n};return t.get("reports/subscription-renewal",u)},getTax({periodStart:e,periodEnd:s,accountingMethod:r,limit:n=null,offset:u=null}){const o={periodStart:e,periodEnd:s,accountingMethod:r,limit:n,offset:u};return t.get("reports/tax",o)},getTimeSeriesTransaction({type:e,subaggregate:s,periodStart:r,periodEnd:n,limit:u=null,offset:o=null}){const l={type:e,subaggregate:s,periodStart:r,periodEnd:n,limit:u,offset:o};return t.get("reports/time-series-transaction",l)},getTransactionsTimeDispute({aggregationField:e,periodStart:s,periodEnd:r,limit:n=null,offset:u=null,filter:o=null}){const l={aggregationField:e,periodStart:s,periodEnd:r,limit:n,offset:u,filter:o};return t.get("reports/transactions-time-dispute",l)},getTransactions({periodStart:e,periodEnd:s,aggregationField:r,limit:n=null,offset:u=null,filter:o=null}){const l={periodStart:e,periodEnd:s,aggregationField:r,limit:n,offset:u,filter:o};return t.get("reports/transactions",l)}}}function $s({apiHandler:t}){return{getSubscriptionSummaryMetrics({subscriptionId:e}){return t.get(`subscriptions/${e}/summary-metrics`)}}}function hs({apiHandler:t}){return{getActivityFeed({eventTypes:e=null,limit:s=1e3,offset:r=0}){const n={eventTypes:e,limit:s,offset:r};return t.getAll("activity-feed",n)},getTransaction({id:e="",eventTypes:s=null,limit:r=1e3,offset:n=0}){const u={eventTypes:s,limit:r,offset:n};return t.getAll(`transactions/${e}/timeline`,u)},getCustomer({id:e="",eventTypes:s=null,limit:r=1e3,offset:n=0}){const u={eventTypes:s,limit:r,offset:n};return t.getAll(`customers/${e}/timeline`,u)}}}function ps({apiHandler:t}){return{query(){return t.get("location")}}}const w={CustomersResource:gs,DataExportsResource:as,HistogramsResource:ms,ReportsResource:fs,SubscriptionsResource:$s,TimelinesResource:hs,LocationResource:ps};class ys{constructor({apiHandler:e}){this.customers=w.CustomersResource({apiHandler:e}),this.dataExports=w.DataExportsResource({apiHandler:e}),this.histograms=w.HistogramsResource({apiHandler:e}),this.reports=w.ReportsResource({apiHandler:e}),this.subscriptions=w.SubscriptionsResource({apiHandler:e}),this.timelines=w.TimelinesResource({apiHandler:e}),this.location=w.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 As({apiHandler:t}){return{get({expand:e=null}={}){const s={expand:e};return t.get("account",s)},update({data:e}){return t.patch("account",e)},requestPasswordReset({data:e}){return t.post("account/forgot-password",e)},changePassword({data:e}){return t.patch("account/password",e)},resendEmailVerification({data:e}){return t.post("account/resend-verification",e)},confirmPasswordReset({token:e,data:s}){return t.post(`account/reset-password/${e}`,s)},verifyEmail({token:e}){return t.post(`account/verification/${e}`)},register({data:e}){return t.post("register",e)}}}function Rs({apiHandler:t}){return{login({data:e}){return t.post("login",e)},logout(){return t.post("logout")}}}function bs({apiHandler:t}){return{get({slug:e}){return t.get(`billing-portals/${e}`)}}}function ws({apiHandler:t}){return{create({data:e}){return t.post("cashier-deposit",e)}}}function ks({apiHandler:t}){return{get({id:e,expand:s=null}){const r={expand:s};return t.get(`cashier-requests/${e}`,r)}}}function ds({apiHandler:t}){return{get({id:e}){return t.get(`cashier-strategies/${e}`)}}}function Ts({apiHandler:t}){return{get({id:e}){return t.get(`checkout-forms/${e}`)}}}function vs({apiHandler:t}){return{getAll({resource:e,limit:s=null,offset:r=null}){const n={limit:s,offset:r};return t.getAll(`custom-fields/${e}`,n)}}}function Es({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("invoices",o)},get({id:e}){return t.get(`invoices/${e}`)},downloadPDF({id:e}){const s={headers:q,responseType:"arraybuffer"};return t.download(`invoices/${e}`,s)}}}function Ss({apiHandler:t}){return{getAll({limit:e=null,offset:s=null}={}){const r={limit:e,offset:s};return t.getAll("kyc-documents",r)},create({data:e}){return t.post("kyc-documents",e)},get({id:e}){return t.get(`kyc-documents/${e}`)},update({id:e,data:s}){return t.patch(`kyc-documents/${e}`,s)}}}function Is({apiHandler:t}){return{get({id:e,expand:s=null}){const r={expand:s};return t.get(`kyc-requests/${e}`,r)}}}function qs({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("orders",o)},get({id:e}){return t.get(`orders/${e}`)},update({id:e,data:s}){return t.patch(`orders/${e}`,s)},cancel({id:e,data:s}){return t.post(`orders/${e}/cancellation`,s)},pause({id:e,data:s}){return t.post(`orders/${e}/pause`,s)}}}function xs({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("payment-instruments",o)},create({data:e}){return t.post("payment-instruments",e)},get({id:e,limit:s=null,offset:r=null}){const n={limit:s,offset:r};return t.get(`payment-instruments/${e}`,n)},update({id:e,data:s}){return t.patch(`payment-instruments/${e}`,s)},deactivate({id:e}){return t.post(`payment-instruments/${e}/deactivation`)},getSetupTransaction({id:e}){return t.get(`payment-instruments/${e}/setup`)},setup({id:e,data:s}){return t.post(`payment-instruments/${e}/setup`,s)}}}function Cs({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("payout-requests",o)},get({id:e}){return t.get(`payout-requests/${e}`)},update({id:e,data:s}){return t.patch(`payout-requests/${e}`,s)}}}function Ps({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null,expand:o=null}={}){const l={filter:e,sort:s,limit:r,offset:n,q:u,expand:o};return t.getAll("plans",l)},get({id:e,expand:s=null}){const r={expand:s};return t.get(`plans/${e}`,r)}}}function js({apiHandler:t}){return{getAll({filter:e=null,sort:s=null,limit:r=null,offset:n=null,q:u=null}={}){const o={filter:e,sort:s,limit:r,offset:n,q:u};return t.getAll("products",o)},get({id:e}){return t.get(`products/${e}`)}}}function Ms({apiHandler:t}){return{payment({data:e}){return t.post("payment",e)},purchase({data:e}){return t.post("purchase",e)},preview({data:e}){return t.post("preview-purchase",e)},readyToPay({data:e}){return t.post("ready-to-pay",e)}}}function Ds({apiHandler:t}){return{get({id:e,expand:s=null}){const r={expand:s};return t.get(`quotes/${e}`,r)},accept({id:e}){return t.post(`quotes/${e}/accept`)},reject({id:e}){return t.post(`quotes/${e}/reject`)},downloadPDF({id:e}){const s={headers:q,responseType:"arraybuffer"};return t.download(`quotes/${e}`,s)}}}function Os({apiHandler:t}){return{getAll({limit:e=null,offset:s=null,filter:r=null,q:n=null,sort:u=null}={}){const o={limit:e,offset:s,filter:r,q:n,sort:u};return t.getAll("transactions",o)},get({id:e}){return t.get(`transactions/${e}`)},finishKyc({id:e,token:s}){return t.post(`transactions/${e}/${s}/continue`)},skipKyc({id:e,token:s}){return t.post(`transactions/${e}/${s}/bypass`)},update({id:e,data:s}){return t.patch(`transactions/${e}`,s)}}}function Fs({apiHandler:t}){return{get({id:e}){return t.get(`websites/${e}`)}}}class Ks{constructor({apiHandler:e}){this.account=As({apiHandler:e}),this.authorization=Rs({apiHandler:e}),this.billingPortals=bs({apiHandler:e}),this.cashierDeposit=ws({apiHandler:e}),this.cashierRequests=ks({apiHandler:e}),this.cashierStrategies=ds({apiHandler:e}),this.checkoutForms=Ts({apiHandler:e}),this.customFields=vs({apiHandler:e}),this.invoices=Es({apiHandler:e}),this.kycDocuments=Ss({apiHandler:e}),this.kycRequests=Is({apiHandler:e}),this.orders=qs({apiHandler:e}),this.paymentInstruments=xs({apiHandler:e}),this.payoutRequests=Cs({apiHandler:e}),this.plans=Ps({apiHandler:e}),this.products=js({apiHandler:e}),this.purchase=Ms({apiHandler:e}),this.quotes=Ds({apiHandler:e}),this.transactions=Os({apiHandler:e}),this.websites=Fs({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 Bs({apiHandler:t}){return new is({apiHandler:t})}function Ls({apiHandler:t}){return new ys({apiHandler:t})}function Ns({apiHandler:t}){return new Ks({apiHandler:t})}const j={live:"https://api.rebilly.com",sandbox:"https://api-sandbox.rebilly.com"},M=6e3;function W({apiKey:t=null,sandbox:e=!1,timeout:s=M,organizationId:r=null,urls:n=j}={}){if(!n.live||!n.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof n.live!="string"||typeof n.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const o=P({options:{apiEndpoints:n,apiKey:t,apiVersion:"",isSandbox:e,requestTimeout:s,jwt:null,organizationId:r}});return Bs({apiHandler:o})}function zs({apiKey:t=null,sandbox:e=!1,timeout:s=M,organizationId:r=null,urls:n=j}={}){if(!n.live||!n.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof n.live!="string"||typeof n.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const o=P({options:{apiEndpoints:n,apiKey:t,apiVersion:"experimental",isSandbox:e,requestTimeout:s,jwt:null,organizationId:r}});return Ls({apiHandler:o})}function Us({publishableKey:t=null,jwt:e=null,sandbox:s=!1,timeout:r=M,organizationId:n=null,urls:u=j}={}){if(!u.live||!u.sandbox)throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");if(typeof u.live!="string"||typeof u.sandbox!="string")throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");const o={apiEndpoints:u,publishableKey:t,jwt:e,apiVersion:"storefront",isSandbox:s,requestTimeout:r,organizationId:n},l=P({options:o});return l.setSessionToken(o.jwt),Ns({apiHandler:l})}f.RebillyAPI=W,f.RebillyErrors=p,f.RebillyExperimentalAPI=zs,f.RebillyStorefrontAPI=Us,f.cancellation=Le,f.default=W,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rebilly-js-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "52.0.0",
|
|
4
4
|
"description": "Official Rebilly API JS library for the browser and Node",
|
|
5
5
|
"types": "./dist/rebilly-js-sdk.d.ts",
|
|
6
6
|
"main": "./dist/rebilly-js-sdk.umd.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"ts:generate-types": "node ./scripts/type-generation/generate-ts-types.js",
|
|
23
23
|
"ts:compile-and-merge": "tsc -p tsc-emit.json --typeRoots typings && node ./scripts/merge-types.js",
|
|
24
24
|
"ts:bundle-types-from-redocly": "yarn ts:generate-types && yarn ts:compile-and-merge",
|
|
25
|
-
"build-api-definitions": "cd
|
|
25
|
+
"build-api-definitions": "cd ../../../../api-definitions && yarn build-for-js-sdk",
|
|
26
26
|
"ts:bundle-types-from-local": "yarn build-api-definitions && yarn ts:generate-types --local && yarn ts:compile-and-merge"
|
|
27
27
|
},
|
|
28
28
|
"repository": "https://github.com/Rebilly/rebilly",
|
|
@@ -30,7 +30,7 @@ function getOnlineSchemas() {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
function readLocalSchemas() {
|
|
33
|
-
const schemaPath = resolve('
|
|
33
|
+
const schemaPath = resolve('../../../../api-definitions/dist');
|
|
34
34
|
console.log(
|
|
35
35
|
`📂 Reading json schemas from api-definitions in [${schemaPath}]`
|
|
36
36
|
);
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
import AccountResource from './account-resource';
|
|
7
7
|
import AllowlistsResource from './allowlists-resource';
|
|
8
8
|
import AmlChecksResource from './aml-checks-resource';
|
|
9
|
-
import AmlResource from './aml-resource';
|
|
10
9
|
import AmlSettingsResource from './aml-settings-resource';
|
|
11
10
|
import ApiKeysResource from './api-keys-resource';
|
|
12
11
|
import ApplicationInstancesResource from './application-instances-resource';
|
|
@@ -86,7 +85,6 @@ export class ApiInstance {
|
|
|
86
85
|
this.account = AccountResource({apiHandler});
|
|
87
86
|
this.allowlists = AllowlistsResource({apiHandler});
|
|
88
87
|
this.amlChecks = AmlChecksResource({apiHandler});
|
|
89
|
-
this.aml = AmlResource({apiHandler});
|
|
90
88
|
this.amlSettings = AmlSettingsResource({apiHandler});
|
|
91
89
|
this.apiKeys = ApiKeysResource({apiHandler});
|
|
92
90
|
this.applicationInstances = ApplicationInstancesResource({apiHandler});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by rebilly-sdk-generator.
|
|
3
|
-
* Do not make direct changes to this file.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export default function AmlResource({apiHandler}) {
|
|
7
|
-
return {
|
|
8
|
-
/**
|
|
9
|
-
* @returns { rebilly.GetAmlHitResponsePromise } response
|
|
10
|
-
*/
|
|
11
|
-
getAll({firstName, lastName, dob = null, country = null}) {
|
|
12
|
-
const params = {firstName, lastName, dob, country};
|
|
13
|
-
return apiHandler.get(`aml`, params);
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
}
|