rebilly-js-sdk 53.0.2 → 54.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
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [54.0.0](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v53.0.2...rebilly-js-sdk-v54.0.0) (2023-10-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### ⚠ BREAKING CHANGES
|
|
5
|
+
|
|
6
|
+
* **rebilly-js-sdk:** Rename stopAmlCheckReview to stopReview (#1654)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **rebilly-js-sdk:** Rename stopAmlCheckReview to stopReview ([#1654](https://github.com/Rebilly/rebilly/issues/1654)) ([11a86c8](https://github.com/Rebilly/rebilly/commit/11a86c8cd667c3438a1129806b7dfef3d013d039))
|
|
11
|
+
|
|
1
12
|
## [53.0.2](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v53.0.1...rebilly-js-sdk-v53.0.2) (2023-09-26)
|
|
2
13
|
|
|
3
14
|
|
package/dist/rebilly-js-sdk.d.ts
CHANGED
|
@@ -11,6 +11,12 @@ declare module rebilly {
|
|
|
11
11
|
type GetAmlCheckResponse = operations['GetAmlCheck']['responses']['200']['content']['application/json']
|
|
12
12
|
type GetAmlCheckResponsePromise = Promise<{fields: GetAmlCheckResponse}>
|
|
13
13
|
|
|
14
|
+
type PostAmlCheckStartReviewResponse = operations['PostAmlCheckStartReview']['responses']['201']['content']['application/json']
|
|
15
|
+
type PostAmlCheckStartReviewResponsePromise = Promise<{fields: PostAmlCheckStartReviewResponse}>
|
|
16
|
+
|
|
17
|
+
type PostAmlCheckStopReviewResponse = operations['PostAmlCheckStopReview']['responses']['201']['content']['application/json']
|
|
18
|
+
type PostAmlCheckStopReviewResponsePromise = Promise<{fields: PostAmlCheckStopReviewResponse}>
|
|
19
|
+
|
|
14
20
|
type PostAmlCheckReviewRequest = operations['PostAmlCheckReview']['requestBody']['content']['application/json']
|
|
15
21
|
type CreateAmlCheckReviewRequest = { id: String, data: PostAmlCheckReviewRequest, expand?: String }
|
|
16
22
|
type PostAmlCheckReviewResponse = operations['PostAmlCheckReview']['responses']['201']['content']['application/json']
|
|
@@ -2217,6 +2223,37 @@ export interface corePaths {
|
|
|
2217
2223
|
};
|
|
2218
2224
|
};
|
|
2219
2225
|
};
|
|
2226
|
+
"/aml-checks/{id}/start-review": {
|
|
2227
|
+
/**
|
|
2228
|
+
* Starts the manual review process for an AML check with a specified ID.
|
|
2229
|
+
*
|
|
2230
|
+
* This operation also sets the AML check `reviewStartTime` to the current date-time,
|
|
2231
|
+
* and updates the review information.
|
|
2232
|
+
*/
|
|
2233
|
+
post: operations["PostAmlCheckStartReview"];
|
|
2234
|
+
parameters: {
|
|
2235
|
+
path: {
|
|
2236
|
+
/** ID of the resource. */
|
|
2237
|
+
id: coreComponents["parameters"]["resourceId"];
|
|
2238
|
+
};
|
|
2239
|
+
};
|
|
2240
|
+
};
|
|
2241
|
+
"/aml-checks/{id}/stop-review": {
|
|
2242
|
+
/**
|
|
2243
|
+
* Stops the manual review process for an AML check with a specified ID.
|
|
2244
|
+
*
|
|
2245
|
+
* This operation also sets the AML check `reviewStartTime` and the reviewer information to null.
|
|
2246
|
+
* Use this operation when the reviewer must stop the review.
|
|
2247
|
+
* For example, if the reviewer must take a break, or ends a shift.
|
|
2248
|
+
*/
|
|
2249
|
+
post: operations["PostAmlCheckStopReview"];
|
|
2250
|
+
parameters: {
|
|
2251
|
+
path: {
|
|
2252
|
+
/** ID of the resource. */
|
|
2253
|
+
id: coreComponents["parameters"]["resourceId"];
|
|
2254
|
+
};
|
|
2255
|
+
};
|
|
2256
|
+
};
|
|
2220
2257
|
"/aml-checks/{id}/review": {
|
|
2221
2258
|
/**
|
|
2222
2259
|
* Reviews an AML check.
|
|
@@ -3619,13 +3656,13 @@ export interface corePaths {
|
|
|
3619
3656
|
/**
|
|
3620
3657
|
* Tags an AML check.
|
|
3621
3658
|
*
|
|
3622
|
-
* If
|
|
3659
|
+
* If an AML check in the list does not have the specified tag applied, the AML check is ignored.
|
|
3623
3660
|
*/
|
|
3624
3661
|
post: operations["PostTagAmlCheck"];
|
|
3625
3662
|
/**
|
|
3626
3663
|
* Untags an AML check.
|
|
3627
3664
|
*
|
|
3628
|
-
* If
|
|
3665
|
+
* If an AML check in the list does not have the specified tag applied, the AML check is ignored.
|
|
3629
3666
|
*/
|
|
3630
3667
|
delete: operations["DeleteTagAmlCheck"];
|
|
3631
3668
|
parameters: {
|
|
@@ -4159,6 +4196,8 @@ export interface coreComponents {
|
|
|
4159
4196
|
reviewerId?: string | null;
|
|
4160
4197
|
/** First and last name of the person who reviewed the AML check. */
|
|
4161
4198
|
reviewerName?: string | null;
|
|
4199
|
+
/** Date and time when the AML check review is started. */
|
|
4200
|
+
reviewStartTime?: string | null;
|
|
4162
4201
|
/** Date and time when the AML check review is completed. */
|
|
4163
4202
|
reviewTime?: string | null;
|
|
4164
4203
|
/** Highest matched priority of all hits within an AML check. */
|
|
@@ -4168,6 +4207,7 @@ export interface coreComponents {
|
|
|
4168
4207
|
/** Status of the AML check. */
|
|
4169
4208
|
status?:
|
|
4170
4209
|
| "pending-review"
|
|
4210
|
+
| "in-review"
|
|
4171
4211
|
| "no-match"
|
|
4172
4212
|
| "confirmed-match"
|
|
4173
4213
|
| "false-positive";
|
|
@@ -4245,11 +4285,6 @@ export interface coreComponents {
|
|
|
4245
4285
|
/** HTTP status code. */
|
|
4246
4286
|
status?: number;
|
|
4247
4287
|
} & coreComponents["schemas"]["BaseProblem"];
|
|
4248
|
-
/** AML check review. */
|
|
4249
|
-
AmlCheckReview: {
|
|
4250
|
-
/** AML-related customer tag. */
|
|
4251
|
-
tag?: "aml-match-confirmed" | "aml-match-false-positive";
|
|
4252
|
-
};
|
|
4253
4288
|
ValidationError: { [key: string]: any } & {
|
|
4254
4289
|
/** HTTP status code. */
|
|
4255
4290
|
status?: number;
|
|
@@ -4265,6 +4300,11 @@ export interface coreComponents {
|
|
|
4265
4300
|
message?: string;
|
|
4266
4301
|
}[];
|
|
4267
4302
|
};
|
|
4303
|
+
/** AML check review. */
|
|
4304
|
+
AmlCheckReview: {
|
|
4305
|
+
/** AML-related customer tag. */
|
|
4306
|
+
tag?: "aml-match-confirmed" | "aml-match-false-positive";
|
|
4307
|
+
};
|
|
4268
4308
|
/** Degree of confidence to assign. */
|
|
4269
4309
|
AmlConfidence: ("weak" | "medium" | "strong" | "very-strong") | null;
|
|
4270
4310
|
/** Priority level of matched AML customer information. */
|
|
@@ -4781,6 +4821,14 @@ export interface coreComponents {
|
|
|
4781
4821
|
issuedTime: string;
|
|
4782
4822
|
/** Date and time when the coupon expires. */
|
|
4783
4823
|
expiredTime?: string | null;
|
|
4824
|
+
/**
|
|
4825
|
+
* Number of times the coupon data has been modified.
|
|
4826
|
+
*
|
|
4827
|
+
* Use the revision number when analyzing webhook data to
|
|
4828
|
+
* determine if a change should take precedence over the current
|
|
4829
|
+
* representation.
|
|
4830
|
+
*/
|
|
4831
|
+
revision?: number;
|
|
4784
4832
|
createdTime?: coreComponents["schemas"]["CreatedTime"];
|
|
4785
4833
|
updatedTime?: coreComponents["schemas"]["UpdatedTime"];
|
|
4786
4834
|
_links?: coreComponents["schemas"]["SelfLink"];
|
|
@@ -8423,6 +8471,12 @@ export interface coreComponents {
|
|
|
8423
8471
|
/** Digital wallet type. */
|
|
8424
8472
|
digitalWallet?: ("Apple Pay" | "Google Pay") | null;
|
|
8425
8473
|
riskMetadata?: coreComponents["schemas"]["RiskMetadata"] | null;
|
|
8474
|
+
/**
|
|
8475
|
+
* Number of times the payment instrument data has been modified.
|
|
8476
|
+
*
|
|
8477
|
+
* Use this value when analyzing webhook data to determine if a change must take precedence over the current representation.
|
|
8478
|
+
*/
|
|
8479
|
+
revision?: number;
|
|
8426
8480
|
/** Related links. */
|
|
8427
8481
|
_links?: {
|
|
8428
8482
|
/** Link URL. */
|
|
@@ -8482,6 +8536,12 @@ export interface coreComponents {
|
|
|
8482
8536
|
createdTime?: coreComponents["schemas"]["CreatedTime"];
|
|
8483
8537
|
updatedTime?: coreComponents["schemas"]["UpdatedTime"];
|
|
8484
8538
|
customFields?: coreComponents["schemas"]["ResourceCustomFields"];
|
|
8539
|
+
/**
|
|
8540
|
+
* Number of times the payment instrument data has been modified.
|
|
8541
|
+
*
|
|
8542
|
+
* Use this value when analyzing webhook data to determine if a change must take precedence over the current representation.
|
|
8543
|
+
*/
|
|
8544
|
+
revision?: number;
|
|
8485
8545
|
/** Related links. */
|
|
8486
8546
|
_links?: {
|
|
8487
8547
|
/** Link URL. */
|
|
@@ -8518,6 +8578,12 @@ export interface coreComponents {
|
|
|
8518
8578
|
*/
|
|
8519
8579
|
stickyGatewayAccountId?: string | null;
|
|
8520
8580
|
riskMetadata?: coreComponents["schemas"]["RiskMetadata"] | null;
|
|
8581
|
+
/**
|
|
8582
|
+
* Number of times the payment instrument data has been modified.
|
|
8583
|
+
*
|
|
8584
|
+
* Use this value when analyzing webhook data to determine if a change must take precedence over the current representation.
|
|
8585
|
+
*/
|
|
8586
|
+
revision?: number;
|
|
8521
8587
|
/** Related links. */
|
|
8522
8588
|
_links?: {
|
|
8523
8589
|
/** Link URL. */
|
|
@@ -8568,6 +8634,12 @@ export interface coreComponents {
|
|
|
8568
8634
|
*/
|
|
8569
8635
|
stickyGatewayAccountId?: string | null;
|
|
8570
8636
|
riskMetadata?: coreComponents["schemas"]["RiskMetadata"] | null;
|
|
8637
|
+
/**
|
|
8638
|
+
* Number of times the payment instrument data has been modified.
|
|
8639
|
+
*
|
|
8640
|
+
* Use this value when analyzing webhook data to determine if a change must take precedence over the current representation.
|
|
8641
|
+
*/
|
|
8642
|
+
revision?: number;
|
|
8571
8643
|
/** Related links. */
|
|
8572
8644
|
_links?: {
|
|
8573
8645
|
/** Link URL. */
|
|
@@ -8761,6 +8833,12 @@ export interface coreComponents {
|
|
|
8761
8833
|
/** Payment instrument reference data. */
|
|
8762
8834
|
referenceData?: { [key: string]: string };
|
|
8763
8835
|
riskMetadata?: coreComponents["schemas"]["RiskMetadata"] | null;
|
|
8836
|
+
/**
|
|
8837
|
+
* Number of times the payment instrument data has been modified.
|
|
8838
|
+
*
|
|
8839
|
+
* Use this value when analyzing webhook data to determine if a change must take precedence over the current representation.
|
|
8840
|
+
*/
|
|
8841
|
+
revision?: number;
|
|
8764
8842
|
/** Related links. */
|
|
8765
8843
|
_links?: {
|
|
8766
8844
|
/** Link URL. */
|
|
@@ -9529,23 +9607,43 @@ export interface coreComponents {
|
|
|
9529
9607
|
deliveryAddress?: coreComponents["schemas"]["ContactObject"] | null;
|
|
9530
9608
|
/** Billing address of the order. */
|
|
9531
9609
|
billingAddress?: coreComponents["schemas"]["ContactObject"] | null;
|
|
9532
|
-
/** Preview of
|
|
9610
|
+
/** Preview of the quote invoice. */
|
|
9533
9611
|
invoicePreview?: {
|
|
9534
9612
|
/** Currency of the invoice. */
|
|
9535
9613
|
currency?: coreComponents["schemas"]["CurrencyCode"];
|
|
9536
|
-
/**
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9614
|
+
/** Total amounts of the initial invoice. */
|
|
9615
|
+
initialAmounts?: {
|
|
9616
|
+
/** Amount of the invoice. */
|
|
9617
|
+
amount?: number;
|
|
9618
|
+
/** Subtotal amount of the invoice. */
|
|
9619
|
+
subtotalAmount?: number;
|
|
9620
|
+
/** Discount amount that is applied to the invoice. */
|
|
9621
|
+
discountAmount?: number;
|
|
9622
|
+
/** Shipping amount that is applied to the invoice. */
|
|
9623
|
+
shippingAmount?: number;
|
|
9624
|
+
/** Tax amount that is applied to the invoice. */
|
|
9625
|
+
taxAmount?: number;
|
|
9626
|
+
};
|
|
9627
|
+
/**
|
|
9628
|
+
* Total amounts of the recurring invoice.
|
|
9629
|
+
* This includes recurring items only.
|
|
9630
|
+
* If the quote does not have recurring items, the value of this field is `null`.
|
|
9631
|
+
*/
|
|
9632
|
+
recurringAmounts?: {
|
|
9633
|
+
/** Amount of the invoice. */
|
|
9634
|
+
amount?: number;
|
|
9635
|
+
/** Subtotal amount of the invoice. */
|
|
9636
|
+
subtotalAmount?: number;
|
|
9637
|
+
/** Discount amount that is applied to the invoice. */
|
|
9638
|
+
discountAmount?: number;
|
|
9639
|
+
/** Shipping amount that is applied to the invoice. */
|
|
9640
|
+
shippingAmount?: number;
|
|
9641
|
+
/** Tax amount that is applied to the invoice. */
|
|
9642
|
+
taxAmount?: number;
|
|
9643
|
+
} | null;
|
|
9546
9644
|
/** Invoice items. */
|
|
9547
9645
|
items?: {
|
|
9548
|
-
/** Type of invoice item. */
|
|
9646
|
+
/** Type of the invoice item. */
|
|
9549
9647
|
type?: "debit" | "credit";
|
|
9550
9648
|
/** Name of the invoice item. */
|
|
9551
9649
|
name?: string;
|
|
@@ -9557,17 +9655,23 @@ export interface coreComponents {
|
|
|
9557
9655
|
*/
|
|
9558
9656
|
priceDescription: string;
|
|
9559
9657
|
/** Unit price of the invoice item. */
|
|
9560
|
-
unitPrice?: number;
|
|
9658
|
+
unitPrice?: number | null;
|
|
9561
9659
|
/** Quantity of the invoice item. */
|
|
9562
9660
|
quantity?: number;
|
|
9563
|
-
/**
|
|
9564
|
-
|
|
9565
|
-
/**
|
|
9566
|
-
|
|
9567
|
-
/**
|
|
9568
|
-
|
|
9661
|
+
/** Date interval of the invoice item. */
|
|
9662
|
+
period?: string | null;
|
|
9663
|
+
/** Unit price of the invoice item. */
|
|
9664
|
+
setupUnitPrice?: number | null;
|
|
9665
|
+
/** Unit price of the invoice item. */
|
|
9666
|
+
trialUnitPrice?: number | null;
|
|
9667
|
+
/** Date interval of the invoice item trial. */
|
|
9668
|
+
trialPeriod?: string | null;
|
|
9569
9669
|
/** Invoice item tax. */
|
|
9570
|
-
|
|
9670
|
+
taxAmount?: number | null;
|
|
9671
|
+
/** Tax amount of the setup that is applied to the invoice. */
|
|
9672
|
+
setupTaxAmount?: number | null;
|
|
9673
|
+
/** Tax amount of the trial that is applied to the invoice. */
|
|
9674
|
+
trialTaxAmount?: number | null;
|
|
9571
9675
|
}[];
|
|
9572
9676
|
};
|
|
9573
9677
|
/** Payment terms for the customer which are displayed on the quote. */
|
|
@@ -12827,6 +12931,61 @@ export interface operations {
|
|
|
12827
12931
|
404: coreComponents["responses"]["NotFound"];
|
|
12828
12932
|
};
|
|
12829
12933
|
};
|
|
12934
|
+
/**
|
|
12935
|
+
* Starts the manual review process for an AML check with a specified ID.
|
|
12936
|
+
*
|
|
12937
|
+
* This operation also sets the AML check `reviewStartTime` to the current date-time,
|
|
12938
|
+
* and updates the review information.
|
|
12939
|
+
*/
|
|
12940
|
+
PostAmlCheckStartReview: {
|
|
12941
|
+
parameters: {
|
|
12942
|
+
path: {
|
|
12943
|
+
/** ID of the resource. */
|
|
12944
|
+
id: coreComponents["parameters"]["resourceId"];
|
|
12945
|
+
};
|
|
12946
|
+
};
|
|
12947
|
+
responses: {
|
|
12948
|
+
/** AML check review started. */
|
|
12949
|
+
201: {
|
|
12950
|
+
headers: {};
|
|
12951
|
+
content: {
|
|
12952
|
+
"application/json": coreComponents["schemas"]["AmlCheck"];
|
|
12953
|
+
};
|
|
12954
|
+
};
|
|
12955
|
+
401: coreComponents["responses"]["Unauthorized"];
|
|
12956
|
+
403: coreComponents["responses"]["Forbidden"];
|
|
12957
|
+
404: coreComponents["responses"]["NotFound"];
|
|
12958
|
+
422: coreComponents["responses"]["ValidationError"];
|
|
12959
|
+
};
|
|
12960
|
+
};
|
|
12961
|
+
/**
|
|
12962
|
+
* Stops the manual review process for an AML check with a specified ID.
|
|
12963
|
+
*
|
|
12964
|
+
* This operation also sets the AML check `reviewStartTime` and the reviewer information to null.
|
|
12965
|
+
* Use this operation when the reviewer must stop the review.
|
|
12966
|
+
* For example, if the reviewer must take a break, or ends a shift.
|
|
12967
|
+
*/
|
|
12968
|
+
PostAmlCheckStopReview: {
|
|
12969
|
+
parameters: {
|
|
12970
|
+
path: {
|
|
12971
|
+
/** ID of the resource. */
|
|
12972
|
+
id: coreComponents["parameters"]["resourceId"];
|
|
12973
|
+
};
|
|
12974
|
+
};
|
|
12975
|
+
responses: {
|
|
12976
|
+
/** AML document review stopped. */
|
|
12977
|
+
201: {
|
|
12978
|
+
headers: {};
|
|
12979
|
+
content: {
|
|
12980
|
+
"application/json": coreComponents["schemas"]["AmlCheck"];
|
|
12981
|
+
};
|
|
12982
|
+
};
|
|
12983
|
+
401: coreComponents["responses"]["Unauthorized"];
|
|
12984
|
+
403: coreComponents["responses"]["Forbidden"];
|
|
12985
|
+
404: coreComponents["responses"]["NotFound"];
|
|
12986
|
+
422: coreComponents["responses"]["ValidationError"];
|
|
12987
|
+
};
|
|
12988
|
+
};
|
|
12830
12989
|
/**
|
|
12831
12990
|
* Reviews an AML check.
|
|
12832
12991
|
* The AML check can be either confirmed or marked as a false positive with a customer tag.
|
|
@@ -18482,7 +18641,7 @@ export interface operations {
|
|
|
18482
18641
|
/**
|
|
18483
18642
|
* Tags an AML check.
|
|
18484
18643
|
*
|
|
18485
|
-
* If
|
|
18644
|
+
* If an AML check in the list does not have the specified tag applied, the AML check is ignored.
|
|
18486
18645
|
*/
|
|
18487
18646
|
PostTagAmlCheck: {
|
|
18488
18647
|
parameters: {
|
|
@@ -18504,7 +18663,7 @@ export interface operations {
|
|
|
18504
18663
|
/**
|
|
18505
18664
|
* Untags an AML check.
|
|
18506
18665
|
*
|
|
18507
|
-
* If
|
|
18666
|
+
* If an AML check in the list does not have the specified tag applied, the AML check is ignored.
|
|
18508
18667
|
*/
|
|
18509
18668
|
DeleteTagAmlCheck: {
|
|
18510
18669
|
parameters: {
|
|
@@ -25411,8 +25570,8 @@ export interface usersComponents {
|
|
|
25411
25570
|
/** Account type of the split payment. */
|
|
25412
25571
|
type?: "BalanceAccount" | "Commission" | "Remainder" | "PaymentFee";
|
|
25413
25572
|
}[];
|
|
25414
|
-
/** Total tax
|
|
25415
|
-
|
|
25573
|
+
/** Total tax percentage as a decimal. Use this field to calculate the total tax amount to send with level 2 enhanced scheme data. */
|
|
25574
|
+
totalTaxRate?: number;
|
|
25416
25575
|
/** Specifies whether to use Mail Order Telephone Order (MOTO). */
|
|
25417
25576
|
enableMoto: boolean;
|
|
25418
25577
|
};
|
|
@@ -27849,6 +28008,8 @@ export interface usersComponents {
|
|
|
27849
28008
|
merchantId: string;
|
|
27850
28009
|
/** Service API key. */
|
|
27851
28010
|
serviceApiKey: string;
|
|
28011
|
+
/** Remote API key. */
|
|
28012
|
+
remoteApiKey?: string;
|
|
27852
28013
|
};
|
|
27853
28014
|
/** Telr settings object. */
|
|
27854
28015
|
settings?: {
|
|
@@ -28099,6 +28260,12 @@ export interface usersComponents {
|
|
|
28099
28260
|
alternativePaymentsUsername?: string;
|
|
28100
28261
|
/** Optional API password for an alternative payments platform. */
|
|
28101
28262
|
alternativePaymentsPassword?: string;
|
|
28263
|
+
/** SFTP username. */
|
|
28264
|
+
sftpUsername?: string;
|
|
28265
|
+
/** SFTP private key. */
|
|
28266
|
+
sftpPrivateKey?: string;
|
|
28267
|
+
/** Password of the SFTP private key. */
|
|
28268
|
+
sftpPrivateKeyPassword?: string;
|
|
28102
28269
|
};
|
|
28103
28270
|
threeDSecureServer?: usersComponents["schemas"]["ThreeDSecureIO3dsServer"];
|
|
28104
28271
|
settings?: {
|
|
@@ -38506,23 +38673,43 @@ export interface storefrontComponents {
|
|
|
38506
38673
|
deliveryAddress?: storefrontComponents["schemas"]["ContactObject"] | null;
|
|
38507
38674
|
/** Billing address of the order. */
|
|
38508
38675
|
billingAddress?: storefrontComponents["schemas"]["ContactObject"] | null;
|
|
38509
|
-
/** Preview of
|
|
38676
|
+
/** Preview of the quote invoice. */
|
|
38510
38677
|
invoicePreview?: {
|
|
38511
38678
|
/** Currency of the invoice. */
|
|
38512
38679
|
currency?: storefrontComponents["schemas"]["CurrencyCode"];
|
|
38513
|
-
/**
|
|
38514
|
-
|
|
38515
|
-
|
|
38516
|
-
|
|
38517
|
-
|
|
38518
|
-
|
|
38519
|
-
|
|
38520
|
-
|
|
38521
|
-
|
|
38522
|
-
|
|
38680
|
+
/** Total amounts of the initial invoice. */
|
|
38681
|
+
initialAmounts?: {
|
|
38682
|
+
/** Amount of the invoice. */
|
|
38683
|
+
amount?: number;
|
|
38684
|
+
/** Subtotal amount of the invoice. */
|
|
38685
|
+
subtotalAmount?: number;
|
|
38686
|
+
/** Discount amount that is applied to the invoice. */
|
|
38687
|
+
discountAmount?: number;
|
|
38688
|
+
/** Shipping amount that is applied to the invoice. */
|
|
38689
|
+
shippingAmount?: number;
|
|
38690
|
+
/** Tax amount that is applied to the invoice. */
|
|
38691
|
+
taxAmount?: number;
|
|
38692
|
+
};
|
|
38693
|
+
/**
|
|
38694
|
+
* Total amounts of the recurring invoice.
|
|
38695
|
+
* This includes recurring items only.
|
|
38696
|
+
* If the quote does not have recurring items, the value of this field is `null`.
|
|
38697
|
+
*/
|
|
38698
|
+
recurringAmounts?: {
|
|
38699
|
+
/** Amount of the invoice. */
|
|
38700
|
+
amount?: number;
|
|
38701
|
+
/** Subtotal amount of the invoice. */
|
|
38702
|
+
subtotalAmount?: number;
|
|
38703
|
+
/** Discount amount that is applied to the invoice. */
|
|
38704
|
+
discountAmount?: number;
|
|
38705
|
+
/** Shipping amount that is applied to the invoice. */
|
|
38706
|
+
shippingAmount?: number;
|
|
38707
|
+
/** Tax amount that is applied to the invoice. */
|
|
38708
|
+
taxAmount?: number;
|
|
38709
|
+
} | null;
|
|
38523
38710
|
/** Invoice items. */
|
|
38524
38711
|
items?: {
|
|
38525
|
-
/** Type of invoice item. */
|
|
38712
|
+
/** Type of the invoice item. */
|
|
38526
38713
|
type?: "debit" | "credit";
|
|
38527
38714
|
/** Name of the invoice item. */
|
|
38528
38715
|
name?: string;
|
|
@@ -38534,17 +38721,25 @@ export interface storefrontComponents {
|
|
|
38534
38721
|
*/
|
|
38535
38722
|
priceDescription: string;
|
|
38536
38723
|
/** Unit price of the invoice item. */
|
|
38537
|
-
unitPrice?: number;
|
|
38724
|
+
unitPrice?: number | null;
|
|
38538
38725
|
/** Quantity of the invoice item. */
|
|
38539
38726
|
quantity?: number;
|
|
38540
38727
|
/** Total price of the invoice item. */
|
|
38541
38728
|
price?: number;
|
|
38542
|
-
/** Date
|
|
38543
|
-
|
|
38544
|
-
/**
|
|
38545
|
-
|
|
38729
|
+
/** Date interval of the invoice item. */
|
|
38730
|
+
period?: string | null;
|
|
38731
|
+
/** Unit price of the invoice item. */
|
|
38732
|
+
setupUnitPrice?: number | null;
|
|
38733
|
+
/** Unit price of the invoice item. */
|
|
38734
|
+
trialUnitPrice?: number | null;
|
|
38735
|
+
/** Date interval of the invoice item trial. */
|
|
38736
|
+
trialPeriod?: string | null;
|
|
38546
38737
|
/** Invoice item tax. */
|
|
38547
|
-
|
|
38738
|
+
taxAmount?: number | null;
|
|
38739
|
+
/** Tax amount of the setup that is applied to the invoice. */
|
|
38740
|
+
setupTaxAmount?: number | null;
|
|
38741
|
+
/** Tax amount of the trial that is applied to the invoice. */
|
|
38742
|
+
trialTaxAmount?: number | null;
|
|
38548
38743
|
}[];
|
|
38549
38744
|
};
|
|
38550
38745
|
/** Payment terms for the customer which are displayed on the quote. */
|
|
@@ -42889,6 +43084,12 @@ declare module "resources/aml-checks-resource" {
|
|
|
42889
43084
|
get({ id }: {
|
|
42890
43085
|
id: any;
|
|
42891
43086
|
}): rebilly.GetAmlCheckResponsePromise;
|
|
43087
|
+
startReview({ id }: {
|
|
43088
|
+
id: any;
|
|
43089
|
+
}): any;
|
|
43090
|
+
stopReview({ id }: {
|
|
43091
|
+
id: any;
|
|
43092
|
+
}): any;
|
|
42892
43093
|
review({ id, data }: {
|
|
42893
43094
|
id: any;
|
|
42894
43095
|
data: any;
|
|
@@ -44690,6 +44891,12 @@ declare module "resources/api-instance" {
|
|
|
44690
44891
|
get({ id }: {
|
|
44691
44892
|
id: any;
|
|
44692
44893
|
}): rebilly.GetAmlCheckResponsePromise;
|
|
44894
|
+
startReview({ id }: {
|
|
44895
|
+
id: any;
|
|
44896
|
+
}): any;
|
|
44897
|
+
stopReview({ id }: {
|
|
44898
|
+
id: any;
|
|
44899
|
+
}): any;
|
|
44693
44900
|
review({ id, data }: {
|
|
44694
44901
|
id: any;
|
|
44695
44902
|
data: any;
|
|
@@ -388,7 +388,7 @@ function cloneArrayDeep(val, instanceClone) {
|
|
|
388
388
|
return res;
|
|
389
389
|
}
|
|
390
390
|
var cloneDeep_1 = cloneDeep;
|
|
391
|
-
const version = "53.0.
|
|
391
|
+
const version = "53.0.2";
|
|
392
392
|
let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
393
393
|
let nanoid = (size = 21) => {
|
|
394
394
|
let id = "";
|
|
@@ -760,6 +760,12 @@ function AmlChecksResource({ apiHandler }) {
|
|
|
760
760
|
get({ id }) {
|
|
761
761
|
return apiHandler.get(`aml-checks/${id}`);
|
|
762
762
|
},
|
|
763
|
+
startReview({ id }) {
|
|
764
|
+
return apiHandler.post(`aml-checks/${id}/start-review`);
|
|
765
|
+
},
|
|
766
|
+
stopReview({ id }) {
|
|
767
|
+
return apiHandler.post(`aml-checks/${id}/stop-review`);
|
|
768
|
+
},
|
|
763
769
|
review({ id, data }) {
|
|
764
770
|
return apiHandler.post(`aml-checks/${id}/review`, data);
|
|
765
771
|
}
|
|
@@ -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="53.0.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 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}`)},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"}})});
|
|
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="53.0.2";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}`)},startReview({id:e}){return t.post(`aml-checks/${e}/start-review`)},stopReview({id:e}){return t.post(`aml-checks/${e}/stop-review`)},review({id:e,data:s}){return t.post(`aml-checks/${e}/review`,s)}}}function 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}`)},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": "54.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",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"axios": "^0.27.2",
|
|
68
|
-
"nanoid": "^
|
|
68
|
+
"nanoid": "^5.0.1"
|
|
69
69
|
},
|
|
70
70
|
"resolutions": {
|
|
71
71
|
"glob-parent": "^5.1.2",
|
|
@@ -25,6 +25,12 @@ export default function AmlChecksResource({apiHandler}) {
|
|
|
25
25
|
get({id}) {
|
|
26
26
|
return apiHandler.get(`aml-checks/${id}`);
|
|
27
27
|
},
|
|
28
|
+
startReview({id}) {
|
|
29
|
+
return apiHandler.post(`aml-checks/${id}/start-review`);
|
|
30
|
+
},
|
|
31
|
+
stopReview({id}) {
|
|
32
|
+
return apiHandler.post(`aml-checks/${id}/stop-review`);
|
|
33
|
+
},
|
|
28
34
|
review({id, data}) {
|
|
29
35
|
return apiHandler.post(`aml-checks/${id}/review`, data);
|
|
30
36
|
},
|