@rebilly/instruments 8.42.1 → 8.43.1
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 +14 -0
- package/dist/index.js +19 -10
- package/dist/index.min.js +7 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [8.43.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.43.0...instruments/core-v8.43.1) (2024-02-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **instrument:** Show re-attempt button for invoice payment ([#3312](https://github.com/Rebilly/rebilly/issues/3312)) ([308488e](https://github.com/Rebilly/rebilly/commit/308488ef5af1e87d58ad16c5b2216f66eb80d4a6))
|
|
7
|
+
|
|
8
|
+
## [8.43.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.42.1...instruments/core-v8.43.0) (2024-02-06)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **rebilly-js-sdk:** Add Subscriptions resource ([#3329](https://github.com/Rebilly/rebilly/issues/3329)) ([754309b](https://github.com/Rebilly/rebilly/commit/754309bbcd2a733a6fe1fe6d3267d43def87916a))
|
|
14
|
+
|
|
1
15
|
## [8.42.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.42.0...instruments/core-v8.42.1) (2024-02-06)
|
|
2
16
|
|
|
3
17
|
|
package/dist/index.js
CHANGED
|
@@ -5996,7 +5996,7 @@ function cloneArrayDeep(val, instanceClone) {
|
|
|
5996
5996
|
return res;
|
|
5997
5997
|
}
|
|
5998
5998
|
var cloneDeep_1 = cloneDeep;
|
|
5999
|
-
const version = "55.
|
|
5999
|
+
const version = "55.18.0";
|
|
6000
6000
|
let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
6001
6001
|
let nanoid = (size2 = 21) => {
|
|
6002
6002
|
let id2 = "";
|
|
@@ -8252,7 +8252,7 @@ function SubscriptionReactivationsResource({ apiHandler }) {
|
|
|
8252
8252
|
}
|
|
8253
8253
|
};
|
|
8254
8254
|
}
|
|
8255
|
-
function SubscriptionsResource$
|
|
8255
|
+
function SubscriptionsResource$2({ apiHandler }) {
|
|
8256
8256
|
return {
|
|
8257
8257
|
getAll({
|
|
8258
8258
|
filter: filter2 = null,
|
|
@@ -8707,7 +8707,7 @@ class ApiInstance {
|
|
|
8707
8707
|
this.subscriptionReactivations = SubscriptionReactivationsResource({
|
|
8708
8708
|
apiHandler
|
|
8709
8709
|
});
|
|
8710
|
-
this.subscriptions = SubscriptionsResource$
|
|
8710
|
+
this.subscriptions = SubscriptionsResource$2({ apiHandler });
|
|
8711
8711
|
this.tags = TagsResource({ apiHandler });
|
|
8712
8712
|
this.tagsRules = TagsRulesResource({ apiHandler });
|
|
8713
8713
|
this.tracking = TrackingResource({ apiHandler });
|
|
@@ -9093,7 +9093,7 @@ function ReportsResource({ apiHandler }) {
|
|
|
9093
9093
|
}
|
|
9094
9094
|
};
|
|
9095
9095
|
}
|
|
9096
|
-
function SubscriptionsResource({ apiHandler }) {
|
|
9096
|
+
function SubscriptionsResource$1({ apiHandler }) {
|
|
9097
9097
|
return {
|
|
9098
9098
|
getSubscriptionSummaryMetrics({ subscriptionId }) {
|
|
9099
9099
|
return apiHandler.get(`subscriptions/${subscriptionId}/summary-metrics`);
|
|
@@ -9140,7 +9140,7 @@ const ExperimentalResources = {
|
|
|
9140
9140
|
DataExportsResource,
|
|
9141
9141
|
HistogramsResource,
|
|
9142
9142
|
ReportsResource,
|
|
9143
|
-
SubscriptionsResource,
|
|
9143
|
+
SubscriptionsResource: SubscriptionsResource$1,
|
|
9144
9144
|
TimelinesResource,
|
|
9145
9145
|
LocationResource
|
|
9146
9146
|
};
|
|
@@ -9329,9 +9329,6 @@ function OrdersResource({ apiHandler }) {
|
|
|
9329
9329
|
const params = { filter: filter2, sort, limit, offset, q };
|
|
9330
9330
|
return apiHandler.getAll(`orders`, params);
|
|
9331
9331
|
},
|
|
9332
|
-
create({ data }) {
|
|
9333
|
-
return apiHandler.post(`orders`, data);
|
|
9334
|
-
},
|
|
9335
9332
|
get({ id: id2 }) {
|
|
9336
9333
|
return apiHandler.get(`orders/${id2}`);
|
|
9337
9334
|
},
|
|
@@ -9486,6 +9483,13 @@ function RichBillingPortalsResource({ apiHandler }) {
|
|
|
9486
9483
|
}
|
|
9487
9484
|
};
|
|
9488
9485
|
}
|
|
9486
|
+
function SubscriptionsResource({ apiHandler }) {
|
|
9487
|
+
return {
|
|
9488
|
+
create({ data }) {
|
|
9489
|
+
return apiHandler.post(`subscriptions`, data);
|
|
9490
|
+
}
|
|
9491
|
+
};
|
|
9492
|
+
}
|
|
9489
9493
|
function TransactionsResource({ apiHandler }) {
|
|
9490
9494
|
return {
|
|
9491
9495
|
getAll({
|
|
@@ -9542,6 +9546,7 @@ class StorefrontApiInstance {
|
|
|
9542
9546
|
this.quotes = QuotesResource({ apiHandler });
|
|
9543
9547
|
this.readyToPayout = ReadyToPayoutResource({ apiHandler });
|
|
9544
9548
|
this.richBillingPortals = RichBillingPortalsResource({ apiHandler });
|
|
9549
|
+
this.subscriptions = SubscriptionsResource({ apiHandler });
|
|
9545
9550
|
this.transactions = TransactionsResource({ apiHandler });
|
|
9546
9551
|
this.websites = WebsitesResource({ apiHandler });
|
|
9547
9552
|
this.checkoutForm = this.checkoutForms;
|
|
@@ -14556,6 +14561,9 @@ class DataInstance {
|
|
|
14556
14561
|
get isPayment() {
|
|
14557
14562
|
return Boolean(this.invoice || this.transaction || this.money);
|
|
14558
14563
|
}
|
|
14564
|
+
get isInvoice() {
|
|
14565
|
+
return Boolean(this.invoice);
|
|
14566
|
+
}
|
|
14559
14567
|
get isPurchase() {
|
|
14560
14568
|
return Boolean(this.previewPurchase);
|
|
14561
14569
|
}
|
|
@@ -14596,6 +14604,7 @@ class DataInstance {
|
|
|
14596
14604
|
...this,
|
|
14597
14605
|
amountAndCurrency: this.amountAndCurrency,
|
|
14598
14606
|
isPayment: this.isPayment,
|
|
14607
|
+
isInvoice: this.isInvoice,
|
|
14599
14608
|
isPurchase: this.isPurchase,
|
|
14600
14609
|
hasAmountDue: this.hasAmountDue,
|
|
14601
14610
|
summaryItems: this.summaryItems,
|
|
@@ -23444,7 +23453,7 @@ function handleComputedProperty(options) {
|
|
|
23444
23453
|
var _a;
|
|
23445
23454
|
return Object.assign({}, options, {
|
|
23446
23455
|
_computed: {
|
|
23447
|
-
version: "8.
|
|
23456
|
+
version: "8.43.0",
|
|
23448
23457
|
paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
|
|
23449
23458
|
}
|
|
23450
23459
|
});
|
|
@@ -26784,7 +26793,7 @@ class RebillyInstrumentsInstance {
|
|
|
26784
26793
|
await show({ componentName, payload });
|
|
26785
26794
|
}
|
|
26786
26795
|
get version() {
|
|
26787
|
-
return `RebillyInstruments Ver.${"8.
|
|
26796
|
+
return `RebillyInstruments Ver.${"8.43.0"}`;
|
|
26788
26797
|
}
|
|
26789
26798
|
on(eventName, callback) {
|
|
26790
26799
|
on({ eventName, callback });
|