@tap-payments/apple-pay-button 1.0.2-test → 1.0.3-test

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.
@@ -64,4 +64,5 @@ export interface ApplePayRequestData {
64
64
  supportsCouponCode?: boolean;
65
65
  couponCode?: string;
66
66
  shippingMethods?: ApplePayShippingMethod[];
67
+ lineItems?: ApplePayLineItem[];
67
68
  }
@@ -1,5 +1,5 @@
1
1
  import { Scope, SupportedNetworks, ButtonType, Locale, Environment, ThemeMode, Edges } from '../constants';
2
- import { ApplePayPaymentContact, ApplePayPaymentMethod, ApplePayShippingMethod, ApplePayUpdateData, RequiredShippingContactField } from './ApplePaySession';
2
+ import { ApplePayLineItem, ApplePayPaymentContact, ApplePayPaymentMethod, ApplePayShippingMethod, ApplePayUpdateData, RequiredShippingContactField } from './ApplePaySession';
3
3
  export * from './ApplePaySession';
4
4
  export interface Interface {
5
5
  locale?: typeof Locale[keyof typeof Locale];
@@ -35,6 +35,7 @@ export interface Transaction {
35
35
  currency: string;
36
36
  couponCode?: string;
37
37
  shipping?: ApplePayShippingMethod[];
38
+ lineItems?: ApplePayLineItem[];
38
39
  }
39
40
  export interface ApplePayButtonProps {
40
41
  scope?: typeof Scope[keyof typeof Scope];
@@ -44,7 +44,8 @@ export var getApplePayRequest = function (_a) {
44
44
  supportsCouponCode: acceptance.supportsCouponCode,
45
45
  couponCode: transaction.couponCode,
46
46
  requiredShippingContactFields: customer === null || customer === void 0 ? void 0 : customer.shippingContactFields,
47
- shippingMethods: transaction.shipping
47
+ shippingMethods: transaction.shipping,
48
+ lineItems: transaction.lineItems
48
49
  };
49
50
  };
50
51
  export var getApplePayPaymentMethod = function (paymentMethods) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/apple-pay-button",
3
- "version": "1.0.2-test",
3
+ "version": "1.0.3-test",
4
4
  "description": "Apple Pay Button React Component",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",