@rebilly/instruments 16.70.0 → 16.71.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 CHANGED
@@ -1,6 +1,6 @@
1
- ## [16.70.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.69.0...instruments/core-v16.70.0) (2026-03-09)
1
+ ## [16.71.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.70.1...instruments/core-v16.71.0) (2026-03-11)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#19378](https://github.com/Rebilly/rebilly/issues/19378)) ([b63505b](https://github.com/Rebilly/rebilly/commit/b63505bd71fb69313c5a2e45521ad46196f234fd))
6
+ * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#19477](https://github.com/Rebilly/rebilly/issues/19477)) ([8abe73e](https://github.com/Rebilly/rebilly/commit/8abe73e570106c22138b48fb91e5aa285271fa3f))
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
- payoutNotPending: "The payout request cannot be updated."
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
- payoutNotPending: "La solicitud de pago no se puede actualizar."
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("/")}@b63505b`
5297
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@8abe73e`
5298
5298
  };
5299
5299
  return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
5300
5300
  }
@@ -17767,6 +17767,36 @@ const paymentMethods = [
17767
17767
  }
17768
17768
  ]
17769
17769
  },
17770
+ {
17771
+ apiName: "Viva",
17772
+ name: "Viva",
17773
+ landscapeLogo: null,
17774
+ portraitLogo: null,
17775
+ summary: "The Viva method.",
17776
+ description: "The Viva method.",
17777
+ countries: {
17778
+ mode: "unknown",
17779
+ values: []
17780
+ },
17781
+ storefrontEnabled: true,
17782
+ isSingleUse: false,
17783
+ type: "",
17784
+ relevantBusinessModels: [],
17785
+ supportedCurrencies: {
17786
+ mode: "unknown",
17787
+ values: []
17788
+ },
17789
+ recurringPayments: true,
17790
+ refunds: true,
17791
+ disputes: false,
17792
+ ux: [],
17793
+ _links: [
17794
+ {
17795
+ rel: "self",
17796
+ href: "https://api.rebilly.com/payment-methods/Viva"
17797
+ }
17798
+ ]
17799
+ },
17770
17800
  {
17771
17801
  apiName: "voucher",
17772
17802
  name: "Voucher",
@@ -18723,8 +18753,8 @@ const _PayoutRequestModel = class _PayoutRequestModel extends BaseModel {
18723
18753
  constructor(fields = {}) {
18724
18754
  super(fields);
18725
18755
  }
18726
- get isPending() {
18727
- return this.status === _PayoutRequestModel.Status.pending;
18756
+ get isAwaitingPaymentInstrumentSelection() {
18757
+ return this.status === _PayoutRequestModel.Status.pending && this.paymentInstrumentId == null;
18728
18758
  }
18729
18759
  };
18730
18760
  _PayoutRequestModel.Status = {
@@ -23344,8 +23374,8 @@ async function mount({ ...options } = {}) {
23344
23374
  if (transactionId && ((_o = (_n = state.data) == null ? void 0 : _n.transaction) == null ? void 0 : _o.transactionIsCompleted)) {
23345
23375
  clearFormOnError("form.error.transactionIsCompleted");
23346
23376
  }
23347
- if (((_q = (_p = state.options) == null ? void 0 : _p.payout) == null ? void 0 : _q.payoutRequestId) && !((_r = state.data.payout) == null ? void 0 : _r.isPending)) {
23348
- clearFormOnError("form.error.payoutNotPending");
23377
+ if (((_q = (_p = state.options) == null ? void 0 : _p.payout) == null ? void 0 : _q.payoutRequestId) && !((_r = state.data.payout) == null ? void 0 : _r.isAwaitingPaymentInstrumentSelection)) {
23378
+ clearFormOnError("form.error.payoutCannotSelectPaymentInstrument");
23349
23379
  }
23350
23380
  let hasNoPaymentMethods = false;
23351
23381
  if (data.payout) {