@paydock/client-sdk 1.121.0 → 1.122.2-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.
Files changed (74) hide show
  1. package/README.md +283 -1
  2. package/bundles/index.cjs +2067 -93
  3. package/bundles/index.cjs.d.ts +349 -6
  4. package/bundles/index.mjs +2067 -93
  5. package/bundles/index.mjs.d.ts +349 -6
  6. package/bundles/types/checkout/checkout.d.ts +2 -0
  7. package/bundles/types/checkout/checkout.d.ts.map +1 -1
  8. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +1 -1
  9. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -1
  10. package/bundles/types/checkout/layout-widgets/payment-template.d.ts +1 -1
  11. package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -1
  12. package/bundles/types/components/link.d.ts +1 -1
  13. package/bundles/types/components/link.d.ts.map +1 -1
  14. package/bundles/types/components/wallet-background.d.ts.map +1 -1
  15. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -1
  16. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -1
  17. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -1
  18. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -1
  19. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +70 -13
  20. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -1
  21. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts +3 -1
  22. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -1
  23. package/bundles/types/wallet-buttons-express/index.d.ts +109 -1
  24. package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -1
  25. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +30 -0
  26. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -1
  27. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +2 -2
  28. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -1
  29. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +2 -2
  30. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -1
  31. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +2 -2
  32. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -1
  33. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +2 -2
  34. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -1
  35. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +2 -2
  36. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -1
  37. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +2 -2
  38. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -1
  39. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts +21 -0
  40. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts.map +1 -0
  41. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts +9 -0
  42. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts.map +1 -0
  43. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts +13 -0
  44. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts.map +1 -0
  45. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-response.interface.d.ts +9 -0
  46. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-response.interface.d.ts.map +1 -0
  47. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +2 -2
  48. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -1
  49. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts +7 -0
  50. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -1
  51. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-events.constant.d.ts +5 -0
  52. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-events.constant.d.ts.map +1 -0
  53. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +7 -3
  54. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -1
  55. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-contact-editing-mode.type.d.ts +5 -0
  56. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-contact-editing-mode.type.d.ts.map +1 -0
  57. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts +21 -0
  58. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts.map +1 -0
  59. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts +21 -0
  60. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts.map +1 -0
  61. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-sdk.interface.d.ts +164 -0
  62. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-sdk.interface.d.ts.map +1 -0
  63. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +1 -1
  64. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -1
  65. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +9 -3
  66. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -1
  67. package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts +6 -0
  68. package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts.map +1 -0
  69. package/bundles/widget.umd.js +2069 -93
  70. package/bundles/widget.umd.js.d.ts +349 -6
  71. package/bundles/widget.umd.js.min.d.ts +349 -6
  72. package/bundles/widget.umd.min.js +1 -1
  73. package/docs/wallet-buttons-express.md +283 -1
  74. package/package.json +1 -1
@@ -1,23 +1,31 @@
1
1
  import { ApiInternal } from '../api/api-internal';
2
2
  import { Container } from '../components/container';
