@rebilly/instruments 9.57.1 → 9.58.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 +6 -1
- package/dist/index.js +35 -45
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
## [9.
|
|
1
|
+
## [9.58.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v9.57.2...instruments/core-v9.58.0) (2024-06-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **billing portal:** Manage instruments add update ([#5753](https://github.com/Rebilly/rebilly/issues/5753)) ([6b6c79e](https://github.com/Rebilly/rebilly/commit/6b6c79ea37d7b3b6a6fa6e3671059e2b0343306e))
|
package/dist/index.js
CHANGED
|
@@ -6166,7 +6166,7 @@ q$1(T, "cancelById", (t2, s) => {
|
|
|
6166
6166
|
q$1(T, "cancelAll", (t2) => w.getAll().forEach((s) => {
|
|
6167
6167
|
s.cancel(t2), w.deleteById(s.id);
|
|
6168
6168
|
}));
|
|
6169
|
-
const
|
|
6169
|
+
const cr = {
|
|
6170
6170
|
/**
|
|
6171
6171
|
* @type Cancellation.cancelAll
|
|
6172
6172
|
*/
|
|
@@ -10301,16 +10301,6 @@ function Ks({ apiHandler: e2 }) {
|
|
|
10301
10301
|
};
|
|
10302
10302
|
}
|
|
10303
10303
|
function Bs({ apiHandler: e2 }) {
|
|
10304
|
-
return {
|
|
10305
|
-
/**
|
|
10306
|
-
* @returns { rebilly.StorefrontGetExperimentalBillingPortalResponsePromise } response
|
|
10307
|
-
*/
|
|
10308
|
-
get({ slug: t2 }) {
|
|
10309
|
-
return e2.get(`experimental/billing-portals/${t2}`);
|
|
10310
|
-
}
|
|
10311
|
-
};
|
|
10312
|
-
}
|
|
10313
|
-
function Ls({ apiHandler: e2 }) {
|
|
10314
10304
|
return {
|
|
10315
10305
|
/**
|
|
10316
10306
|
* @param { rebilly.StorefrontGetInvoiceCollectionRequest } request
|
|
@@ -10342,7 +10332,7 @@ function Ls({ apiHandler: e2 }) {
|
|
|
10342
10332
|
}
|
|
10343
10333
|
};
|
|
10344
10334
|
}
|
|
10345
|
-
function
|
|
10335
|
+
function Ls({ apiHandler: e2 }) {
|
|
10346
10336
|
return {
|
|
10347
10337
|
/**
|
|
10348
10338
|
* @param { rebilly.StorefrontGetKycDocumentCollectionRequest } request
|
|
@@ -10366,7 +10356,7 @@ function Ns({ apiHandler: e2 }) {
|
|
|
10366
10356
|
}
|
|
10367
10357
|
};
|
|
10368
10358
|
}
|
|
10369
|
-
function
|
|
10359
|
+
function Ns({ apiHandler: e2 }) {
|
|
10370
10360
|
return {
|
|
10371
10361
|
create({ data: t2 }) {
|
|
10372
10362
|
return e2.post("kyc-liveness-sessions", t2);
|
|
@@ -10382,7 +10372,7 @@ function zs({ apiHandler: e2 }) {
|
|
|
10382
10372
|
}
|
|
10383
10373
|
};
|
|
10384
10374
|
}
|
|
10385
|
-
function
|
|
10375
|
+
function zs({ apiHandler: e2 }) {
|
|
10386
10376
|
return {
|
|
10387
10377
|
/**
|
|
10388
10378
|
* @returns { rebilly.StorefrontGetKycRequestResponsePromise } response
|
|
@@ -10393,7 +10383,7 @@ function Us({ apiHandler: e2 }) {
|
|
|
10393
10383
|
}
|
|
10394
10384
|
};
|
|
10395
10385
|
}
|
|
10396
|
-
function
|
|
10386
|
+
function Us({ apiHandler: e2 }) {
|
|
10397
10387
|
return {
|
|
10398
10388
|
/**
|
|
10399
10389
|
* @returns { rebilly.StorefrontGetOrderUpcomingInvoiceResponsePromise } response
|
|
@@ -10434,7 +10424,7 @@ function Vs({ apiHandler: e2 }) {
|
|
|
10434
10424
|
}
|
|
10435
10425
|
};
|
|
10436
10426
|
}
|
|
10437
|
-
function
|
|
10427
|
+
function Vs({ apiHandler: e2 }) {
|
|
10438
10428
|
return {
|
|
10439
10429
|
/**
|
|
10440
10430
|
* @param { rebilly.StorefrontGetPaymentInstrumentCollectionRequest } request
|
|
@@ -10477,7 +10467,7 @@ function Js({ apiHandler: e2 }) {
|
|
|
10477
10467
|
}
|
|
10478
10468
|
};
|
|
10479
10469
|
}
|
|
10480
|
-
function
|
|
10470
|
+
function Js({ apiHandler: e2 }) {
|
|
10481
10471
|
return {
|
|
10482
10472
|
/**
|
|
10483
10473
|
* @param { rebilly.StorefrontGetPayoutRequestCollectionRequest } request
|
|
@@ -10504,7 +10494,7 @@ function Ws({ apiHandler: e2 }) {
|
|
|
10504
10494
|
}
|
|
10505
10495
|
};
|
|
10506
10496
|
}
|
|
10507
|
-
function
|
|
10497
|
+
function Ws({ apiHandler: e2 }) {
|
|
10508
10498
|
return {
|
|
10509
10499
|
/**
|
|
10510
10500
|
* @param { rebilly.StorefrontGetPlanCollectionRequest } request
|
|
@@ -10530,7 +10520,7 @@ function Gs({ apiHandler: e2 }) {
|
|
|
10530
10520
|
}
|
|
10531
10521
|
};
|
|
10532
10522
|
}
|
|
10533
|
-
function
|
|
10523
|
+
function Gs({ apiHandler: e2 }) {
|
|
10534
10524
|
return {
|
|
10535
10525
|
/**
|
|
10536
10526
|
* @param { rebilly.StorefrontGetProductCollectionRequest } request
|
|
@@ -10554,7 +10544,7 @@ function Ys({ apiHandler: e2 }) {
|
|
|
10554
10544
|
}
|
|
10555
10545
|
};
|
|
10556
10546
|
}
|
|
10557
|
-
function
|
|
10547
|
+
function Ys({ apiHandler: e2 }) {
|
|
10558
10548
|
return {
|
|
10559
10549
|
payment({ data: t2 }) {
|
|
10560
10550
|
return e2.post("payment", t2);
|
|
@@ -10570,7 +10560,7 @@ function Qs({ apiHandler: e2 }) {
|
|
|
10570
10560
|
}
|
|
10571
10561
|
};
|
|
10572
10562
|
}
|
|
10573
|
-
function
|
|
10563
|
+
function Qs({ apiHandler: e2 }) {
|
|
10574
10564
|
return {
|
|
10575
10565
|
/**
|
|
10576
10566
|
* @returns { rebilly.StorefrontGetQuoteResponsePromise } response
|
|
@@ -10594,21 +10584,21 @@ function Xs({ apiHandler: e2 }) {
|
|
|
10594
10584
|
}
|
|
10595
10585
|
};
|
|
10596
10586
|
}
|
|
10597
|
-
function
|
|
10587
|
+
function Xs({ apiHandler: e2 }) {
|
|
10598
10588
|
return {
|
|
10599
10589
|
readyToPayout({ data: t2 }) {
|
|
10600
10590
|
return e2.post("ready-to-payout", t2);
|
|
10601
10591
|
}
|
|
10602
10592
|
};
|
|
10603
10593
|
}
|
|
10604
|
-
function
|
|
10594
|
+
function Zs({ apiHandler: e2 }) {
|
|
10605
10595
|
return {
|
|
10606
10596
|
reactivation({ data: t2 }) {
|
|
10607
10597
|
return e2.post("subscription-reactivations", t2);
|
|
10608
10598
|
}
|
|
10609
10599
|
};
|
|
10610
10600
|
}
|
|
10611
|
-
function
|
|
10601
|
+
function _s({ apiHandler: e2 }) {
|
|
10612
10602
|
return {
|
|
10613
10603
|
changeItems({ id: t2, data: s }) {
|
|
10614
10604
|
return e2.post(`subscriptions/${t2}/change-items`, s);
|
|
@@ -10618,7 +10608,7 @@ function Hs({ apiHandler: e2 }) {
|
|
|
10618
10608
|
}
|
|
10619
10609
|
};
|
|
10620
10610
|
}
|
|
10621
|
-
function
|
|
10611
|
+
function Hs({ apiHandler: e2 }) {
|
|
10622
10612
|
return {
|
|
10623
10613
|
/**
|
|
10624
10614
|
* @param { rebilly.StorefrontGetTransactionCollectionRequest } request
|
|
@@ -10651,7 +10641,7 @@ function tr({ apiHandler: e2 }) {
|
|
|
10651
10641
|
}
|
|
10652
10642
|
};
|
|
10653
10643
|
}
|
|
10654
|
-
function
|
|
10644
|
+
function tr({ apiHandler: e2 }) {
|
|
10655
10645
|
return {
|
|
10656
10646
|
/**
|
|
10657
10647
|
* @returns { rebilly.StorefrontGetWebsiteResponsePromise } response
|
|
@@ -10661,27 +10651,27 @@ function er({ apiHandler: e2 }) {
|
|
|
10661
10651
|
}
|
|
10662
10652
|
};
|
|
10663
10653
|
}
|
|
10664
|
-
class
|
|
10654
|
+
class er {
|
|
10665
10655
|
constructor({ apiHandler: t2 }) {
|
|
10666
|
-
this.account = Ps({ apiHandler: t2 }), this.authorization = Cs({ apiHandler: t2 }), this.billingPortals = js({ apiHandler: t2 }), this.checkoutForms = Ds({ apiHandler: t2 }), this.customFields = Ms({ apiHandler: t2 }), this.depositRequests = Os({ apiHandler: t2 }), this.deposit = Fs({ apiHandler: t2 }), this.depositStrategies = Ks({ apiHandler: t2 }), this.
|
|
10656
|
+
this.account = Ps({ apiHandler: t2 }), this.authorization = Cs({ apiHandler: t2 }), this.billingPortals = js({ apiHandler: t2 }), this.checkoutForms = Ds({ apiHandler: t2 }), this.customFields = Ms({ apiHandler: t2 }), this.depositRequests = Os({ apiHandler: t2 }), this.deposit = Fs({ apiHandler: t2 }), this.depositStrategies = Ks({ apiHandler: t2 }), this.invoices = Bs({ apiHandler: t2 }), this.kycDocuments = Ls({ apiHandler: t2 }), this.kycLivenessSessions = Ns({ apiHandler: t2 }), this.kycRequests = zs({ apiHandler: t2 }), this.orders = Us({ apiHandler: t2 }), this.paymentInstruments = Vs({ apiHandler: t2 }), this.payoutRequests = Js({ apiHandler: t2 }), this.plans = Ws({ apiHandler: t2 }), this.products = Gs({ apiHandler: t2 }), this.purchase = Ys({ apiHandler: t2 }), this.quotes = Qs({ apiHandler: t2 }), this.readyToPayout = Xs({ apiHandler: t2 }), this.subscriptionReactivations = Zs({
|
|
10667
10657
|
apiHandler: t2
|
|
10668
|
-
}), this.subscriptions =
|
|
10658
|
+
}), this.subscriptions = _s({ apiHandler: t2 }), this.transactions = Hs({ apiHandler: t2 }), this.websites = tr({ apiHandler: t2 }), this.checkoutForm = this.checkoutForms, this.billingPortal = this.billingPortals, this.addRequestInterceptor = t2.addRequestInterceptor, this.removeRequestInterceptor = t2.removeRequestInterceptor, this.addResponseInterceptor = t2.addResponseInterceptor, this.removeResponseInterceptor = t2.removeResponseInterceptor, this.setTimeout = t2.setTimeout, this.setProxyAgent = t2.setProxyAgent, this.setSessionToken = t2.setSessionToken, this.setPublishableKey = t2.setPublishableKey, this.setEndpoints = t2.setEndpoints, this.getCancellationToken = t2.getCancellationToken, this.generateSignature = t2.generateSignature;
|
|
10669
10659
|
}
|
|
10670
10660
|
}
|
|
10671
|
-
function
|
|
10661
|
+
function sr({ apiHandler: e2 }) {
|
|
10672
10662
|
return new ks({ apiHandler: e2 });
|
|
10673
10663
|
}
|
|
10674
|
-
function
|
|
10664
|
+
function rr({ apiHandler: e2 }) {
|
|
10675
10665
|
return new xs({ apiHandler: e2 });
|
|
10676
10666
|
}
|
|
10677
|
-
function
|
|
10678
|
-
return new
|
|
10667
|
+
function nr({ apiHandler: e2 }) {
|
|
10668
|
+
return new er({ apiHandler: e2 });
|
|
10679
10669
|
}
|
|
10680
10670
|
const j$1 = {
|
|
10681
10671
|
live: "https://api.rebilly.com",
|
|
10682
10672
|
sandbox: "https://api-sandbox.rebilly.com"
|
|
10683
10673
|
}, D = 6e3;
|
|
10684
|
-
function
|
|
10674
|
+
function ir({
|
|
10685
10675
|
apiKey: e2 = null,
|
|
10686
10676
|
sandbox: t2 = false,
|
|
10687
10677
|
timeout: s = D,
|
|
@@ -10705,9 +10695,9 @@ function gr({
|
|
|
10705
10695
|
jwt: null,
|
|
10706
10696
|
organizationId: r2
|
|
10707
10697
|
} });
|
|
10708
|
-
return
|
|
10698
|
+
return sr({ apiHandler: o2 });
|
|
10709
10699
|
}
|
|
10710
|
-
function
|
|
10700
|
+
function gr({
|
|
10711
10701
|
apiKey: e2 = null,
|
|
10712
10702
|
sandbox: t2 = false,
|
|
10713
10703
|
timeout: s = D,
|
|
@@ -10731,9 +10721,9 @@ function ar({
|
|
|
10731
10721
|
jwt: null,
|
|
10732
10722
|
organizationId: r2
|
|
10733
10723
|
} });
|
|
10734
|
-
return
|
|
10724
|
+
return rr({ apiHandler: o2 });
|
|
10735
10725
|
}
|
|
10736
|
-
function
|
|
10726
|
+
function ar({
|
|
10737
10727
|
publishableKey: e2 = null,
|
|
10738
10728
|
jwt: t2 = null,
|
|
10739
10729
|
sandbox: s = false,
|
|
@@ -10758,7 +10748,7 @@ function mr({
|
|
|
10758
10748
|
requestTimeout: r2,
|
|
10759
10749
|
organizationId: n2
|
|
10760
10750
|
}, l = C$1({ options: o2 });
|
|
10761
|
-
return l.setSessionToken(o2.jwt),
|
|
10751
|
+
return l.setSessionToken(o2.jwt), nr({ apiHandler: l });
|
|
10762
10752
|
}
|
|
10763
10753
|
const TIMEOUT = 6e4;
|
|
10764
10754
|
function validateStateForStorefront() {
|
|
@@ -10795,15 +10785,15 @@ class StorefrontInstance {
|
|
|
10795
10785
|
timeout: Number.isNaN(parsedTimeout) ? TIMEOUT : parsedTimeout,
|
|
10796
10786
|
urls
|
|
10797
10787
|
};
|
|
10798
|
-
const api =
|
|
10788
|
+
const api = ar(config);
|
|
10799
10789
|
const rebilly = (
|
|
10800
10790
|
// @ts-ignore refactor with above todo
|
|
10801
|
-
typeof
|
|
10791
|
+
typeof ir.default === "function" ? (
|
|
10802
10792
|
// @ts-ignore refactor with above todo
|
|
10803
|
-
|
|
10804
|
-
) :
|
|
10793
|
+
ir.default(config)
|
|
10794
|
+
) : ir(config)
|
|
10805
10795
|
);
|
|
10806
|
-
const experimental =
|
|
10796
|
+
const experimental = gr(config);
|
|
10807
10797
|
api.setSessionToken(publishableKey || jwt);
|
|
10808
10798
|
rebilly.setSessionToken(publishableKey || jwt);
|
|
10809
10799
|
experimental.setSessionToken(publishableKey || jwt);
|
|
@@ -28836,7 +28826,7 @@ async function destroy() {
|
|
|
28836
28826
|
state.summary.textContent = "";
|
|
28837
28827
|
}
|
|
28838
28828
|
state.form.textContent = "";
|
|
28839
|
-
|
|
28829
|
+
cr.cancelAll();
|
|
28840
28830
|
state.loader.clearAll();
|
|
28841
28831
|
}
|
|
28842
28832
|
async function update({ newOptions = {} } = {}) {
|