@tesouro/embedded-components-react 0.2.272 → 0.2.276

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.
@@ -14,7 +14,7 @@ function o({ cardId: o, enabled: s }) {
14
14
  let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = e(), f = n({
15
15
  client: c,
16
16
  headers: t(l),
17
- path: { cardId: o ?? "" }
17
+ path: { id: o ?? "" }
18
18
  }), p = a({
19
19
  ...r(f, d),
20
20
  enabled: !!(o && l && u) && s !== !1
@@ -31,7 +31,6 @@ function c(e) {
31
31
  cardholderName: e.cardholderName,
32
32
  nickname: e.nickname,
33
33
  lastFourDigits: e.lastFourDigits,
34
- limit: e.spendingLimit,
35
34
  fundingAccountId: e.bankAccountId
36
35
  }));
37
36
  }
@@ -86,7 +86,7 @@ function m({ isCustomer: m, enabled: h = !0 }) {
86
86
  _((t) => typeof e == "function" ? e(t) : e), x(void 0);
87
87
  }, []), U = u((e) => {
88
88
  y(e), x(void 0);
89
- }, []), W = u(() => x(k.data?.next_pagination_token), [k.data?.next_pagination_token]), G = u(() => x(k.data?.prev_pagination_token), [k.data?.prev_pagination_token]), K = u(() => {
89
+ }, []), W = u(() => x(k.data?.next_pagination_token ?? void 0), [k.data?.next_pagination_token]), G = u(() => x(k.data?.prev_pagination_token ?? void 0), [k.data?.prev_pagination_token]), K = u(() => {
90
90
  k.refetch();
91
91
  }, [k]), q = u((e) => {
92
92
  D(e), x(void 0);
@@ -45,7 +45,7 @@ function c({ cardholderUserId: t, format: r, bankAccountId: o, reference: s, mai
45
45
  bankAccountId: o,
46
46
  cardType: d,
47
47
  reference: s,
48
- cardholderUserId: t,
48
+ userId: t,
49
49
  ...f ? { shippingAddress: f } : {}
50
50
  };
51
51
  }
@@ -116,7 +116,7 @@ function v(e) {
116
116
  }
117
117
  function y(e) {
118
118
  return (e ?? []).map((e) => {
119
- let t = v(e.iban || e.account_number), n = [e.currency, t].filter(Boolean).join(" · ");
119
+ let t = v(e.iban || e.account_number || void 0), n = [e.currency, t].filter(Boolean).join(" · ");
120
120
  return {
121
121
  id: e.id,
122
122
  primary: e.name || e.account_holder_name || e.currency,
@@ -260,7 +260,7 @@ var n = (e) => (e.client ?? t).post({
260
260
  scheme: "bearer",
261
261
  type: "http"
262
262
  }],
263
- url: "/embedded-banking/v1/debit-cards/{cardId}",
263
+ url: "/embedded-banking/v1/debit-cards/{id}",
264
264
  ...e
265
265
  }), C = (e) => (e?.client ?? t).get({
266
266
  security: [{