3
- import { OnClickEventData } from './interfaces/on-click-event-data.interface';
4
- import { OnPaymentSuccessfulEventData } from './interfaces/on-payment-successful-event-data.interface';
5
- import { OnCloseEventData } from './interfaces/on-close-event-data.interface';
6
- import { OnPaymentInReviewEventData } from './interfaces/on-payment-in-review-event-data.interface';
7
- import { OnPaymentErrorEventData } from './interfaces/on-payment-error-event-data.interface';
8
- import { WalletCaptureRequest } from './interfaces/wallet-capture-request.interface';
9
- import { OnUnavailableEventData } from './interfaces/on-unavailable-event-data.interface';
10
- import { BaseGatewayConfig } from './interfaces/base-gateway-config.interface';
11
- import { BaseWalletMeta } from './interfaces/base-wallet-meta.interface';
12
- import { OnErrorEventData } from './interfaces/on-error-event-data.interface';
3
+ import { EventEmitter } from '../helper/event-emitter';
4
+ import type { OnClickEventData } from './interfaces/on-click-event-data.interface';
5
+ import type { OnPaymentSuccessfulEventData } from './interfaces/on-payment-successful-event-data.interface';
6
+ import type { OnCloseEventData } from './interfaces/on-close-event-data.interface';
7
+ import type { OnPaymentInReviewEventData } from './interfaces/on-payment-in-review-event-data.interface';
8
+ import type { OnPaymentErrorEventData } from './interfaces/on-payment-error-event-data.interface';
9
+ import type { WalletCaptureRequest } from './interfaces/wallet-capture-request.interface';
10
+ import type { OnUnavailableEventData } from './interfaces/on-unavailable-event-data.interface';
11
+ import type { BaseGatewayConfig } from './interfaces/base-gateway-config.interface';
12
+ import type { ChargeWalletTokenMeta } from './interfaces/charge-wallet-token-meta.interface';
13
+ import type { BaseWalletMeta } from './interfaces/base-wallet-meta.interface';
14
+ import type { OnErrorEventData } from './interfaces/on-error-event-data.interface';
15
+ import type { OnShippingAddressChangeEventData } from './interfaces/on-shipping-address-change-event-data.interface';
16
+ import type { OnShippingOptionChangeEventData } from './interfaces/on-shipping-option-change-event-data.interface';
17
+ import type { OnShippingAddressChangeEventResponse } from './interfaces/on-shipping-address-change-event-response.interface';
18
+ import type { OnShippingOptionChangeEventResponse } from './interfaces/on-shipping-option-change-event-response.interface';
19
+ import type { ShippingEventToResponse } from './types/shipping-event-to-response.type';
13
20
  declare abstract class BaseWalletButton<T extends BaseWalletMeta> {
14
21
  protected container: Container;
15
22
  protected api: ApiInternal;
16
23
  protected env: string;
17
24
  protected gatewayId: string;
18
25
  protected meta: T;
19
- private eventEmitter;
20
- private chargeWalletTokenMeta?;
26
+ protected eventEmitter: EventEmitter;
27
+ protected chargeWalletTokenMeta?: ChargeWalletTokenMeta;
28
+ private onShippingOptionsChangeHandlerRegistered;
21
29
  constructor(selector: string, publicKeyOrAccessToken: string, gatewayId: string, meta: T, requiredMetaFields: string[]);
22
30
  private getApiAuthType;
23
31
  /**
@@ -135,6 +143,52 @@ declare abstract class BaseWalletButton<T extends BaseWalletMeta> {
135
143
  * @param {OnCheckoutCloseCallback} handler - Function to be called when the wallet checkout closes.
136
144
  */
137
145
  onCheckoutClose(handler?: (err: OnCloseEventData) => void): Promise<unknown> | (() => void);
146
+ /**
147
+ * Callback for onShippingAddressChange method.
148
+ *
149
+ * @callback OnShippingAddressChangeCallback
150
+ * @param {OnShippingAddressChangeEventData} data
151
+ * @return {Promise<OnShippingAddressChangeEventResponse>} Address update result
152
+ */
153
+ /**
154
+ * If shipping address data is updated, the function passed as parameter will be called.
155
+ * Use this method to listen for shipping address selection or input from customer when shipping is enabled.
156
+ * The event handler needs to return a new token in case a backend to backend wallet update call was executed.
157
+ * In addition, if any error occured, an error string must be supplied.
158
+ * By default, the event handler will be processed successfuly if neither token nor error is returned.
159
+ *
160
+ * @example
161
+ * button.onShippingAddressChange((data) => {
162
+ * const responseData = await fetch('https://your-server.com/update-shipping-info');
163
+ * return { error: null, token: responseData.walletToken };
164
+ * });
165
+ *
166
+ * @param {OnShippingAddressChangeCallback} [handler] - Function to be called when the shipping address data is updated.
167
+ */
168
+ onShippingAddressChange(handler?: (data: OnShippingAddressChangeEventData) => Promise<OnShippingAddressChangeEventResponse>): () => void;
169
+ /**
170
+ * Callback for onShippingOptionsChange method.
171
+ *
172
+ * @callback OnShippingOptionsChangeCallback
173
+ * @param {OnShippingOptionChangeEventData} data
174
+ * @return {Promise<OnShippingOptionChangeEventResponse>} Address update result
175
+ */
176
+ /**
177
+ * If shipping options data is updated, the function passed as parameter will be called.
178
+ * Use this method to listen for shipping option selection from customer when shipping is enabled.
179
+ * The event handler needs to return a new token in case a backend to backend wallet update call was executed.
180
+ * In addition, if any error occured, an error string must be supplied.
181
+ * By default, the event handler will be processed successfuly if neither token nor error is returned.
182
+ *
183
+ * @example
184
+ * button.onShippingOptionsChange((data) => {
185
+ * const responseData = await fetch('https://your-server.com/update-shipping-info');
186
+ * return { error: null, token: responseData.walletToken };
187
+ * });
188
+ *
189
+ * @param {OnShippingOptionsChangeCallback} [handler] - Function to be called when the shipping options data is updated.
190
+ */
191
+ onShippingOptionsChange(handler?: (data: OnShippingOptionChangeEventData) => Promise<OnShippingOptionChangeEventResponse>): () => void;
138
192
  /**
139
193
  * Callback for onUnavailable method.
140
194
  *
@@ -184,7 +238,10 @@ declare abstract class BaseWalletButton<T extends BaseWalletMeta> {
184
238
  }>(data: U): Promise<T>;
185
239
  protected executeWalletCapture<T>(data: WalletCaptureRequest): Promise<T>;
186
240
  protected handleMerchantOnExpressButtonClickEvent(): Promise<void>;
187
- private setWalletToken;
241
+ protected handleMerchantOnShippingChangedEvent<T extends OnShippingAddressChangeEventData | OnShippingOptionChangeEventData>(eventData: T): Promise<ShippingEventToResponse<T>>;
242
+ protected setWalletToken(token: string, opts?: {
243
+ skipApiAuth: boolean;
244
+ }): void;
188
245
  protected handleCheckoutClose(): void;
189
246
  protected handleOnUnavailable(): void;
190
247
  protected handleOnError(error?: Error): void;
@@ -1 +1 @@
1
- {"version":3,"file":"base.wallet-button-express.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons-express/base.wallet-button-express.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAKpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,yDAAyD,CAAC;AACvG,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;AACpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAC;AAC7F,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAE/E,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAE9E,uBAAe,gBAAgB,CAAC,CAAC,SAAS,cAAc;IACpD,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,GAAG,SAAe;IAC5B,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,IAA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EW = "paymentInReview",
7
7
  ON_CLICK = "onClick",
8
- ON_CHECKOUT_CLOSE = "onCheckoutClose"
8
+ ON_CHECKOUT_CLOSE = "onCheckoutClose",
9
+ ON_SHIPPING_ADDRESS_CHANGE = "onShippingAddressChange",
10
+ ON_SHIPPING_OPTIONS_CHANGE = "onShippingOptionsChange"
9
11
  }
10
12
  //# sourceMappingURL=event.enum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event.enum.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/enum/event.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACb,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,kBAAkB,sBAAsB;IACxC,aAAa,iBAAiB;IAC9B,iBAAiB,oBAAoB;IACrC,QAAQ,YAAY;IACpB,iBAAiB,oBAAoB;CACxC"}
1
+ {"version":3,"file":"event.enum.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/enum/event.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACb,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,kBAAkB,sBAAsB;IACxC,aAAa,iBAAiB;IAC9B,iBAAiB,oBAAoB;IACrC,QAAQ,YAAY;IACpB,iBAAiB,oBAAoB;IACrC,0BAA0B,4BAA4B;IACtD,0BAA0B,4BAA4B;CACzD"}
@@ -16,11 +16,14 @@ 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.
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.
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.
23
23
  * @param {ApplePayButtonStyle} [style.button_style] - Style applied to the ApplePay button, which can include color and form factor adjustments according to the brand's visual guidelines.
24
+ * @param {'available' | 'store_pickup'} [shipping_editing_mode] - ApplePay - available for allowing editing shipping, store_pickup for not allowing editing shipping.
25
+ * @param {object} [shipping_data] - ApplePay - Preloaded data used for populate shipping address information
26
+ * @param {string} [shipping_data.email_address] - ApplePay - The shipping address email
24
27
  * @param {Array<'credentials_available' | 'credentials_status_unknown' | 'credentials_unavailable'>} [apple_pay_capabilities] Device capabilities needed for wallet button to be available.
25
28
  **/
26
29
  /**
@@ -68,6 +71,8 @@ export { PaypalWalletButtonExpress } from "./services/paypal/paypal.wallet-butto
68
71
  * @param {string} PAYMENT_IN_REVIEW=paymentInReview
69
72
  * @param {string} ON_CLICK=onClick
70
73
  * @param {string} ON_CHECKOUT_CLOSE=onCheckoutClose
74
+ * @param {string} ON_SHIPPING_ADDRESS_CHANGE=onShippingAddressChange
75
+ * @param {string} ON_SHIPPING_OPTIONS_CHANGE=onShippingOptionsChange
71
76
  */
72
77
  /**
73
78
  * Interface for OnClickEventData
@@ -134,4 +139,107 @@ export { PaypalWalletButtonExpress } from "./services/paypal/paypal.wallet-butto
134
139
  * @param {string} [chargeId] - chargeId in case it's already set after onClick event
135
140
  * @param {Error} [data] Error object if present
136
141
  **/
142
+ /**
143
+ * Interface for OnShippingAddressChangeEventData.
144
+ * @interface OnShippingAddressChangeEventData
145
+ *
146
+ * @type {object}
147
+ * @param {string} event - Event Name is 'onShippingAddressChange'
148
+ * @param {string} chargeId - chargeId set after onClick event
149
+ * @param {string} data.address_city - PayPal and ApplePay - Shipping address city
150
+ * @param {string} data.address_state - PayPal and ApplePay - Shipping address state
151
+ * @param {string} data.address_postcode - PayPal and ApplePay - Shipping address postcode
152
+ * @param {string} data.address_country - PayPal and ApplePay - Shipping address country code
153
+ * @param {string} [data.address_line1] - ApplePay - Shipping address line 1
154
+ * @param {string} [data.address_line2] - ApplePay - Shipping address line 2
155
+ * @param {string} [data.contact.phone] - ApplePay - Shipping contact phone
156
+ * @param {string} [data.contact.email] - ApplePay - Shipping contact email
157
+ * @param {string} [data.contact.first_name] - ApplePay - Shipping contact first name
158
+ * @param {string} [data.contact.last_name] - ApplePay - Shipping contact last name
159
+ **/
160
+ /**
161
+ * Interface for OnShippingAddressChangeEventResponse.
162
+ * @interface OnShippingAddressChangeEventResponse
163
+ *
164
+ * @type {object}
165
+ * @param {string} [token] - Updated Wallet Token if any
166
+ * @param {string} [label] - ApplePay - Required. Label to show to the customer.
167
+ * @param {string} [amount] - ApplePay - Required. New amount for shipping option.
168
+ * @param {string} [error] - PayPal and ApplePay - Error object in case of error when processing shipping address in if new address unsupported or any other possible error.
169
+ * @param {string} error.code - PayPal and ApplePay - Error code, mandatory in case of error.
170
+ * Possible values for Paypal are 'address_error', 'country_error', 'state_error', 'zip_error' or any other string if none applies.
171
+ * For ApplePay values are 'address_error', 'shipping_contact_invalid' and 'billing_contact_invalid'.
172
+ * @param {string} [error.field] - ApplePay - Error field in case of specifically showing it. Possible values for Apple Pay are 'phone', 'email', 'name', 'phonetic_name', 'address_lines', 'locality', 'postal_code', 'administrative_area', 'country', 'country_code'.
173
+ * @param {string} [error.message] - ApplePay - Custom user facing error message.
174
+ **/
175
+ /**
176
+ * Interface for IApplePayShippingOption.
177
+ * Used for adding new shippings options when customer updates the shipping address.
178
+ * @interface IApplePayShippingOption
179
+ *
180
+ * @type {object}
181
+ * @param {string} [id] - Updated Wallet Token if any
182
+ * @param {string} [label] - ApplePay - Required. Label to show to the customer.
183
+ * @param {string} [amount] - ApplePay - Required. New amount for shipping option.
184
+ * @param {string} [detail] - ApplePay - Optional detail for shipping option.
185
+ * @param {object} [date_components_range] - ApplePay - Object that contains the dates for shipping
186
+ * @param {object} [date_components_range.start_date_components] - ApplePay - Contains the start date object
187
+ * @param {string} [date_components_range.start_date_components.years] - ApplePay - Contains the start date year
188
+ * @param {string} [date_components_range.start_date_components.months] - ApplePay - Contains the start date month
189
+ * @param {string} [date_components_range.start_date_components.days] - ApplePay - Contains the start date day
190
+ * @param {string} [date_components_range.start_date_components.hours] - ApplePay - Contains the start date hour
191
+ * @param {object} [date_components_range.end_date_components] - ApplePay - Contains the end date year
192
+ * @param {string} [date_components_range.end_date_components.years] - ApplePay - Contains the end date year
193
+ * @param {string} [date_components_range.end_date_components.months] - ApplePay - Contains the end date month
194
+ * @param {string} [date_components_range.end_date_components.days] - ApplePay - Contains the end date day
195
+ * @param {string} [date_components_range.end_date_components.hours] - ApplePay - Contains the end date hour
196
+ **/
197
+ /**
198
+ * Interface for OnShippingOptionChangeEventData.
199
+ * @interface OnShippingOptionChangeEventData
200
+ *
201
+ * @type {object}
202
+ * @param {string} event - Event Name is 'onShippingOptionsChange'
203
+ * @param {string} chargeId - chargeId set after onClick event
204
+ * @param {string} [data.shipping_option_id] - PayPal and ApplePay - Selected shipping option id
205
+ * @param {string} [data.amount] - Paypal and ApplePay - Selected shipping option amount
206
+ * @param {string} [data.label] - ApplePay - Selected shipping option label
207
+ * @param {string} [data.detail] - ApplePay - Selected shipping option detail
208
+ **/
209
+ /**
210
+ * Interface for OnShippingOptionChangeEventResponse.
211
+ * @interface OnShippingOptionChangeEventResponse
212
+ *
213
+ * @type {object}
214
+ * @param {string} [token] - Updated Wallet Token if any
215
+ * @param {string} [label] - ApplePay - Required. Label to show to the customer.
216
+ * @param {string} [amount] - ApplePay - Required. New amount for shipping option.
217
+ * @param {string} [error] - PayPal - Error object in case of error when processing shipping option selection.
218
+ * @param {string} error.code - Possible values for Paypal are 'method_unavailable', 'store_unavailable' or any other string if none applies.
219
+ **/
220
+ /**
221
+ * Interface for IApplePayError.
222
+ * @interface IApplePayError
223
+ *
224
+ * @type {object}
225
+ * @param {'shipping_contact_invalid' | 'billing_contact_invalid' | 'address_unserviceable' | 'coupon_code_invalid' | 'coupon_code_expired' | 'unknown'} code The error code for this instance.
226
+ * @param {ContactFieldType} contact_field The error code for this instance.
227
+ * @param {string|undefined} message TA localized, user-facing string that describes the error.
228
+ **/
229
+ /**
230
+ * List of available contact fields for ContactFieldType
231
+ * @const ContactFieldType
232
+ *
233
+ * @type {object}
234
+ * @param {string} phone
235
+ * @param {string} email
236
+ * @param {string} name
237
+ * @param {string} phonetic_name
238
+ * @param {string} address_lines
239
+ * @param {string} address_city
240
+ * @param {string} address_postcode
241
+ * @param {string} address_state
242
+ * @param {string} address_country
243
+ * @param {string} address_country_code
244
+ */
137
245
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons-express/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACnG,OAAO,EAAE,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAE3F;;;;;;;;;;;;;;;;;;;;;;IAsBI;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgCI;AAEJ;;;;;;;;;;;;GAYG;AAEH;;;;;;IAMI;AAEJ;;;;;;;IAOI;AAEJ;;;;;;;;;;;IAWI;AAEJ;;;;;;;;;;;IAWI;AAEJ;;;;;;;;;IASI;AAEJ;;;;;;IAMI;AAEJ;;;;;;;;IAQI"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons-express/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACnG,OAAO,EAAE,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAE3F;;;;;;;;;;;;;;;;;;;;;;;;;IAyBI;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgCI;AAEJ;;;;;;;;;;;;;;GAcG;AAEH;;;;;;IAMI;AAEJ;;;;;;;IAOI;AAEJ;;;;;;;;;;;IAWI;AAEJ;;;;;;;;;;;IAWI;AAEJ;;;;;;;;;IASI;AAEJ;;;;;;IAMI;AAEJ;;;;;;;;IAQI;AAEJ;;;;;;;;;;;;;;;;;IAiBI;AAEJ;;;;;;;;;;;;;;IAcI;AAGJ;;;;;;;;;;;;;;;;;;;;;IAqBI;AAEJ;;;;;;;;;;;IAWI;AAEJ;;;;;;;;;;IAUI;AAEJ;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;GAeG"}
@@ -5,6 +5,36 @@ export interface ChargeWalletTokenMeta {
5
5
  currency: string;
6
6
  capture?: boolean;
7
7
  reference?: string;
8
+ shipping?: {
9
+ amount?: number;
10
+ currency?: string;
11
+ address_line1?: string;
12
+ address_line2?: string;
13
+ address_line3?: string;
14
+ address_city?: string;
15
+ address_postcode?: string;
16
+ address_state?: string;
17
+ address_country?: string;
18
+ address_company?: string;
19
+ address_origin_postcode?: string;
20
+ method?: string;
21
+ type?: string;
22
+ options?: Array<{
23
+ id?: string;
24
+ label?: string;
25
+ detail?: string;
26
+ amount?: string;
27
+ currency?: string;
28
+ type?: string;
29
+ }>;
30
+ contact?: {
31
+ first_name?: string;
32
+ last_name?: string;
33
+ email?: string;
34
+ phone?: string;
35
+ phone2?: string;
36
+ };
37
+ };
8
38
  };
