@lookiero/checkout 9.9.0-beta.2 → 9.10.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/dist/fake-dependencies/@lookiero/payments-front/index.d.ts +6 -8
- package/dist/fake-dependencies/@lookiero/payments-front/index.js +4 -7
- package/dist/index.js +2 -2
- package/dist/src/ExpoRoot.js +13 -17
- package/dist/src/infrastructure/ui/Root.d.ts +2 -0
- package/dist/src/infrastructure/ui/Root.js +4 -2
- package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.js +3 -2
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +1 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.d.ts +0 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.js +0 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.d.ts +0 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.js +0 -1
- package/dist/src/infrastructure/ui/hooks/usePaymentInstrumentEvents.d.ts +2 -3
- package/dist/src/infrastructure/ui/hooks/usePaymentInstrumentEvents.js +26 -17
- package/dist/src/infrastructure/ui/hooks/useQueryBus.d.ts +9 -0
- package/dist/src/infrastructure/ui/hooks/useQueryBus.js +10 -0
- package/dist/src/infrastructure/ui/hooks/useSubmitCheckout.d.ts +1 -1
- package/dist/src/infrastructure/ui/hooks/useSubmitCheckout.js +55 -22
- package/dist/src/infrastructure/ui/i18n/i18n.d.ts +0 -1
- package/dist/src/infrastructure/ui/i18n/i18n.js +0 -1
- package/dist/src/infrastructure/ui/views/App.js +6 -5
- package/dist/src/infrastructure/ui/views/checkout/Checkout.js +2 -5
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.d.ts +0 -3
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.js +0 -3
- package/dist/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.js +2 -2
- package/dist/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.js +7 -7
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +2 -1
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.js +2 -1
- package/dist/src/projection/customer/customer.d.ts +0 -2
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/fake-dependencies/@lookiero/payments-front/index.tsx +9 -32
- package/index.ts +2 -2
- package/jest.config.js +2 -2
- package/package.json +7 -7
- package/src/ExpoRoot.tsx +32 -37
- package/src/infrastructure/ui/Root.tsx +30 -17
- package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.ts +3 -2
- package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/__snapshots__/FiveItemsDiscountBanner.test.tsx.snap +1 -1
- package/src/infrastructure/ui/components/atoms/price/__snapshots__/Price.test.tsx.snap +3 -3
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.ts +0 -1
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.tsx +1 -0
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.ts +0 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.tsx +1 -0
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +1 -1
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +1 -1
- package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +1 -1
- package/src/infrastructure/ui/hooks/usePaymentInstrumentEvents.ts +60 -18
- package/src/infrastructure/ui/hooks/useQueryBus.test.tsx +23 -0
- package/src/infrastructure/ui/hooks/useQueryBus.tsx +27 -0
- package/src/infrastructure/ui/hooks/useSubmitCheckout.test.ts +58 -0
- package/src/infrastructure/ui/hooks/useSubmitCheckout.ts +77 -33
- package/src/infrastructure/ui/i18n/i18n.ts +0 -1
- package/src/infrastructure/ui/views/App.tsx +13 -5
- package/src/infrastructure/ui/views/checkout/Checkout.style.ts +0 -3
- package/src/infrastructure/ui/views/checkout/Checkout.tsx +3 -12
- package/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.tsx +2 -2
- package/src/infrastructure/ui/views/checkout/components/deliveryBanner/__snapshots__/DeliveryBanner.test.tsx.snap +1 -1
- package/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.tsx +8 -8
- package/src/infrastructure/ui/views/item/components/banner/__snapshots__/CustomerDecissionBanner.test.tsx.snap +3 -3
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +3 -3
- package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +5 -5
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +2 -1
- package/src/infrastructure/ui/views/item/components/productVariantDescription/__snapshots__/ProductVariantDescription.test.tsx.snap +10 -8
- package/src/infrastructure/ui/views/item/components/productVariantSlider/__snapshots__/ProductVariantSlider.test.tsx.snap +30 -30
- package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +1 -1
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +2 -2
- package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +105 -102
- package/src/infrastructure/ui/views/return/components/price/__snapshots__/Price.test.tsx.snap +3 -3
- package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +1 -1
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.ts +2 -1
- package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +30 -30
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +4 -4
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +62 -62
- package/src/projection/customer/customer.ts +0 -2
- package/dist/pact.config.d.ts +0 -21
- package/dist/pact.config.js +0 -16
- 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/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.d.ts +0 -1
- package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.js +0 -55
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.d.ts +0 -1
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.js +0 -116
- package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.d.ts +0 -1
- package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.js +0 -56
- package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.d.ts +0 -1
- package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.js +0 -51
- package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.d.ts +0 -1
- package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.js +0 -51
- package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.d.ts +0 -1
- package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.js +0 -51
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +0 -13
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +0 -19
- package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.d.ts +0 -1
- package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.js +0 -56
- package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.d.ts +0 -1
- package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.js +0 -57
- package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.d.ts +0 -1
- package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.js +0 -55
- package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.d.ts +0 -1
- package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.js +0 -120
- package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.d.ts +0 -1
- package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.js +0 -55
- package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.d.ts +0 -1
- package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.js +0 -55
- package/dist/src/infrastructure/ui/components/layouts/layout/Layout.d.ts +0 -22
- package/dist/src/infrastructure/ui/components/layouts/layout/Layout.js +0 -1
- package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.d.ts +0 -7
- package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.js +0 -5
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.d.ts +0 -7
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.js +0 -6
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.d.ts +0 -4
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.js +0 -20
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.d.ts +0 -4
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.js +0 -43
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.d.ts +0 -12
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.js +0 -14
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.d.ts +0 -7
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +0 -21
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +0 -8
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +0 -12
- package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.d.ts +0 -12
- package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.js +0 -64
- package/dist/src/infrastructure/ui/i18n/fetchTranslations.d.ts +0 -10
- package/dist/src/infrastructure/ui/i18n/fetchTranslations.js +0 -17
- package/dist/src/infrastructure/ui/i18n/translationEndpoint.d.ts +0 -20
- package/dist/src/infrastructure/ui/i18n/translationEndpoint.js +0 -27
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.d.ts +0 -10
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +0 -27
- package/dist/src/infrastructure/ui/views/App.style.d.ts +0 -6
- package/dist/src/infrastructure/ui/views/App.style.js +0 -8
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.d.ts +0 -7
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.js +0 -11
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +0 -12
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +0 -64
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -12
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +0 -16
- package/dist/src/infrastructure/ui/views/return/Return.style.d.ts +0 -40
- package/dist/src/infrastructure/ui/views/return/Return.style.js +0 -44
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +0 -14
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +0 -28
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +0 -7
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.js +0 -11
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +0 -26
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.js +0 -21
- package/dist/src/projection/shared/country.d.ts +0 -14
- package/dist/src/projection/shared/country.js +0 -15
- package/dist/src/projection/shared/customer.d.ts +0 -9
- package/dist/src/projection/shared/customer.js +0 -1
- package/dist/src/projection/shared/locale.d.ts +0 -12
- package/dist/src/projection/shared/locale.js +0 -13
- package/dist/src/projection/shared/order.d.ts +0 -6
- package/dist/src/projection/shared/order.js +0 -1
- package/dist/src/projection/shared/price.d.ts +0 -11
- package/dist/src/projection/shared/price.js +0 -1
- package/dist/src/projection/shared/size.d.ts +0 -21
- package/dist/src/projection/shared/size.js +0 -4
- package/dist/src/projection/shared/subscription.d.ts +0 -2
- package/dist/src/projection/shared/subscription.js +0 -1
- package/dist/src/shared/ui/components/atoms/aspectRatioView/AspectRatioView.d.ts +0 -15
- package/dist/src/shared/ui/components/atoms/aspectRatioView/AspectRatioView.js +0 -16
- package/dist/src/shared/ui/components/atoms/error/Error.d.ts +0 -11
- package/dist/src/shared/ui/components/atoms/error/Error.js +0 -6
- package/dist/src/shared/ui/components/atoms/field/Field.d.ts +0 -14
- package/dist/src/shared/ui/components/atoms/field/Field.js +0 -29
- package/dist/src/shared/ui/components/atoms/field/Field.style.d.ts +0 -16
- package/dist/src/shared/ui/components/atoms/field/Field.style.js +0 -19
- package/dist/src/shared/ui/components/molecules/inputField/InputField.d.ts +0 -24
- package/dist/src/shared/ui/components/molecules/inputField/InputField.js +0 -28
- package/dist/src/shared/ui/components/molecules/inputField/InputField.style.d.ts +0 -29
- package/dist/src/shared/ui/components/molecules/inputField/InputField.style.js +0 -37
|
@@ -141,20 +141,20 @@ exports[`ProductVariant component matches the snapshot for a non-unique size: no
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
>
|
|
144
|
-
<
|
|
144
|
+
<ViewManagerAdapter_ExpoLinearGradient
|
|
145
145
|
colors={
|
|
146
146
|
[
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
16777215,
|
|
148
|
+
4292532440,
|
|
149
|
+
4292532440,
|
|
150
|
+
16777215,
|
|
151
151
|
]
|
|
152
152
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
153
|
+
endPoint={
|
|
154
|
+
[
|
|
155
|
+
1,
|
|
156
|
+
0,
|
|
157
|
+
]
|
|
158
158
|
}
|
|
159
159
|
locations={
|
|
160
160
|
[
|
|
@@ -164,11 +164,11 @@ exports[`ProductVariant component matches the snapshot for a non-unique size: no
|
|
|
164
164
|
1,
|
|
165
165
|
]
|
|
166
166
|
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
startPoint={
|
|
168
|
+
[
|
|
169
|
+
0,
|
|
170
|
+
0,
|
|
171
|
+
]
|
|
172
172
|
}
|
|
173
173
|
style={
|
|
174
174
|
{
|
|
@@ -491,20 +491,20 @@ exports[`ProductVariant component matches the snapshot for an unique size: uniqu
|
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
>
|
|
494
|
-
<
|
|
494
|
+
<ViewManagerAdapter_ExpoLinearGradient
|
|
495
495
|
colors={
|
|
496
496
|
[
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
497
|
+
16777215,
|
|
498
|
+
4292532440,
|
|
499
|
+
4292532440,
|
|
500
|
+
16777215,
|
|
501
501
|
]
|
|
502
502
|
}
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
503
|
+
endPoint={
|
|
504
|
+
[
|
|
505
|
+
1,
|
|
506
|
+
0,
|
|
507
|
+
]
|
|
508
508
|
}
|
|
509
509
|
locations={
|
|
510
510
|
[
|
|
@@ -514,11 +514,11 @@ exports[`ProductVariant component matches the snapshot for an unique size: uniqu
|
|
|
514
514
|
1,
|
|
515
515
|
]
|
|
516
516
|
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
517
|
+
startPoint={
|
|
518
|
+
[
|
|
519
|
+
0,
|
|
520
|
+
0,
|
|
521
|
+
]
|
|
522
522
|
}
|
|
523
523
|
style={
|
|
524
524
|
{
|
|
@@ -130,7 +130,7 @@ exports[`Pricing component matches the snapshot for collaped pricing: collapsed
|
|
|
130
130
|
"paddingBottom": 0,
|
|
131
131
|
"paddingLeft": 0,
|
|
132
132
|
"paddingRight": 0,
|
|
133
|
-
"paddingTop":
|
|
133
|
+
"paddingTop": 0,
|
|
134
134
|
},
|
|
135
135
|
]
|
|
136
136
|
}
|
|
@@ -293,7 +293,7 @@ exports[`Pricing component matches the snapshot for collaped pricing: collapsed
|
|
|
293
293
|
"paddingBottom": 0,
|
|
294
294
|
"paddingLeft": 0,
|
|
295
295
|
"paddingRight": 0,
|
|
296
|
-
"paddingTop":
|
|
296
|
+
"paddingTop": 0,
|
|
297
297
|
"textAlign": "center",
|
|
298
298
|
},
|
|
299
299
|
]
|
|
@@ -438,7 +438,7 @@ exports[`Pricing component matches the snapshot for non-collaped pricing: non-co
|
|
|
438
438
|
"paddingBottom": 0,
|
|
439
439
|
"paddingLeft": 0,
|
|
440
440
|
"paddingRight": 0,
|
|
441
|
-
"paddingTop":
|
|
441
|
+
"paddingTop": 0,
|
|
442
442
|
},
|
|
443
443
|
]
|
|
444
444
|
}
|
|
@@ -601,7 +601,7 @@ exports[`Pricing component matches the snapshot for non-collaped pricing: non-co
|
|
|
601
601
|
"paddingBottom": 0,
|
|
602
602
|
"paddingLeft": 0,
|
|
603
603
|
"paddingRight": 0,
|
|
604
|
-
"paddingTop":
|
|
604
|
+
"paddingTop": 0,
|
|
605
605
|
"textAlign": "center",
|
|
606
606
|
},
|
|
607
607
|
]
|
|
@@ -120,7 +120,7 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
120
120
|
"paddingBottom": 0,
|
|
121
121
|
"paddingLeft": 0,
|
|
122
122
|
"paddingRight": 0,
|
|
123
|
-
"paddingTop":
|
|
123
|
+
"paddingTop": 0,
|
|
124
124
|
},
|
|
125
125
|
]
|
|
126
126
|
}
|
|
@@ -184,7 +184,7 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
184
184
|
"paddingBottom": 0,
|
|
185
185
|
"paddingLeft": 0,
|
|
186
186
|
"paddingRight": 0,
|
|
187
|
-
"paddingTop":
|
|
187
|
+
"paddingTop": 0,
|
|
188
188
|
},
|
|
189
189
|
]
|
|
190
190
|
}
|
|
@@ -428,20 +428,20 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
>
|
|
431
|
-
<
|
|
431
|
+
<ViewManagerAdapter_ExpoLinearGradient
|
|
432
432
|
colors={
|
|
433
433
|
[
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
434
|
+
16777215,
|
|
435
|
+
4292532440,
|
|
436
|
+
4292532440,
|
|
437
|
+
16777215,
|
|
438
438
|
]
|
|
439
439
|
}
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
440
|
+
endPoint={
|
|
441
|
+
[
|
|
442
|
+
1,
|
|
443
|
+
0,
|
|
444
|
+
]
|
|
445
445
|
}
|
|
446
446
|
locations={
|
|
447
447
|
[
|
|
@@ -451,11 +451,11 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
451
451
|
1,
|
|
452
452
|
]
|
|
453
453
|
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
454
|
+
startPoint={
|
|
455
|
+
[
|
|
456
|
+
0,
|
|
457
|
+
0,
|
|
458
|
+
]
|
|
459
459
|
}
|
|
460
460
|
style={
|
|
461
461
|
{
|
|
@@ -750,20 +750,20 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
750
750
|
}
|
|
751
751
|
}
|
|
752
752
|
>
|
|
753
|
-
<
|
|
753
|
+
<ViewManagerAdapter_ExpoLinearGradient
|
|
754
754
|
colors={
|
|
755
755
|
[
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
756
|
+
16777215,
|
|
757
|
+
4292532440,
|
|
758
|
+
4292532440,
|
|
759
|
+
16777215,
|
|
760
760
|
]
|
|
761
761
|
}
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
762
|
+
endPoint={
|
|
763
|
+
[
|
|
764
|
+
1,
|
|
765
|
+
0,
|
|
766
|
+
]
|
|
767
767
|
}
|
|
768
768
|
locations={
|
|
769
769
|
[
|
|
@@ -773,11 +773,11 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
773
773
|
1,
|
|
774
774
|
]
|
|
775
775
|
}
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
776
|
+
startPoint={
|
|
777
|
+
[
|
|
778
|
+
0,
|
|
779
|
+
0,
|
|
780
|
+
]
|
|
781
781
|
}
|
|
782
782
|
style={
|
|
783
783
|
{
|
|
@@ -1122,20 +1122,20 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
>
|
|
1125
|
-
<
|
|
1125
|
+
<ViewManagerAdapter_ExpoLinearGradient
|
|
1126
1126
|
colors={
|
|
1127
1127
|
[
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1128
|
+
16777215,
|
|
1129
|
+
4292532440,
|
|
1130
|
+
4292532440,
|
|
1131
|
+
16777215,
|
|
1132
1132
|
]
|
|
1133
1133
|
}
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1134
|
+
endPoint={
|
|
1135
|
+
[
|
|
1136
|
+
1,
|
|
1137
|
+
0,
|
|
1138
|
+
]
|
|
1139
1139
|
}
|
|
1140
1140
|
locations={
|
|
1141
1141
|
[
|
|
@@ -1145,11 +1145,11 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
1145
1145
|
1,
|
|
1146
1146
|
]
|
|
1147
1147
|
}
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1148
|
+
startPoint={
|
|
1149
|
+
[
|
|
1150
|
+
0,
|
|
1151
|
+
0,
|
|
1152
|
+
]
|
|
1153
1153
|
}
|
|
1154
1154
|
style={
|
|
1155
1155
|
{
|
|
@@ -1444,20 +1444,20 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
1446
|
>
|
|
1447
|
-
<
|
|
1447
|
+
<ViewManagerAdapter_ExpoLinearGradient
|
|
1448
1448
|
colors={
|
|
1449
1449
|
[
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1450
|
+
16777215,
|
|
1451
|
+
4292532440,
|
|
1452
|
+
4292532440,
|
|
1453
|
+
16777215,
|
|
1454
1454
|
]
|
|
1455
1455
|
}
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1456
|
+
endPoint={
|
|
1457
|
+
[
|
|
1458
|
+
1,
|
|
1459
|
+
0,
|
|
1460
|
+
]
|
|
1461
1461
|
}
|
|
1462
1462
|
locations={
|
|
1463
1463
|
[
|
|
@@ -1467,11 +1467,11 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
1467
1467
|
1,
|
|
1468
1468
|
]
|
|
1469
1469
|
}
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1470
|
+
startPoint={
|
|
1471
|
+
[
|
|
1472
|
+
0,
|
|
1473
|
+
0,
|
|
1474
|
+
]
|
|
1475
1475
|
}
|
|
1476
1476
|
style={
|
|
1477
1477
|
{
|
package/dist/pact.config.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { V3MockServer } from "@pact-foundation/pact";
|
|
2
|
-
|
|
3
|
-
interface StringObject {
|
|
4
|
-
readonly [k: string]: string;
|
|
5
|
-
}
|
|
6
|
-
declare const DEFAULT_PACT_OPTIONS: StringObject;
|
|
7
|
-
declare const AUTH_TOKEN =
|
|
8
|
-
"eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6InBpY2tlcixwYWNrZXIiLCJzdWIiOiIxIiwiaWF0IjoxNjAyODQ4MzEyfQ.gCs2_vBcJsXt4EdreNSjDI8NWkOTQ5Cy4SwtrGnuJ44";
|
|
9
|
-
declare const DEFAULT_REQUEST_HEADERS: StringObject;
|
|
10
|
-
declare const DEFAULT_RESPONSE_HEADERS: StringObject;
|
|
11
|
-
interface FromMockServerUrlToApiUrlFunction {
|
|
12
|
-
(mockServer: V3MockServer): string;
|
|
13
|
-
}
|
|
14
|
-
declare const fromMockServerUrlToApiUrl: FromMockServerUrlToApiUrlFunction;
|
|
15
|
-
export {
|
|
16
|
-
fromMockServerUrlToApiUrl,
|
|
17
|
-
AUTH_TOKEN,
|
|
18
|
-
DEFAULT_PACT_OPTIONS,
|
|
19
|
-
DEFAULT_REQUEST_HEADERS,
|
|
20
|
-
DEFAULT_RESPONSE_HEADERS,
|
|
21
|
-
};
|
package/dist/pact.config.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const DEFAULT_PACT_OPTIONS = { dir: ".contracts", logDir: ".pact/logs" };
|
|
2
|
-
const AUTH_TOKEN =
|
|
3
|
-
"eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6InBpY2tlcixwYWNrZXIiLCJzdWIiOiIxIiwiaWF0IjoxNjAyODQ4MzEyfQ.gCs2_vBcJsXt4EdreNSjDI8NWkOTQ5Cy4SwtrGnuJ44";
|
|
4
|
-
const DEFAULT_REQUEST_HEADERS = {
|
|
5
|
-
Authorization: `Bearer ${AUTH_TOKEN}`,
|
|
6
|
-
["Content-Type"]: "application/json",
|
|
7
|
-
};
|
|
8
|
-
const DEFAULT_RESPONSE_HEADERS = { ["Content-Type"]: "application/json" };
|
|
9
|
-
const fromMockServerUrlToApiUrl = (mockServer) => mockServer.url.concat("/api");
|
|
10
|
-
export {
|
|
11
|
-
fromMockServerUrlToApiUrl,
|
|
12
|
-
AUTH_TOKEN,
|
|
13
|
-
DEFAULT_PACT_OPTIONS,
|
|
14
|
-
DEFAULT_REQUEST_HEADERS,
|
|
15
|
-
DEFAULT_RESPONSE_HEADERS,
|
|
16
|
-
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { MatchersV3, PactV3 } from "@pact-foundation/pact";
|
|
2
|
-
import { fetchHttpPost } from "@lookiero/sty-psp-http";
|
|
3
|
-
import {
|
|
4
|
-
AUTH_TOKEN,
|
|
5
|
-
DEFAULT_PACT_OPTIONS,
|
|
6
|
-
DEFAULT_REQUEST_HEADERS,
|
|
7
|
-
DEFAULT_RESPONSE_HEADERS,
|
|
8
|
-
fromMockServerUrlToApiUrl,
|
|
9
|
-
} from "../../../../pact.config";
|
|
10
|
-
import { bookedProductsVariants } from "./bookedProductsVariants.mock";
|
|
11
|
-
import { httpBookedProductsVariantsForCheckoutItemView } from "./httpBookedProductsVariantsForCheckoutItemView";
|
|
12
|
-
|
|
13
|
-
const provider = new PactV3({
|
|
14
|
-
...DEFAULT_PACT_OPTIONS,
|
|
15
|
-
consumer: "STY-BOX_CHECKOUT-FRONT",
|
|
16
|
-
provider: "STY-BOX_CHECKOUT-BACK_ViewBookedProductVariantsForCheckoutItem",
|
|
17
|
-
});
|
|
18
|
-
const checkoutItemId = "52440ae5-7a4c-498b-8b35-08ecfde15776";
|
|
19
|
-
const bookedProductsVariantsResponse = {
|
|
20
|
-
result: bookedProductsVariants,
|
|
21
|
-
};
|
|
22
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
const EXPECTED_BODY = MatchersV3.like(bookedProductsVariantsResponse);
|
|
25
|
-
describe("STY-BOX_CHECKOUT-BACK_ViewBookedProductVariantsForCheckoutItem API", () => {
|
|
26
|
-
it("returns a valid booked size change product variants for the given checkout item", () => {
|
|
27
|
-
provider
|
|
28
|
-
.given("a valid booked size change product variants for the given checkout item")
|
|
29
|
-
.uponReceiving("booked size change product variants projection")
|
|
30
|
-
.withRequest({
|
|
31
|
-
method: "POST",
|
|
32
|
-
path: "/api/view-booked-product-variants-for-checkout-item",
|
|
33
|
-
headers: DEFAULT_REQUEST_HEADERS,
|
|
34
|
-
body: { checkoutItemId },
|
|
35
|
-
})
|
|
36
|
-
.willRespondWith({
|
|
37
|
-
status: 200,
|
|
38
|
-
headers: DEFAULT_RESPONSE_HEADERS,
|
|
39
|
-
body: EXPECTED_BODY,
|
|
40
|
-
});
|
|
41
|
-
return provider.executeTest(async (mockserver) => {
|
|
42
|
-
const httpPost = fetchHttpPost({
|
|
43
|
-
apiUrl: () => fromMockServerUrlToApiUrl(mockserver),
|
|
44
|
-
getAuthToken: () => Promise.resolve(AUTH_TOKEN),
|
|
45
|
-
device: "web",
|
|
46
|
-
version: "1.0.0",
|
|
47
|
-
});
|
|
48
|
-
const response = await httpBookedProductsVariantsForCheckoutItemView({ httpPost })({
|
|
49
|
-
checkoutItemId,
|
|
50
|
-
signal: undefined,
|
|
51
|
-
});
|
|
52
|
-
expect(response).toStrictEqual(bookedProductsVariantsResponse.result);
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { MatchersV3, PactV3 } from "@pact-foundation/pact";
|
|
2
|
-
import { fetchHttpPost } from "@lookiero/sty-psp-http";
|
|
3
|
-
import {
|
|
4
|
-
AUTH_TOKEN,
|
|
5
|
-
DEFAULT_PACT_OPTIONS,
|
|
6
|
-
DEFAULT_REQUEST_HEADERS,
|
|
7
|
-
DEFAULT_RESPONSE_HEADERS,
|
|
8
|
-
fromMockServerUrlToApiUrl,
|
|
9
|
-
} from "../../../../pact.config";
|
|
10
|
-
import { CheckoutItemStatus } from "../../../domain/checkoutItem/model/checkoutItem";
|
|
11
|
-
import { MediaPerspective } from "../../../projection/checkoutItem/checkoutItem";
|
|
12
|
-
import { checkout } from "./checkout.mock";
|
|
13
|
-
import { httpCheckoutByIdView } from "./httpCheckoutByIdView";
|
|
14
|
-
|
|
15
|
-
const provider = new PactV3({
|
|
16
|
-
...DEFAULT_PACT_OPTIONS,
|
|
17
|
-
consumer: "STY-BOX_CHECKOUT-FRONT",
|
|
18
|
-
provider: "STY-BOX_CHECKOUT-BACK_ViewCheckoutById",
|
|
19
|
-
});
|
|
20
|
-
const checkoutId = "e2490de5-5bd3-43d5-b7c4-526e33f71304";
|
|
21
|
-
const replacedFor = {
|
|
22
|
-
id: "2bf7fb8f-a283-4f53-bc27-0e7fc9466a33",
|
|
23
|
-
media: [
|
|
24
|
-
{
|
|
25
|
-
id: "d7ec731b-4123-4394-829b-297b952e73e5",
|
|
26
|
-
url: "https://cdn-catalog-back-prod.envs.lookiero.tech/1a/28/1a28f712-a76c-4172-8a11-f15002981dc0.jpg",
|
|
27
|
-
perspective: MediaPerspective.MAIN,
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: "8055e209-2fe9-44c5-b715-b09ad3ef741c",
|
|
31
|
-
url: "https://cdn-catalog-back-prod.envs.lookiero.tech/15/ac/15aca112-4e71-4646-8db5-7f9723bc0130.jpg",
|
|
32
|
-
perspective: MediaPerspective.DETAIL,
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
brand: "CKS",
|
|
36
|
-
name: "Sari Tshirt lines",
|
|
37
|
-
size: {
|
|
38
|
-
id: "b3a76aea-ce7a-4ecb-82a4-6637d0ac2afd",
|
|
39
|
-
lookiero: "S",
|
|
40
|
-
uk: "S",
|
|
41
|
-
it: "S",
|
|
42
|
-
europe: "S",
|
|
43
|
-
unique: false,
|
|
44
|
-
},
|
|
45
|
-
color: {
|
|
46
|
-
id: "c228d1b0-d06d-4d5c-a7d5-953fd43af0d8",
|
|
47
|
-
label: "black_C2",
|
|
48
|
-
name: "black",
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
const checkoutResponseWithReplacedFor = {
|
|
52
|
-
result: checkout({ items: [{ status: CheckoutItemStatus.KEPT, replacedFor }] }),
|
|
53
|
-
};
|
|
54
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
55
|
-
// @ts-ignore
|
|
56
|
-
const EXPECTED_BODY_WITH_REPLACED_FOR = MatchersV3.like(checkoutResponseWithReplacedFor);
|
|
57
|
-
const checkoutResponseWithoutReplacedFor = {
|
|
58
|
-
result: checkout({ items: [{ status: CheckoutItemStatus.KEPT }] }),
|
|
59
|
-
};
|
|
60
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
61
|
-
// @ts-ignore
|
|
62
|
-
const EXPECTED_BODY_WITHOUT_REPLACED_FOR = MatchersV3.like(checkoutResponseWithoutReplacedFor);
|
|
63
|
-
describe("STY-BOX_CHECKOUT-BACK_ViewCheckoutById API", () => {
|
|
64
|
-
it("returns a valid checkout with replacedFor for the given id", () => {
|
|
65
|
-
provider
|
|
66
|
-
.given("a valid checkout with replacedFor for the given id")
|
|
67
|
-
.uponReceiving("checkout projection")
|
|
68
|
-
.withRequest({
|
|
69
|
-
method: "POST",
|
|
70
|
-
path: "/api/view-checkout-by-id",
|
|
71
|
-
headers: DEFAULT_REQUEST_HEADERS,
|
|
72
|
-
body: { checkoutId },
|
|
73
|
-
})
|
|
74
|
-
.willRespondWith({
|
|
75
|
-
status: 200,
|
|
76
|
-
headers: DEFAULT_RESPONSE_HEADERS,
|
|
77
|
-
body: EXPECTED_BODY_WITH_REPLACED_FOR,
|
|
78
|
-
});
|
|
79
|
-
return provider.executeTest(async (mockserver) => {
|
|
80
|
-
const httpPost = fetchHttpPost({
|
|
81
|
-
apiUrl: () => fromMockServerUrlToApiUrl(mockserver),
|
|
82
|
-
getAuthToken: () => Promise.resolve(AUTH_TOKEN),
|
|
83
|
-
device: "web",
|
|
84
|
-
version: "1.0.0",
|
|
85
|
-
});
|
|
86
|
-
const response = await httpCheckoutByIdView({ httpPost })({ checkoutId, signal: undefined });
|
|
87
|
-
expect(response).toStrictEqual(checkoutResponseWithReplacedFor.result);
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
it("returns a valid checkout without replacedFor for the given id", () => {
|
|
91
|
-
provider
|
|
92
|
-
.given("a valid checkout without replacedFor for the given id")
|
|
93
|
-
.uponReceiving("checkout projection")
|
|
94
|
-
.withRequest({
|
|
95
|
-
method: "POST",
|
|
96
|
-
path: "/api/view-checkout-by-id",
|
|
97
|
-
headers: DEFAULT_REQUEST_HEADERS,
|
|
98
|
-
body: { checkoutId },
|
|
99
|
-
})
|
|
100
|
-
.willRespondWith({
|
|
101
|
-
status: 200,
|
|
102
|
-
headers: DEFAULT_RESPONSE_HEADERS,
|
|
103
|
-
body: EXPECTED_BODY_WITHOUT_REPLACED_FOR,
|
|
104
|
-
});
|
|
105
|
-
return provider.executeTest(async (mockserver) => {
|
|
106
|
-
const httpPost = fetchHttpPost({
|
|
107
|
-
apiUrl: () => fromMockServerUrlToApiUrl(mockserver),
|
|
108
|
-
getAuthToken: () => Promise.resolve(AUTH_TOKEN),
|
|
109
|
-
device: "web",
|
|
110
|
-
version: "1.0.0",
|
|
111
|
-
});
|
|
112
|
-
const response = await httpCheckoutByIdView({ httpPost })({ checkoutId, signal: undefined });
|
|
113
|
-
expect(response).toStrictEqual(checkoutResponseWithoutReplacedFor.result);
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { MatchersV3, PactV3 } from "@pact-foundation/pact";
|
|
2
|
-
import { fetchHttpPost } from "@lookiero/sty-psp-http";
|
|
3
|
-
import {
|
|
4
|
-
AUTH_TOKEN,
|
|
5
|
-
DEFAULT_PACT_OPTIONS,
|
|
6
|
-
DEFAULT_REQUEST_HEADERS,
|
|
7
|
-
DEFAULT_RESPONSE_HEADERS,
|
|
8
|
-
fromMockServerUrlToApiUrl,
|
|
9
|
-
} from "../../../../pact.config";
|
|
10
|
-
import { CheckoutItemStatus } from "../../../domain/checkoutItem/model/checkoutItem";
|
|
11
|
-
import { checkout } from "./checkout.mock";
|
|
12
|
-
import { httpFirstAvailableCheckoutByCustomerIdView } from "./httpFirstAvailableCheckoutByCustomerIdView";
|
|
13
|
-
|
|
14
|
-
const provider = new PactV3({
|
|
15
|
-
...DEFAULT_PACT_OPTIONS,
|
|
16
|
-
consumer: "STY-BOX_CHECKOUT-FRONT",
|
|
17
|
-
provider: "STY-BOX_CHECKOUT-BACK_ViewFirstAvailableCheckoutByCustomerId",
|
|
18
|
-
});
|
|
19
|
-
const customerId = "fab61a4d-c94d-4e33-b098-1945294a5f75";
|
|
20
|
-
const checkoutResponse = {
|
|
21
|
-
result: checkout({ items: [{ status: CheckoutItemStatus.KEPT }] }),
|
|
22
|
-
};
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
const EXPECTED_BODY = MatchersV3.like(checkoutResponse);
|
|
26
|
-
describe("STY-BOX_CHECKOUT-BACK_ViewFirstAvailableCheckoutByCustomerId API", () => {
|
|
27
|
-
it("returns a first available checkout for the given customer id", () => {
|
|
28
|
-
provider
|
|
29
|
-
.given("a first available checkout for the given customer id")
|
|
30
|
-
.uponReceiving("checkout projection")
|
|
31
|
-
.withRequest({
|
|
32
|
-
method: "POST",
|
|
33
|
-
path: "/api/view-first-available-checkout-by-customer-id",
|
|
34
|
-
headers: DEFAULT_REQUEST_HEADERS,
|
|
35
|
-
body: { customerId },
|
|
36
|
-
})
|
|
37
|
-
.willRespondWith({
|
|
38
|
-
status: 200,
|
|
39
|
-
headers: DEFAULT_RESPONSE_HEADERS,
|
|
40
|
-
body: EXPECTED_BODY,
|
|
41
|
-
});
|
|
42
|
-
return provider.executeTest(async (mockserver) => {
|
|
43
|
-
const httpPost = fetchHttpPost({
|
|
44
|
-
apiUrl: () => fromMockServerUrlToApiUrl(mockserver),
|
|
45
|
-
getAuthToken: () => Promise.resolve(AUTH_TOKEN),
|
|
46
|
-
device: "web",
|
|
47
|
-
version: "1.0.0",
|
|
48
|
-
});
|
|
49
|
-
const response = await httpFirstAvailableCheckoutByCustomerIdView({ httpPost })({
|
|
50
|
-
customerId,
|
|
51
|
-
signal: undefined,
|
|
52
|
-
});
|
|
53
|
-
expect(response).toStrictEqual(checkoutResponse.result);
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
});
|
package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|