@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.
package/build/@types/index.d.ts
CHANGED
|
@@ -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];
|
package/build/utils/config.js
CHANGED
|
@@ -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) {
|