@rebilly/instruments 16.69.0 → 16.70.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 +3 -3
- package/dist/index.js +7 -7
- package/dist/index.min.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [16.
|
|
1
|
+
## [16.70.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.70.0...instruments/core-v16.70.1) (2026-03-11)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* **instruments:**
|
|
6
|
+
* **instruments:** Prevent repeated payment instrument selection for payout requests ([#19474](https://github.com/Rebilly/rebilly/issues/19474)) ([25b9f99](https://github.com/Rebilly/rebilly/commit/25b9f99ef2bad7347ae0490e59475c10ee26123d))
|
package/dist/index.js
CHANGED
|
@@ -1177,7 +1177,7 @@ const en$1 = {
|
|
|
1177
1177
|
invoiceIsAbandoned: "The invoice has been abandoned.",
|
|
1178
1178
|
invoiceIsRefunded: "The invoice has been refunded.",
|
|
1179
1179
|
transactionIsCompleted: "The transaction is completed and cannot be updated.",
|
|
1180
|
-
|
|
1180
|
+
payoutCannotSelectPaymentInstrument: "The payout request cannot be updated."
|
|
1181
1181
|
},
|
|
1182
1182
|
loaderMessages: {
|
|
1183
1183
|
processingPayment: "Processing payment instrument."
|
|
@@ -1218,7 +1218,7 @@ const es$1 = {
|
|
|
1218
1218
|
invoiceIsAbandoned: "La factura ha sido abandonada.",
|
|
1219
1219
|
invoiceIsRefunded: "La factura ha reembolsada.",
|
|
1220
1220
|
transactionIsCompleted: "La transacción está finalizada y no se puede actualizar.",
|
|
1221
|
-
|
|
1221
|
+
payoutCannotSelectPaymentInstrument: "La solicitud de pago no se puede actualizar."
|
|
1222
1222
|
},
|
|
1223
1223
|
loaderMessages: {
|
|
1224
1224
|
processingPayment: "Procesamiento de instrumento de pago."
|
|
@@ -5294,7 +5294,7 @@ function C$1({ options: e2 }) {
|
|
|
5294
5294
|
}
|
|
5295
5295
|
function o2() {
|
|
5296
5296
|
const i = {
|
|
5297
|
-
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@
|
|
5297
|
+
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@25b9f99`
|
|
5298
5298
|
};
|
|
5299
5299
|
return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
|
|
5300
5300
|
}
|
|
@@ -18723,8 +18723,8 @@ const _PayoutRequestModel = class _PayoutRequestModel extends BaseModel {
|
|
|
18723
18723
|
constructor(fields = {}) {
|
|
18724
18724
|
super(fields);
|
|
18725
18725
|
}
|
|
18726
|
-
get
|
|
18727
|
-
return this.status === _PayoutRequestModel.Status.pending;
|
|
18726
|
+
get isAwaitingPaymentInstrumentSelection() {
|
|
18727
|
+
return this.status === _PayoutRequestModel.Status.pending && this.paymentInstrumentId == null;
|
|
18728
18728
|
}
|
|
18729
18729
|
};
|
|
18730
18730
|
_PayoutRequestModel.Status = {
|
|
@@ -23344,8 +23344,8 @@ async function mount({ ...options } = {}) {
|
|
|
23344
23344
|
if (transactionId && ((_o = (_n = state.data) == null ? void 0 : _n.transaction) == null ? void 0 : _o.transactionIsCompleted)) {
|
|
23345
23345
|
clearFormOnError("form.error.transactionIsCompleted");
|
|
23346
23346
|
}
|
|
23347
|
-
if (((_q = (_p = state.options) == null ? void 0 : _p.payout) == null ? void 0 : _q.payoutRequestId) && !((_r = state.data.payout) == null ? void 0 : _r.
|
|
23348
|
-
clearFormOnError("form.error.
|
|
23347
|
+
if (((_q = (_p = state.options) == null ? void 0 : _p.payout) == null ? void 0 : _q.payoutRequestId) && !((_r = state.data.payout) == null ? void 0 : _r.isAwaitingPaymentInstrumentSelection)) {
|
|
23348
|
+
clearFormOnError("form.error.payoutCannotSelectPaymentInstrument");
|
|
23349
23349
|
}
|
|
23350
23350
|
let hasNoPaymentMethods = false;
|
|
23351
23351
|
if (data.payout) {
|