@licklist/design 0.58.6-dev.0 → 0.58.6-dev.10
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/bitbucket-pipelines.yml +0 -8
- package/dist/assets/iframe/calendar.svg +2 -2
- package/dist/assets/iframe/calendar.svg.js +1 -1
- package/dist/assets/iframe/ticket.svg +2 -2
- package/dist/assets/iframe/ticket.svg.js +1 -1
- package/dist/calendar/Calendar.d.ts +1 -1
- package/dist/calendar/Calendar.d.ts.map +1 -1
- package/dist/calendar/Calendar.js +1 -1
- package/dist/calendar/components/CalendarButtons/CalendarButtons.js +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +2 -2
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.js +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +1 -1
- package/dist/iframe/event/event-venue-map/IframeEventVenueMap.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +2 -2
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts +4 -2
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts +4 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +4 -0
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.js +1 -1
- package/dist/iframe/page/components/PageBody/constants.d.ts +1 -0
- package/dist/iframe/page/components/PageBody/constants.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/constants.js +1 -1
- package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.js +1 -1
- package/dist/iframe/payment/order-items-table/OrderItemsTable.js +1 -1
- package/dist/iframe/payment/payment-form/PaymentForm.js +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
- package/dist/iframe/payment/payment-page/PaymentTimer.js +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.js +1 -1
- package/dist/iframe/ryft/utils/ryft-form.d.ts +5 -0
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -0
- package/dist/iframe/ryft/utils/ryft-form.js +1 -0
- package/dist/index.js +1 -1
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +1 -1
- package/dist/product-set/control/DateInput.d.ts.map +1 -1
- package/dist/product-set/control/DateInput.js +1 -1
- package/dist/product-set/form/VenueMapsControl.js +1 -1
- package/dist/product-set/product/ProductControl.d.ts +1 -0
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.d.ts +1 -0
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +1 -1
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.js +1 -1
- package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.js +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +1 -1
- package/dist/sales/notes/NotesTableRow.js +1 -1
- package/dist/setting/dashboard/snippets/card/SnippetCard.js +1 -1
- package/dist/snippet/snippet-template/control/PropertyControl.d.ts +3 -1
- package/dist/snippet/snippet-template/control/PropertyControl.d.ts.map +1 -1
- package/dist/snippet/snippet-template/control/PropertyControl.js +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +1 -1
- package/dist/striped-static-table/StripedStaticTable.js +1 -1
- package/dist/styles/iframe-order-process/IframeOrderProcess.scss +57 -18
- package/dist/styles/iframe-page/PageBody.scss +2 -1
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +125 -2
- package/dist/venue-map-sets/form/components/VenueMapImageControl.js +1 -1
- package/package.json +10 -35
- package/src/assets/iframe/calendar.svg +2 -2
- package/src/assets/iframe/ticket.svg +2 -2
- package/src/calendar/Calendar.stories.tsx +23 -0
- package/src/calendar/Calendar.tsx +5 -5
- package/src/calendar/components/CalendarDates/CalendarDates.tsx +0 -5
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.stories.tsx +9 -0
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +58 -7
- package/src/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.tsx +8 -0
- package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.tsx +4 -4
- package/src/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.tsx +63 -10
- package/src/iframe/order-process/components/BookingSummary/types/index.ts +4 -0
- package/src/iframe/page/components/PageBody/constants.ts +2 -0
- package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +10 -0
- package/src/iframe/payment/payment-page/PaymentPage.stories.tsx +546 -6
- package/src/iframe/payment/payment-page/PaymentPage.tsx +38 -29
- package/src/iframe/ryft/RyftPaymentForm.tsx +11 -5
- package/src/iframe/ryft/utils/ryft-form.ts +47 -0
- package/src/product-set/card/ProductSetCard.tsx +5 -3
- package/src/product-set/control/DateInput.tsx +7 -3
- package/src/product-set/product/ProductControl.tsx +25 -3
- package/src/product-set/product-category/ProductCategoryControl.tsx +105 -43
- package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +4 -18
- package/src/recurring-date-picker-input/RecurrenceAndFrequencyInput.tsx +1 -1
- package/src/snippet/snippet-template/control/PropertyControl.tsx +6 -2
- package/src/styles/iframe-order-process/IframeOrderProcess.scss +57 -18
- package/src/styles/iframe-page/PageBody.scss +2 -1
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +125 -2
- package/jest.config.js +0 -29
- package/tests/Auth/Authorizer.test.tsx +0 -194
- package/tests/Auth/Layout/UserNavDropDown.test.tsx +0 -43
- package/tests/Auth/Layout/UserNavDropDownToggle.test.tsx +0 -33
- package/tests/Auth/Login/LoginComponent.test.tsx +0 -246
- package/tests/Auth/Login/LoginFormComponent.test.tsx +0 -182
- package/tests/Auth/Register/RegisterComponent.test.tsx +0 -285
- package/tests/Auth/Register/RegisterFormComponent.test.tsx +0 -170
- package/tests/Auth/Settings/Dashboard/IpInput.test.tsx +0 -130
- package/tests/Auth/Social/SocialCallbackComponent.test.tsx +0 -133
- package/tests/Auth/Social/SocialFormComponent.test.tsx +0 -118
- package/tests/FileUpload/FileUpload.test.tsx +0 -42
- package/tests/Notification/EmailTemplate.test.tsx +0 -82
- package/tests/ProductSet/ProductSetPopover.test.tsx +0 -40
- package/tests/Report/Report.test.tsx +0 -48
- package/tests/Sales/Coupon.test.tsx +0 -51
- package/tests/Sales/SalesAndVIews.test.tsx +0 -63
- package/tests/SnippetTemplates/SnippetTemplates.test.tsx +0 -56
- package/tests/Table/FilterHelperComponent.test.tsx +0 -88
- package/tests/Table/PaginationHelperComponent.test.tsx +0 -109
- package/tests/Table/PerPageHelperComponent.test.tsx +0 -34
- package/tests/Table/TableHelperComponent.test.tsx +0 -295
- package/tests/TipTapEditor/TipTapEditor.test.tsx +0 -28
- package/tests/__mock__/hooks/useAuthApi.ts +0 -13
- package/tests/__mock__/hooks/useAuthMock.ts +0 -13
- package/tests/__mock__/hooks/useFormMock.ts +0 -27
- package/tests/__mock__/hooks/useNotificationMock.ts +0 -13
- package/tests/__mock__/hooks/useQueryMock.ts +0 -16
- package/tests/__mock__/hooks/useSocialApiMock.ts +0 -20
- package/tests/__mock__/hooks/useTranslationMock.ts +0 -17
- package/tests/__mock__/hooks/useUserApiMock.ts +0 -18
- package/tests/__mock__/hooks/useUserMock.ts +0 -13
- package/tests/__mock__/styleMock.js +0 -1
- package/tests/__mock__/windowMock.ts +0 -5
- package/tests/packages/react-query.tsx +0 -28
- package/tests/setupTests.ts +0 -10
|
@@ -2,6 +2,11 @@ import { Meta } from "@storybook/react";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { PaymentPage } from "./PaymentPage";
|
|
4
4
|
|
|
5
|
+
const paymentMetadata = {
|
|
6
|
+
paid: 2,
|
|
7
|
+
total: 4,
|
|
8
|
+
};
|
|
9
|
+
|
|
5
10
|
export default {
|
|
6
11
|
title: "Iframe/PaymentPage",
|
|
7
12
|
component: Default,
|
|
@@ -12,6 +17,7 @@ export function Default(props) {
|
|
|
12
17
|
}
|
|
13
18
|
|
|
14
19
|
Default.args = {
|
|
20
|
+
paymentMetadata: paymentMetadata,
|
|
15
21
|
isLoading: false,
|
|
16
22
|
data: {
|
|
17
23
|
amount: 3,
|
|
@@ -29,16 +35,550 @@ Default.args = {
|
|
|
29
35
|
date: "2023-09-30_08-24-00",
|
|
30
36
|
eventName: "alex test",
|
|
31
37
|
formValues: {
|
|
32
|
-
|
|
33
|
-
id:
|
|
38
|
+
1274: {
|
|
39
|
+
id: 1274,
|
|
40
|
+
quantity: 1,
|
|
41
|
+
price: 5,
|
|
42
|
+
productCategoryId: 821,
|
|
43
|
+
hasDeposit: true,
|
|
44
|
+
name: "deposit 1",
|
|
45
|
+
deposit: 3,
|
|
46
|
+
},
|
|
47
|
+
1275: {
|
|
48
|
+
id: 1275,
|
|
49
|
+
quantity: 1,
|
|
50
|
+
price: 10,
|
|
51
|
+
productCategoryId: 821,
|
|
52
|
+
hasDeposit: true,
|
|
53
|
+
name: "deposit 2",
|
|
54
|
+
deposit: 4,
|
|
55
|
+
},
|
|
56
|
+
1711: {
|
|
57
|
+
id: 1711,
|
|
58
|
+
quantity: 1,
|
|
59
|
+
price: 2,
|
|
60
|
+
productCategoryId: 1113,
|
|
61
|
+
hasDeposit: false,
|
|
62
|
+
name: "Product 4",
|
|
63
|
+
deposit: 0,
|
|
64
|
+
},
|
|
65
|
+
1712: {
|
|
66
|
+
id: 1712,
|
|
67
|
+
quantity: 1,
|
|
68
|
+
price: 4,
|
|
69
|
+
productCategoryId: 1113,
|
|
70
|
+
hasDeposit: false,
|
|
71
|
+
name: "Product 5",
|
|
72
|
+
deposit: 0,
|
|
73
|
+
},
|
|
74
|
+
1713: {
|
|
75
|
+
id: 1713,
|
|
34
76
|
quantity: 1,
|
|
35
|
-
price:
|
|
36
|
-
productCategoryId:
|
|
37
|
-
|
|
77
|
+
price: 1,
|
|
78
|
+
productCategoryId: 1113,
|
|
79
|
+
hasDeposit: false,
|
|
80
|
+
name: "Product 6",
|
|
81
|
+
deposit: 0,
|
|
82
|
+
},
|
|
83
|
+
1714: {
|
|
84
|
+
id: 1714,
|
|
85
|
+
quantity: 1,
|
|
86
|
+
price: 2,
|
|
87
|
+
productCategoryId: 1113,
|
|
88
|
+
hasDeposit: false,
|
|
89
|
+
name: "Product 7",
|
|
90
|
+
deposit: 0,
|
|
91
|
+
1715: {
|
|
92
|
+
id: 1715,
|
|
93
|
+
quantity: 1,
|
|
94
|
+
price: 3,
|
|
95
|
+
productCategoryId: 1113,
|
|
96
|
+
hasDeposit: false,
|
|
97
|
+
name: "Product 8",
|
|
98
|
+
deposit: 0,
|
|
99
|
+
},
|
|
100
|
+
1716: {
|
|
101
|
+
id: 1716,
|
|
102
|
+
quantity: 1,
|
|
103
|
+
price: 6,
|
|
104
|
+
productCategoryId: 1113,
|
|
105
|
+
hasDeposit: false,
|
|
106
|
+
name: "Product 9",
|
|
107
|
+
deposit: 0,
|
|
108
|
+
},
|
|
109
|
+
1717: {
|
|
110
|
+
id: 1717,
|
|
111
|
+
quantity: 1,
|
|
112
|
+
price: 2,
|
|
113
|
+
productCategoryId: 1113,
|
|
114
|
+
hasDeposit: false,
|
|
115
|
+
nam: "Product 10",
|
|
116
|
+
deposit: 0,
|
|
117
|
+
},
|
|
38
118
|
},
|
|
39
119
|
numberOfPeople: 1,
|
|
40
120
|
},
|
|
41
121
|
shouldHidePeopleAmount: true,
|
|
42
|
-
menuSteps: [
|
|
122
|
+
menuSteps: [
|
|
123
|
+
{
|
|
124
|
+
id: 955,
|
|
125
|
+
name: "Step 1",
|
|
126
|
+
productCategories: [
|
|
127
|
+
{
|
|
128
|
+
id: 821,
|
|
129
|
+
name: "deposits",
|
|
130
|
+
minSubItems: null,
|
|
131
|
+
maxSubItems: null,
|
|
132
|
+
type: "menuItems",
|
|
133
|
+
collectUserInfo: false,
|
|
134
|
+
isTimeRelated: false,
|
|
135
|
+
hasTicket: false,
|
|
136
|
+
hasSubEvents: false,
|
|
137
|
+
weight: 0,
|
|
138
|
+
isReusable: false,
|
|
139
|
+
menuStepId: 955,
|
|
140
|
+
remainderExpireAfter: 4,
|
|
141
|
+
zoneId: null,
|
|
142
|
+
sort: 0,
|
|
143
|
+
zone: {},
|
|
144
|
+
allowDeposits: true,
|
|
145
|
+
products: [
|
|
146
|
+
{
|
|
147
|
+
id: 1274,
|
|
148
|
+
productCategoryId: 821,
|
|
149
|
+
productGroupId: null,
|
|
150
|
+
name: "deposit 1",
|
|
151
|
+
description: "",
|
|
152
|
+
minSpend: null,
|
|
153
|
+
type: "sale",
|
|
154
|
+
capacity: null,
|
|
155
|
+
duration: null,
|
|
156
|
+
weight: 0,
|
|
157
|
+
isAvailable: true,
|
|
158
|
+
isRequired: false,
|
|
159
|
+
quantitySelector: 1,
|
|
160
|
+
hasSpecialNotes: false,
|
|
161
|
+
termsAndConditions: null,
|
|
162
|
+
subProducts: [],
|
|
163
|
+
images: [
|
|
164
|
+
{
|
|
165
|
+
id: 824,
|
|
166
|
+
imageableId: 1274,
|
|
167
|
+
imageableType: "product",
|
|
168
|
+
path: "images/original/000/000/000/000/824-3b3039714d7bb1fa.jpeg",
|
|
169
|
+
imageType: "image",
|
|
170
|
+
hash: "3b3039714d7bb1fa",
|
|
171
|
+
url: "https://cdn.lickli.st/YQKp7HjHgvfGSLKj3WXOmFYseUUeCcaC/images/original/000/000/000/000/824-3b3039714d7bb1fa.jpeg",
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
productCategory: null,
|
|
175
|
+
uuid: "46abf3fa-a7d8-4043-a09d-f7b4ea464cec",
|
|
176
|
+
subSlots: 0,
|
|
177
|
+
pause: 0,
|
|
178
|
+
offset: 0,
|
|
179
|
+
serviceTime: 0,
|
|
180
|
+
sort: 0,
|
|
181
|
+
isUnlimited: true,
|
|
182
|
+
minQuantity: 0,
|
|
183
|
+
maxQuantity: 0,
|
|
184
|
+
availableQuantity: null,
|
|
185
|
+
totalQuantity: 0,
|
|
186
|
+
price: 5,
|
|
187
|
+
minAmount: 0,
|
|
188
|
+
maxAmount: 0,
|
|
189
|
+
isSoldOut: false,
|
|
190
|
+
deposit: 3,
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
id: 1275,
|
|
194
|
+
productCategoryId: 821,
|
|
195
|
+
productGroupId: null,
|
|
196
|
+
name: "deposit 2",
|
|
197
|
+
description: "",
|
|
198
|
+
minSpend: null,
|
|
199
|
+
type: "sale",
|
|
200
|
+
capacity: null,
|
|
201
|
+
duration: null,
|
|
202
|
+
weight: 0,
|
|
203
|
+
isAvailable: true,
|
|
204
|
+
isRequired: false,
|
|
205
|
+
quantitySelector: 1,
|
|
206
|
+
hasSpecialNotes: false,
|
|
207
|
+
termsAndConditions: null,
|
|
208
|
+
subProducts: [],
|
|
209
|
+
images: [],
|
|
210
|
+
productCategory: null,
|
|
211
|
+
uuid: "f0182699-adf8-497c-b6c4-3d43bdee93e9",
|
|
212
|
+
subSlots: 0,
|
|
213
|
+
pause: 0,
|
|
214
|
+
offset: 0,
|
|
215
|
+
serviceTime: 0,
|
|
216
|
+
sort: 0,
|
|
217
|
+
isUnlimited: false,
|
|
218
|
+
minQuantity: 0,
|
|
219
|
+
maxQuantity: 0,
|
|
220
|
+
availableQuantity: 22222,
|
|
221
|
+
totalQuantity: 22222,
|
|
222
|
+
price: 10,
|
|
223
|
+
minAmount: 0,
|
|
224
|
+
maxAmount: 22222,
|
|
225
|
+
isSoldOut: false,
|
|
226
|
+
deposit: 4,
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
id: 1736,
|
|
230
|
+
productCategoryId: 821,
|
|
231
|
+
productGroupId: null,
|
|
232
|
+
name: "0 deposit",
|
|
233
|
+
description: "",
|
|
234
|
+
minSpend: null,
|
|
235
|
+
type: "sale",
|
|
236
|
+
capacity: 0,
|
|
237
|
+
duration: null,
|
|
238
|
+
weight: 0,
|
|
239
|
+
isAvailable: true,
|
|
240
|
+
isRequired: false,
|
|
241
|
+
quantitySelector: 1,
|
|
242
|
+
hasSpecialNotes: false,
|
|
243
|
+
termsAndConditions: null,
|
|
244
|
+
subProducts: [],
|
|
245
|
+
images: [],
|
|
246
|
+
productCategory: null,
|
|
247
|
+
uuid: "8d65e23e-65f0-4028-941a-755a68ecfdee",
|
|
248
|
+
subSlots: 0,
|
|
249
|
+
pause: 0,
|
|
250
|
+
offset: 0,
|
|
251
|
+
serviceTime: 0,
|
|
252
|
+
sort: 0,
|
|
253
|
+
isUnlimited: true,
|
|
254
|
+
minQuantity: 0,
|
|
255
|
+
maxQuantity: 0,
|
|
256
|
+
availableQuantity: null,
|
|
257
|
+
totalQuantity: 0,
|
|
258
|
+
price: 4,
|
|
259
|
+
minAmount: 0,
|
|
260
|
+
maxAmount: 0,
|
|
261
|
+
isSoldOut: false,
|
|
262
|
+
deposit: 0,
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
},
|
|
266
|
+
],
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
id: 1182,
|
|
270
|
+
name: "Step 2",
|
|
271
|
+
productCategories: [
|
|
272
|
+
{
|
|
273
|
+
id: 1113,
|
|
274
|
+
name: "Test",
|
|
275
|
+
minSubItems: 0,
|
|
276
|
+
maxSubItems: 12,
|
|
277
|
+
type: "tickets",
|
|
278
|
+
collectUserInfo: false,
|
|
279
|
+
isTimeRelated: false,
|
|
280
|
+
hasTicket: true,
|
|
281
|
+
hasSubEvents: false,
|
|
282
|
+
weight: 0,
|
|
283
|
+
isReusable: false,
|
|
284
|
+
menuStepId: 1182,
|
|
285
|
+
zoneId: null,
|
|
286
|
+
sort: 0,
|
|
287
|
+
zone: {},
|
|
288
|
+
allowDeposits: false,
|
|
289
|
+
products: [
|
|
290
|
+
{
|
|
291
|
+
id: 1703,
|
|
292
|
+
productCategoryId: 1113,
|
|
293
|
+
productGroupId: null,
|
|
294
|
+
name: "Test prod",
|
|
295
|
+
description: "",
|
|
296
|
+
minSpend: null,
|
|
297
|
+
type: "sale",
|
|
298
|
+
capacity: 0,
|
|
299
|
+
duration: null,
|
|
300
|
+
weight: 0,
|
|
301
|
+
isAvailable: true,
|
|
302
|
+
isRequired: false,
|
|
303
|
+
quantitySelector: 1,
|
|
304
|
+
hasSpecialNotes: false,
|
|
305
|
+
termsAndConditions: null,
|
|
306
|
+
subProducts: [],
|
|
307
|
+
images: [],
|
|
308
|
+
productCategory: null,
|
|
309
|
+
uuid: "1bc542ee-d998-4699-9889-5e8e16e52bb2",
|
|
310
|
+
subSlots: 0,
|
|
311
|
+
pause: 0,
|
|
312
|
+
offset: 0,
|
|
313
|
+
serviceTime: 0,
|
|
314
|
+
sort: 0,
|
|
315
|
+
isUnlimited: false,
|
|
316
|
+
minQuantity: 1,
|
|
317
|
+
maxQuantity: 12,
|
|
318
|
+
availableQuantity: 21,
|
|
319
|
+
totalQuantity: 21,
|
|
320
|
+
price: 2,
|
|
321
|
+
minAmount: 1,
|
|
322
|
+
maxAmount: 12,
|
|
323
|
+
isSoldOut: false,
|
|
324
|
+
deposit: 0,
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
id: 1711,
|
|
328
|
+
productCategoryId: 1113,
|
|
329
|
+
productGroupId: null,
|
|
330
|
+
name: "Product 4",
|
|
331
|
+
description: "",
|
|
332
|
+
minSpend: null,
|
|
333
|
+
type: "sale",
|
|
334
|
+
capacity: 0,
|
|
335
|
+
duration: null,
|
|
336
|
+
weight: 0,
|
|
337
|
+
isAvailable: true,
|
|
338
|
+
isRequired: false,
|
|
339
|
+
quantitySelector: 1,
|
|
340
|
+
hasSpecialNotes: false,
|
|
341
|
+
termsAndConditions: null,
|
|
342
|
+
subProducts: [],
|
|
343
|
+
images: [],
|
|
344
|
+
productCategory: null,
|
|
345
|
+
uuid: "52b40cf2-b0aa-4dac-b8c7-900d722f0010",
|
|
346
|
+
subSlots: 0,
|
|
347
|
+
pause: 0,
|
|
348
|
+
offset: 0,
|
|
349
|
+
serviceTime: 0,
|
|
350
|
+
sort: 0,
|
|
351
|
+
isUnlimited: true,
|
|
352
|
+
minQuantity: 0,
|
|
353
|
+
maxQuantity: 0,
|
|
354
|
+
availableQuantity: null,
|
|
355
|
+
totalQuantity: 0,
|
|
356
|
+
price: 2,
|
|
357
|
+
minAmount: 0,
|
|
358
|
+
maxAmount: 0,
|
|
359
|
+
isSoldOut: false,
|
|
360
|
+
deposit: 0,
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
id: 1712,
|
|
364
|
+
productCategoryId: 1113,
|
|
365
|
+
productGroupId: null,
|
|
366
|
+
name: "Product 5",
|
|
367
|
+
description: "",
|
|
368
|
+
minSpend: null,
|
|
369
|
+
type: "sale",
|
|
370
|
+
capacity: 0,
|
|
371
|
+
duration: null,
|
|
372
|
+
weight: 0,
|
|
373
|
+
isAvailable: true,
|
|
374
|
+
isRequired: false,
|
|
375
|
+
quantitySelector: 1,
|
|
376
|
+
hasSpecialNotes: false,
|
|
377
|
+
termsAndConditions: null,
|
|
378
|
+
subProducts: [],
|
|
379
|
+
images: [],
|
|
380
|
+
productCategory: null,
|
|
381
|
+
uuid: "f5410c89-afa0-4010-9386-cf3f630f74f0",
|
|
382
|
+
subSlots: 0,
|
|
383
|
+
pause: 0,
|
|
384
|
+
offset: 0,
|
|
385
|
+
serviceTime: 0,
|
|
386
|
+
sort: 0,
|
|
387
|
+
isUnlimited: true,
|
|
388
|
+
minQuantity: 0,
|
|
389
|
+
maxQuantity: 0,
|
|
390
|
+
availableQuantity: null,
|
|
391
|
+
totalQuantity: 0,
|
|
392
|
+
price: 4,
|
|
393
|
+
minAmount: 0,
|
|
394
|
+
maxAmount: 0,
|
|
395
|
+
isSoldOut: false,
|
|
396
|
+
deposit: 0,
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
id: 1713,
|
|
400
|
+
productCategoryId: 1113,
|
|
401
|
+
productGroupId: null,
|
|
402
|
+
name: "Product 6",
|
|
403
|
+
description: "",
|
|
404
|
+
minSpend: null,
|
|
405
|
+
type: "sale",
|
|
406
|
+
capacity: 0,
|
|
407
|
+
duration: null,
|
|
408
|
+
weight: 0,
|
|
409
|
+
isAvailable: true,
|
|
410
|
+
isRequired: false,
|
|
411
|
+
quantitySelector: 1,
|
|
412
|
+
hasSpecialNotes: false,
|
|
413
|
+
termsAndConditions: null,
|
|
414
|
+
subProducts: [],
|
|
415
|
+
images: [],
|
|
416
|
+
productCategory: null,
|
|
417
|
+
uuid: "4539eb35-17a4-4270-8569-5b9ad87354b7",
|
|
418
|
+
subSlots: 0,
|
|
419
|
+
pause: 0,
|
|
420
|
+
offset: 0,
|
|
421
|
+
serviceTime: 0,
|
|
422
|
+
sort: 0,
|
|
423
|
+
isUnlimited: true,
|
|
424
|
+
minQuantity: 0,
|
|
425
|
+
maxQuantity: 0,
|
|
426
|
+
availableQuantity: null,
|
|
427
|
+
totalQuantity: 0,
|
|
428
|
+
price: 1,
|
|
429
|
+
minAmount: 0,
|
|
430
|
+
maxAmount: 0,
|
|
431
|
+
isSoldOut: false,
|
|
432
|
+
deposit: 0,
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
id: 1714,
|
|
436
|
+
productCategoryId: 1113,
|
|
437
|
+
productGroupId: null,
|
|
438
|
+
name: "Product 7",
|
|
439
|
+
description: "",
|
|
440
|
+
minSpend: null,
|
|
441
|
+
type: "sale",
|
|
442
|
+
capacity: 0,
|
|
443
|
+
duration: null,
|
|
444
|
+
weight: 0,
|
|
445
|
+
isAvailable: true,
|
|
446
|
+
isRequired: false,
|
|
447
|
+
quantitySelector: 1,
|
|
448
|
+
hasSpecialNotes: false,
|
|
449
|
+
termsAndConditions: null,
|
|
450
|
+
subProducts: [],
|
|
451
|
+
images: [],
|
|
452
|
+
productCategory: null,
|
|
453
|
+
uuid: "aa40d36f-dd17-4604-86d5-5eb331944fc0",
|
|
454
|
+
subSlots: 0,
|
|
455
|
+
pause: 0,
|
|
456
|
+
offset: 0,
|
|
457
|
+
serviceTime: 0,
|
|
458
|
+
sort: 0,
|
|
459
|
+
isUnlimited: true,
|
|
460
|
+
minQuantity: 0,
|
|
461
|
+
maxQuantity: 0,
|
|
462
|
+
availableQuantity: null,
|
|
463
|
+
totalQuantity: 0,
|
|
464
|
+
price: 2,
|
|
465
|
+
minAmount: 0,
|
|
466
|
+
maxAmount: 0,
|
|
467
|
+
isSoldOut: false,
|
|
468
|
+
deposit: 0,
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
id: 1715,
|
|
472
|
+
productCategoryId: 1113,
|
|
473
|
+
productGroupId: null,
|
|
474
|
+
name: "Product 8",
|
|
475
|
+
description: "",
|
|
476
|
+
minSpend: null,
|
|
477
|
+
type: "sale",
|
|
478
|
+
capacity: 0,
|
|
479
|
+
duration: null,
|
|
480
|
+
weight: 0,
|
|
481
|
+
isAvailable: true,
|
|
482
|
+
isRequired: false,
|
|
483
|
+
quantitySelector: 1,
|
|
484
|
+
hasSpecialNotes: false,
|
|
485
|
+
termsAndConditions: null,
|
|
486
|
+
subProducts: [],
|
|
487
|
+
images: [],
|
|
488
|
+
productCategory: null,
|
|
489
|
+
uuid: "160849ed-f058-4102-845c-00fdae702d7d",
|
|
490
|
+
subSlots: 0,
|
|
491
|
+
pause: 0,
|
|
492
|
+
offset: 0,
|
|
493
|
+
serviceTime: 0,
|
|
494
|
+
sort: 0,
|
|
495
|
+
isUnlimited: true,
|
|
496
|
+
minQuantity: 0,
|
|
497
|
+
maxQuantity: 0,
|
|
498
|
+
availableQuantity: null,
|
|
499
|
+
totalQuantity: 0,
|
|
500
|
+
price: 3,
|
|
501
|
+
minAmount: 0,
|
|
502
|
+
maxAmount: 0,
|
|
503
|
+
isSoldOut: false,
|
|
504
|
+
deposit: 0,
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
id: 1716,
|
|
508
|
+
productCategoryId: 1113,
|
|
509
|
+
productGroupId: null,
|
|
510
|
+
name: "Product 9",
|
|
511
|
+
description: "",
|
|
512
|
+
minSpend: null,
|
|
513
|
+
type: "sale",
|
|
514
|
+
capacity: 0,
|
|
515
|
+
duration: null,
|
|
516
|
+
weight: 0,
|
|
517
|
+
isAvailable: true,
|
|
518
|
+
isRequired: false,
|
|
519
|
+
quantitySelector: 1,
|
|
520
|
+
hasSpecialNotes: false,
|
|
521
|
+
termsAndConditions: null,
|
|
522
|
+
subProducts: [],
|
|
523
|
+
images: [],
|
|
524
|
+
productCategory: null,
|
|
525
|
+
uuid: "934ad342-9f08-4f40-b814-9f74a56e9a58",
|
|
526
|
+
subSlots: 0,
|
|
527
|
+
pause: 0,
|
|
528
|
+
offset: 0,
|
|
529
|
+
serviceTime: 0,
|
|
530
|
+
sort: 0,
|
|
531
|
+
isUnlimited: true,
|
|
532
|
+
minQuantity: 0,
|
|
533
|
+
maxQuantity: 0,
|
|
534
|
+
availableQuantity: null,
|
|
535
|
+
totalQuantity: 0,
|
|
536
|
+
price: 6,
|
|
537
|
+
minAmount: 0,
|
|
538
|
+
maxAmount: 0,
|
|
539
|
+
isSoldOut: false,
|
|
540
|
+
deposit: 0,
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
id: 1717,
|
|
544
|
+
productCategoryId: 1113,
|
|
545
|
+
productGroupId: null,
|
|
546
|
+
name: "Product 10",
|
|
547
|
+
description: "",
|
|
548
|
+
minSpend: null,
|
|
549
|
+
type: "sale",
|
|
550
|
+
capacity: 0,
|
|
551
|
+
duration: null,
|
|
552
|
+
weight: 0,
|
|
553
|
+
isAvailable: true,
|
|
554
|
+
isRequired: false,
|
|
555
|
+
quantitySelector: 1,
|
|
556
|
+
hasSpecialNotes: false,
|
|
557
|
+
termsAndConditions: null,
|
|
558
|
+
subProducts: [],
|
|
559
|
+
images: [],
|
|
560
|
+
productCategory: null,
|
|
561
|
+
uuid: "9c00e536-4e57-43ef-8b50-8552b0f5181c",
|
|
562
|
+
subSlots: 0,
|
|
563
|
+
pause: 0,
|
|
564
|
+
offset: 0,
|
|
565
|
+
serviceTime: 0,
|
|
566
|
+
sort: 0,
|
|
567
|
+
isUnlimited: true,
|
|
568
|
+
minQuantity: 0,
|
|
569
|
+
maxQuantity: 0,
|
|
570
|
+
availableQuantity: null,
|
|
571
|
+
totalQuantity: 0,
|
|
572
|
+
price: 2,
|
|
573
|
+
minAmount: 0,
|
|
574
|
+
maxAmount: 0,
|
|
575
|
+
isSoldOut: false,
|
|
576
|
+
deposit: 0,
|
|
577
|
+
},
|
|
578
|
+
],
|
|
579
|
+
},
|
|
580
|
+
],
|
|
581
|
+
},
|
|
582
|
+
],
|
|
43
583
|
},
|
|
44
584
|
};
|
|
@@ -13,9 +13,10 @@ import {
|
|
|
13
13
|
RyftPaymentFormProps,
|
|
14
14
|
} from "../../ryft/RyftPaymentForm";
|
|
15
15
|
import { PaymentTimer } from "./PaymentTimer";
|
|
16
|
-
import { Page, PageBody
|
|
17
|
-
import { BookingSummary
|
|
16
|
+
import { Page, PageBody } from "../../page";
|
|
17
|
+
import { BookingSummary } from "../../order-process";
|
|
18
18
|
import { cartSumByOrderProducts } from "../../order-process/components/BookingSummary/utils";
|
|
19
|
+
import { PAGE_BODY_WITH_SCROLL } from "../../page/components/PageBody/constants";
|
|
19
20
|
|
|
20
21
|
export interface PaymentMetadata {
|
|
21
22
|
total: number;
|
|
@@ -44,6 +45,7 @@ export const PaymentPage = ({
|
|
|
44
45
|
const { search } = useLocation();
|
|
45
46
|
|
|
46
47
|
const { isPaymentSessionExpired } = useContext(PaymentSessionContext);
|
|
48
|
+
|
|
47
49
|
const isIframePayment = Boolean(
|
|
48
50
|
new URLSearchParams(search).get("isIframePayment")
|
|
49
51
|
);
|
|
@@ -53,9 +55,10 @@ export const PaymentPage = ({
|
|
|
53
55
|
window.location.href = "https://booked.it/";
|
|
54
56
|
};
|
|
55
57
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
// TODO wait for Brad's design for close and go back buttons
|
|
59
|
+
// const onGoBack = () => {
|
|
60
|
+
// window.close();
|
|
61
|
+
// };
|
|
59
62
|
|
|
60
63
|
useEffect(() => {
|
|
61
64
|
if (!isIframePayment || !onCloseIframePayment) {
|
|
@@ -113,32 +116,41 @@ export const PaymentPage = ({
|
|
|
113
116
|
orderTotalAmountByFormValues > data?.amount;
|
|
114
117
|
|
|
115
118
|
return (
|
|
116
|
-
<Page
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
<PaymentTimer />
|
|
126
|
-
<div className="d-flex align-items-center justify-content-center w-100">
|
|
127
|
-
{t("paymentDetails")}
|
|
128
|
-
</div>
|
|
129
|
-
</PageHeader>
|
|
130
|
-
}
|
|
131
|
-
>
|
|
119
|
+
<Page className="payment_link">
|
|
120
|
+
{/* TODO wait for Brad's design for close and go back buttons */}
|
|
121
|
+
{/* <PageHeader
|
|
122
|
+
className="no-page-header"
|
|
123
|
+
showBackButton={isIframePayment}
|
|
124
|
+
onBackButtonClick={isIframePayment ? onGoBack : undefined}
|
|
125
|
+
showCloseButton={isIframePayment}
|
|
126
|
+
onCloseButtonClick={isIframePayment ? onGoBack : undefined}
|
|
127
|
+
/> */}
|
|
132
128
|
<PageBody
|
|
129
|
+
id={PAGE_BODY_WITH_SCROLL}
|
|
133
130
|
leftBlock={
|
|
134
131
|
<PageBody.LeftBlock>
|
|
132
|
+
<div className="d-flex align-items-center mb-5">
|
|
133
|
+
<PaymentTimer />
|
|
134
|
+
</div>
|
|
135
135
|
<RyftPaymentForm {...ryftPaymentFormProps} />
|
|
136
136
|
</PageBody.LeftBlock>
|
|
137
137
|
}
|
|
138
138
|
rightBlock={
|
|
139
|
-
<PageBody.RightBlock
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
<PageBody.RightBlock>
|
|
140
|
+
<BookingSummary
|
|
141
|
+
{...bookingSummaryProps}
|
|
142
|
+
isPaymentPage
|
|
143
|
+
headerComponent={
|
|
144
|
+
<SummaryTotalBlock
|
|
145
|
+
amount={
|
|
146
|
+
paymentMetadata
|
|
147
|
+
? paymentMetadata.total
|
|
148
|
+
: orderTotalAmountByFormValues +
|
|
149
|
+
(bookingSummaryProps?.transactionFee || 0)
|
|
150
|
+
}
|
|
151
|
+
/>
|
|
152
|
+
}
|
|
153
|
+
footer={
|
|
142
154
|
<div className="d-flex flex-column justify-content-between">
|
|
143
155
|
{paymentMetadata ? (
|
|
144
156
|
<>
|
|
@@ -183,11 +195,8 @@ export const PaymentPage = ({
|
|
|
183
195
|
</>
|
|
184
196
|
)}
|
|
185
197
|
</div>
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
>
|
|
189
|
-
<h6>{t("paymentDetails")}</h6>
|
|
190
|
-
<BookingSummary {...bookingSummaryProps} />
|
|
198
|
+
}
|
|
199
|
+
/>
|
|
191
200
|
</PageBody.RightBlock>
|
|
192
201
|
}
|
|
193
202
|
/>
|