@rebilly/instruments 8.53.0 → 8.53.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 +7 -0
- package/dist/index.js +25 -9
- package/dist/index.min.js +8 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [8.53.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.53.0...instruments/core-v8.53.1) (2024-02-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **instruments:** Disable instrument select for non-pending payout request ([#3679](https://github.com/Rebilly/rebilly/issues/3679)) ([d6f4aef](https://github.com/Rebilly/rebilly/commit/d6f4aefbde8ed3c9fcd1b9be3777493db5cf0365))
|
|
7
|
+
|
|
1
8
|
## [8.53.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.52.0...instruments/core-v8.53.0) (2024-02-23)
|
|
2
9
|
|
|
3
10
|
|
package/dist/index.js
CHANGED
|
@@ -1482,7 +1482,8 @@ const en = {
|
|
|
1482
1482
|
invoiceIsVoid: "The invoice has been voided.",
|
|
1483
1483
|
invoiceIsAbandoned: "The invoice has been abandoned.",
|
|
1484
1484
|
invoiceIsRefunded: "The invoice has been refunded.",
|
|
1485
|
-
transactionIsCompleted: "
|
|
1485
|
+
transactionIsCompleted: "The transaction is completed and cannot be updated.",
|
|
1486
|
+
payoutNotPending: "The payout request cannot be updated."
|
|
1486
1487
|
},
|
|
1487
1488
|
loaderMessages: {
|
|
1488
1489
|
processingPayment: "Processing payment instrument."
|
|
@@ -1522,7 +1523,8 @@ const es = {
|
|
|
1522
1523
|
invoiceIsVoid: "La factura ha sido anulada.",
|
|
1523
1524
|
invoiceIsAbandoned: "La factura ha sido abandonada.",
|
|
1524
1525
|
invoiceIsRefunded: "La factura ha reembolsada.",
|
|
1525
|
-
transactionIsCompleted: "La transacción no
|
|
1526
|
+
transactionIsCompleted: "La transacción está finalizada y no se puede actualizar.",
|
|
1527
|
+
payoutNotPending: "La solicitud de pago no se puede actualizar."
|
|
1526
1528
|
},
|
|
1527
1529
|
loaderMessages: {
|
|
1528
1530
|
processingPayment: "Procesamiento de instrumento de pago."
|
|
@@ -14662,11 +14664,22 @@ async function fetchDepositRequest({
|
|
|
14662
14664
|
return new DepositRequestModel(fields);
|
|
14663
14665
|
});
|
|
14664
14666
|
}
|
|
14665
|
-
class
|
|
14667
|
+
const _PayoutRequestModel = class _PayoutRequestModel2 extends BaseModel {
|
|
14666
14668
|
constructor(fields = {}) {
|
|
14667
14669
|
super(fields);
|
|
14668
14670
|
}
|
|
14669
|
-
|
|
14671
|
+
get isPending() {
|
|
14672
|
+
return this.status === _PayoutRequestModel2.Status.pending;
|
|
14673
|
+
}
|
|
14674
|
+
};
|
|
14675
|
+
_PayoutRequestModel.Status = {
|
|
14676
|
+
pending: "pending",
|
|
14677
|
+
instrumentSelected: "instrument-selected",
|
|
14678
|
+
partiallyFulfilled: "partially-fulfilled",
|
|
14679
|
+
fulfilled: "fulfilled",
|
|
14680
|
+
canceled: "canceled"
|
|
14681
|
+
};
|
|
14682
|
+
let PayoutRequestModel = _PayoutRequestModel;
|
|
14670
14683
|
async function fetchPayoutRequest(data) {
|
|
14671
14684
|
return Endpoint(async () => {
|
|
14672
14685
|
validateStorefront(state.storefront);
|
|
@@ -23707,7 +23720,7 @@ function handleComputedProperty(options) {
|
|
|
23707
23720
|
var _a;
|
|
23708
23721
|
return Object.assign({}, options, {
|
|
23709
23722
|
_computed: {
|
|
23710
|
-
version: "8.
|
|
23723
|
+
version: "8.53.0",
|
|
23711
23724
|
paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
|
|
23712
23725
|
}
|
|
23713
23726
|
});
|
|
@@ -26907,7 +26920,7 @@ async function mount({
|
|
|
26907
26920
|
setupFramepay: setupFramepay$1 = setupFramepay,
|
|
26908
26921
|
...options
|
|
26909
26922
|
} = {}) {
|
|
26910
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
26923
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
26911
26924
|
try {
|
|
26912
26925
|
state.data = {};
|
|
26913
26926
|
state.options = {};
|
|
@@ -26972,11 +26985,14 @@ async function mount({
|
|
|
26972
26985
|
if (transactionId && ((_o = (_n = state.data) == null ? void 0 : _n.transaction) == null ? void 0 : _o.transactionIsCompleted)) {
|
|
26973
26986
|
clearFormOnError("form.error.transactionIsCompleted");
|
|
26974
26987
|
}
|
|
26988
|
+
if (((_q = (_p = state.options) == null ? void 0 : _p.payout) == null ? void 0 : _q.payoutRequestId) && !((_r = state.data.payout) == null ? void 0 : _r.isPending)) {
|
|
26989
|
+
clearFormOnError("form.error.payoutNotPending");
|
|
26990
|
+
}
|
|
26975
26991
|
let hasNoPaymentMethods = false;
|
|
26976
26992
|
if (data.payout) {
|
|
26977
|
-
hasNoPaymentMethods = !((
|
|
26993
|
+
hasNoPaymentMethods = !((_s = data.readyToPayout) == null ? void 0 : _s.length);
|
|
26978
26994
|
} else {
|
|
26979
|
-
hasNoPaymentMethods = !((
|
|
26995
|
+
hasNoPaymentMethods = !((_t = data.readyToPay) == null ? void 0 : _t.length);
|
|
26980
26996
|
}
|
|
26981
26997
|
if (hasNoPaymentMethods) {
|
|
26982
26998
|
state.loader.stopLoading({ id: "rebilly-instruments-form" });
|
|
@@ -27047,7 +27063,7 @@ class RebillyInstrumentsInstance {
|
|
|
27047
27063
|
await show({ componentName, payload });
|
|
27048
27064
|
}
|
|
27049
27065
|
get version() {
|
|
27050
|
-
return `RebillyInstruments Ver.${"8.
|
|
27066
|
+
return `RebillyInstruments Ver.${"8.53.0"}`;
|
|
27051
27067
|
}
|
|
27052
27068
|
on(eventName, callback) {
|
|
27053
27069
|
on({ eventName, callback });
|