@rebilly/instruments 16.186.0 → 16.187.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 +2 -2
- package/dist/index.js +105 -96
- package/dist/index.min.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6406,7 +6406,7 @@ E$1(I$1, "cancelAll", async (t) => {
|
|
|
6406
6406
|
for (const s of q$1.getAll())
|
|
6407
6407
|
await s.cancel(t), q$1.deleteById(s.id);
|
|
6408
6408
|
});
|
|
6409
|
-
const
|
|
6409
|
+
const rr = {
|
|
6410
6410
|
/**
|
|
6411
6411
|
* @type Cancellation.cancelAll
|
|
6412
6412
|
*/
|
|
@@ -6440,7 +6440,7 @@ function O$1({ options: e }) {
|
|
|
6440
6440
|
}
|
|
6441
6441
|
function o() {
|
|
6442
6442
|
const a = {
|
|
6443
|
-
"REB-API-CONSUMER": `${["Rebilly", e.appName, "js-sdk"].filter((m2) => m2).join("/")}@
|
|
6443
|
+
"REB-API-CONSUMER": `${["Rebilly", e.appName, "js-sdk"].filter((m2) => m2).join("/")}@bbaa684`
|
|
6444
6444
|
};
|
|
6445
6445
|
return e.apiKey && (a["REB-APIKEY"] = e.apiKey), a;
|
|
6446
6446
|
}
|
|
@@ -8943,6 +8943,13 @@ function Fe$1({ apiHandler: e }) {
|
|
|
8943
8943
|
};
|
|
8944
8944
|
}
|
|
8945
8945
|
function Be$1({ apiHandler: e }) {
|
|
8946
|
+
return {
|
|
8947
|
+
create({ data: t }) {
|
|
8948
|
+
return e.post("payout-request-auto-allocations", t);
|
|
8949
|
+
}
|
|
8950
|
+
};
|
|
8951
|
+
}
|
|
8952
|
+
function Ke$1({ apiHandler: e }) {
|
|
8946
8953
|
return {
|
|
8947
8954
|
/**
|
|
8948
8955
|
* @param { rebilly.GetPayoutRequestBatchCollectionRequest } request
|
|
@@ -9006,14 +9013,14 @@ function Be$1({ apiHandler: e }) {
|
|
|
9006
9013
|
}
|
|
9007
9014
|
};
|
|
9008
9015
|
}
|
|
9009
|
-
function
|
|
9016
|
+
function Ne$1({ apiHandler: e }) {
|
|
9010
9017
|
return {
|
|
9011
9018
|
create({ data: t }) {
|
|
9012
9019
|
return e.post("payout-request-splits", t);
|
|
9013
9020
|
}
|
|
9014
9021
|
};
|
|
9015
9022
|
}
|
|
9016
|
-
function
|
|
9023
|
+
function Le$1({ apiHandler: e }) {
|
|
9017
9024
|
return {
|
|
9018
9025
|
/**
|
|
9019
9026
|
* @param { rebilly.GetPayoutRequestCollectionRequest } request
|
|
@@ -9080,14 +9087,14 @@ function Ne$1({ apiHandler: e }) {
|
|
|
9080
9087
|
}
|
|
9081
9088
|
};
|
|
9082
9089
|
}
|
|
9083
|
-
function
|
|
9090
|
+
function ze$1({ apiHandler: e }) {
|
|
9084
9091
|
return {
|
|
9085
9092
|
create({ data: t }) {
|
|
9086
9093
|
return e.post("payouts", t);
|
|
9087
9094
|
}
|
|
9088
9095
|
};
|
|
9089
9096
|
}
|
|
9090
|
-
function
|
|
9097
|
+
function Ue$1({ apiHandler: e }) {
|
|
9091
9098
|
return {
|
|
9092
9099
|
/**
|
|
9093
9100
|
* @param { rebilly.GetPlanCollectionRequest } request
|
|
@@ -9127,7 +9134,7 @@ function ze$1({ apiHandler: e }) {
|
|
|
9127
9134
|
}
|
|
9128
9135
|
};
|
|
9129
9136
|
}
|
|
9130
|
-
function
|
|
9137
|
+
function Ve$1({ apiHandler: e }) {
|
|
9131
9138
|
return {
|
|
9132
9139
|
order({ data: t }) {
|
|
9133
9140
|
return e.post("previews/orders", t);
|
|
@@ -9140,7 +9147,7 @@ function Ue$1({ apiHandler: e }) {
|
|
|
9140
9147
|
}
|
|
9141
9148
|
};
|
|
9142
9149
|
}
|
|
9143
|
-
function
|
|
9150
|
+
function Je$1({ apiHandler: e }) {
|
|
9144
9151
|
return {
|
|
9145
9152
|
/**
|
|
9146
9153
|
* @param { rebilly.GetProductCollectionRequest } request
|
|
@@ -9180,7 +9187,7 @@ function Ve$1({ apiHandler: e }) {
|
|
|
9180
9187
|
}
|
|
9181
9188
|
};
|
|
9182
9189
|
}
|
|
9183
|
-
function
|
|
9190
|
+
function We$1({ apiHandler: e }) {
|
|
9184
9191
|
return {
|
|
9185
9192
|
startPermissionsEmulation({ data: t }) {
|
|
9186
9193
|
return e.post("permissions-emulation", t);
|
|
@@ -9233,14 +9240,14 @@ function Je$1({ apiHandler: e }) {
|
|
|
9233
9240
|
}
|
|
9234
9241
|
};
|
|
9235
9242
|
}
|
|
9236
|
-
function
|
|
9243
|
+
function Ge$1({ apiHandler: e }) {
|
|
9237
9244
|
return {
|
|
9238
9245
|
readyToPay({ data: t }) {
|
|
9239
9246
|
return e.post("ready-to-pay", t);
|
|
9240
9247
|
}
|
|
9241
9248
|
};
|
|
9242
9249
|
}
|
|
9243
|
-
function
|
|
9250
|
+
function Ye$1({ apiHandler: e }) {
|
|
9244
9251
|
return {
|
|
9245
9252
|
/**
|
|
9246
9253
|
* @param { rebilly.GetQuoteCollectionRequest } request
|
|
@@ -9330,7 +9337,7 @@ function Ge$1({ apiHandler: e }) {
|
|
|
9330
9337
|
}
|
|
9331
9338
|
};
|
|
9332
9339
|
}
|
|
9333
|
-
function
|
|
9340
|
+
function Qe$1({ apiHandler: e }) {
|
|
9334
9341
|
return {
|
|
9335
9342
|
/**
|
|
9336
9343
|
* @returns { rebilly.GetExternalIdentifierResponsePromise } response
|
|
@@ -9361,7 +9368,7 @@ function Ye$1({ apiHandler: e }) {
|
|
|
9361
9368
|
}
|
|
9362
9369
|
};
|
|
9363
9370
|
}
|
|
9364
|
-
function
|
|
9371
|
+
function Xe$1({ apiHandler: e }) {
|
|
9365
9372
|
return {
|
|
9366
9373
|
/**
|
|
9367
9374
|
* @returns { rebilly.GetRiskScoreRulesResponsePromise } response
|
|
@@ -9389,7 +9396,7 @@ function Qe$1({ apiHandler: e }) {
|
|
|
9389
9396
|
}
|
|
9390
9397
|
};
|
|
9391
9398
|
}
|
|
9392
|
-
function
|
|
9399
|
+
function Ze$1({ apiHandler: e }) {
|
|
9393
9400
|
return {
|
|
9394
9401
|
/**
|
|
9395
9402
|
* @param { rebilly.GetRoleCollectionRequest } request
|
|
@@ -9431,7 +9438,7 @@ function Xe$1({ apiHandler: e }) {
|
|
|
9431
9438
|
}
|
|
9432
9439
|
};
|
|
9433
9440
|
}
|
|
9434
|
-
function
|
|
9441
|
+
function _e$1({ apiHandler: e }) {
|
|
9435
9442
|
return {
|
|
9436
9443
|
/**
|
|
9437
9444
|
* @returns { rebilly.GetSearchResponsePromise } response
|
|
@@ -9442,7 +9449,7 @@ function Ze$1({ apiHandler: e }) {
|
|
|
9442
9449
|
}
|
|
9443
9450
|
};
|
|
9444
9451
|
}
|
|
9445
|
-
function
|
|
9452
|
+
function He$1({ apiHandler: e }) {
|
|
9446
9453
|
return {
|
|
9447
9454
|
/**
|
|
9448
9455
|
* @param { rebilly.GetGridSegmentCollectionRequest } request
|
|
@@ -9482,7 +9489,7 @@ function _e$1({ apiHandler: e }) {
|
|
|
9482
9489
|
}
|
|
9483
9490
|
};
|
|
9484
9491
|
}
|
|
9485
|
-
function
|
|
9492
|
+
function ts({ apiHandler: e }) {
|
|
9486
9493
|
return {
|
|
9487
9494
|
/**
|
|
9488
9495
|
* @returns { rebilly.GetSendThroughAttributionCollectionResponsePromise } response
|
|
@@ -9492,7 +9499,7 @@ function He$1({ apiHandler: e }) {
|
|
|
9492
9499
|
}
|
|
9493
9500
|
};
|
|
9494
9501
|
}
|
|
9495
|
-
function
|
|
9502
|
+
function es({ apiHandler: e }) {
|
|
9496
9503
|
return {
|
|
9497
9504
|
/**
|
|
9498
9505
|
* @param { rebilly.GetServiceCredentialCollectionRequest } request
|
|
@@ -9543,7 +9550,7 @@ function ts({ apiHandler: e }) {
|
|
|
9543
9550
|
}
|
|
9544
9551
|
};
|
|
9545
9552
|
}
|
|
9546
|
-
function
|
|
9553
|
+
function ss({ apiHandler: e }) {
|
|
9547
9554
|
return {
|
|
9548
9555
|
/**
|
|
9549
9556
|
* @param { rebilly.GetShippingRateCollectionRequest } request
|
|
@@ -9583,7 +9590,7 @@ function es({ apiHandler: e }) {
|
|
|
9583
9590
|
}
|
|
9584
9591
|
};
|
|
9585
9592
|
}
|
|
9586
|
-
function
|
|
9593
|
+
function rs({ apiHandler: e }) {
|
|
9587
9594
|
return {
|
|
9588
9595
|
/**
|
|
9589
9596
|
* @returns { rebilly.GetStatusResponsePromise } response
|
|
@@ -9593,7 +9600,7 @@ function ss({ apiHandler: e }) {
|
|
|
9593
9600
|
}
|
|
9594
9601
|
};
|
|
9595
9602
|
}
|
|
9596
|
-
function
|
|
9603
|
+
function ns({ apiHandler: e }) {
|
|
9597
9604
|
return {
|
|
9598
9605
|
/**
|
|
9599
9606
|
* @param { rebilly.GetSubscriptionCancellationCollectionRequest } request
|
|
@@ -9624,7 +9631,7 @@ function rs({ apiHandler: e }) {
|
|
|
9624
9631
|
}
|
|
9625
9632
|
};
|
|
9626
9633
|
}
|
|
9627
|
-
function
|
|
9634
|
+
function us({ apiHandler: e }) {
|
|
9628
9635
|
return {
|
|
9629
9636
|
/**
|
|
9630
9637
|
* @param { rebilly.GetSubscriptionPauseCollectionRequest } request
|
|
@@ -9658,7 +9665,7 @@ function ns({ apiHandler: e }) {
|
|
|
9658
9665
|
}
|
|
9659
9666
|
};
|
|
9660
9667
|
}
|
|
9661
|
-
function
|
|
9668
|
+
function os({ apiHandler: e }) {
|
|
9662
9669
|
return {
|
|
9663
9670
|
/**
|
|
9664
9671
|
* @param { rebilly.GetSubscriptionReactivationCollectionRequest } request
|
|
@@ -9679,7 +9686,7 @@ function us({ apiHandler: e }) {
|
|
|
9679
9686
|
}
|
|
9680
9687
|
};
|
|
9681
9688
|
}
|
|
9682
|
-
function
|
|
9689
|
+
function ls({ apiHandler: e }) {
|
|
9683
9690
|
return {
|
|
9684
9691
|
/**
|
|
9685
9692
|
* @param { rebilly.GetSubscriptionCollectionRequest } request
|
|
@@ -9790,7 +9797,7 @@ function os({ apiHandler: e }) {
|
|
|
9790
9797
|
}
|
|
9791
9798
|
};
|
|
9792
9799
|
}
|
|
9793
|
-
function
|
|
9800
|
+
function cs({ apiHandler: e }) {
|
|
9794
9801
|
return {
|
|
9795
9802
|
/**
|
|
9796
9803
|
* @param { rebilly.GetTagCollectionRequest } request
|
|
@@ -9859,7 +9866,7 @@ function ls({ apiHandler: e }) {
|
|
|
9859
9866
|
}
|
|
9860
9867
|
};
|
|
9861
9868
|
}
|
|
9862
|
-
function
|
|
9869
|
+
function is({ apiHandler: e }) {
|
|
9863
9870
|
return {
|
|
9864
9871
|
/**
|
|
9865
9872
|
* @param { rebilly.GetTagRuleCollectionRequest } request
|
|
@@ -9899,7 +9906,7 @@ function cs({ apiHandler: e }) {
|
|
|
9899
9906
|
}
|
|
9900
9907
|
};
|
|
9901
9908
|
}
|
|
9902
|
-
function
|
|
9909
|
+
function as({ apiHandler: e }) {
|
|
9903
9910
|
return {
|
|
9904
9911
|
/**
|
|
9905
9912
|
* @param { rebilly.GetTrackingApiCollectionRequest } request
|
|
@@ -9981,7 +9988,7 @@ function is({ apiHandler: e }) {
|
|
|
9981
9988
|
}
|
|
9982
9989
|
};
|
|
9983
9990
|
}
|
|
9984
|
-
function
|
|
9991
|
+
function gs({ apiHandler: e }) {
|
|
9985
9992
|
return {
|
|
9986
9993
|
/**
|
|
9987
9994
|
* @param { rebilly.GetTransactionCollectionRequest } request
|
|
@@ -10058,7 +10065,7 @@ function as({ apiHandler: e }) {
|
|
|
10058
10065
|
}
|
|
10059
10066
|
};
|
|
10060
10067
|
}
|
|
10061
|
-
function
|
|
10068
|
+
function ms({ apiHandler: e }) {
|
|
10062
10069
|
return {
|
|
10063
10070
|
/**
|
|
10064
10071
|
* @param { rebilly.GetUsageCollectionRequest } request
|
|
@@ -10088,7 +10095,7 @@ function gs({ apiHandler: e }) {
|
|
|
10088
10095
|
}
|
|
10089
10096
|
};
|
|
10090
10097
|
}
|
|
10091
|
-
function
|
|
10098
|
+
function fs({ apiHandler: e }) {
|
|
10092
10099
|
return {
|
|
10093
10100
|
/**
|
|
10094
10101
|
* @param { rebilly.GetUserCollectionRequest } request
|
|
@@ -10131,7 +10138,7 @@ function ms({ apiHandler: e }) {
|
|
|
10131
10138
|
}
|
|
10132
10139
|
};
|
|
10133
10140
|
}
|
|
10134
|
-
function
|
|
10141
|
+
function ps({ apiHandler: e }) {
|
|
10135
10142
|
return {
|
|
10136
10143
|
/**
|
|
10137
10144
|
* @param { rebilly.GetWebhookCollectionRequest } request
|
|
@@ -10165,7 +10172,7 @@ function fs({ apiHandler: e }) {
|
|
|
10165
10172
|
}
|
|
10166
10173
|
};
|
|
10167
10174
|
}
|
|
10168
|
-
function
|
|
10175
|
+
function $s({ apiHandler: e }) {
|
|
10169
10176
|
return {
|
|
10170
10177
|
/**
|
|
10171
10178
|
* @param { rebilly.GetWebsiteCollectionRequest } request
|
|
@@ -10205,7 +10212,7 @@ function ps({ apiHandler: e }) {
|
|
|
10205
10212
|
}
|
|
10206
10213
|
};
|
|
10207
10214
|
}
|
|
10208
|
-
class
|
|
10215
|
+
class hs {
|
|
10209
10216
|
constructor({ apiHandler: t }) {
|
|
10210
10217
|
this.accountRegistrationSettings = Ft$1({
|
|
10211
10218
|
apiHandler: t
|
|
@@ -10215,14 +10222,16 @@ class $s {
|
|
|
10215
10222
|
apiHandler: t
|
|
10216
10223
|
}), this.fees = pe$1({ apiHandler: t }), this.files = $e$1({ apiHandler: t }), this.gatewayAccounts = he$1({ apiHandler: t }), this.integrations = ye$1({ apiHandler: t }), this.invoices = Ae$1({ apiHandler: t }), this.journalAccounts = Re$1({ apiHandler: t }), this.journalEntries = be({ apiHandler: t }), this.journalRecords = we$1({ apiHandler: t }), this.kycDocuments = ke$1({ apiHandler: t }), this.kycRequests = ve$1({ apiHandler: t }), this.kycSettings = qe$1({ apiHandler: t }), this.lists = de$1({ apiHandler: t }), this.memberships = Te$1({ apiHandler: t }), this.orderCancellations = Ie$1({ apiHandler: t }), this.orderPauses = Se$1({ apiHandler: t }), this.orderReactivations = Ee$1({ apiHandler: t }), this.orders = xe$1({ apiHandler: t }), this.organizationExports = Pe$1({ apiHandler: t }), this.organizations = Ce$1({ apiHandler: t }), this.paymentCardsBankNames = De$1({ apiHandler: t }), this.paymentInstruments = je$1({ apiHandler: t }), this.paymentMethods = Me$1({ apiHandler: t }), this.paymentTokens = Oe$1({ apiHandler: t }), this.payoutRequestAllocations = Fe$1({
|
|
10217
10224
|
apiHandler: t
|
|
10218
|
-
}), this.
|
|
10225
|
+
}), this.payoutRequestAutoAllocations = Be$1({
|
|
10219
10226
|
apiHandler: t
|
|
10220
|
-
}), this.
|
|
10227
|
+
}), this.payoutRequestBatches = Ke$1({ apiHandler: t }), this.payoutRequestSplits = Ne$1({ apiHandler: t }), this.payoutRequests = Le$1({ apiHandler: t }), this.payouts = ze$1({ apiHandler: t }), this.plans = Ue$1({ apiHandler: t }), this.previews = Ve$1({ apiHandler: t }), this.products = Je$1({ apiHandler: t }), this.profile = We$1({ apiHandler: t }), this.purchase = Ge$1({ apiHandler: t }), this.quotes = Ye$1({ apiHandler: t }), this.resource = Qe$1({ apiHandler: t }), this.riskScoreRules = Xe$1({ apiHandler: t }), this.roles = Ze$1({ apiHandler: t }), this.search = _e$1({ apiHandler: t }), this.segments = He$1({ apiHandler: t }), this.sendThroughAttribution = ts({ apiHandler: t }), this.serviceCredentials = es({ apiHandler: t }), this.shippingRates = ss({ apiHandler: t }), this.status = rs({ apiHandler: t }), this.subscriptionCancellations = ns({
|
|
10221
10228
|
apiHandler: t
|
|
10222
|
-
}), this.
|
|
10229
|
+
}), this.subscriptionPauses = us({ apiHandler: t }), this.subscriptionReactivations = os({
|
|
10230
|
+
apiHandler: t
|
|
10231
|
+
}), this.subscriptions = ls({ apiHandler: t }), this.tags = cs({ apiHandler: t }), this.tagsRules = is({ apiHandler: t }), this.tracking = as({ apiHandler: t }), this.transactions = gs({ apiHandler: t }), this.usages = ms({ apiHandler: t }), this.users = fs({ apiHandler: t }), this.webhooks = ps({ apiHandler: t }), this.websites = $s({ apiHandler: t }), this.addRequestInterceptor = t.addRequestInterceptor, this.removeRequestInterceptor = t.removeRequestInterceptor, this.addResponseInterceptor = t.addResponseInterceptor, this.removeResponseInterceptor = t.removeResponseInterceptor, this.setTimeout = t.setTimeout, this.setProxyAgent = t.setProxyAgent, this.setSessionToken = t.setSessionToken, this.setPublishableKey = t.setPublishableKey, this.setEndpoints = t.setEndpoints, this.getCancellationToken = t.getCancellationToken, this.generateSignature = t.generateSignature;
|
|
10223
10232
|
}
|
|
10224
10233
|
}
|
|
10225
|
-
function
|
|
10234
|
+
function ys({ apiHandler: e }) {
|
|
10226
10235
|
return {
|
|
10227
10236
|
/**
|
|
10228
10237
|
* @returns { rebilly.GetCustomerSummaryMetricReportResponsePromise } response
|
|
@@ -10232,7 +10241,7 @@ function hs({ apiHandler: e }) {
|
|
|
10232
10241
|
}
|
|
10233
10242
|
};
|
|
10234
10243
|
}
|
|
10235
|
-
function
|
|
10244
|
+
function As({ apiHandler: e }) {
|
|
10236
10245
|
return {
|
|
10237
10246
|
/**
|
|
10238
10247
|
* @param { rebilly.GetDataExportCollectionRequest } request
|
|
@@ -10277,7 +10286,7 @@ function ys({ apiHandler: e }) {
|
|
|
10277
10286
|
}
|
|
10278
10287
|
};
|
|
10279
10288
|
}
|
|
10280
|
-
function
|
|
10289
|
+
function Rs({ apiHandler: e }) {
|
|
10281
10290
|
return {
|
|
10282
10291
|
/**
|
|
10283
10292
|
* @returns { rebilly.GetHistogramAmlCheckReportResponsePromise } response
|
|
@@ -10321,7 +10330,7 @@ function As({ apiHandler: e }) {
|
|
|
10321
10330
|
}
|
|
10322
10331
|
};
|
|
10323
10332
|
}
|
|
10324
|
-
function
|
|
10333
|
+
function bs({ apiHandler: e }) {
|
|
10325
10334
|
return {
|
|
10326
10335
|
/**
|
|
10327
10336
|
* @returns { rebilly.GetApiLogSummaryReportResponsePromise } response
|
|
@@ -10820,7 +10829,7 @@ function Rs({ apiHandler: e }) {
|
|
|
10820
10829
|
}
|
|
10821
10830
|
};
|
|
10822
10831
|
}
|
|
10823
|
-
function
|
|
10832
|
+
function ws({ apiHandler: e }) {
|
|
10824
10833
|
return {
|
|
10825
10834
|
/**
|
|
10826
10835
|
* @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
|
|
@@ -10830,7 +10839,7 @@ function bs({ apiHandler: e }) {
|
|
|
10830
10839
|
}
|
|
10831
10840
|
};
|
|
10832
10841
|
}
|
|
10833
|
-
function
|
|
10842
|
+
function ks({ apiHandler: e }) {
|
|
10834
10843
|
return {
|
|
10835
10844
|
getActivityFeed({ eventTypes: t = null, limit: s = 1e3, offset: r = 0 }) {
|
|
10836
10845
|
const n = {
|
|
@@ -10858,7 +10867,7 @@ function ws({ apiHandler: e }) {
|
|
|
10858
10867
|
}
|
|
10859
10868
|
};
|
|
10860
10869
|
}
|
|
10861
|
-
function
|
|
10870
|
+
function vs({ apiHandler: e }) {
|
|
10862
10871
|
return {
|
|
10863
10872
|
query() {
|
|
10864
10873
|
return e.get("location");
|
|
@@ -10866,15 +10875,15 @@ function ks({ apiHandler: e }) {
|
|
|
10866
10875
|
};
|
|
10867
10876
|
}
|
|
10868
10877
|
const b = {
|
|
10869
|
-
CustomersResource:
|
|
10870
|
-
DataExportsResource:
|
|
10871
|
-
HistogramsResource:
|
|
10872
|
-
ReportsResource:
|
|
10873
|
-
SubscriptionsResource:
|
|
10874
|
-
TimelinesResource:
|
|
10875
|
-
LocationResource:
|
|
10878
|
+
CustomersResource: ys,
|
|
10879
|
+
DataExportsResource: As,
|
|
10880
|
+
HistogramsResource: Rs,
|
|
10881
|
+
ReportsResource: bs,
|
|
10882
|
+
SubscriptionsResource: ws,
|
|
10883
|
+
TimelinesResource: ks,
|
|
10884
|
+
LocationResource: vs
|
|
10876
10885
|
};
|
|
10877
|
-
class
|
|
10886
|
+
class qs {
|
|
10878
10887
|
constructor({ apiHandler: t }) {
|
|
10879
10888
|
this.customers = b.CustomersResource({ apiHandler: t }), this.dataExports = b.DataExportsResource({
|
|
10880
10889
|
apiHandler: t
|
|
@@ -10883,7 +10892,7 @@ class vs {
|
|
|
10883
10892
|
}), this.timelines = b.TimelinesResource({ apiHandler: t }), this.location = b.LocationResource({ apiHandler: t }), this.addRequestInterceptor = t.addRequestInterceptor, this.removeRequestInterceptor = t.removeRequestInterceptor, this.addResponseInterceptor = t.addResponseInterceptor, this.removeResponseInterceptor = t.removeResponseInterceptor, this.setTimeout = t.setTimeout, this.setProxyAgent = t.setProxyAgent, this.setSessionToken = t.setSessionToken, this.setEndpoints = t.setEndpoints, this.getCancellationToken = t.getCancellationToken;
|
|
10884
10893
|
}
|
|
10885
10894
|
}
|
|
10886
|
-
function
|
|
10895
|
+
function ds({ apiHandler: e }) {
|
|
10887
10896
|
return {
|
|
10888
10897
|
/**
|
|
10889
10898
|
* @returns { rebilly.StorefrontGetAccountResponsePromise } response
|
|
@@ -10915,7 +10924,7 @@ function qs({ apiHandler: e }) {
|
|
|
10915
10924
|
}
|
|
10916
10925
|
};
|
|
10917
10926
|
}
|
|
10918
|
-
function
|
|
10927
|
+
function Ts({ apiHandler: e }) {
|
|
10919
10928
|
return {
|
|
10920
10929
|
login({ data: t }) {
|
|
10921
10930
|
return e.post("login", t);
|
|
@@ -10925,7 +10934,7 @@ function ds({ apiHandler: e }) {
|
|
|
10925
10934
|
}
|
|
10926
10935
|
};
|
|
10927
10936
|
}
|
|
10928
|
-
function
|
|
10937
|
+
function Is({ apiHandler: e }) {
|
|
10929
10938
|
return {
|
|
10930
10939
|
/**
|
|
10931
10940
|
* @returns { rebilly.StorefrontGetBillingPortalResponsePromise } response
|
|
@@ -10935,7 +10944,7 @@ function Ts({ apiHandler: e }) {
|
|
|
10935
10944
|
}
|
|
10936
10945
|
};
|
|
10937
10946
|
}
|
|
10938
|
-
function
|
|
10947
|
+
function Ss({ apiHandler: e }) {
|
|
10939
10948
|
return {
|
|
10940
10949
|
/**
|
|
10941
10950
|
* @returns { rebilly.StorefrontGetCashierResponsePromise } response
|
|
@@ -10948,7 +10957,7 @@ function Is({ apiHandler: e }) {
|
|
|
10948
10957
|
}
|
|
10949
10958
|
};
|
|
10950
10959
|
}
|
|
10951
|
-
function
|
|
10960
|
+
function Es({ apiHandler: e }) {
|
|
10952
10961
|
return {
|
|
10953
10962
|
/**
|
|
10954
10963
|
* @returns { rebilly.StorefrontGetCheckoutFormResponsePromise } response
|
|
@@ -10958,7 +10967,7 @@ function Ss({ apiHandler: e }) {
|
|
|
10958
10967
|
}
|
|
10959
10968
|
};
|
|
10960
10969
|
}
|
|
10961
|
-
function
|
|
10970
|
+
function xs({ apiHandler: e }) {
|
|
10962
10971
|
return {
|
|
10963
10972
|
/**
|
|
10964
10973
|
* @param { rebilly.StorefrontGetCustomFieldCollectionRequest } request
|
|
@@ -10970,7 +10979,7 @@ function Es({ apiHandler: e }) {
|
|
|
10970
10979
|
}
|
|
10971
10980
|
};
|
|
10972
10981
|
}
|
|
10973
|
-
function
|
|
10982
|
+
function Ps({ apiHandler: e }) {
|
|
10974
10983
|
return {
|
|
10975
10984
|
/**
|
|
10976
10985
|
* @returns { rebilly.StorefrontGetDepositRequestResponsePromise } response
|
|
@@ -10981,14 +10990,14 @@ function xs({ apiHandler: e }) {
|
|
|
10981
10990
|
}
|
|
10982
10991
|
};
|
|
10983
10992
|
}
|
|
10984
|
-
function
|
|
10993
|
+
function Cs({ apiHandler: e }) {
|
|
10985
10994
|
return {
|
|
10986
10995
|
create({ data: t }) {
|
|
10987
10996
|
return e.post("deposit", t);
|
|
10988
10997
|
}
|
|
10989
10998
|
};
|
|
10990
10999
|
}
|
|
10991
|
-
function
|
|
11000
|
+
function Ds({ apiHandler: e }) {
|
|
10992
11001
|
return {
|
|
10993
11002
|
/**
|
|
10994
11003
|
* @returns { rebilly.StorefrontGetDepositStrategyResponsePromise } response
|
|
@@ -10998,7 +11007,7 @@ function Cs({ apiHandler: e }) {
|
|
|
10998
11007
|
}
|
|
10999
11008
|
};
|
|
11000
11009
|
}
|
|
11001
|
-
function
|
|
11010
|
+
function js({ apiHandler: e }) {
|
|
11002
11011
|
return {
|
|
11003
11012
|
/**
|
|
11004
11013
|
* @param { rebilly.StorefrontGetInvoiceCollectionRequest } request
|
|
@@ -11034,7 +11043,7 @@ function Ds({ apiHandler: e }) {
|
|
|
11034
11043
|
}
|
|
11035
11044
|
};
|
|
11036
11045
|
}
|
|
11037
|
-
function
|
|
11046
|
+
function Ms({ apiHandler: e }) {
|
|
11038
11047
|
return {
|
|
11039
11048
|
create({ data: t }) {
|
|
11040
11049
|
return e.post("kyc-documents", t);
|
|
@@ -11050,7 +11059,7 @@ function js({ apiHandler: e }) {
|
|
|
11050
11059
|
}
|
|
11051
11060
|
};
|
|
11052
11061
|
}
|
|
11053
|
-
function
|
|
11062
|
+
function Os({ apiHandler: e }) {
|
|
11054
11063
|
return {
|
|
11055
11064
|
create({ data: t }) {
|
|
11056
11065
|
return e.post("kyc-liveness-sessions", t);
|
|
@@ -11066,7 +11075,7 @@ function Ms({ apiHandler: e }) {
|
|
|
11066
11075
|
}
|
|
11067
11076
|
};
|
|
11068
11077
|
}
|
|
11069
|
-
function
|
|
11078
|
+
function Fs({ apiHandler: e }) {
|
|
11070
11079
|
return {
|
|
11071
11080
|
/**
|
|
11072
11081
|
* @returns { rebilly.StorefrontGetKycRequestResponsePromise } response
|
|
@@ -11077,7 +11086,7 @@ function Os({ apiHandler: e }) {
|
|
|
11077
11086
|
}
|
|
11078
11087
|
};
|
|
11079
11088
|
}
|
|
11080
|
-
function
|
|
11089
|
+
function Bs({ apiHandler: e }) {
|
|
11081
11090
|
return {
|
|
11082
11091
|
/**
|
|
11083
11092
|
* @returns { rebilly.StorefrontGetOrderUpcomingInvoiceResponsePromise } response
|
|
@@ -11119,7 +11128,7 @@ function Fs({ apiHandler: e }) {
|
|
|
11119
11128
|
}
|
|
11120
11129
|
};
|
|
11121
11130
|
}
|
|
11122
|
-
function
|
|
11131
|
+
function Ks({ apiHandler: e }) {
|
|
11123
11132
|
return {
|
|
11124
11133
|
/**
|
|
11125
11134
|
* @param { rebilly.StorefrontGetPaymentInstrumentCollectionRequest } request
|
|
@@ -11162,7 +11171,7 @@ function Bs({ apiHandler: e }) {
|
|
|
11162
11171
|
}
|
|
11163
11172
|
};
|
|
11164
11173
|
}
|
|
11165
|
-
function
|
|
11174
|
+
function Ns({ apiHandler: e }) {
|
|
11166
11175
|
return {
|
|
11167
11176
|
/**
|
|
11168
11177
|
* @param { rebilly.StorefrontGetPayoutRequestCollectionRequest } request
|
|
@@ -11192,7 +11201,7 @@ function Ks({ apiHandler: e }) {
|
|
|
11192
11201
|
}
|
|
11193
11202
|
};
|
|
11194
11203
|
}
|
|
11195
|
-
function
|
|
11204
|
+
function Ls({ apiHandler: e }) {
|
|
11196
11205
|
return {
|
|
11197
11206
|
/**
|
|
11198
11207
|
* @param { rebilly.StorefrontGetPlanCollectionRequest } request
|
|
@@ -11218,7 +11227,7 @@ function Ns({ apiHandler: e }) {
|
|
|
11218
11227
|
}
|
|
11219
11228
|
};
|
|
11220
11229
|
}
|
|
11221
|
-
function
|
|
11230
|
+
function zs({ apiHandler: e }) {
|
|
11222
11231
|
return {
|
|
11223
11232
|
/**
|
|
11224
11233
|
* @param { rebilly.StorefrontGetProductCollectionRequest } request
|
|
@@ -11242,7 +11251,7 @@ function Ls({ apiHandler: e }) {
|
|
|
11242
11251
|
}
|
|
11243
11252
|
};
|
|
11244
11253
|
}
|
|
11245
|
-
function
|
|
11254
|
+
function Us({ apiHandler: e }) {
|
|
11246
11255
|
return {
|
|
11247
11256
|
payment({ data: t }) {
|
|
11248
11257
|
return e.post("payment", t);
|
|
@@ -11258,7 +11267,7 @@ function zs({ apiHandler: e }) {
|
|
|
11258
11267
|
}
|
|
11259
11268
|
};
|
|
11260
11269
|
}
|
|
11261
|
-
function
|
|
11270
|
+
function Vs({ apiHandler: e }) {
|
|
11262
11271
|
return {
|
|
11263
11272
|
/**
|
|
11264
11273
|
* @returns { rebilly.StorefrontGetQuoteResponsePromise } response
|
|
@@ -11282,21 +11291,21 @@ function Us({ apiHandler: e }) {
|
|
|
11282
11291
|
}
|
|
11283
11292
|
};
|
|
11284
11293
|
}
|
|
11285
|
-
function
|
|
11294
|
+
function Js({ apiHandler: e }) {
|
|
11286
11295
|
return {
|
|
11287
11296
|
readyToPayout({ data: t }) {
|
|
11288
11297
|
return e.post("ready-to-payout", t);
|
|
11289
11298
|
}
|
|
11290
11299
|
};
|
|
11291
11300
|
}
|
|
11292
|
-
function
|
|
11301
|
+
function Ws({ apiHandler: e }) {
|
|
11293
11302
|
return {
|
|
11294
11303
|
reactivation({ data: t }) {
|
|
11295
11304
|
return e.post("subscription-reactivations", t);
|
|
11296
11305
|
}
|
|
11297
11306
|
};
|
|
11298
11307
|
}
|
|
11299
|
-
function
|
|
11308
|
+
function Gs({ apiHandler: e }) {
|
|
11300
11309
|
return {
|
|
11301
11310
|
changeItems({ id: t, data: s }) {
|
|
11302
11311
|
return e.post(`subscriptions/${t}/change-items`, s);
|
|
@@ -11306,7 +11315,7 @@ function Ws({ apiHandler: e }) {
|
|
|
11306
11315
|
}
|
|
11307
11316
|
};
|
|
11308
11317
|
}
|
|
11309
|
-
function
|
|
11318
|
+
function Ys({ apiHandler: e }) {
|
|
11310
11319
|
return {
|
|
11311
11320
|
/**
|
|
11312
11321
|
* @param { rebilly.StorefrontGetTransactionCollectionRequest } request
|
|
@@ -11355,7 +11364,7 @@ function Gs({ apiHandler: e }) {
|
|
|
11355
11364
|
}
|
|
11356
11365
|
};
|
|
11357
11366
|
}
|
|
11358
|
-
function
|
|
11367
|
+
function Qs({ apiHandler: e }) {
|
|
11359
11368
|
return {
|
|
11360
11369
|
/**
|
|
11361
11370
|
* @returns { rebilly.StorefrontGetWebsiteResponsePromise } response
|
|
@@ -11365,27 +11374,27 @@ function Ys({ apiHandler: e }) {
|
|
|
11365
11374
|
}
|
|
11366
11375
|
};
|
|
11367
11376
|
}
|
|
11368
|
-
class
|
|
11377
|
+
class Xs {
|
|
11369
11378
|
constructor({ apiHandler: t }) {
|
|
11370
|
-
this.account =
|
|
11379
|
+
this.account = ds({ apiHandler: t }), this.authorization = Ts({ apiHandler: t }), this.billingPortals = Is({ apiHandler: t }), this.cashiers = Ss({ apiHandler: t }), this.checkoutForms = Es({ apiHandler: t }), this.customFields = xs({ apiHandler: t }), this.depositRequests = Ps({ apiHandler: t }), this.deposit = Cs({ apiHandler: t }), this.depositStrategies = Ds({ apiHandler: t }), this.invoices = js({ apiHandler: t }), this.kycDocuments = Ms({ apiHandler: t }), this.kycLivenessSessions = Os({ apiHandler: t }), this.kycRequests = Fs({ apiHandler: t }), this.orders = Bs({ apiHandler: t }), this.paymentInstruments = Ks({ apiHandler: t }), this.payoutRequests = Ns({ apiHandler: t }), this.plans = Ls({ apiHandler: t }), this.products = zs({ apiHandler: t }), this.purchase = Us({ apiHandler: t }), this.quotes = Vs({ apiHandler: t }), this.readyToPayout = Js({ apiHandler: t }), this.subscriptionReactivations = Ws({
|
|
11371
11380
|
apiHandler: t
|
|
11372
|
-
}), this.subscriptions =
|
|
11381
|
+
}), this.subscriptions = Gs({ apiHandler: t }), this.transactions = Ys({ apiHandler: t }), this.websites = Qs({ apiHandler: t }), this.checkoutForm = this.checkoutForms, this.billingPortal = this.billingPortals, this.addRequestInterceptor = t.addRequestInterceptor, this.removeRequestInterceptor = t.removeRequestInterceptor, this.addResponseInterceptor = t.addResponseInterceptor, this.removeResponseInterceptor = t.removeResponseInterceptor, this.setTimeout = t.setTimeout, this.setProxyAgent = t.setProxyAgent, this.setSessionToken = t.setSessionToken, this.setPublishableKey = t.setPublishableKey, this.setEndpoints = t.setEndpoints, this.getCancellationToken = t.getCancellationToken, this.generateSignature = t.generateSignature;
|
|
11373
11382
|
}
|
|
11374
11383
|
}
|
|
11375
|
-
function Xs({ apiHandler: e }) {
|
|
11376
|
-
return new $s({ apiHandler: e });
|
|
11377
|
-
}
|
|
11378
11384
|
function Zs({ apiHandler: e }) {
|
|
11379
|
-
return new
|
|
11385
|
+
return new hs({ apiHandler: e });
|
|
11380
11386
|
}
|
|
11381
11387
|
function _s({ apiHandler: e }) {
|
|
11382
|
-
return new
|
|
11388
|
+
return new qs({ apiHandler: e });
|
|
11389
|
+
}
|
|
11390
|
+
function Hs({ apiHandler: e }) {
|
|
11391
|
+
return new Xs({ apiHandler: e });
|
|
11383
11392
|
}
|
|
11384
11393
|
const F$1 = {
|
|
11385
11394
|
live: "https://api.rebilly.com",
|
|
11386
11395
|
sandbox: "https://api-sandbox.rebilly.com"
|
|
11387
11396
|
}, B$1 = 6e3;
|
|
11388
|
-
function
|
|
11397
|
+
function nr({
|
|
11389
11398
|
apiKey: e = null,
|
|
11390
11399
|
sandbox: t = false,
|
|
11391
11400
|
timeout: s = B$1,
|
|
@@ -11411,9 +11420,9 @@ function rr({
|
|
|
11411
11420
|
organizationId: r,
|
|
11412
11421
|
appName: (u == null ? void 0 : u.appName) ?? null
|
|
11413
11422
|
}, l = O$1({ options: o });
|
|
11414
|
-
return
|
|
11423
|
+
return Zs({ apiHandler: l });
|
|
11415
11424
|
}
|
|
11416
|
-
function
|
|
11425
|
+
function ur({
|
|
11417
11426
|
apiKey: e = null,
|
|
11418
11427
|
sandbox: t = false,
|
|
11419
11428
|
timeout: s = B$1,
|
|
@@ -11439,9 +11448,9 @@ function nr({
|
|
|
11439
11448
|
organizationId: r,
|
|
11440
11449
|
appName: (u == null ? void 0 : u.appName) ?? null
|
|
11441
11450
|
}, l = O$1({ options: o });
|
|
11442
|
-
return
|
|
11451
|
+
return _s({ apiHandler: l });
|
|
11443
11452
|
}
|
|
11444
|
-
function
|
|
11453
|
+
function or({
|
|
11445
11454
|
publishableKey: e = null,
|
|
11446
11455
|
jwt: t = null,
|
|
11447
11456
|
sandbox: s = false,
|
|
@@ -11468,7 +11477,7 @@ function ur({
|
|
|
11468
11477
|
organizationId: n,
|
|
11469
11478
|
appName: (o == null ? void 0 : o.appName) ?? null
|
|
11470
11479
|
}, i = O$1({ options: l });
|
|
11471
|
-
return i.setSessionToken(l.jwt),
|
|
11480
|
+
return i.setSessionToken(l.jwt), Hs({ apiHandler: i });
|
|
11472
11481
|
}
|
|
11473
11482
|
const TIMEOUT = 6e4;
|
|
11474
11483
|
function validateStateForStorefront() {
|
|
@@ -11509,15 +11518,15 @@ class StorefrontInstance {
|
|
|
11509
11518
|
appName: appName ? `${appName}/instruments` : "instruments"
|
|
11510
11519
|
}
|
|
11511
11520
|
};
|
|
11512
|
-
const api =
|
|
11521
|
+
const api = or(config);
|
|
11513
11522
|
const rebilly = (
|
|
11514
11523
|
// @ts-expect-error refactor with above todo
|
|
11515
|
-
typeof
|
|
11524
|
+
typeof nr.default === "function" ? (
|
|
11516
11525
|
// @ts-expect-error refactor with above todo
|
|
11517
|
-
|
|
11518
|
-
) :
|
|
11526
|
+
nr.default(config)
|
|
11527
|
+
) : nr(config)
|
|
11519
11528
|
);
|
|
11520
|
-
const experimental =
|
|
11529
|
+
const experimental = ur(config);
|
|
11521
11530
|
api.setSessionToken(publishableKey || jwt);
|
|
11522
11531
|
rebilly.setSessionToken(publishableKey || jwt);
|
|
11523
11532
|
experimental.setSessionToken(publishableKey || jwt);
|
|
@@ -18917,7 +18926,7 @@ async function destroy() {
|
|
|
18917
18926
|
if (state.form instanceof HTMLElement) {
|
|
18918
18927
|
state.form.textContent = "";
|
|
18919
18928
|
}
|
|
18920
|
-
await
|
|
18929
|
+
await rr.cancelAll();
|
|
18921
18930
|
state.loader.clearAll();
|
|
18922
18931
|
}
|
|
18923
18932
|
async function update({ newOptions = {} } = {}) {
|