@lookiero/checkout 15.2.3 → 15.3.0-beta.0
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/CHANGELOG.md +10 -0
- package/dist/public/public/assets/adaptive-icon.png +0 -0
- package/dist/public/public/assets/favicon.png +0 -0
- package/dist/public/public/assets/icon.png +0 -0
- package/dist/public/public/assets/splash.png +0 -0
- package/dist/public/public/images/not-found.png +0 -0
- package/dist/src/ExpoRoot.js +1 -1
- package/dist/src/infrastructure/projection/pricing/pricing.d.ts +31 -0
- package/dist/src/infrastructure/projection/pricing/pricing.js +39 -0
- package/dist/src/infrastructure/ui/hooks/useCheckoutFlow.js +1 -1
- package/dist/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.js +2 -1
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.d.ts +0 -1
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +19 -10
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.d.ts +21 -10
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.js +24 -16
- package/dist/src/version.d.ts +2 -2
- package/dist/src/version.js +2 -2
- package/package.json +3 -3
- package/src/ExpoRoot.tsx +2 -2
- package/src/infrastructure/ui/hooks/useCheckoutFlow.tsx +3 -3
- package/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.test.tsx +4 -0
- package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +277 -100
- package/src/infrastructure/ui/views/item/components/selectModal/SelecModal.test.tsx +62 -7
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.ts +35 -18
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +36 -32
- package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +280 -44
- /package/dist/public/{index.html → public/index.html} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## (2026-05-27)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- checkout RadioReturnQuestionItem ([#505](https://github.com/lookiero/sty-sp-front/issues/505)) ([4a01deb](https://github.com/lookiero/sty-sp-front/commit/4a01deb17c7ebff417e203f28b58329570c7c01c))
|
|
6
|
+
- **checkout:** clip and fill product variant images in XO ([#754](https://github.com/lookiero/sty-sp-front/issues/754)) ([8801c46](https://github.com/lookiero/sty-sp-front/commit/8801c466e8357b99410ef08e5d6323c6792fca67))
|
|
7
|
+
- **notifications:** propagate bodyI18nValues through notification chain ([#727](https://github.com/lookiero/sty-sp-front/issues/727)) ([c8f1b30](https://github.com/lookiero/sty-sp-front/commit/c8f1b30a3bd5212b712d2243fdd1a6309b676321))
|
|
8
|
+
- **slider:** correct price range slider alignment on Android ([#749](https://github.com/lookiero/sty-sp-front/issues/749)) ([9022d83](https://github.com/lookiero/sty-sp-front/commit/9022d8303fdcfd9f125fdb87cf41fc8df9db673a))
|
|
9
|
+
- **ui:** carousel Bullets background color applied inside style object ([#757](https://github.com/lookiero/sty-sp-front/issues/757)) ([d764531](https://github.com/lookiero/sty-sp-front/commit/d764531a5e33c781b1e952a2310ba0fb91e799c6))
|
|
10
|
+
|
|
1
11
|
# Changelog
|
|
2
12
|
|
|
3
13
|
All notable changes to `@lookiero/checkout` are generated from Conventional Commits scoped to `apps/checkout`.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/src/ExpoRoot.js
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Tradename } from "@lookiero/sty-sp-tradename";
|
|
2
|
+
import { PriceProjection } from "../../../projection/price/price";
|
|
3
|
+
import { CheckoutPricingProjection } from "../../../projection/pricing/pricing";
|
|
4
|
+
interface ServiceDto {
|
|
5
|
+
readonly discount: PriceProjection;
|
|
6
|
+
readonly finalPrice: PriceProjection;
|
|
7
|
+
readonly originalPrice: PriceProjection;
|
|
8
|
+
readonly prepaid: boolean;
|
|
9
|
+
readonly reference: string;
|
|
10
|
+
readonly paidWithPromocode?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface PricingDto {
|
|
13
|
+
readonly balanceDiscount: PriceProjection;
|
|
14
|
+
readonly discount: PriceProjection;
|
|
15
|
+
readonly discountPercentage: number;
|
|
16
|
+
readonly orderTotal: PriceProjection;
|
|
17
|
+
readonly pendingToPay: PriceProjection;
|
|
18
|
+
readonly service: ServiceDto;
|
|
19
|
+
readonly subtotal: PriceProjection;
|
|
20
|
+
}
|
|
21
|
+
interface ToPricingProjectionFunctionArgs {
|
|
22
|
+
readonly pricing: PricingDto;
|
|
23
|
+
readonly tradename: Tradename;
|
|
24
|
+
readonly migrated: boolean;
|
|
25
|
+
}
|
|
26
|
+
interface ToPricingProjectionFunction {
|
|
27
|
+
(args: ToPricingProjectionFunctionArgs): CheckoutPricingProjection;
|
|
28
|
+
}
|
|
29
|
+
declare const toPricingProjection: ToPricingProjectionFunction;
|
|
30
|
+
export type { PricingDto };
|
|
31
|
+
export { toPricingProjection };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Tradename } from "@lookiero/sty-sp-tradename";
|
|
2
|
+
import { CheckoutPricingContext, CheckoutPricingType, } from "../../../projection/pricing/pricing";
|
|
3
|
+
const toPricingProjection = ({ pricing, tradename, migrated, }) => {
|
|
4
|
+
const shouldDisplayPsFeeModifier = tradename === Tradename.LOOKIERO || (tradename === Tradename.OUTFITTERY && !migrated);
|
|
5
|
+
const modifiers = [
|
|
6
|
+
{
|
|
7
|
+
amount: pricing.discount.amount,
|
|
8
|
+
type: CheckoutPricingType.DISCOUNT,
|
|
9
|
+
context: CheckoutPricingContext.PROMOCODE,
|
|
10
|
+
translationKey: "summary.discount",
|
|
11
|
+
percentage: pricing.discountPercentage,
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
amount: pricing.balanceDiscount.amount,
|
|
15
|
+
type: CheckoutPricingType.DISCOUNT,
|
|
16
|
+
context: CheckoutPricingContext.BALANCE,
|
|
17
|
+
translationKey: "summary.credit",
|
|
18
|
+
},
|
|
19
|
+
...(shouldDisplayPsFeeModifier
|
|
20
|
+
? [
|
|
21
|
+
{
|
|
22
|
+
amount: pricing.service.finalPrice.amount,
|
|
23
|
+
type: CheckoutPricingType.DISCOUNT,
|
|
24
|
+
context: CheckoutPricingContext.PS_FEE,
|
|
25
|
+
translationKey: "summary.fee",
|
|
26
|
+
},
|
|
27
|
+
]
|
|
28
|
+
: []),
|
|
29
|
+
]
|
|
30
|
+
.map((modifier) => ({ ...modifier, amount: Math.abs(modifier.amount) }))
|
|
31
|
+
.filter(({ amount }) => amount !== 0);
|
|
32
|
+
return {
|
|
33
|
+
currency: pricing.pendingToPay.currency,
|
|
34
|
+
finalPrice: pricing.pendingToPay.amount,
|
|
35
|
+
originalPrice: pricing.subtotal.amount,
|
|
36
|
+
modifiers,
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export { toPricingProjection };
|
|
@@ -93,7 +93,7 @@ const useCheckoutFlow = ({ checkout: checkoutProjection, getAuthToken, onSuccess
|
|
|
93
93
|
}
|
|
94
94
|
return "idle";
|
|
95
95
|
}, [startLegacyBoxCheckoutStatus, submitCheckoutStatus, checkoutBookingExpired]);
|
|
96
|
-
const paymentFlow = useMemo(() => (authToken ? React.createElement(PaymentFlow, { ref: paymentFlowRef, section: Section.BOX_CHECKOUT
|
|
96
|
+
const paymentFlow = useMemo(() => (authToken ? React.createElement(PaymentFlow, { ref: paymentFlowRef, section: Section.BOX_CHECKOUT }) : null), [authToken]);
|
|
97
97
|
return useMemo(() => [checkoutFlow, checkoutFlowStatus, paymentFlow], [checkoutFlow, paymentFlow, checkoutFlowStatus]);
|
|
98
98
|
};
|
|
99
99
|
export { useCheckoutFlow };
|
package/dist/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.js
CHANGED
|
@@ -4,9 +4,10 @@ import { useStaticInfo } from "../../../../hooks/useStaticInfo";
|
|
|
4
4
|
const PaymentInstrument = ({ useRedirect }) => {
|
|
5
5
|
const { returnUrl } = useRedirect();
|
|
6
6
|
const { customer } = useStaticInfo();
|
|
7
|
-
return (React.createElement(PaymentInstrumentSelect, { beforeRedirect: returnUrl ? () => Promise.resolve(returnUrl) : undefined,
|
|
7
|
+
return (React.createElement(PaymentInstrumentSelect, { beforeRedirect: returnUrl ? () => Promise.resolve(returnUrl) : undefined, section: Section.BOX_CHECKOUT, userInformation: {
|
|
8
8
|
email: customer.email,
|
|
9
9
|
name: customer.name,
|
|
10
|
+
segment: customer.segment,
|
|
10
11
|
}, showSingleUsePaymentMethods: true }));
|
|
11
12
|
};
|
|
12
13
|
export { PaymentInstrument };
|
|
@@ -2,7 +2,6 @@ import { FC } from "react";
|
|
|
2
2
|
import { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
interface SelectModalStyle {
|
|
4
4
|
readonly modalContent: StyleProp<ViewStyle>;
|
|
5
|
-
readonly option: StyleProp<ViewStyle>;
|
|
6
5
|
readonly optionText: StyleProp<TextStyle>;
|
|
7
6
|
}
|
|
8
7
|
interface Option {
|
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import {
|
|
3
|
-
import { Text } from "@lookiero/sty-psp-ui";
|
|
4
|
-
import {
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { Pressable, View } from "react-native";
|
|
3
|
+
import { Checkbox, Modal, Text } from "@lookiero/sty-psp-ui";
|
|
4
|
+
import { Tradename } from "@lookiero/sty-sp-tradename";
|
|
5
|
+
import { useStaticInfo } from "../../../../hooks/useStaticInfo";
|
|
5
6
|
import { style as modalStyle } from "./SelectModal.style";
|
|
6
7
|
const SelectModal = ({ modalVisible, options, style: customStyle, testID, title, value, portalHostName, onChange = () => void 0, onClose = () => void 0, }) => {
|
|
7
|
-
const handleOnPressOption = useCallback((value) => {
|
|
8
|
-
onChange(value);
|
|
9
|
-
onClose();
|
|
10
|
-
}, [onClose, onChange]);
|
|
11
8
|
const style = useMemo(() => modalStyle(), []);
|
|
9
|
+
const { tradename } = useStaticInfo();
|
|
12
10
|
return (React.createElement(Modal, { portalHostName: portalHostName, testID: testID, visible: modalVisible, scroll: true, showCloseButton: true, onClose: onClose },
|
|
13
11
|
React.createElement(View, { style: [style.modalContent, customStyle?.modalContent] },
|
|
14
12
|
title && (React.createElement(Text, { level: 3, style: style.modalTitle, variant: "heading" }, title)),
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
React.createElement(View, { accessibilityRole: "radiogroup", style: style.container, testID: "options-radiogroup" }, options.map(({ label, value: optionValue }) => {
|
|
14
|
+
const checked = value === optionValue;
|
|
15
|
+
return (React.createElement(Pressable, { key: optionValue, accessibilityLabel: label, accessibilityRole: "radio", accessibilityState: { checked, disabled: checked }, disabled: checked, testID: optionValue, style: [
|
|
16
|
+
style.wrapper,
|
|
17
|
+
checked && style.wrapperChecked,
|
|
18
|
+
tradename === Tradename.LOOKIERO && style.wrapperLookiero,
|
|
19
|
+
], accessible: true, onPress: () => {
|
|
20
|
+
onChange(optionValue);
|
|
21
|
+
onClose();
|
|
22
|
+
} },
|
|
23
|
+
React.createElement(Checkbox, { checked: checked }),
|
|
24
|
+
React.createElement(Text, { style: style.text }, label)));
|
|
25
|
+
})))));
|
|
17
26
|
};
|
|
18
27
|
export { SelectModal };
|
|
@@ -1,22 +1,33 @@
|
|
|
1
1
|
declare const style: () => {
|
|
2
|
-
|
|
2
|
+
container: {
|
|
3
|
+
gap: number;
|
|
4
|
+
};
|
|
3
5
|
modalContent: {
|
|
4
|
-
paddingBottom: number;
|
|
5
6
|
paddingHorizontal: number;
|
|
6
7
|
};
|
|
7
8
|
modalTitle: {
|
|
8
9
|
marginBottom: number;
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
text: {
|
|
12
|
+
color: string;
|
|
13
|
+
flex: number;
|
|
14
|
+
marginLeft: number;
|
|
15
|
+
};
|
|
16
|
+
wrapper: {
|
|
17
|
+
alignItems: "center";
|
|
18
|
+
borderColor: string;
|
|
19
|
+
borderWidth: number;
|
|
20
|
+
flex: number;
|
|
21
|
+
flexDirection: "row";
|
|
22
|
+
padding: number;
|
|
14
23
|
};
|
|
15
|
-
|
|
16
|
-
|
|
24
|
+
wrapperChecked: {
|
|
25
|
+
borderColor: string;
|
|
26
|
+
borderWidth: number;
|
|
27
|
+
padding: number;
|
|
17
28
|
};
|
|
18
|
-
|
|
19
|
-
|
|
29
|
+
wrapperLookiero: {
|
|
30
|
+
borderRadius: number;
|
|
20
31
|
};
|
|
21
32
|
};
|
|
22
33
|
export { style };
|
|
@@ -1,30 +1,38 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
const style = () => {
|
|
4
|
-
const {
|
|
5
|
-
|
|
4
|
+
const { colorText, colorBorderInputFocus, colorBorderInteractive, space025, space3, space4, space6, borderWidth1, borderWidth2, borderRadius3, } = theme();
|
|
5
|
+
return StyleSheet.create({
|
|
6
|
+
container: {
|
|
7
|
+
gap: space3,
|
|
8
|
+
},
|
|
6
9
|
modalContent: {
|
|
7
|
-
paddingBottom: space6,
|
|
8
10
|
paddingHorizontal: space6,
|
|
9
11
|
},
|
|
10
12
|
modalTitle: {
|
|
11
|
-
marginBottom:
|
|
13
|
+
marginBottom: space3,
|
|
14
|
+
},
|
|
15
|
+
text: {
|
|
16
|
+
color: colorText,
|
|
17
|
+
flex: 1,
|
|
18
|
+
marginLeft: space4,
|
|
12
19
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
wrapper: {
|
|
21
|
+
alignItems: "center",
|
|
22
|
+
borderColor: colorBorderInteractive,
|
|
23
|
+
borderWidth: borderWidth1,
|
|
24
|
+
flex: 1,
|
|
25
|
+
flexDirection: "row",
|
|
26
|
+
padding: space4,
|
|
17
27
|
},
|
|
18
|
-
|
|
19
|
-
|
|
28
|
+
wrapperChecked: {
|
|
29
|
+
borderColor: colorBorderInputFocus,
|
|
30
|
+
borderWidth: borderWidth2,
|
|
31
|
+
padding: space4 - space025,
|
|
20
32
|
},
|
|
21
|
-
|
|
22
|
-
|
|
33
|
+
wrapperLookiero: {
|
|
34
|
+
borderRadius: borderRadius3,
|
|
23
35
|
},
|
|
24
36
|
});
|
|
25
|
-
return {
|
|
26
|
-
...styles,
|
|
27
|
-
underlayColor: colorBgPrimaryLight,
|
|
28
|
-
};
|
|
29
37
|
};
|
|
30
38
|
export { style };
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "15.
|
|
2
|
-
export declare const RELEASE = "checkout@15.
|
|
1
|
+
export declare const VERSION = "15.3.0-beta.0";
|
|
2
|
+
export declare const RELEASE = "checkout@15.3.0-beta.0";
|
package/dist/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "15.
|
|
2
|
-
export const RELEASE = "checkout@15.
|
|
1
|
+
export const VERSION = "15.3.0-beta.0";
|
|
2
|
+
export const RELEASE = "checkout@15.3.0-beta.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookiero/checkout",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.3.0-beta.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"sideEffects": "false",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@config-plugins/detox": "^6.0.0",
|
|
52
52
|
"@lookiero/eslint-config-sty-psp": "*",
|
|
53
53
|
"@lookiero/event": "^0.3",
|
|
54
|
-
"@lookiero/payments-front": "
|
|
54
|
+
"@lookiero/payments-front": "14.1.0",
|
|
55
55
|
"@lookiero/sty-psp-jest-config": "*",
|
|
56
56
|
"@lookiero/sty-psp-prettier-config": "*",
|
|
57
57
|
"@lookiero/sty-psp-scripts": "*",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@lookiero/event": "^0.3",
|
|
84
84
|
"@lookiero/i18n": ">=3",
|
|
85
85
|
"@lookiero/i18n-react": ">=3",
|
|
86
|
-
"@lookiero/payments-front": ">=
|
|
86
|
+
"@lookiero/payments-front": ">=14",
|
|
87
87
|
"apollo-boost": "0.4.4",
|
|
88
88
|
"expo": ">=54",
|
|
89
89
|
"expo-font": ">=12",
|
package/src/ExpoRoot.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { Platform, ScrollView } from "react-native";
|
|
|
5
5
|
import { Navigate, Route, Routes } from "react-router-native";
|
|
6
6
|
import { Aurora } from "@lookiero/aurora";
|
|
7
7
|
import { EventProvider } from "@lookiero/event";
|
|
8
|
-
import {
|
|
8
|
+
import { PaymentsQueryProvider, setPaymentsBridge } from "@lookiero/payments-front";
|
|
9
9
|
import { Country, Locale } from "@lookiero/sty-psp-locale";
|
|
10
10
|
import { SentryEnvironment } from "@lookiero/sty-psp-logging";
|
|
11
11
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
@@ -73,10 +73,10 @@ setPaymentsBridge({
|
|
|
73
73
|
},
|
|
74
74
|
appVersion: RELEASE,
|
|
75
75
|
graphqlUri: "/graphql",
|
|
76
|
-
useFeatureFlags: () => ({}) as Record<FeatureFlags, boolean>,
|
|
77
76
|
locale: () => "es-ES",
|
|
78
77
|
scrollView: ScrollView,
|
|
79
78
|
hostUrl: "",
|
|
79
|
+
host: "",
|
|
80
80
|
tradename,
|
|
81
81
|
});
|
|
82
82
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
2
2
|
import { CheckoutTrackingEvent } from "src/infrastructure/tracking/tracking";
|
|
3
3
|
import { CommandStatus } from "@lookiero/messaging-react";
|
|
4
|
-
import { PaymentFlow,
|
|
4
|
+
import { PaymentFlow, PaymentFlowStrategies, PaymentPayload, Section } from "@lookiero/payments-front";
|
|
5
5
|
import { LegacyBoxCheckoutStrategyPayload } from "@lookiero/payments-front/build/components/PaymentFlow/internals/strategies/LegacyBoxCheckoutStrategy";
|
|
6
6
|
import { useLogger } from "@lookiero/sty-psp-logging";
|
|
7
7
|
import { NotificationLevel, useCreateToastNotification } from "@lookiero/sty-psp-notifications";
|
|
@@ -60,7 +60,7 @@ const useCheckoutFlow: UseCheckoutFlowFunction = ({ checkout: checkoutProjection
|
|
|
60
60
|
basePath,
|
|
61
61
|
tradename,
|
|
62
62
|
} = useStaticInfo();
|
|
63
|
-
const paymentFlowRef = useRef<
|
|
63
|
+
const paymentFlowRef = useRef<PaymentFlowStrategies>(null);
|
|
64
64
|
const [paymentFlowPayload] = useViewPaymentFlowPayloadByCheckoutId({
|
|
65
65
|
checkoutId: checkoutProjection?.id as string,
|
|
66
66
|
});
|
|
@@ -157,7 +157,7 @@ const useCheckoutFlow: UseCheckoutFlowFunction = ({ checkout: checkoutProjection
|
|
|
157
157
|
}, [startLegacyBoxCheckoutStatus, submitCheckoutStatus, checkoutBookingExpired]);
|
|
158
158
|
|
|
159
159
|
const paymentFlow = useMemo(
|
|
160
|
-
() => (authToken ? <PaymentFlow ref={paymentFlowRef} section={Section.BOX_CHECKOUT}
|
|
160
|
+
() => (authToken ? <PaymentFlow ref={paymentFlowRef} section={Section.BOX_CHECKOUT} /> : null),
|
|
161
161
|
[authToken],
|
|
162
162
|
);
|
|
163
163
|
|
package/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.tsx
CHANGED
|
@@ -12,11 +12,11 @@ const PaymentInstrument: FC<PaymentInstrumentProps> = ({ useRedirect }) => {
|
|
|
12
12
|
return (
|
|
13
13
|
<PaymentInstrumentSelect
|
|
14
14
|
beforeRedirect={returnUrl ? () => Promise.resolve(returnUrl) : undefined}
|
|
15
|
-
hasError={false}
|
|
16
15
|
section={Section.BOX_CHECKOUT}
|
|
17
16
|
userInformation={{
|
|
18
17
|
email: customer.email,
|
|
19
18
|
name: customer.name,
|
|
19
|
+
segment: customer.segment,
|
|
20
20
|
}}
|
|
21
21
|
showSingleUsePaymentMethods
|
|
22
22
|
/>
|
|
@@ -7,6 +7,10 @@ import { I18nMessages } from "../../../../i18n/i18n";
|
|
|
7
7
|
import { render } from "../../../../test/render";
|
|
8
8
|
import { ItemActions } from "./ItemActions";
|
|
9
9
|
|
|
10
|
+
jest.mock("../../../../hooks/useStaticInfo", () => ({
|
|
11
|
+
useStaticInfo: () => ({ tradename: "LOOKIERO" }),
|
|
12
|
+
}));
|
|
13
|
+
|
|
10
14
|
const productVariantProjection: ProductVariantProjection[] = [
|
|
11
15
|
{
|
|
12
16
|
id: "2875e66d-4e2a-47b1-a58b-61e316dcc66a",
|