@paynext/sdk 0.0.39 → 0.0.40

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/dist/index.es.js CHANGED
@@ -3782,12 +3782,12 @@ const Mc = (t, e, n) => e.concat(t.filter((r) => e.every((i) => !n(r, i)))), yn
3782
3782
  name: (a = (s = t.applePay) == null ? void 0 : s.billingContact) != null && a.givenName ? ((d = (u = t.applePay) == null ? void 0 : u.billingContact) == null ? void 0 : d.givenName) + " " + ((m = (p = t.applePay) == null ? void 0 : p.billingContact) == null ? void 0 : m.familyName) : (c = (o = t.card) == null ? void 0 : o.metadata) == null ? void 0 : c.name,
3783
3783
  phone: (h = (f = t.applePay) == null ? void 0 : f.shippingContact) == null ? void 0 : h.phoneNumber,
3784
3784
  billing_address: t.applePay || t.googlePay ? {
3785
- city: ((v = (g = t.applePay) == null ? void 0 : g.billingContact) == null ? void 0 : v.locality) || ((L = (b = t == null ? void 0 : t.googlePay) == null ? void 0 : b.billingAddress) == null ? void 0 : L.locality),
3786
- country: ((V = (y = t.applePay) == null ? void 0 : y.billingContact) == null ? void 0 : V.countryCode) || ((I = (x = t == null ? void 0 : t.googlePay) == null ? void 0 : x.billingAddress) == null ? void 0 : I.countryCode),
3787
- line1: ((P = (w = (S = t.applePay) == null ? void 0 : S.billingContact) == null ? void 0 : w.addressLines) == null ? void 0 : P.at(0)) || ((N = (R = t == null ? void 0 : t.googlePay) == null ? void 0 : R.billingAddress) == null ? void 0 : N.address1),
3788
- line2: ((oe = (G = (ae = t.applePay) == null ? void 0 : ae.billingContact) == null ? void 0 : G.addressLines) == null ? void 0 : oe.at(1)) || ((Te = (J = t == null ? void 0 : t.googlePay) == null ? void 0 : J.billingAddress) == null ? void 0 : Te.address2),
3789
- postal_code: ((Ce = (Ae = t.applePay) == null ? void 0 : Ae.billingContact) == null ? void 0 : Ce.postalCode) || ((K = (Z = t == null ? void 0 : t.googlePay) == null ? void 0 : Z.billingAddress) == null ? void 0 : K.postalCode),
3790
- state: ((he = (pe = t.applePay) == null ? void 0 : pe.billingContact) == null ? void 0 : he.administrativeArea) || ((fe = (me = t == null ? void 0 : t.googlePay) == null ? void 0 : me.billingAddress) == null ? void 0 : fe.administrativeArea)
3785
+ city: ((v = (g = t.applePay) == null ? void 0 : g.billingContact) == null ? void 0 : v.locality) || ((L = (b = t == null ? void 0 : t.googlePay) == null ? void 0 : b.billingAddress) == null ? void 0 : L.locality) || void 0,
3786
+ country: ((V = (y = t.applePay) == null ? void 0 : y.billingContact) == null ? void 0 : V.countryCode) || ((I = (x = t == null ? void 0 : t.googlePay) == null ? void 0 : x.billingAddress) == null ? void 0 : I.countryCode) || void 0,
3787
+ line1: ((P = (w = (S = t.applePay) == null ? void 0 : S.billingContact) == null ? void 0 : w.addressLines) == null ? void 0 : P.at(0)) || ((N = (R = t == null ? void 0 : t.googlePay) == null ? void 0 : R.billingAddress) == null ? void 0 : N.address1) || void 0,
3788
+ line2: ((oe = (G = (ae = t.applePay) == null ? void 0 : ae.billingContact) == null ? void 0 : G.addressLines) == null ? void 0 : oe.at(1)) || ((Te = (J = t == null ? void 0 : t.googlePay) == null ? void 0 : J.billingAddress) == null ? void 0 : Te.address2) || void 0,
3789
+ postal_code: ((Ce = (Ae = t.applePay) == null ? void 0 : Ae.billingContact) == null ? void 0 : Ce.postalCode) || ((K = (Z = t == null ? void 0 : t.googlePay) == null ? void 0 : Z.billingAddress) == null ? void 0 : K.postalCode) || void 0,
3790
+ state: ((he = (pe = t.applePay) == null ? void 0 : pe.billingContact) == null ? void 0 : he.administrativeArea) || ((fe = (me = t == null ? void 0 : t.googlePay) == null ? void 0 : me.billingAddress) == null ? void 0 : fe.administrativeArea) || void 0
3791
3791
  } : void 0,
3792
3792
  card: t.card || (ge = t.googlePay) != null && ge.card || (ye = t.applePay) != null && ye.card ? {
3793
3793
  bin: (ve = t.card) == null ? void 0 : ve.firstSixDigits,
@@ -3806,7 +3806,7 @@ const Mc = (t, e, n) => e.concat(t.filter((r) => e.every((i) => !n(r, i)))), yn
3806
3806
  number: ((Jn = t.card) == null ? void 0 : Jn.number) || ((Qn = (Xn = t.googlePay) == null ? void 0 : Xn.card) == null ? void 0 : Qn.number)
3807
3807
  } : void 0,
3808
3808
  paypal: (er = t.paypal) != null && er.billing_agreement_token.paypalId ? { billing_agreement_token: (tr = t.paypal) == null ? void 0 : tr.billing_agreement_token.paypalId } : void 0,
3809
- google_pay: t.googlePay ? {
3809
+ google_pay: t.googlePay && t.googlePay.token ? {
3810
3810
  cryptogram: t.googlePay.cryptogram,
3811
3811
  eci: t.googlePay.eci,
3812
3812
  exp_month: (rr = (nr = t.googlePay) == null ? void 0 : nr.card) != null && rr.expiry.month || (ir = t.googlePay) != null && ir.token.expiry.month ? Number(t.googlePay.card.expiry.month || t.googlePay.token.expiry.month) : void 0,