9
39
  gateway: {
10
40
  mode: string;
@@ -1 +1 @@
1
- {"version":3,"file":"charge-wallet-token-meta.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,CAAA;CACF"}
1
+ {"version":3,"file":"charge-wallet-token-meta.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE;YACT,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,eAAe,CAAC,EAAE,MAAM,CAAC;YACzB,eAAe,CAAC,EAAE,MAAM,CAAC;YACzB,uBAAuB,CAAC,EAAE,MAAM,CAAC;YACjC,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,OAAO,CAAC,EAAE,KAAK,CAAC;gBACZ,EAAE,CAAC,EAAE,MAAM,CAAC;gBACZ,KAAK,CAAC,EAAE,MAAM,CAAC;gBACf,MAAM,CAAC,EAAE,MAAM,CAAC;gBAChB,MAAM,CAAC,EAAE,MAAM,CAAC;gBAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,IAAI,CAAC,EAAE,MAAM,CAAC;aACjB,CAAC,CAAC;YACH,OAAO,CAAC,EAAE;gBACN,UAAU,CAAC,EAAE,MAAM,CAAC;gBACpB,SAAS,CAAC,EAAE,MAAM,CAAC;gBACnB,KAAK,CAAC,EAAE,MAAM,CAAC;gBACf,KAAK,CAAC,EAAE,MAAM,CAAC;gBACf,MAAM,CAAC,EAAE,MAAM,CAAC;aACnB,CAAC;SACL,CAAC;KACH,CAAC;IACF,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,CAAA;CACF"}
@@ -1,5 +1,5 @@
1
- import { EVENT } from "../enum/event.enum";
2
- import { BaseEventData } from "./base-event-data.interface";
1
+ import type { EVENT } from "../enum/event.enum";
2
+ import type { BaseEventData } from "./base-event-data.interface";
3
3
  export interface OnClickEventData extends BaseEventData<undefined> {
4
4
  event: EVENT.ON_CLICK;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"on-click-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-click-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,WAAW,gBAAiB,SAAQ,aAAa,CAAC,SAAS,CAAC;IAC9D,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC;CACzB"}
1
+ {"version":3,"file":"on-click-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-click-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,WAAW,gBAAiB,SAAQ,aAAa,CAAC,SAAS,CAAC;IAC9D,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC;CACzB"}
@@ -1,5 +1,5 @@
1
- import { EVENT } from "../enum/event.enum";
2
- import { BaseEventData } from "./base-event-data.interface";
1
+ import type { EVENT } from "../enum/event.enum";
2
+ import type { BaseEventData } from "./base-event-data.interface";
3
3
  export interface OnCloseEventData extends BaseEventData<undefined> {
4
4
  event: EVENT.ON_CHECKOUT_CLOSE;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"on-close-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-close-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,WAAW,gBAAiB,SAAQ,aAAa,CAAC,SAAS,CAAC;IAC9D,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC;CAClC"}
1
+ {"version":3,"file":"on-close-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-close-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,WAAW,gBAAiB,SAAQ,aAAa,CAAC,SAAS,CAAC;IAC9D,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC;CAClC"}
@@ -1,5 +1,5 @@
1
- import { EVENT } from "../enum/event.enum";
2
- import { BaseEventData } from "./base-event-data.interface";
1
+ import type { EVENT } from "../enum/event.enum";
2
+ import type { BaseEventData } from "./base-event-data.interface";
3
3
  export interface OnErrorEventData extends BaseEventData<Error> {
4
4
  event: EVENT.ERROR;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"on-error-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-error-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,WAAW,gBAAiB,SAAQ,aAAa,CAAC,KAAK,CAAC;IAC1D,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;CACtB"}
1
+ {"version":3,"file":"on-error-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-error-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,WAAW,gBAAiB,SAAQ,aAAa,CAAC,KAAK,CAAC;IAC1D,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;CACtB"}
@@ -1,5 +1,5 @@
1
- import { EVENT } from "../enum/event.enum";
2
- import { BaseEventData } from "./base-event-data.interface";
1
+ import type { EVENT } from "../enum/event.enum";
2
+ import type { BaseEventData } from "./base-event-data.interface";
3
3
  export interface OnPaymentErrorEventData extends BaseEventData<{
4
4
  message?: string;
5
5
  code?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"on-payment-error-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,WAAW,uBAAwB,SAAQ,aAAa,CAAC;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;IACE,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC;CAC9B"}
1
+ {"version":3,"file":"on-payment-error-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,WAAW,uBAAwB,SAAQ,aAAa,CAAC;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;IACE,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC;CAC9B"}
@@ -1,5 +1,5 @@
1
- import { EVENT } from "../enum/event.enum";
2
- import { OnPaymentSuccessfulEventData } from "./on-payment-successful-event-data.interface";
1
+ import type { EVENT } from "../enum/event.enum";
2
+ import type { OnPaymentSuccessfulEventData } from "./on-payment-successful-event-data.interface";
3
3
  export interface OnPaymentInReviewEventData extends Omit<OnPaymentSuccessfulEventData, 'event'> {
4
4
  event: EVENT.PAYMENT_IN_REVIEW;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"on-payment-in-review-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAE5F,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC;IAC3F,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC;CAClC"}
1
+ {"version":3,"file":"on-payment-in-review-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAEjG,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC;IAC3F,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC;CAClC"}
@@ -1,5 +1,5 @@
1
- import { EVENT } from "../enum/event.enum";
2
- import { BaseEventData } from "./base-event-data.interface";
1
+ import type { EVENT } from "../enum/event.enum";
2
+ import type { BaseEventData } from "./base-event-data.interface";
3
3
  export interface OnPaymentSuccessfulEventData extends BaseEventData<{
4
4
  id: string;
5
5
  amount: number;
@@ -1 +1 @@
1
- {"version":3,"file":"on-payment-successful-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,WAAW,4BAA6B,SAAQ,aAAa,CAAC;IAChE,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC;IACE,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC;CACnC"}
1
+ {"version":3,"file":"on-payment-successful-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,WAAW,4BAA6B,SAAQ,aAAa,CAAC;IAChE,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC;IACE,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC;CACnC"}
@@ -0,0 +1,21 @@
1
+ import type { EVENT } from '../enum/event.enum';
2
+ import type { BaseEventData } from './base-event-data.interface';
3
+ export interface OnShippingAddressChangeEventData extends BaseEventData<AddressChangeEventData> {
4
+ event: EVENT.ON_SHIPPING_ADDRESS_CHANGE;
5
+ }
6
+ interface AddressChangeEventData {
7
+ address_postcode?: string;
8
+ address_city?: string;
9
+ address_state?: string;
10
+ address_country?: string;
11
+ address_line1?: string;
12
+ address_line2?: string;
13
+ contact?: {
14
+ phone?: string;
15
+ email?: string;
16
+ first_name?: string;
17
+ last_name?: string;
18
+ };
19
+ }
20
+ export {};
21
+ //# sourceMappingURL=on-shipping-address-change-event-data.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"on-shipping-address-change-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,WAAW,gCAAiC,SAAQ,aAAa,CAAC,sBAAsB,CAAC;IAC3F,KAAK,EAAE,KAAK,CAAC,0BAA0B,CAAC;CAC3C;AAED,UAAU,sBAAsB;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH"}
@@ -0,0 +1,9 @@
1
+ export interface OnShippingAddressChangeEventResponse {
2
+ token?: string;
3
+ error?: {
4
+ code: 'address_error' | 'country_error' | 'state_error' | 'zip_error' | 'shipping_contact_invalid' | 'billing_contact_invalid' | string;
5
+ field?: 'phone' | 'email' | 'name' | 'phonetic_name' | 'address_lines' | 'locality' | 'postal_code' | 'administrative_area' | 'country' | 'country_code';
6
+ message?: string;
7
+ };
8
+ }
9
+ //# sourceMappingURL=on-shipping-address-change-event-response.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"on-shipping-address-change-event-response.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oCAAoC;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,eAAe,GAAG,eAAe,GAAG,aAAa,GAAG,WAAW,GAAG,0BAA0B,GAAG,yBAAyB,GAAG,MAAM,CAAC;QACxI,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,eAAe,GAAG,eAAe,GAAG,UAAU,GAAG,aAAa,GAAG,qBAAqB,GAAG,SAAS,GAAG,cAAc,CAAC;QACzJ,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH"}
@@ -0,0 +1,13 @@
1
+ import type { EVENT } from '../enum/event.enum';
2
+ import type { BaseEventData } from './base-event-data.interface';
3
+ export interface OnShippingOptionChangeEventData extends BaseEventData<ShippingOptionChangeEventData> {
4
+ event: EVENT.ON_SHIPPING_OPTIONS_CHANGE;
5
+ }
6
+ interface ShippingOptionChangeEventData {
7
+ shipping_option_id?: string;
8
+ amount?: string;
9
+ label?: string;
10
+ detail?: string;
11
+ }
12
+ export {};
13
+ //# sourceMappingURL=on-shipping-option-change-event-data.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"on-shipping-option-change-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,WAAW,+BAAgC,SAAQ,aAAa,CAAC,6BAA6B,CAAC;IACjG,KAAK,EAAE,KAAK,CAAC,0BAA0B,CAAC;CAC3C;AAED,UAAU,6BAA6B;IACrC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,9 @@
1
+ export interface OnShippingOptionChangeEventResponse {
2
+ token?: string;
3
+ label?: string;
4
+ amount?: string;
5
+ error?: {
6
+ code: 'method_unavailable' | 'store_unavailable' | string;
7
+ };
8
+ }
9
+ //# sourceMappingURL=on-shipping-option-change-event-response.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"on-shipping-option-change-event-response.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-shipping-option-change-event-response.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mCAAmC;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,oBAAoB,GAAG,mBAAmB,GAAG,MAAM,CAAC;KAC3D,CAAC;CACH"}
@@ -1,5 +1,5 @@
1
- import { EVENT } from "../enum/event.enum";
2
- import { BaseEventData } from "./base-event-data.interface";
1
+ import type { EVENT } from "../enum/event.enum";
2
+ import type { BaseEventData } from "./base-event-data.interface";
3
3
  export interface OnUnavailableEventData extends BaseEventData<undefined> {
4
4
  event: EVENT.UNAVAILABLE;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"on-unavailable-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,WAAW,sBAAuB,SAAQ,aAAa,CAAC,SAAS,CAAC;IACpE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC;CAC5B"}
1
+ {"version":3,"file":"on-unavailable-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,WAAW,sBAAuB,SAAQ,aAAa,CAAC,SAAS,CAAC;IACpE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC;CAC5B"}
@@ -46,6 +46,13 @@ declare class ApplePayWalletButtonExpress extends BaseWalletButton<ApplePayWalle
46
46
  private onPaymentAuthorized;
47
47
  private formatCapabilities;
48
48
  private onCancelPayment;
49
+ private parseShippingContact;
50
+ private parseShippingMethod;
51
+ private onApplePayShippingContactUpdate;
52
+ private onApplePayShippingMethodUpdate;
53
+ private parseShippingMethodUpdateEvent;
54
+ private parseShippingContactUpdateEvent;
55
+ private formatErrorFields;
49
56
  }
50
57
  export { ApplePayWalletButtonExpress };
51
58
  //# sourceMappingURL=apple-pay.wallet-button-express.d.ts.map
@@ -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":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAIvF;;;;;;;;;;;;;;GAcG;AACH,cAAM,2BAA4B,SAAQ,gBAAgB,CAAC,kBAAkB,CAAC;IAC1E,OAAO,CAAC,cAAc,CAAkB;IAExC,kBAAkB,aACN,QAAQ,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAIzG;;;;;;;OAOG;IACI,IAAI;IAoCX;;;;;;;;OAQG;IACI,OAAO,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI;IAI9C,OAAO,CAAC,iBAAiB;IAwBzB,OAAO,CAAC,KAAK;IAoBb,OAAO,CAAC,uBAAuB;IAS/B,OAAO,CAAC,aAAa;IAmBrB,OAAO,CAAC,kBAAkB,CAczB;IAED,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,mBAAmB,CA0B1B;IAED,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,eAAe,CAEtB;CACJ;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":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAQvF;;;;;;;;;;;;;;GAcG;AACH,cAAM,2BAA4B,SAAQ,gBAAgB,CAAC,kBAAkB,CAAC;IAC1E,OAAO,CAAC,cAAc,CAAkB;IAExC,kBAAkB,aACN,QAAQ,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAIzG;;;;;;;OAOG;IACI,IAAI;IAoCX;;;;;;;;OAQG;IACI,OAAO,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI;IAI9C,OAAO,CAAC,iBAAiB;IAwBzB,OAAO,CAAC,KAAK;IAoBb,OAAO,CAAC,uBAAuB,CAe9B;IAED,OAAO,CAAC,aAAa;IA4BrB,OAAO,CAAC,kBAAkB,CAczB;IAED,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,mBAAmB,CA0B1B;IAED,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,eAAe,CAEtB;IAED,OAAO,CAAC,oBAAoB;IAuB5B,OAAO,CAAC,mBAAmB;IAS3B,OAAO,CAAC,+BAA+B,CAyBtC;IAED,OAAO,CAAC,8BAA8B,CAarC;IAED,OAAO,CAAC,8BAA8B;IAStC,OAAO,CAAC,+BAA+B;IAqBvC,OAAO,CAAC,iBAAiB;CAuB5B;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare enum ApplePayEvents {
2
+ SHIPPING_METHOD_SELECTED = "onshippingmethodselected",
3
+ SHIPPING_CONTACT_SELECTED = "onshippingcontactselected"
4
+ }
5
+ //# sourceMappingURL=apple-pay-events.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple-pay-events.constant.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/apple-pay/constants/apple-pay-events.constant.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,wBAAwB,6BAA6B;IACrD,yBAAyB,8BAA8B;CACxD"}
@@ -1,6 +1,8 @@
1
- import { BaseWalletMeta } from "../../../interfaces/base-wallet-meta.interface";
2
- import { ApplePayButtonStyle } from "../types/apple-pay-button-style.type";
3
- import { ApplePayButtonType } from "../types/apple-pay-button-type.type";
1
+ import type { BaseWalletMeta } from "../../../interfaces/base-wallet-meta.interface";
2
+ import type { ApplePayButtonStyle } from "../types/apple-pay-button-style.type";
3
+ import type { ApplePayButtonType } from "../types/apple-pay-button-type.type";
4
+ import type { ContactShippingEditingMode } from "../types/apple-pay-contact-editing-mode.type";
5
+ import type { AppleShippingType } from "../types/apple-pay-shipping-data";
4
6
  export interface ApplePayWalletMeta extends BaseWalletMeta {
5
7
  amount_label: string;
6
8
  country: string;
@@ -14,5 +16,7 @@ export interface ApplePayWalletMeta extends BaseWalletMeta {
14
16
  button_type?: ApplePayButtonType;
15
17
  button_style?: ApplePayButtonStyle;
16
18
  };
19
+ shipping?: AppleShippingType;
20
+ shipping_editing_mode?: ContactShippingEditingMode;
17
21
  }
18
22
  //# sourceMappingURL=apple-pay-wallet-meta.interface.d.ts.map
@@ -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,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,qBAAqB,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,aAAa,GAAG,gBAAgB,GAAG,eAAe,CAAC,CAAC;IAClG,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,YAAY,GAAG,MAAM,GAAG,eAAe,GAAG,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,cAAc,CAAC,CAAC;IAC/H,+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,CAAC,uBAAuB,GAAG,4BAA4B,GAAG,yBAAyB,CAAC,CAAC;IACnH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE;QACJ,WAAW,CAAC,EAAE,kBAAkB,CAAC;QACjC,YAAY,CAAC,EAAE,mBAAmB,CAAC;KACtC,CAAC;CACL"}
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;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,qBAAqB,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,aAAa,GAAG,gBAAgB,GAAG,eAAe,CAAC,CAAC;IAClG,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,YAAY,GAAG,MAAM,GAAG,eAAe,GAAG,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,cAAc,CAAC,CAAC;IAC/H,+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,CAAC,uBAAuB,GAAG,4BAA4B,GAAG,yBAAyB,CAAC,CAAC;IACnH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE;QACJ,WAAW,CAAC,EAAE,kBAAkB,CAAC;QACjC,YAAY,CAAC,EAAE,mBAAmB,CAAC;KACtC,CAAC;IACF,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,qBAAqB,CAAC,EAAE,0BAA0B,CAAC;CACtD"}
@@ -0,0 +1,5 @@
1
+ export declare enum ContactShippingEditingMode {
2
+ AVAILABLE = "available",
3
+ STORE_PICKUP = "store_pickup"
4
+ }
5
+ //# sourceMappingURL=apple-pay-contact-editing-mode.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple-pay-contact-editing-mode.type.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/apple-pay/types/apple-pay-contact-editing-mode.type.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B;IACpC,SAAS,cAAc;IACvB,YAAY,iBAAiB;CAC9B"}