@paydock/client-sdk 1.136.0-beta → 1.137.1-beta

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/README.md CHANGED
@@ -4267,6 +4267,29 @@ button.onShippingAddressChange(async function(data) {
4267
4267
  });
4268
4268
  ```
4269
4269
 
4270
+ #### No shipping address
4271
+
4272
+ This is the case where no shipping address is required at all in the popup (e.g., digital goods, services, or virtual products, or Shipping Address collected separately by the merchant). The "Send to" UI field will not be shown in the Apple Pay sheet, it will be hidden.
4273
+
4274
+ **Important:**
4275
+ - No shipping address should be provided in the meta object.
4276
+ - Shipping address could be provided in the initial POST `/v1/charges/wallet` endpoint, if collected previously.
4277
+
4278
+ The required meta parameters for this case are:
4279
+ - `required_shipping_contact_fields`: Only include contact fields if needed (phone, email), but NOT `postalAddress`.
4280
+
4281
+ ```javascript
4282
+ meta: {
4283
+ "amount_label": "TOTAL",
4284
+ "country": "AU",
4285
+ "currency": "AUD",
4286
+ "amount": 10,
4287
+ "shipping_editing_mode": "available",
4288
+ "required_shipping_contact_fields": ["phone", "email"],
4289
+ "apple_pay_capabilities": ["credentials_available", "credentials_status_unknown", "credentials_unavailable"]
4290
+ }
4291
+ ```
4292
+
4270
4293
  ### Paypal Wallet Button Express
4271
4294
  A full description of the meta parameters for [PaypalWalletButtonExpress](#PaypalWalletButtonExpress) meta parameters can be found [here](#PaypalWalletMeta). Below you will find a fully working html example.
4272
4295
 
@@ -4490,7 +4513,7 @@ If the determinated value is credentials_status_unknown, the payment possbily sh
4490
4513
  | [merchant_capabilities] | <code>Array.&lt;(&#x27;supports3DS&#x27;\|&#x27;supportsEMV&#x27;\|&#x27;supportsCredit&#x27;\|&#x27;supportsDebit&#x27;)&gt;</code> | Array of capabilities that the merchant supports, influencing the transaction processing features available. |
4491
4514
  | [supported_networks] | <code>Array.&lt;(&#x27;visa&#x27;\|&#x27;masterCard&#x27;\|&#x27;amex&#x27;\|&#x27;chinaUnionPay&#x27;\|&#x27;discover&#x27;\|&#x27;interac&#x27;\|&#x27;jcb&#x27;\|&#x27;privateLabel&#x27;)&gt;</code> | List of payment networks supported by the merchant for ApplePay transactions. |
4492
4515
  | [required_billing_contact_fields] | <code>Array.&lt;(&#x27;email&#x27;\|&#x27;name&#x27;\|&#x27;phone&#x27;\|&#x27;postalAddress&#x27;)&gt;</code> | Contact fields required from the user for billing purposes, improving transaction verification and fraud prevention. Phone and email are currently not returned by Apple. |
4493
- | [required_shipping_contact_fields] | <code>Array.&lt;(&#x27;email&#x27;\|&#x27;phone&#x27;)&gt;</code> | Shipping contact fields that are mandatory to complete the transaction. Use email and phone to collect from customer wallet in the abscense of billing one. Required for onShippingAddressChange callback. |
4516
+ | [required_shipping_contact_fields] | <code>Array.&lt;(&#x27;email&#x27;\|&#x27;phone&#x27;\|&#x27;postalAddress&#x27;)&gt;</code> | Shipping contact fields that are mandatory to complete the transaction. Use email and phone to collect from customer wallet in the abscense of billing one. Include 'postalAddress' to show shipping address fields collection in the Apple Pay sheet. Required handling of onShippingAddressChange callback. |
4494
4517
  | [supported_countries] | <code>Array.&lt;string&gt;</code> | List of countries where ApplePay is supported by the merchant, restricting usage to specified regions. |
4495
4518
  | [style] | <code>object</code> | Styling configuration for ApplePay buttons displayed during checkout. |
4496
4519
  | [style.button_type] | <code>ApplePayButtonType</code> | Enum type to select the type of ApplePay button (e.g., 'buy', 'donate', etc.), providing user interface customization. |
package/bundles/index.cjs CHANGED
@@ -813,7 +813,7 @@ var Browser = /*#__PURE__*/function () {
813
813
  }, {
814
814
  key: "isSupportPopUp",
815
815
  value: function isSupportPopUp() {
816
- return !this.isFacebook() && !this.isInstagram();
816
+ return !Browser.isFacebook() && !Browser.isInstagram();
817
817
  }
818
818
  }, {
819
819
  key: "getLanguage",
@@ -869,18 +869,18 @@ var Browser = /*#__PURE__*/function () {
869
869
  var M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
870
870
  var tem;
871
871
  if (/trident/i.test(M[1])) {
872
- tem = /\brv[ :]+(\d+)/g.exec(ua) || [];
872
+ tem = /\brv[ :](\d+)/.exec(ua) || [];
873
873
  return {
874
874
  name: 'IE',
875
875
  version: tem[1] || ''
876
876
  };
877
877
  }
878
878
  if (M[1] === 'Chrome') {
879
- tem = ua.match(/\bOPR|Edge\/(\d+)/);
879
+ tem = ua.match(/\b(OPR|Edge)\/(\d+)/);
880
880
  if (tem != null) {
881
881
  return {
882
- name: 'Opera',
883
- version: tem[1]
882
+ name: tem[1] === 'OPR' ? 'Opera' : 'Edge',
883
+ version: tem[2]
884
884
  };
885
885
  }
886
886
  }
@@ -1189,7 +1189,7 @@ SDK.headerKeys = Object.freeze({
1189
1189
  version: 'x-sdk-version',
1190
1190
  type: 'x-sdk-type'
1191
1191
  });
1192
- SDK._version = 'v1.136.0-beta';
1192
+ SDK._version = 'v1.137.1-beta';
1193
1193
 
1194
1194
  function isFunction(value) {
1195
1195
  return typeof value === 'function';
@@ -4413,7 +4413,7 @@ var InstrumentationAgent = /*#__PURE__*/function (_MicroAgent) {
4413
4413
  _classCallCheck(this, InstrumentationAgent);
4414
4414
  _this = _callSuper(this, InstrumentationAgent, [config]);
4415
4415
  _this.call = function (method) {
4416
- if (_this.isAvailable()) {
4416
+ if (_this.isAvailable() && InstrumentationAgent.agent) {
4417
4417
  var _InstrumentationAgent;
4418
4418
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
4419
4419
  args[_key - 1] = arguments[_key];
@@ -4432,21 +4432,28 @@ var InstrumentationAgent = /*#__PURE__*/function (_MicroAgent) {
4432
4432
  }], [{
4433
4433
  key: "instance",
4434
4434
  get: function get() {
4435
+ var _a;
4435
4436
  if (!InstrumentationAgent.initialized) {
4436
4437
  var _getConfig = getConfig(),
4437
4438
  available = _getConfig.available,
4438
4439
  options = _getConfig.options;
4439
4440
  InstrumentationAgent.available = available;
4441
+ InstrumentationAgent.agent = undefined;
4440
4442
  if (available) {
4441
4443
  InstrumentationAgent.agent = new InstrumentationAgent(options);
4442
4444
  InstrumentationAgent.agent.start([Instrument$2.featureName, Instrument.featureName, Instrument$1.featureName]);
4443
4445
  }
4444
4446
  InstrumentationAgent.initialized = true;
4445
4447
  }
4446
- return InstrumentationAgent.agent;
4448
+ return (_a = InstrumentationAgent.agent) !== null && _a !== void 0 ? _a : InstrumentationAgent.noopClient;
4447
4449
  }
4448
4450
  }]);
4449
4451
  }(MicroAgent);
4452
+ InstrumentationAgent.noopClient = {
4453
+ call: function call() {
4454
+ // no-op: instrumentation unavailable (missing/invalid config)
4455
+ }
4456
+ };
4450
4457
 
4451
4458
  var ActionRepository = /*#__PURE__*/function () {
4452
4459
  function ActionRepository() {
@@ -22652,26 +22659,39 @@ var ApplePayWalletButtonExpress = /*#__PURE__*/function (_BaseWalletButton) {
22652
22659
  });
22653
22660
  };
22654
22661
  _this.onPaymentAuthorized = function (event) {
22662
+ var _a, _b, _c, _d;
22655
22663
  var _event$payment = event.payment,
22656
22664
  token = _event$payment.token,
22657
22665
  billingContact = _event$payment.billingContact,
22658
22666
  shippingContact = _event$payment.shippingContact;
22659
- _this.executeWalletCapture(_extends(_extends({}, shippingContact && {
22660
- shipping: {
22661
- address_line1: shippingContact.addressLines[0],
22662
- address_line2: shippingContact.addressLines[1],
22663
- address_line3: shippingContact.addressLines[2],
22664
- address_country: shippingContact.countryCode,
22665
- address_city: shippingContact.locality,
22666
- address_postcode: shippingContact.postalCode,
22667
- address_state: shippingContact.administrativeArea,
22668
- contact: {
22669
- phone: shippingContact.phoneNumber,
22670
- email: shippingContact.emailAddress,
22671
- first_name: shippingContact.givenName,
22667
+ var hasShippingFields = !!(((_a = shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.addressLines) === null || _a === void 0 ? void 0 : _a.length) || (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.countryCode) || (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.postalCode) || (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.locality) || (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.administrativeArea));
22668
+ var hasContactFields = !!((shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.phoneNumber) || (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.emailAddress) || (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.givenName) || (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.familyName));
22669
+ _this.executeWalletCapture(_extends(_extends({}, (hasShippingFields || hasContactFields) && {
22670
+ shipping: _extends(_extends(_extends(_extends(_extends(_extends(_extends(_extends({}, ((_b = shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.addressLines) === null || _b === void 0 ? void 0 : _b[0]) && {
22671
+ address_line1: shippingContact.addressLines[0]
22672
+ }), ((_c = shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.addressLines) === null || _c === void 0 ? void 0 : _c[1]) && {
22673
+ address_line2: shippingContact.addressLines[1]
22674
+ }), ((_d = shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.addressLines) === null || _d === void 0 ? void 0 : _d[2]) && {
22675
+ address_line3: shippingContact.addressLines[2]
22676
+ }), (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.countryCode) && {
22677
+ address_country: shippingContact.countryCode
22678
+ }), (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.locality) && {
22679
+ address_city: shippingContact.locality
22680
+ }), (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.postalCode) && {
22681
+ address_postcode: shippingContact.postalCode
22682
+ }), (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.administrativeArea) && {
22683
+ address_state: shippingContact.administrativeArea
22684
+ }), hasContactFields && {
22685
+ contact: _extends(_extends(_extends(_extends({}, (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.phoneNumber) && {
22686
+ phone: shippingContact.phoneNumber
22687
+ }), (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.emailAddress) && {
22688
+ email: shippingContact.emailAddress
22689
+ }), (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.givenName) && {
22690
+ first_name: shippingContact.givenName
22691
+ }), (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.familyName) && {
22672
22692
  last_name: shippingContact.familyName
22673
- }
22674
- }
22693
+ })
22694
+ })
22675
22695
  }), {
22676
22696
  customer: {
22677
22697
  first_name: billingContact === null || billingContact === void 0 ? void 0 : billingContact.givenName,
@@ -22921,24 +22941,30 @@ var ApplePayWalletButtonExpress = /*#__PURE__*/function (_BaseWalletButton) {
22921
22941
  }, {
22922
22942
  key: "parseShippingContact",
22923
22943
  value: function parseShippingContact() {
22924
- var _a, _b, _c, _d;
22944
+ var _a, _b, _c, _d, _e, _f, _g, _h;
22925
22945
  if (!((_b = (_a = this.chargeWalletTokenMeta) === null || _a === void 0 ? void 0 : _a.charge) === null || _b === void 0 ? void 0 : _b.shipping) && !this.meta.shipping) {
22926
22946
  return {};
22927
22947
  }
22928
22948
  var shipping = ((_d = (_c = this.chargeWalletTokenMeta) === null || _c === void 0 ? void 0 : _c.charge) === null || _d === void 0 ? void 0 : _d.shipping) || this.meta.shipping;
22929
- return _extends(_extends({}, (shipping === null || shipping === void 0 ? void 0 : shipping.contact) && {
22949
+ var shippingFromCharge = !!((_f = (_e = this.chargeWalletTokenMeta) === null || _e === void 0 ? void 0 : _e.charge) === null || _f === void 0 ? void 0 : _f.shipping);
22950
+ var requiresPostalAddress = (_h = (_g = this.meta.required_shipping_contact_fields) === null || _g === void 0 ? void 0 : _g.includes('postalAddress')) !== null && _h !== void 0 ? _h : false;
22951
+ var contact = _extends({}, (shipping === null || shipping === void 0 ? void 0 : shipping.contact) && {
22930
22952
  phoneNumber: shipping.contact.phone,
22931
22953
  emailAddress: shipping.contact.email,
22932
22954
  givenName: shipping.contact.first_name,
22933
22955
  familyName: shipping.contact.last_name
22934
- }), {
22935
- addressLines: [shipping.address_line1, shipping.address_line2, shipping.address_line3].filter(Boolean),
22936
- locality: shipping.address_city,
22937
- postalCode: shipping.address_postcode,
22938
- administrativeArea: shipping.address_state,
22939
- country: shipping.address_country,
22940
- countryCode: shipping.address_country_code ? shipping.address_country_code : shipping.address_country
22941
22956
  });
22957
+ if (requiresPostalAddress || shippingFromCharge) {
22958
+ return _extends(_extends({}, contact), {
22959
+ addressLines: [shipping.address_line1, shipping.address_line2, shipping.address_line3].filter(Boolean),
22960
+ locality: shipping.address_city,
22961
+ postalCode: shipping.address_postcode,
22962
+ administrativeArea: shipping.address_state,
22963
+ country: shipping.address_country,
22964
+ countryCode: shipping.address_country_code ? shipping.address_country_code : shipping.address_country
22965
+ });
22966
+ }
22967
+ return contact;
22942
22968
  }
22943
22969
  }, {
22944
22970
  key: "parseShippingMethod",
@@ -139,12 +139,16 @@ type HttpRequestUrl = string | URL;
139
139
  type AgentPrototype = Pick<(typeof MicroAgent)['prototype'], 'addPageAction' | 'noticeError'>;
140
140
  type AgentMethodNames = keyof AgentPrototype;
141
141
  type AgentMethodParameters<T extends AgentMethodNames> = Parameters<AgentPrototype[T]>;
142
+ type InstrumentationClient = {
143
+ call<T extends AgentMethodNames>(method: T, ...args: AgentMethodParameters<T>): void;
144
+ };
142
145
  declare class InstrumentationAgent extends MicroAgent {
143
146
  private static agent;
144
147
  private static available;
145
148
  private static initialized;
149
+ private static readonly noopClient;
146
150
  private constructor();
147
- static get instance(): InstrumentationAgent;
151
+ static get instance(): InstrumentationClient;
148
152
  isAvailable(): boolean;
149
153
  call: <T extends "addPageAction" | "noticeError">(method: T, ...args: AgentMethodParameters<T>) => void;
150
154
  }
@@ -5014,7 +5018,7 @@ interface ApplePayWalletMeta extends BaseWalletMeta {
5014
5018
  merchant_capabilities?: Array<'supports3DS' | 'supportsEMV' | 'supportsCredit' | 'supportsDebit'>;
5015
5019
  supported_networks?: Array<'visa' | 'masterCard' | 'amex' | 'chinaUnionPay' | 'discover' | 'interac' | 'jcb' | 'privateLabel'>;
5016
5020
  required_billing_contact_fields?: Array<'email' | 'name' | 'phone' | 'postalAddress'>;
5017
- required_shipping_contact_fields?: Array<'email' | 'phone'>;
5021
+ required_shipping_contact_fields?: Array<'email' | 'phone' | 'postalAddress'>;
5018
5022
  apple_pay_capabilities?: Array<'credentials_available' | 'credentials_status_unknown' | 'credentials_unavailable'>;
5019
5023
  supported_countries?: string[];
5020
5024
  style?: {
package/bundles/index.mjs CHANGED
@@ -811,7 +811,7 @@ var Browser = /*#__PURE__*/function () {
811
811
  }, {
812
812
  key: "isSupportPopUp",
813
813
  value: function isSupportPopUp() {
814
- return !this.isFacebook() && !this.isInstagram();
814
+ return !Browser.isFacebook() && !Browser.isInstagram();
815
815
  }
816
816
  }, {
817
817
  key: "getLanguage",
@@ -867,18 +867,18 @@ var Browser = /*#__PURE__*/function () {
867
867
  var M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
868
868
  var tem;
869
869
  if (/trident/i.test(M[1])) {
870
- tem = /\brv[ :]+(\d+)/g.exec(ua) || [];
870
+ tem = /\brv[ :](\d+)/.exec(ua) || [];
871
871
  return {
872
872
  name: 'IE',
873
873
  version: tem[1] || ''
874
874
  };
875
875
  }
876
876
  if (M[1] === 'Chrome') {
877
- tem = ua.match(/\bOPR|Edge\/(\d+)/);
877
+ tem = ua.match(/\b(OPR|Edge)\/(\d+)/);
878
878
  if (tem != null) {
879
879
  return {
880
- name: 'Opera',
881
- version: tem[1]
880
+ name: tem[1] === 'OPR' ? 'Opera' : 'Edge',
881
+ version: tem[2]
882
882
  };
883
883
  }
884
884
  }
@@ -1187,7 +1187,7 @@ SDK.headerKeys = Object.freeze({
1187
1187
  version: 'x-sdk-version',
1188
1188
  type: 'x-sdk-type'
1189
1189
  });
1190
- SDK._version = 'v1.136.0-beta';
1190
+ SDK._version = 'v1.137.1-beta';
1191
1191
 
1192
1192
  function isFunction(value) {
1193
1193
  return typeof value === 'function';
@@ -4411,7 +4411,7 @@ var InstrumentationAgent = /*#__PURE__*/function (_MicroAgent) {
4411
4411
  _classCallCheck(this, InstrumentationAgent);
4412
4412
  _this = _callSuper(this, InstrumentationAgent, [config]);
4413
4413
  _this.call = function (method) {
4414
- if (_this.isAvailable()) {
4414
+ if (_this.isAvailable() && InstrumentationAgent.agent) {
4415
4415
  var _InstrumentationAgent;
4416
4416
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
4417
4417
  args[_key - 1] = arguments[_key];
@@ -4430,21 +4430,28 @@ var InstrumentationAgent = /*#__PURE__*/function (_MicroAgent) {
4430
4430
  }], [{
4431
4431
  key: "instance",
4432
4432
  get: function get() {
4433
+ var _a;
4433
4434
  if (!InstrumentationAgent.initialized) {
4434
4435
  var _getConfig = getConfig(),
4435
4436
  available = _getConfig.available,
4436
4437
  options = _getConfig.options;
4437
4438
  InstrumentationAgent.available = available;
4439
+ InstrumentationAgent.agent = undefined;
4438
4440
  if (available) {
4439
4441
  InstrumentationAgent.agent = new InstrumentationAgent(options);
4440
4442
  InstrumentationAgent.agent.start([Instrument$2.featureName, Instrument.featureName, Instrument$1.featureName]);
4441
4443
  }
4442
4444
  InstrumentationAgent.initialized = true;
4443
4445
  }
4444
- return InstrumentationAgent.agent;
4446
+ return (_a = InstrumentationAgent.agent) !== null && _a !== void 0 ? _a : InstrumentationAgent.noopClient;
4445
4447
  }
4446
4448
  }]);
4447
4449
  }(MicroAgent);
4450
+ InstrumentationAgent.noopClient = {
4451
+ call: function call() {
4452
+ // no-op: instrumentation unavailable (missing/invalid config)
4453
+ }
4454
+ };
4448
4455
 
4449
4456
  var ActionRepository = /*#__PURE__*/function () {
4450
4457
  function ActionRepository() {
@@ -22650,26 +22657,39 @@ var ApplePayWalletButtonExpress = /*#__PURE__*/function (_BaseWalletButton) {
22650
22657
  });
22651
22658
  };
22652
22659
  _this.onPaymentAuthorized = function (event) {
22660
+ var _a, _b, _c, _d;
22653
22661
  var _event$payment = event.payment,
22654
22662
  token = _event$payment.token,
22655
22663
  billingContact = _event$payment.billingContact,
22656
22664
  shippingContact = _event$payment.shippingContact;
22657
- _this.executeWalletCapture(_extends(_extends({}, shippingContact && {
22658
- shipping: {
22659
- address_line1: shippingContact.addressLines[0],
22660
- address_line2: shippingContact.addressLines[1],
22661
- address_line3: shippingContact.addressLines[2],
22662
- address_country: shippingContact.countryCode,
22663
- address_city: shippingContact.locality,
22664
- address_postcode: shippingContact.postalCode,
22665
- address_state: shippingContact.administrativeArea,
22666
- contact: {
22667
- phone: shippingContact.phoneNumber,
22668
- email: shippingContact.emailAddress,
22669
- first_name: shippingContact.givenName,
22665
+ var hasShippingFields = !!(((_a = shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.addressLines) === null || _a === void 0 ? void 0 : _a.length) || (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.countryCode) || (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.postalCode) || (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.locality) || (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.administrativeArea));
22666
+ var hasContactFields = !!((shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.phoneNumber) || (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.emailAddress) || (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.givenName) || (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.familyName));
22667
+ _this.executeWalletCapture(_extends(_extends({}, (hasShippingFields || hasContactFields) && {
22668
+ shipping: _extends(_extends(_extends(_extends(_extends(_extends(_extends(_extends({}, ((_b = shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.addressLines) === null || _b === void 0 ? void 0 : _b[0]) && {
22669
+ address_line1: shippingContact.addressLines[0]
22670
+ }), ((_c = shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.addressLines) === null || _c === void 0 ? void 0 : _c[1]) && {
22671
+ address_line2: shippingContact.addressLines[1]
22672
+ }), ((_d = shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.addressLines) === null || _d === void 0 ? void 0 : _d[2]) && {
22673
+ address_line3: shippingContact.addressLines[2]
22674
+ }), (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.countryCode) && {
22675
+ address_country: shippingContact.countryCode
22676
+ }), (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.locality) && {
22677
+ address_city: shippingContact.locality
22678
+ }), (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.postalCode) && {
22679
+ address_postcode: shippingContact.postalCode
22680
+ }), (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.administrativeArea) && {
22681
+ address_state: shippingContact.administrativeArea
22682
+ }), hasContactFields && {
22683
+ contact: _extends(_extends(_extends(_extends({}, (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.phoneNumber) && {
22684
+ phone: shippingContact.phoneNumber
22685
+ }), (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.emailAddress) && {
22686
+ email: shippingContact.emailAddress
22687
+ }), (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.givenName) && {
22688
+ first_name: shippingContact.givenName
22689
+ }), (shippingContact === null || shippingContact === void 0 ? void 0 : shippingContact.familyName) && {
22670
22690
  last_name: shippingContact.familyName
22671
- }
22672
- }
22691
+ })
22692
+ })
22673
22693
  }), {
22674
22694
  customer: {
22675
22695
  first_name: billingContact === null || billingContact === void 0 ? void 0 : billingContact.givenName,
@@ -22919,24 +22939,30 @@ var ApplePayWalletButtonExpress = /*#__PURE__*/function (_BaseWalletButton) {
22919
22939
  }, {
22920
22940
  key: "parseShippingContact",
22921
22941
  value: function parseShippingContact() {
22922
- var _a, _b, _c, _d;
22942
+ var _a, _b, _c, _d, _e, _f, _g, _h;
22923
22943
  if (!((_b = (_a = this.chargeWalletTokenMeta) === null || _a === void 0 ? void 0 : _a.charge) === null || _b === void 0 ? void 0 : _b.shipping) && !this.meta.shipping) {
22924
22944
  return {};
22925
22945
  }
22926
22946
  var shipping = ((_d = (_c = this.chargeWalletTokenMeta) === null || _c === void 0 ? void 0 : _c.charge) === null || _d === void 0 ? void 0 : _d.shipping) || this.meta.shipping;
22927
- return _extends(_extends({}, (shipping === null || shipping === void 0 ? void 0 : shipping.contact) && {
22947
+ var shippingFromCharge = !!((_f = (_e = this.chargeWalletTokenMeta) === null || _e === void 0 ? void 0 : _e.charge) === null || _f === void 0 ? void 0 : _f.shipping);
22948
+ var requiresPostalAddress = (_h = (_g = this.meta.required_shipping_contact_fields) === null || _g === void 0 ? void 0 : _g.includes('postalAddress')) !== null && _h !== void 0 ? _h : false;
22949
+ var contact = _extends({}, (shipping === null || shipping === void 0 ? void 0 : shipping.contact) && {
22928
22950
  phoneNumber: shipping.contact.phone,
22929
22951
  emailAddress: shipping.contact.email,
22930
22952
  givenName: shipping.contact.first_name,
22931
22953
  familyName: shipping.contact.last_name
22932
- }), {
22933
- addressLines: [shipping.address_line1, shipping.address_line2, shipping.address_line3].filter(Boolean),
22934
- locality: shipping.address_city,
22935
- postalCode: shipping.address_postcode,
22936
- administrativeArea: shipping.address_state,
22937
- country: shipping.address_country,
22938
- countryCode: shipping.address_country_code ? shipping.address_country_code : shipping.address_country
22939
22954
  });
22955
+ if (requiresPostalAddress || shippingFromCharge) {
22956
+ return _extends(_extends({}, contact), {
22957
+ addressLines: [shipping.address_line1, shipping.address_line2, shipping.address_line3].filter(Boolean),
22958
+ locality: shipping.address_city,
22959
+ postalCode: shipping.address_postcode,
22960
+ administrativeArea: shipping.address_state,
22961
+ country: shipping.address_country,
22962
+ countryCode: shipping.address_country_code ? shipping.address_country_code : shipping.address_country
22963
+ });
22964
+ }
22965
+ return contact;
22940
22966
  }
22941
22967
  }, {
22942
22968
  key: "parseShippingMethod",
@@ -139,12 +139,16 @@ type HttpRequestUrl = string | URL;
139
139
  type AgentPrototype = Pick<(typeof MicroAgent)['prototype'], 'addPageAction' | 'noticeError'>;
140
140
  type AgentMethodNames = keyof AgentPrototype;
141
141
  type AgentMethodParameters<T extends AgentMethodNames> = Parameters<AgentPrototype[T]>;
142
+ type InstrumentationClient = {
143
+ call<T extends AgentMethodNames>(method: T, ...args: AgentMethodParameters<T>): void;
144
+ };
142
145
  declare class InstrumentationAgent extends MicroAgent {
143
146
  private static agent;
144
147
  private static available;
145
148
  private static initialized;
149
+ private static readonly noopClient;
146
150
  private constructor();
147
- static get instance(): InstrumentationAgent;
151
+ static get instance(): InstrumentationClient;
148
152
  isAvailable(): boolean;
149
153
  call: <T extends "addPageAction" | "noticeError">(method: T, ...args: AgentMethodParameters<T>) => void;
150
154
  }
@@ -5014,7 +5018,7 @@ interface ApplePayWalletMeta extends BaseWalletMeta {
5014
5018
  merchant_capabilities?: Array<'supports3DS' | 'supportsEMV' | 'supportsCredit' | 'supportsDebit'>;
5015
5019
  supported_networks?: Array<'visa' | 'masterCard' | 'amex' | 'chinaUnionPay' | 'discover' | 'interac' | 'jcb' | 'privateLabel'>;
5016
5020
  required_billing_contact_fields?: Array<'email' | 'name' | 'phone' | 'postalAddress'>;
5017
- required_shipping_contact_fields?: Array<'email' | 'phone'>;
5021
+ required_shipping_contact_fields?: Array<'email' | 'phone' | 'postalAddress'>;
5018
5022
  apple_pay_capabilities?: Array<'credentials_available' | 'credentials_status_unknown' | 'credentials_unavailable'>;
5019
5023
  supported_countries?: string[];
5020
5024
  style?: {
@@ -1 +1 @@
1
- {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/helper/browser.ts"],"names":[],"mappings":"AAAA,qBAAa,OAAO;WAEJ,UAAU,IAAI,OAAO;WAMrB,WAAW,IAAI,OAAO;WAMtB,cAAc,IAAI,OAAO;WAIzB,WAAW,IAAI,MAAM;WAIrB,iBAAiB,IAAI,MAAM;WAI3B,cAAc,IAAI,MAAM;WA4BxB,aAAa,IAAI,OAAO;WAIxB,aAAa,IAAI,MAAM;WAIvB,eAAe,IAAI,MAAM;WAIzB,cAAc,IAAI,MAAM;WAIxB,cAAc,IAAI;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;CA0BlE"}
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/helper/browser.ts"],"names":[],"mappings":"AAAA,qBAAa,OAAO;WACJ,UAAU,IAAI,OAAO;WAQrB,WAAW,IAAI,OAAO;WAQtB,cAAc,IAAI,OAAO;WAIzB,WAAW,IAAI,MAAM;WAIrB,iBAAiB,IAAI,MAAM;WAI3B,cAAc,IAAI,MAAM;WAsBxB,aAAa,IAAI,OAAO;WAIxB,aAAa,IAAI,MAAM;WAIvB,eAAe,IAAI,MAAM;WAIzB,cAAc,IAAI,MAAM;WAIxB,cAAc,IAAI;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;CA8BlE"}
@@ -2,12 +2,16 @@ import { MicroAgent } from '@newrelic/browser-agent/loaders/micro-agent';
2
2
  type AgentPrototype = Pick<(typeof MicroAgent)['prototype'], 'addPageAction' | 'noticeError'>;
3
3
  type AgentMethodNames = keyof AgentPrototype;
4
4
  type AgentMethodParameters<T extends AgentMethodNames> = Parameters<AgentPrototype[T]>;
5
+ export type InstrumentationClient = {
6
+ call<T extends AgentMethodNames>(method: T, ...args: AgentMethodParameters<T>): void;
7
+ };
5
8
  declare class InstrumentationAgent extends MicroAgent {
6
9
  private static agent;
7
10
  private static available;
8
11
  private static initialized;
12
+ private static readonly noopClient;
9
13
  private constructor();
10
- static get instance(): InstrumentationAgent;
14
+ static get instance(): InstrumentationClient;
11
15
  isAvailable(): boolean;
12
16
  call: <T extends "addPageAction" | "noticeError">(method: T, ...args: AgentMethodParameters<T>) => void;
13
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"instrumentation.agent.d.ts","sourceRoot":"","sources":["../../../../src/shared/services/instrumentation/instrumentation.agent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAMzE,KAAK,cAAc,GAAG,IAAI,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,WAAW,CAAC,EAAE,eAAe,GAAG,aAAa,CAAC,CAAC;AAC9F,KAAK,gBAAgB,GAAG,MAAM,cAAc,CAAC;AAC7C,KAAK,qBAAqB,CAAC,CAAC,SAAS,gBAAgB,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAEvF,cAAM,oBAAqB,SAAQ,UAAU;IACzC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAuB;IAC3C,OAAO,CAAC,MAAM,CAAC,SAAS,CAAU;IAClC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAU;IAEpC,OAAO;IAIP,WAAkB,QAAQ,yBAmBzB;IAEM,WAAW;IAIX,IAAI,sDAAwC,CAAC,WAAW,sBAAsB,CAAC,CAAC,UAIrF;CACL;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"instrumentation.agent.d.ts","sourceRoot":"","sources":["../../../../src/shared/services/instrumentation/instrumentation.agent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAMzE,KAAK,cAAc,GAAG,IAAI,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,WAAW,CAAC,EAAE,eAAe,GAAG,aAAa,CAAC,CAAC;AAC9F,KAAK,gBAAgB,GAAG,MAAM,cAAc,CAAC;AAC7C,KAAK,qBAAqB,CAAC,CAAC,SAAS,gBAAgB,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAEvF,MAAM,MAAM,qBAAqB,GAAG;IAChC,IAAI,CAAC,CAAC,SAAS,gBAAgB,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;CACxF,CAAC;AAEF,cAAM,oBAAqB,SAAQ,UAAU;IACzC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAmC;IACvD,OAAO,CAAC,MAAM,CAAC,SAAS,CAAU;IAClC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAU;IACpC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAIhC;IAEF,OAAO;IAIP,WAAkB,QAAQ,IAAI,qBAAqB,CAoBlD;IAEM,WAAW;IAIX,IAAI,sDAAwC,CAAC,WAAW,sBAAsB,CAAC,CAAC,UAIrF;CACL;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.repository.d.ts","sourceRoot":"","sources":["../../../../../src/shared/services/instrumentation/repositories/action.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,KAAK,cAAc,GAAG,CACpB,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,iBAAiB,KACnB,IAAI,CAAC;AAEV,UAAU,aAAa;IACrB,YAAY,EAAE,cAAc,CAAC;CAC9B;AAED,cAAM,gBAAgB;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuB;;IAMvC,YAAY,CAChB,GAAG,IAAI,EAAE,UAAU,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAC,GACzD,OAAO,CAAC,IAAI,CAAC;CAGjB;AAED,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"action.repository.d.ts","sourceRoot":"","sources":["../../../../../src/shared/services/instrumentation/repositories/action.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA8B,MAAM,0BAA0B,CAAC;AAC5F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,KAAK,cAAc,GAAG,CACpB,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,iBAAiB,KACnB,IAAI,CAAC;AAEV,UAAU,aAAa;IACrB,YAAY,EAAE,cAAc,CAAC;CAC9B;AAED,cAAM,gBAAgB;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;;IAMxC,YAAY,CAChB,GAAG,IAAI,EAAE,UAAU,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAC,GACzD,OAAO,CAAC,IAAI,CAAC;CAGjB;AAED,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"error.repository.d.ts","sourceRoot":"","sources":["../../../../../src/shared/services/instrumentation/repositories/error.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,KAAK,aAAa,GAAG,CACnB,UAAU,EAAE,eAAe,EAC3B,KAAK,EAAE,MAAM,GAAG,KAAK,EACrB,GAAG,EAAE,iBAAiB,GACpB,CACI;IACE,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB,GACD;IACE,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB,CACJ,KACA,IAAI,CAAC;AAEV,UAAU,YAAY;IACpB,WAAW,EAAE,aAAa,CAAC;CAC5B;AAED,cAAM,eAAe;IACnB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuB;;IAMvC,WAAW,CACf,GAAG,IAAI,EAAE,UAAU,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAC,GACvD,OAAO,CAAC,IAAI,CAAC;CAGjB;AAED,QAAA,MAAM,eAAe,iBAAwB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"error.repository.d.ts","sourceRoot":"","sources":["../../../../../src/shared/services/instrumentation/repositories/error.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA8B,MAAM,0BAA0B,CAAC;AAC5F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,KAAK,aAAa,GAAG,CACnB,UAAU,EAAE,eAAe,EAC3B,KAAK,EAAE,MAAM,GAAG,KAAK,EACrB,GAAG,EAAE,iBAAiB,GACpB,CACI;IACE,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB,GACD;IACE,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB,CACJ,KACA,IAAI,CAAC;AAEV,UAAU,YAAY;IACpB,WAAW,EAAE,aAAa,CAAC;CAC5B;AAED,cAAM,eAAe;IACnB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;;IAMxC,WAAW,CACf,GAAG,IAAI,EAAE,UAAU,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAC,GACvD,OAAO,CAAC,IAAI,CAAC;CAGjB;AAED,QAAA,MAAM,eAAe,iBAAwB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"event.repository.d.ts","sourceRoot":"","sources":["../../../../../src/shared/services/instrumentation/repositories/event.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElF,KAAK,aAAa,GAAG,CACnB,UAAU,EAAE,eAAe,EAC3B,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,iBAAiB,GAAG,cAAc,KACpC,IAAI,CAAC;AAEV,UAAU,YAAY;IACpB,WAAW,EAAE,aAAa,CAAC;CAC5B;AAED,cAAM,eAAe;IACnB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuB;;IAMvC,WAAW,CACf,GAAG,IAAI,EAAE,UAAU,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAC,GACzD,OAAO,CAAC,IAAI,CAAC;CAGjB;AAED,QAAA,MAAM,eAAe,iBAAwB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"event.repository.d.ts","sourceRoot":"","sources":["../../../../../src/shared/services/instrumentation/repositories/event.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA8B,MAAM,0BAA0B,CAAC;AAC5F,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElF,KAAK,aAAa,GAAG,CACnB,UAAU,EAAE,eAAe,EAC3B,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,iBAAiB,GAAG,cAAc,KACpC,IAAI,CAAC;AAEV,UAAU,YAAY;IACpB,WAAW,EAAE,aAAa,CAAC;CAC5B;AAED,cAAM,eAAe;IACnB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;;IAMxC,WAAW,CACf,GAAG,IAAI,EAAE,UAAU,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAC,GACzD,OAAO,CAAC,IAAI,CAAC;CAGjB;AAED,QAAA,MAAM,eAAe,iBAAwB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -16,7 +16,7 @@ export { PaypalWalletButtonExpress } from './services/paypal/paypal.wallet-butto
16
16
  * @param {Array<'supports3DS' | 'supportsEMV' | 'supportsCredit' | 'supportsDebit'>} [merchant_capabilities] - Array of capabilities that the merchant supports, influencing the transaction processing features available.
17
17
  * @param {Array<'visa' | 'masterCard' | 'amex' | 'chinaUnionPay' | 'discover' | 'interac' | 'jcb' | 'privateLabel'>} [supported_networks] - List of payment networks supported by the merchant for ApplePay transactions.
18
18
  * @param {Array<'email' | 'name' | 'phone' | 'postalAddress'>} [required_billing_contact_fields] - Contact fields required from the user for billing purposes, improving transaction verification and fraud prevention. Phone and email are currently not returned by Apple.
19
- * @param {Array<'email' | 'phone'>} [required_shipping_contact_fields] - Shipping contact fields that are mandatory to complete the transaction. Use email and phone to collect from customer wallet in the abscense of billing one. Required for onShippingAddressChange callback.
19
+ * @param {Array<'email' | 'phone' | 'postalAddress'>} [required_shipping_contact_fields] - Shipping contact fields that are mandatory to complete the transaction. Use email and phone to collect from customer wallet in the abscense of billing one. Include 'postalAddress' to show shipping address fields collection in the Apple Pay sheet. Required handling of onShippingAddressChange callback.
20
20
  * @param {string[]} [supported_countries] - List of countries where ApplePay is supported by the merchant, restricting usage to specified regions.
21
21
  * @param {object} [style] - Styling configuration for ApplePay buttons displayed during checkout.
22
22
  * @param {ApplePayButtonType} [style.button_type] - Enum type to select the type of ApplePay button (e.g., 'buy', 'donate', etc.), providing user interface customization.
@@ -1 +1 @@
1
- {"version":3,"file":"apple-pay.wallet-button-express.d.ts","sourceRoot":"","sources":["../../../../src/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAMvF;;;;;;;;;;;;;;GAcG;AACH,cAAM,2BAA4B,SAAQ,gBAAgB,CAAC,kBAAkB,CAAC;IAC5E,OAAO,CAAC,cAAc,CAAkB;IAExC,kBAAkB,aAEhB,QAAQ,EAAE,MAAM,EAChB,sBAAsB,EAAE,MAAM,EAC9B,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,kBAAkB;IAQ1B;;;;;;;OAOG;IACI,IAAI;IAyBX,OAAO,CAAC,cAAc;IA+BtB;;;;;;;;OAQG;IACI,OAAO,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI;IAI9C,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,KAAK;IAsBb,OAAO,CAAC,uBAAuB,CAW7B;IAEF,OAAO,CAAC,aAAa;IAgDrB,OAAO,CAAC,kBAAkB,CAgBxB;IAEF,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,mBAAmB,CA6CzB;IAEF,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,eAAe,CAErB;IAEF,OAAO,CAAC,oBAAoB;IA6B5B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,+BAA+B,CA8BrC;IAEF,OAAO,CAAC,8BAA8B,CAgBpC;IAEF,OAAO,CAAC,8BAA8B;IAWtC,OAAO,CAAC,+BAA+B;IA+BvC,OAAO,CAAC,iBAAiB;CA0B1B;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
1
+ {"version":3,"file":"apple-pay.wallet-button-express.d.ts","sourceRoot":"","sources":["../../../../src/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAMvF;;;;;;;;;;;;;;GAcG;AACH,cAAM,2BAA4B,SAAQ,gBAAgB,CAAC,kBAAkB,CAAC;IAC5E,OAAO,CAAC,cAAc,CAAkB;IAExC,kBAAkB,aAEhB,QAAQ,EAAE,MAAM,EAChB,sBAAsB,EAAE,MAAM,EAC9B,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,kBAAkB;IAQ1B;;;;;;;OAOG;IACI,IAAI;IAyBX,OAAO,CAAC,cAAc;IA+BtB;;;;;;;;OAQG;IACI,OAAO,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI;IAI9C,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,KAAK;IAsBb,OAAO,CAAC,uBAAuB,CAW7B;IAEF,OAAO,CAAC,aAAa;IAgDrB,OAAO,CAAC,kBAAkB,CAgBxB;IAEF,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,mBAAmB,CAmFzB;IAEF,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,eAAe,CAErB;IAEF,OAAO,CAAC,oBAAoB;IAwC5B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,+BAA+B,CA8BrC;IAEF,OAAO,CAAC,8BAA8B,CAgBpC;IAEF,OAAO,CAAC,8BAA8B;IAWtC,OAAO,CAAC,+BAA+B;IA+BvC,OAAO,CAAC,iBAAiB;CA0B1B;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
@@ -9,7 +9,7 @@ export interface ApplePayWalletMeta extends BaseWalletMeta {
9
9
  merchant_capabilities?: Array<'supports3DS' | 'supportsEMV' | 'supportsCredit' | 'supportsDebit'>;
10
10
  supported_networks?: Array<'visa' | 'masterCard' | 'amex' | 'chinaUnionPay' | 'discover' | 'interac' | 'jcb' | 'privateLabel'>;
11
11
  required_billing_contact_fields?: Array<'email' | 'name' | 'phone' | 'postalAddress'>;
12
- required_shipping_contact_fields?: Array<'email' | 'phone'>;
12
+ required_shipping_contact_fields?: Array<'email' | 'phone' | 'postalAddress'>;
13
13
  apple_pay_capabilities?: Array<'credentials_available' | 'credentials_status_unknown' | 'credentials_unavailable'>;
14
14
  supported_countries?: string[];
15
15
  style?: {
@@ -1 +1 @@
1
- {"version":3,"file":"apple-pay-wallet-meta.interface.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,qBAAqB,CAAC,EAAE,KAAK,CAC3B,aAAa,GAAG,aAAa,GAAG,gBAAgB,GAAG,eAAe,CACnE,CAAC;IACF,kBAAkB,CAAC,EAAE,KAAK,CACtB,MAAM,GACN,YAAY,GACZ,MAAM,GACN,eAAe,GACf,UAAU,GACV,SAAS,GACT,KAAK,GACL,cAAc,CACjB,CAAC;IACF,+BAA+B,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,eAAe,CAAC,CAAC;IACtF,gCAAgC,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC;IAC5D,sBAAsB,CAAC,EAAE,KAAK,CAC5B,uBAAuB,GAAG,4BAA4B,GAAG,yBAAyB,CACnF,CAAC;IACF,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE;QACN,WAAW,CAAC,EAAE,kBAAkB,CAAC;QACjC,YAAY,CAAC,EAAE,mBAAmB,CAAC;KACpC,CAAC;IACF,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,qBAAqB,CAAC,EAAE,0BAA0B,CAAC;CACpD"}
1
+ {"version":3,"file":"apple-pay-wallet-meta.interface.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,qBAAqB,CAAC,EAAE,KAAK,CAC3B,aAAa,GAAG,aAAa,GAAG,gBAAgB,GAAG,eAAe,CACnE,CAAC;IACF,kBAAkB,CAAC,EAAE,KAAK,CACtB,MAAM,GACN,YAAY,GACZ,MAAM,GACN,eAAe,GACf,UAAU,GACV,SAAS,GACT,KAAK,GACL,cAAc,CACjB,CAAC;IACF,+BAA+B,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,eAAe,CAAC,CAAC;IACtF,gCAAgC,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,OAAO,GAAG,eAAe,CAAC,CAAC;IAC9E,sBAAsB,CAAC,EAAE,KAAK,CAC5B,uBAAuB,GAAG,4BAA4B,GAAG,yBAAyB,CACnF,CAAC;IACF,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE;QACN,WAAW,CAAC,EAAE,kBAAkB,CAAC;QACjC,YAAY,CAAC,EAAE,mBAAmB,CAAC;KACpC,CAAC;IACF,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,qBAAqB,CAAC,EAAE,0BAA0B,CAAC;CACpD"}