tf-checkout-react-native 1.0.24 → 1.0.25

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.
Files changed (104) hide show
  1. package/README.md +322 -32
  2. package/lib/api/ApiClient.d.ts +2 -5
  3. package/lib/api/ApiClient.js +62 -15
  4. package/lib/api/ApiClient.js.map +1 -1
  5. package/lib/api/types.d.ts +26 -14
  6. package/lib/api/types.js +1 -0
  7. package/lib/api/types.js.map +1 -1
  8. package/lib/components/login/Login.js +7 -4
  9. package/lib/components/login/Login.js.map +1 -1
  10. package/lib/components/login/types.d.ts +6 -1
  11. package/lib/components/stripePayment/StripePayment.js +2 -1
  12. package/lib/components/stripePayment/StripePayment.js.map +1 -1
  13. package/lib/components/stripePayment/styles.d.ts +6 -0
  14. package/lib/components/stripePayment/styles.js +7 -0
  15. package/lib/components/stripePayment/styles.js.map +1 -0
  16. package/lib/components/waitingList/WaitingList.d.ts +3 -2
  17. package/lib/components/waitingList/WaitingList.js +23 -3
  18. package/lib/components/waitingList/WaitingList.js.map +1 -1
  19. package/lib/containers/billingInfo/Billing.d.ts +3 -2
  20. package/lib/containers/billingInfo/Billing.js +66 -35
  21. package/lib/containers/billingInfo/Billing.js.map +1 -1
  22. package/lib/containers/billingInfo/types.d.ts +6 -5
  23. package/lib/containers/checkout/Checkout.d.ts +3 -2
  24. package/lib/containers/checkout/Checkout.js +147 -106
  25. package/lib/containers/checkout/Checkout.js.map +1 -1
  26. package/lib/containers/myOrderDetails/MyOrderDetails.d.ts +3 -2
  27. package/lib/containers/myOrderDetails/MyOrderDetails.js +34 -9
  28. package/lib/containers/myOrderDetails/MyOrderDetails.js.map +1 -1
  29. package/lib/containers/myOrders/MyOrders.d.ts +3 -2
  30. package/lib/containers/myOrders/MyOrders.js +40 -11
  31. package/lib/containers/myOrders/MyOrders.js.map +1 -1
  32. package/lib/containers/purchaseConfirmation/PurchaseConfirmation.d.ts +3 -2
  33. package/lib/containers/purchaseConfirmation/PurchaseConfirmation.js +54 -18
  34. package/lib/containers/purchaseConfirmation/PurchaseConfirmation.js.map +1 -1
  35. package/lib/containers/resaleTickets/ResaleTickets.d.ts +3 -2
  36. package/lib/containers/resaleTickets/ResaleTickets.js +32 -11
  37. package/lib/containers/resaleTickets/ResaleTickets.js.map +1 -1
  38. package/lib/containers/tickets/Tickets.d.ts +3 -2
  39. package/lib/containers/tickets/Tickets.js +41 -11
  40. package/lib/containers/tickets/Tickets.js.map +1 -1
  41. package/lib/containers/tickets/TicketsView.js +0 -1
  42. package/lib/containers/tickets/TicketsView.js.map +1 -1
  43. package/lib/core/BillingCore/BillingCore.js +4 -0
  44. package/lib/core/BillingCore/BillingCore.js.map +1 -1
  45. package/lib/core/BillingCore/BillingCoreTypes.d.ts +3 -1
  46. package/lib/core/CheckoutCore/CheckoutCore.js +4 -0
  47. package/lib/core/CheckoutCore/CheckoutCore.js.map +1 -1
  48. package/lib/core/CheckoutCore/CheckoutCoreTypes.d.ts +3 -1
  49. package/lib/core/LoginCore/LoginCore.js +10 -18
  50. package/lib/core/LoginCore/LoginCore.js.map +1 -1
  51. package/lib/core/LoginCore/LoginCoreHelper.d.ts +2 -0
  52. package/lib/core/LoginCore/LoginCoreHelper.js +19 -0
  53. package/lib/core/LoginCore/LoginCoreHelper.js.map +1 -0
  54. package/lib/core/LoginCore/LoginCoreTypes.d.ts +3 -2
  55. package/lib/core/MyOrdersCore/MyOrdersCore.d.ts +3 -1
  56. package/lib/core/MyOrdersCore/MyOrdersCore.js +4 -0
  57. package/lib/core/MyOrdersCore/MyOrdersCore.js.map +1 -1
  58. package/lib/core/MyOrdersCore/MyOrdersCoreTypes.d.ts +3 -1
  59. package/lib/core/OrderDetailsCore/OrderDetailsCore.d.ts +2 -2
  60. package/lib/core/OrderDetailsCore/OrderDetailsCore.js +4 -0
  61. package/lib/core/OrderDetailsCore/OrderDetailsCore.js.map +1 -1
  62. package/lib/core/OrderDetailsCore/OrderDetailsCoreTypes.d.ts +4 -2
  63. package/lib/core/PurchaseConfirmationCore/PurchaseConfirmationCore.js +4 -0
  64. package/lib/core/PurchaseConfirmationCore/PurchaseConfirmationCore.js.map +1 -1
  65. package/lib/core/PurchaseConfirmationCore/PurchaseConfirmationCoreTypes.d.ts +3 -1
  66. package/lib/core/Session/SessionCoreTypes.d.ts +8 -0
  67. package/lib/core/Session/SessionCoreTypes.js +2 -0
  68. package/lib/core/Session/SessionCoreTypes.js.map +1 -0
  69. package/lib/core/Session/SessionHandle.d.ts +5 -0
  70. package/lib/core/Session/SessionHandle.js +16 -0
  71. package/lib/core/Session/SessionHandle.js.map +1 -0
  72. package/lib/core/TicketsCore/TicketsCore.js +4 -0
  73. package/lib/core/TicketsCore/TicketsCore.js.map +1 -1
  74. package/lib/core/TicketsCore/TicketsCoreTypes.d.ts +3 -1
  75. package/lib/core/WaitingListCore/WaitingListCore.js +4 -0
  76. package/lib/core/WaitingListCore/WaitingListCore.js.map +1 -1
  77. package/lib/core/WaitingListCore/WaitingListCoreTypes.d.ts +3 -1
  78. package/lib/core/index.d.ts +3 -1
  79. package/lib/core/index.js +1 -0
  80. package/lib/core/index.js.map +1 -1
  81. package/lib/helpers/LocalStorage.d.ts +2 -0
  82. package/lib/helpers/LocalStorage.js +6 -0
  83. package/lib/helpers/LocalStorage.js.map +1 -1
  84. package/lib/helpers/RefreshAccessToken.d.ts +2 -0
  85. package/lib/helpers/RefreshAccessToken.js +20 -0
  86. package/lib/helpers/RefreshAccessToken.js.map +1 -0
  87. package/lib/index.d.ts +9 -3
  88. package/lib/index.js +2 -1
  89. package/lib/index.js.map +1 -1
  90. package/package.json +1 -1
  91. package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
  92. package/android/.gradle/7.4.2/checksums/md5-checksums.bin +0 -0
  93. package/android/.gradle/7.4.2/checksums/sha1-checksums.bin +0 -0
  94. package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  95. package/android/.gradle/7.4.2/dependencies-accessors/gc.properties +0 -0
  96. package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
  97. package/android/.gradle/7.4.2/fileChanges/last-build.bin +0 -0
  98. package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
  99. package/android/.gradle/7.4.2/gc.properties +0 -0
  100. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  101. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  102. package/android/.gradle/vcs-1/gc.properties +0 -0
  103. package/ios/TFCheckoutRNModule.xcodeproj/project.xcworkspace/xcuserdata/jorgegutierrez.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  104. package/ios/TFCheckoutRNModule.xcodeproj/xcshareddata/xcschemes/TFCheckoutRNModule.xcscheme +0 -67
@@ -3,19 +3,20 @@ import _every from 'lodash/every';
3
3
  import _forEach from 'lodash/forEach';
4
4
  import _map from 'lodash/map';
5
5
  import _mapKeys from 'lodash/mapKeys';
6
- import React, { useCallback, useEffect, useRef, useState } from 'react';
6
+ import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState, } from 'react';
7
7
  import { Alert, Text, View } from 'react-native';
8
8
  import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
9
9
  import { CartTimer, Loading } from '../../components';
10
10
  import Button from '../../components/button/Button';
11
- import { CheckoutCore } from '../../core';
11
+ import { CheckoutCore, SessionHandle } from '../../core';
12
12
  import { priceWithCurrency } from '../../helpers/StringsHelper';
13
13
  import { orderReviewItems } from './CheckoutData';
14
14
  import Conditions from './components/Conditions';
15
15
  import OrderReview from './components/OrderReview';
16
16
  import s from './styles';
17
- const Checkout = ({ eventId, checkoutData, onFetchOrderReviewError, onFetchOrderReviewSuccess, onFetchEventConditionsError, onFetchEventConditionsSuccess, onCheckoutCompletedError, onCheckoutCompletedSuccess, onPaymentError, onPaymentSuccess, onStripeInitializeError, texts, styles, onPressExit, areAlertsEnabled = true, areLoadingIndicatorsEnabled = true, onLoadingChange, onFetchOrderDetailsError, onFetchOrderDetailsSuccess, onCartExpired, shouldCartTimerNotMinimizeOnTap, }) => {
17
+ const Checkout = forwardRef(({ eventId, checkoutData, onFetchOrderReviewError, onFetchOrderReviewSuccess, onFetchEventConditionsError, onFetchEventConditionsSuccess, onCheckoutCompletedError, onCheckoutCompletedSuccess, onPaymentError, onPaymentSuccess, onStripeInitializeError, texts, styles, onPressExit, areAlertsEnabled = true, areLoadingIndicatorsEnabled = true, onLoadingChange, onFetchOrderDetailsError, onFetchOrderDetailsSuccess, onCartExpired, shouldCartTimerNotMinimizeOnTap, }, ref) => {
18
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
19
+ //#region State
19
20
  const { confirmPayment, loading: isLoadingPayment } = useConfirmPayment();
20
21
  const [isLoading, setIsLoading] = useState(true);
21
22
  const [orderReview, setOrderReview] = useState();
@@ -26,7 +27,11 @@ const Checkout = ({ eventId, checkoutData, onFetchOrderReviewError, onFetchOrder
26
27
  const [isStripeConfigMissing, setIsStripeConfigMissing] = useState(false);
27
28
  const [isPaymentRequired, setIsPaymentRequired] = useState(undefined);
28
29
  const [secondsLeft, setSecondsLeft] = useState(undefined);
30
+ //#endregion State
31
+ //#region Ref
29
32
  const checkoutCoreRef = useRef(null);
33
+ const sessionHandleRef = useRef(null);
34
+ //#endregion Ref
30
35
  const showLoading = () => setIsLoading(true);
31
36
  const hideLoading = () => setIsLoading(false);
32
37
  const showAlert = (message) => {
@@ -36,12 +41,120 @@ const Checkout = ({ eventId, checkoutData, onFetchOrderReviewError, onFetchOrder
36
41
  };
37
42
  const isCheckoutCoreRefReady = () => {
38
43
  if (!checkoutCoreRef.current) {
39
- onFetchOrderReviewError === null || onFetchOrderReviewError === void 0 ? void 0 : onFetchOrderReviewError({ message: 'CheckoutCore is not initialized' });
44
+ onFetchOrderReviewError === null || onFetchOrderReviewError === void 0 ? void 0 : onFetchOrderReviewError({
45
+ message: 'CheckoutCore is not initialized',
46
+ });
40
47
  showAlert('CheckoutCore is not initialized');
41
48
  return false;
42
49
  }
43
50
  return true;
44
51
  };
52
+ //#region Imperative Handler
53
+ useImperativeHandle(ref, () => ({
54
+ async refreshAccessToken(refreshToken) {
55
+ if (!sessionHandleRef.current) {
56
+ return {
57
+ accessTokenError: {
58
+ message: 'Session Handle ref is not initialized',
59
+ },
60
+ };
61
+ }
62
+ const { accessTokenError, accessTokenData } = await sessionHandleRef.current.refreshAccessToken(refreshToken);
63
+ if (!accessTokenError && (accessTokenData === null || accessTokenData === void 0 ? void 0 : accessTokenData.accessToken)) {
64
+ await fetchInitialData();
65
+ }
66
+ return {
67
+ accessTokenData,
68
+ accessTokenError,
69
+ };
70
+ },
71
+ async reloadData() {
72
+ await fetchInitialData();
73
+ },
74
+ }));
75
+ //#endregion Imperative Handler
76
+ //#region Fetch Data
77
+ const fetchEventConditionsAsync = async () => {
78
+ if (!isCheckoutCoreRefReady) {
79
+ return;
80
+ }
81
+ const { error: conditionsError, data: conditionsData } = await checkoutCoreRef.current.getEventConditions(eventId.toString());
82
+ if (conditionsError) {
83
+ hideLoading();
84
+ onFetchEventConditionsError === null || onFetchEventConditionsError === void 0 ? void 0 : onFetchEventConditionsError(conditionsError);
85
+ return showAlert(conditionsError.message || 'Error while fetching conditions');
86
+ }
87
+ setConditionsValues(_map(conditionsData, () => false));
88
+ setConditionsTexts(conditionsData);
89
+ hideLoading();
90
+ onFetchEventConditionsSuccess === null || onFetchEventConditionsSuccess === void 0 ? void 0 : onFetchEventConditionsSuccess(conditionsData);
91
+ };
92
+ const fetchOrderReviewAsync = async () => {
93
+ var _a;
94
+ const { orderReviewData, orderReviewError } = await checkoutCoreRef.current.getOrderReview(checkoutData.hash);
95
+ hideLoading();
96
+ if (orderReviewError) {
97
+ hideLoading();
98
+ setIsStripeConfigMissing(true);
99
+ onFetchOrderReviewError === null || onFetchOrderReviewError === void 0 ? void 0 : onFetchOrderReviewError(orderReviewError);
100
+ return showAlert((orderReviewError === null || orderReviewError === void 0 ? void 0 : orderReviewError.message) || 'Error while getting Order Review');
101
+ }
102
+ if (!orderReviewData) {
103
+ onFetchOrderReviewError === null || onFetchOrderReviewError === void 0 ? void 0 : onFetchOrderReviewError({
104
+ message: 'No order review data found. Please try again later',
105
+ });
106
+ return showAlert('No order review data found. Please try again later');
107
+ }
108
+ hideLoading();
109
+ onFetchOrderReviewSuccess === null || onFetchOrderReviewSuccess === void 0 ? void 0 : onFetchOrderReviewSuccess(orderReviewData);
110
+ setSecondsLeft(orderReviewData.expiresAt);
111
+ const tOrderInfo = [...orderInfo];
112
+ const currency = orderReviewData.reviewData.currency;
113
+ _forEach(tOrderInfo, (item) => {
114
+ _mapKeys(orderReviewData.reviewData, (value, key) => {
115
+ var _a, _b;
116
+ if (item.id === key) {
117
+ //@ts-ignore
118
+ item.title = (_b = (_a = texts === null || texts === void 0 ? void 0 : texts.orderReviewItems) === null || _a === void 0 ? void 0 : _a[key]) !== null && _b !== void 0 ? _b : item.title;
119
+ if (key === 'price' || key === 'total') {
120
+ item.value = priceWithCurrency(value, currency);
121
+ }
122
+ else {
123
+ item.value = value;
124
+ }
125
+ }
126
+ });
127
+ });
128
+ setOrderInfo(tOrderInfo);
129
+ setOrderReview(orderReviewData);
130
+ if ((orderReviewData === null || orderReviewData === void 0 ? void 0 : orderReviewData.reviewData.total) !== '0.00') {
131
+ if (!((_a = orderReviewData.paymentData) === null || _a === void 0 ? void 0 : _a.stripePublishableKey)) {
132
+ onStripeInitializeError === null || onStripeInitializeError === void 0 ? void 0 : onStripeInitializeError('Stripe is not configured for this event');
133
+ showAlert('Stripe is not configured for this event.Please contact support.');
134
+ return;
135
+ }
136
+ setIsPaymentRequired(true);
137
+ try {
138
+ await initStripe({
139
+ publishableKey: orderReviewData.paymentData.stripePublishableKey,
140
+ stripeAccountId: orderReviewData.paymentData.stripeConnectedAccount,
141
+ });
142
+ }
143
+ catch (stripeError) {
144
+ onStripeInitializeError === null || onStripeInitializeError === void 0 ? void 0 : onStripeInitializeError('Error initializing Stripe');
145
+ }
146
+ }
147
+ else {
148
+ setIsPaymentRequired(false);
149
+ }
150
+ };
151
+ const fetchInitialData = async () => {
152
+ showLoading();
153
+ await fetchEventConditionsAsync();
154
+ await fetchOrderReviewAsync();
155
+ hideLoading();
156
+ };
157
+ //#endregion Fetch Data
45
158
  //#region Handlers
46
159
  const handleOnPressExit = () => {
47
160
  onPressExit();
@@ -166,86 +279,6 @@ const Checkout = ({ eventId, checkoutData, onFetchOrderReviewError, onFetchOrder
166
279
  onLoadingChangeCallback(isLoading);
167
280
  }, [isLoading, onLoadingChangeCallback]);
168
281
  useEffect(() => {
169
- const fetchEventConditionsAsync = async () => {
170
- if (!isCheckoutCoreRefReady) {
171
- return;
172
- }
173
- const { error: conditionsError, data: conditionsData } = await checkoutCoreRef.current.getEventConditions(eventId.toString());
174
- if (conditionsError) {
175
- hideLoading();
176
- onFetchEventConditionsError === null || onFetchEventConditionsError === void 0 ? void 0 : onFetchEventConditionsError(conditionsError);
177
- return showAlert(conditionsError.message || 'Error while fetching conditions');
178
- }
179
- setConditionsValues(_map(conditionsData, () => false));
180
- setConditionsTexts(conditionsData);
181
- hideLoading();
182
- onFetchEventConditionsSuccess === null || onFetchEventConditionsSuccess === void 0 ? void 0 : onFetchEventConditionsSuccess(conditionsData);
183
- };
184
- const fetchOrderReviewAsync = async () => {
185
- var _a;
186
- const { orderReviewData, orderReviewError } = await checkoutCoreRef.current.getOrderReview(checkoutData.hash);
187
- hideLoading();
188
- if (orderReviewError) {
189
- hideLoading();
190
- setIsStripeConfigMissing(true);
191
- onFetchOrderReviewError === null || onFetchOrderReviewError === void 0 ? void 0 : onFetchOrderReviewError(orderReviewError);
192
- return showAlert((orderReviewError === null || orderReviewError === void 0 ? void 0 : orderReviewError.message) || 'Error while getting Order Review');
193
- }
194
- if (!orderReviewData) {
195
- onFetchOrderReviewError === null || onFetchOrderReviewError === void 0 ? void 0 : onFetchOrderReviewError({
196
- message: 'No order review data found. Please try again later',
197
- });
198
- return showAlert('No order review data found. Please try again later');
199
- }
200
- hideLoading();
201
- onFetchOrderReviewSuccess === null || onFetchOrderReviewSuccess === void 0 ? void 0 : onFetchOrderReviewSuccess(orderReviewData);
202
- setSecondsLeft(orderReviewData.expiresAt);
203
- const tOrderInfo = [...orderInfo];
204
- const currency = orderReviewData.reviewData.currency;
205
- _forEach(tOrderInfo, (item) => {
206
- _mapKeys(orderReviewData.reviewData, (value, key) => {
207
- var _a, _b;
208
- if (item.id === key) {
209
- //@ts-ignore
210
- item.title = (_b = (_a = texts === null || texts === void 0 ? void 0 : texts.orderReviewItems) === null || _a === void 0 ? void 0 : _a[key]) !== null && _b !== void 0 ? _b : item.title;
211
- if (key === 'price' || key === 'total') {
212
- item.value = priceWithCurrency(value, currency);
213
- }
214
- else {
215
- item.value = value;
216
- }
217
- }
218
- });
219
- });
220
- setOrderInfo(tOrderInfo);
221
- setOrderReview(orderReviewData);
222
- if ((orderReviewData === null || orderReviewData === void 0 ? void 0 : orderReviewData.reviewData.total) !== '0.00') {
223
- if (!((_a = orderReviewData.paymentData) === null || _a === void 0 ? void 0 : _a.stripePublishableKey)) {
224
- onStripeInitializeError === null || onStripeInitializeError === void 0 ? void 0 : onStripeInitializeError('Stripe is not configured for this event');
225
- showAlert('Stripe is not configured for this event.Please contact support.');
226
- return;
227
- }
228
- setIsPaymentRequired(true);
229
- try {
230
- await initStripe({
231
- publishableKey: orderReviewData.paymentData.stripePublishableKey,
232
- stripeAccountId: orderReviewData.paymentData.stripeConnectedAccount,
233
- });
234
- }
235
- catch (stripeError) {
236
- onStripeInitializeError === null || onStripeInitializeError === void 0 ? void 0 : onStripeInitializeError('Error initializing Stripe');
237
- }
238
- }
239
- else {
240
- setIsPaymentRequired(false);
241
- }
242
- };
243
- const fetchInitialData = async () => {
244
- showLoading();
245
- await fetchEventConditionsAsync();
246
- await fetchOrderReviewAsync();
247
- hideLoading();
248
- };
249
282
  fetchInitialData();
250
283
  // eslint-disable-next-line react-hooks/exhaustive-deps
251
284
  }, []);
@@ -261,30 +294,38 @@ const Checkout = ({ eventId, checkoutData, onFetchOrderReviewError, onFetchOrder
261
294
  const payButtonStyle = isDataValid
262
295
  ? (_a = styles === null || styles === void 0 ? void 0 : styles.payment) === null || _a === void 0 ? void 0 : _a.button
263
296
  : (_b = styles === null || styles === void 0 ? void 0 : styles.payment) === null || _b === void 0 ? void 0 : _b.buttonDisabled;
264
- return isStripeConfigMissing ? (React.createElement(View, { style: [s.missingStripeContainer, (_c = styles === null || styles === void 0 ? void 0 : styles.missingStripeConfig) === null || _c === void 0 ? void 0 : _c.container] },
297
+ //#region RENDER
298
+ return isStripeConfigMissing ? (React.createElement(View, { style: [
299
+ s.missingStripeContainer,
300
+ (_c = styles === null || styles === void 0 ? void 0 : styles.missingStripeConfig) === null || _c === void 0 ? void 0 : _c.container,
301
+ ] },
265
302
  React.createElement(Text, { style: [s.missingStripeMessage, (_d = styles === null || styles === void 0 ? void 0 : styles.missingStripeConfig) === null || _d === void 0 ? void 0 : _d.message] }, (texts === null || texts === void 0 ? void 0 : texts.missingStripeConfigMessage) ||
266
303
  'Payment handler is missing, please contact support'),
267
304
  React.createElement(Button, { styles: (_e = styles === null || styles === void 0 ? void 0 : styles.missingStripeConfig) === null || _e === void 0 ? void 0 : _e.exitButton, text: (texts === null || texts === void 0 ? void 0 : texts.exitButton) || 'Exit', onPress: handleOnPressExit }))) : (React.createElement(CheckoutCore, { ref: checkoutCoreRef, onSecondsLeftChange: setSecondsLeft, onCartExpired: onCartExpired },
268
- React.createElement(KeyboardAwareScrollView, { extraScrollHeight: 32 },
269
- React.createElement(View, { style: styles === null || styles === void 0 ? void 0 : styles.rootStyle },
270
- React.createElement(View, null,
271
- React.createElement(Text, { style: [s.title, styles === null || styles === void 0 ? void 0 : styles.title] }, (texts === null || texts === void 0 ? void 0 : texts.title) || 'GET YOUR TICKETS'),
272
- React.createElement(Text, { style: [styles === null || styles === void 0 ? void 0 : styles.subTitle] }, (texts === null || texts === void 0 ? void 0 : texts.subTitle) || 'Order review')),
273
- React.createElement(OrderReview, { orderItems: orderInfo, styles: styles === null || styles === void 0 ? void 0 : styles.orderReview }),
274
- isPaymentRequired && !isStripeConfigMissing && (React.createElement(View, { style: (_f = styles === null || styles === void 0 ? void 0 : styles.payment) === null || _f === void 0 ? void 0 : _f.container },
275
- React.createElement(Text, { style: (_g = styles === null || styles === void 0 ? void 0 : styles.payment) === null || _g === void 0 ? void 0 : _g.title }, (texts === null || texts === void 0 ? void 0 : texts.providePaymentInfo) ||
276
- 'Please provide your payment information'),
277
- React.createElement(CardForm, { onFormComplete: handleOnChangePaymentInfo, style: [s.card, (_h = styles === null || styles === void 0 ? void 0 : styles.payment) === null || _h === void 0 ? void 0 : _h.cardContainer], cardStyle: ((_j = styles === null || styles === void 0 ? void 0 : styles.payment) === null || _j === void 0 ? void 0 : _j.cardBackgroundColor)
278
- ? { backgroundColor: (_k = styles === null || styles === void 0 ? void 0 : styles.payment) === null || _k === void 0 ? void 0 : _k.cardBackgroundColor }
279
- : s.cardBackground }))),
280
- React.createElement(Conditions, { ...getConditions() }),
281
- isPaymentRequired && !isStripeConfigMissing && (React.createElement(Button, { text: (texts === null || texts === void 0 ? void 0 : texts.payButton) || 'PAY', onPress: handleOnPressPay, isLoading: isLoading || isLoadingPayment, isDisabled: !isDataValid, styles: {
282
- container: s.payButton,
283
- ...payButtonStyle,
284
- } })),
285
- isPaymentRequired !== undefined && !isPaymentRequired && (React.createElement(Button, { text: (texts === null || texts === void 0 ? void 0 : texts.freeRegistrationButton) || 'COMPLETE REGISTRATION', onPress: handleOnPressFreeRegistration, isLoading: isLoading || isLoadingPayment, styles: styles === null || styles === void 0 ? void 0 : styles.freeRegistrationButton, isDisabled: secondsLeft === 0 }))),
286
- isLoading && areLoadingIndicatorsEnabled && React.createElement(Loading, null)),
287
- secondsLeft !== undefined && (React.createElement(CartTimer, { secondsLeft: secondsLeft, styles: styles === null || styles === void 0 ? void 0 : styles.cartTimer, texts: texts === null || texts === void 0 ? void 0 : texts.cartTimer, shouldNotMinimize: shouldCartTimerNotMinimizeOnTap }))));
288
- };
305
+ React.createElement(SessionHandle, { ref: sessionHandleRef },
306
+ React.createElement(KeyboardAwareScrollView, { extraScrollHeight: 32 },
307
+ React.createElement(View, { style: styles === null || styles === void 0 ? void 0 : styles.rootStyle },
308
+ React.createElement(View, null,
309
+ React.createElement(Text, { style: [s.title, styles === null || styles === void 0 ? void 0 : styles.title] }, (texts === null || texts === void 0 ? void 0 : texts.title) || 'GET YOUR TICKETS'),
310
+ React.createElement(Text, { style: [styles === null || styles === void 0 ? void 0 : styles.subTitle] }, (texts === null || texts === void 0 ? void 0 : texts.subTitle) || 'Order review')),
311
+ React.createElement(OrderReview, { orderItems: orderInfo, styles: styles === null || styles === void 0 ? void 0 : styles.orderReview }),
312
+ isPaymentRequired && !isStripeConfigMissing && (React.createElement(View, { style: (_f = styles === null || styles === void 0 ? void 0 : styles.payment) === null || _f === void 0 ? void 0 : _f.container },
313
+ React.createElement(Text, { style: (_g = styles === null || styles === void 0 ? void 0 : styles.payment) === null || _g === void 0 ? void 0 : _g.title }, (texts === null || texts === void 0 ? void 0 : texts.providePaymentInfo) ||
314
+ 'Please provide your payment information'),
315
+ React.createElement(CardForm, { onFormComplete: handleOnChangePaymentInfo, style: [s.card, (_h = styles === null || styles === void 0 ? void 0 : styles.payment) === null || _h === void 0 ? void 0 : _h.cardContainer], cardStyle: ((_j = styles === null || styles === void 0 ? void 0 : styles.payment) === null || _j === void 0 ? void 0 : _j.cardBackgroundColor)
316
+ ? {
317
+ backgroundColor: (_k = styles === null || styles === void 0 ? void 0 : styles.payment) === null || _k === void 0 ? void 0 : _k.cardBackgroundColor,
318
+ }
319
+ : s.cardBackground }))),
320
+ React.createElement(Conditions, { ...getConditions() }),
321
+ isPaymentRequired && !isStripeConfigMissing && (React.createElement(Button, { text: (texts === null || texts === void 0 ? void 0 : texts.payButton) || 'PAY', onPress: handleOnPressPay, isLoading: isLoading || isLoadingPayment, isDisabled: !isDataValid, styles: {
322
+ container: s.payButton,
323
+ ...payButtonStyle,
324
+ } })),
325
+ isPaymentRequired !== undefined && !isPaymentRequired && (React.createElement(Button, { text: (texts === null || texts === void 0 ? void 0 : texts.freeRegistrationButton) || 'COMPLETE REGISTRATION', onPress: handleOnPressFreeRegistration, isLoading: isLoading || isLoadingPayment, styles: styles === null || styles === void 0 ? void 0 : styles.freeRegistrationButton, isDisabled: secondsLeft === 0 }))),
326
+ isLoading && areLoadingIndicatorsEnabled && React.createElement(Loading, null)),
327
+ secondsLeft !== undefined && (React.createElement(CartTimer, { secondsLeft: secondsLeft, styles: styles === null || styles === void 0 ? void 0 : styles.cartTimer, texts: texts === null || texts === void 0 ? void 0 : texts.cartTimer, shouldNotMinimize: shouldCartTimerNotMinimizeOnTap })))));
328
+ //#endregion RENDER
329
+ });
289
330
  export default Checkout;
290
331
  //# sourceMappingURL=Checkout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkout.js","sourceRoot":"","sources":["../../../src/containers/checkout/Checkout.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,UAAU,EACV,iBAAiB,GAClB,MAAM,6BAA6B,CAAA;AACpC,OAAO,MAAM,MAAM,cAAc,CAAA;AACjC,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,IAAI,MAAM,YAAY,CAAA;AAC7B,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,KAAK,EAAE,EAAM,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3E,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAA;AAGjF,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,MAAM,MAAM,gCAAgC,CAAA;AAEnD,OAAO,EAAE,YAAY,EAAsB,MAAM,YAAY,CA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B,CAAA;IACD,mBAAmB;AACrB,CAAC,CACF,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -1,4 +1,5 @@
1
- import { FC } from 'react';
1
+ import React from 'react';
2
+ import { SessionHandleType } from '../../core';
2
3
  import { IMyOrderDetailsProps } from './types';
3
- declare const MyOrderDetails: FC<IMyOrderDetailsProps>;
4
+ declare const MyOrderDetails: React.ForwardRefExoticComponent<IMyOrderDetailsProps & React.RefAttributes<SessionHandleType>>;
4
5
  export default MyOrderDetails;
@@ -1,25 +1,49 @@
1
1
  import _find from 'lodash/find';
2
2
  import _forEach from 'lodash/forEach';
3
- import React, { useCallback, useEffect, useRef, useState } from 'react';
3
+ import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState, } from 'react';
4
4
  import { Alert, PermissionsAndroid, Platform } from 'react-native';
5
5
  import { DocumentDirectoryPath, DownloadDirectoryPath, downloadFile, } from 'react-native-fs';
6
- import { OrderDetailsCore } from '../../core';
6
+ import { OrderDetailsCore, SessionHandle } from '../../core';
7
7
  import { getData, LocalStorageKeys } from '../../helpers/LocalStorage';
8
8
  import MyOrderDetailsView from './MyOrderDetailsView';
9
- const MyOrderDetails = ({ data, styles, texts, config, onDownloadStatusChange, downloadStatusIcons, onAndroidWritePermission, onLinkCopied, onPressResaleTicket, onRemoveTicketFromResaleSuccess, onRemoveTicketFromResaleError, moreButtonIcon, ticketActionsIcons, }) => {
9
+ const MyOrderDetails = forwardRef(({ data, styles, texts, config, onDownloadStatusChange, downloadStatusIcons, onAndroidWritePermission, onLinkCopied, onPressResaleTicket, onRemoveTicketFromResaleSuccess, onRemoveTicketFromResaleError, moreButtonIcon, ticketActionsIcons, }, ref) => {
10
+ //#region State
10
11
  const [isWriteStorageEnabled, setIsWriteStorageEnabled] = useState(undefined);
11
12
  const [isLinkCopied, setIsLinkCopied] = useState(false);
12
13
  const [downloadStatus, setDownloadStatus] = useState(undefined);
13
14
  const [orderInfo, setOrderInfo] = useState(data);
14
15
  const [isLoading, setIsLoading] = useState(false);
15
16
  const [selectedTicket, setSelectedTicket] = useState(undefined);
17
+ //#endregion State
16
18
  //#region refs
19
+ const sessionHandleRef = useRef(null);
17
20
  const myOrderDetailsCoreRef = useRef(null);
18
21
  const bottomSheetModalRef = useRef(null);
19
22
  //#endregion
20
23
  const handleOnDownloadStatusChange = useCallback((status) => {
21
24
  onDownloadStatusChange === null || onDownloadStatusChange === void 0 ? void 0 : onDownloadStatusChange(status);
22
25
  }, [onDownloadStatusChange]);
26
+ //#region Imperative Handler
27
+ useImperativeHandle(ref, () => ({
28
+ async refreshAccessToken(refreshToken) {
29
+ if (!sessionHandleRef.current) {
30
+ return {
31
+ accessTokenError: {
32
+ message: 'Session Handle ref is not initialized',
33
+ },
34
+ };
35
+ }
36
+ const { accessTokenError, accessTokenData } = await sessionHandleRef.current.refreshAccessToken(refreshToken);
37
+ return {
38
+ accessTokenData,
39
+ accessTokenError,
40
+ };
41
+ },
42
+ async reloadData() { },
43
+ async removeTicketFromResale() { },
44
+ async resaleTicket() { },
45
+ }));
46
+ //#endregion Imperative Handler
23
47
  //#region Handlers
24
48
  const handleOnPressTicketDownload = async ({ hash, pdfLink, }) => {
25
49
  const accessToken = await getData(LocalStorageKeys.ACCESS_TOKEN);
@@ -133,7 +157,7 @@ const MyOrderDetails = ({ data, styles, texts, config, onDownloadStatusChange, d
133
157
  onLinkCopied === null || onLinkCopied === void 0 ? void 0 : onLinkCopied(false);
134
158
  }, 3000);
135
159
  };
136
- //#endregion
160
+ //#endregion Handlers
137
161
  //#region Effects
138
162
  useEffect(() => {
139
163
  handleOnDownloadStatusChange(downloadStatus);
@@ -157,11 +181,12 @@ const MyOrderDetails = ({ data, styles, texts, config, onDownloadStatusChange, d
157
181
  }
158
182
  // eslint-disable-next-line react-hooks/exhaustive-deps
159
183
  }, [isWriteStorageEnabled]);
160
- //#endregion
161
- //#region Render
184
+ //#endregion Effects
185
+ //#region RENDER
162
186
  return (React.createElement(OrderDetailsCore, { ref: myOrderDetailsCoreRef },
163
- React.createElement(MyOrderDetailsView, { data: data, styles: styles, texts: texts, isLinkCopied: isLinkCopied, onPressCopyLink: handleOnPressCopyLink, onPressTicketDownload: handleOnPressTicketDownload, downloadStatus: downloadStatus, config: config, downloadStatusIcons: downloadStatusIcons, onPressResaleTicket: handleOnPressResaleTicket, onPressRemoveTicketFromResale: askToRemoveTicketFromResale, isLoading: isLoading, moreButtonIcon: moreButtonIcon, onTicketSelection: setSelectedTicket, selectedTicket: selectedTicket, onActionSelected: handleOnActionSelected, ticketActionsIcons: ticketActionsIcons, bottomSheetModalRef: bottomSheetModalRef })));
164
- //#endregion
165
- };
187
+ React.createElement(SessionHandle, { ref: sessionHandleRef },
188
+ React.createElement(MyOrderDetailsView, { data: data, styles: styles, texts: texts, isLinkCopied: isLinkCopied, onPressCopyLink: handleOnPressCopyLink, onPressTicketDownload: handleOnPressTicketDownload, downloadStatus: downloadStatus, config: config, downloadStatusIcons: downloadStatusIcons, onPressResaleTicket: handleOnPressResaleTicket, onPressRemoveTicketFromResale: askToRemoveTicketFromResale, isLoading: isLoading, moreButtonIcon: moreButtonIcon, onTicketSelection: setSelectedTicket, selectedTicket: selectedTicket, onActionSelected: handleOnActionSelected, ticketActionsIcons: ticketActionsIcons, bottomSheetModalRef: bottomSheetModalRef }))));
189
+ //#endregion RENDER
190
+ });
166
191
  export default MyOrderDetails;
167
192
  //# sourceMappingURL=MyOrderDetails.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MyOrderDetails.js","sourceRoot":"","sources":["../../../src/containers/myOrderDetails/MyOrderDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,aAAa,CAAA;AAC/B,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,KAAK,EAAE,EAAM,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3E,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM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CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAA;IAC3B,YAAY;IAEZ,gBAAgB;IAChB,OAAO,CACL,oBAAC,gBAAgB,IAAC,GAAG,EAAE,qBAAqB;QAC1C,oBAAC,kBAAkB,IACjB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,qBAAqB,EACtC,qBAAqB,EAAE,2BAA2B,EAClD,cAAc,EAAE,cAAc,EAC9B,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,mBAAmB,EACxC,mBAAmB,EAAE,yBAAyB,EAC9C,6BAA6B,EAAE,2BAA2B,EAC1D,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,sBAAsB,EACxC,kBAAkB,EAAE,kBAAkB,EACtC,mBAAmB,EAAE,mBAAmB,GACxC,CACe,CACpB,CAAA;IACD,YAAY;AACd,CAAC,CAAA;AAED,eAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"MyOrderDetails.js","sourceRoot":"","sources":["../../../src/containers/myOrderDetails/MyOrderDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,aAAa,CAAA;AAC/B,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,KAAK,EAAE,EACZ,UAAU,EACV,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAClE,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,YAAY,GAEb,MAAM,iBAAiB,CAAA;AAQxB,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAqB,MAAM,YAAY,CAAA;AAE/E,OAAO,EA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mB;AACrB,CAAC,CACF,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -1,4 +1,5 @@
1
- import { FC } from 'react';
1
+ import React from 'react';
2
+ import { SessionHandleType } from '../../core/Session/SessionCoreTypes';
2
3
  import { IMyOrdersProps } from './types';
3
- declare const MyOrders: FC<IMyOrdersProps>;
4
+ declare const MyOrders: React.ForwardRefExoticComponent<IMyOrdersProps & React.RefAttributes<SessionHandleType>>;
4
5
  export default MyOrders;
@@ -1,11 +1,11 @@
1
1
  import _map from 'lodash/map';
2
2
  import _sortBy from 'lodash/sortBy';
3
3
  import _uniqBy from 'lodash/uniqBy';
4
- import React, { useCallback, useEffect, useRef, useState } from 'react';
4
+ import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState, } from 'react';
5
5
  import { Alert } from 'react-native';
6
- import { MyOrdersCore } from '../../core';
6
+ import { MyOrdersCore, SessionHandle } from '../../core';
7
7
  import MyOrdersView from './MyOrdersView';
8
- const MyOrders = ({ onSelectOrder, onFetchOrderDetailsError, onFetchMyOrdersError, onFetchMyOrdersSuccess, onFetchOrderDetailsSuccess, onLoadingChange, styles, texts, config, }) => {
8
+ const MyOrders = forwardRef(({ onSelectOrder, onFetchOrderDetailsError, onFetchMyOrdersError, onFetchMyOrdersSuccess, onFetchOrderDetailsSuccess, onLoadingChange, styles, texts, config, }, ref) => {
9
9
  //#region State
10
10
  const [isLoading, setIsLoading] = useState(true);
11
11
  const [isGettingEventDetails, setIsGettingEventDetails] = useState(false);
@@ -19,6 +19,7 @@ const MyOrders = ({ onSelectOrder, onFetchOrderDetailsError, onFetchMyOrdersErro
19
19
  //#region Refs
20
20
  const currentPage = useRef(1);
21
21
  const myOrdersCoreRef = useRef(null);
22
+ const sessionHandleRef = useRef(null);
22
23
  //#endregion
23
24
  const showAlert = (text) => {
24
25
  if (config === null || config === void 0 ? void 0 : config.areAlertsEnabled) {
@@ -35,6 +36,7 @@ const MyOrders = ({ onSelectOrder, onFetchOrderDetailsError, onFetchMyOrdersErro
35
36
  }
36
37
  return true;
37
38
  };
39
+ //#region Fetch data
38
40
  const getOrdersAsync = async () => {
39
41
  if (!isMyOrdersCoreRefReady()) {
40
42
  return;
@@ -75,10 +77,31 @@ const MyOrders = ({ onSelectOrder, onFetchOrderDetailsError, onFetchMyOrdersErro
75
77
  const uniqOrders = _uniqBy([...myOrders, ...(fetchedOrders !== null && fetchedOrders !== void 0 ? fetchedOrders : [])], (item) => item.id);
76
78
  setMyOrders(uniqOrders);
77
79
  };
78
- useEffect(() => {
79
- getOrders();
80
- // eslint-disable-next-line react-hooks/exhaustive-deps
81
- }, [selectedEvent]);
80
+ //#endregion Fetch data
81
+ //#region Imperative Handler
82
+ useImperativeHandle(ref, () => ({
83
+ async refreshAccessToken(refreshToken) {
84
+ if (!sessionHandleRef.current) {
85
+ return {
86
+ accessTokenError: {
87
+ message: 'Session Handle ref is not initialized',
88
+ },
89
+ };
90
+ }
91
+ const { accessTokenError, accessTokenData } = await sessionHandleRef.current.refreshAccessToken(refreshToken);
92
+ if (!accessTokenError && (accessTokenData === null || accessTokenData === void 0 ? void 0 : accessTokenData.accessToken)) {
93
+ await getOrders();
94
+ }
95
+ return {
96
+ accessTokenData,
97
+ accessTokenError,
98
+ };
99
+ },
100
+ async reloadData() {
101
+ await getOrders();
102
+ },
103
+ }));
104
+ //#endregion Imperative Handler
82
105
  //#region Handlers
83
106
  const handleOnLoadingChange = useCallback((loading) => {
84
107
  onLoadingChange === null || onLoadingChange === void 0 ? void 0 : onLoadingChange(loading);
@@ -104,7 +127,8 @@ const MyOrders = ({ onSelectOrder, onFetchOrderDetailsError, onFetchMyOrdersErro
104
127
  setIsGettingEventDetails(true);
105
128
  const { orderDetailsData, orderDetailsError } = await myOrdersCoreRef.current.getOrderDetails(order.id);
106
129
  setIsGettingEventDetails(false);
107
- if ((!orderDetailsData || orderDetailsError) && onFetchOrderDetailsError) {
130
+ if ((!orderDetailsData || orderDetailsError) &&
131
+ onFetchOrderDetailsError) {
108
132
  showAlert((_a = orderDetailsError === null || orderDetailsError === void 0 ? void 0 : orderDetailsError.message) !== null && _a !== void 0 ? _a : 'Error fetching order details');
109
133
  return onFetchOrderDetailsError(orderDetailsError || {
110
134
  message: 'Order details returned no data',
@@ -127,9 +151,14 @@ const MyOrders = ({ onSelectOrder, onFetchOrderDetailsError, onFetchMyOrdersErro
127
151
  _fetchMyOrders();
128
152
  // eslint-disable-next-line react-hooks/exhaustive-deps
129
153
  }, []);
130
- //#endregion
154
+ useEffect(() => {
155
+ getOrders();
156
+ // eslint-disable-next-line react-hooks/exhaustive-deps
157
+ }, [selectedEvent]);
158
+ //#endregion useEffect
131
159
  return (React.createElement(MyOrdersCore, { ref: myOrdersCoreRef },
132
- React.createElement(MyOrdersView, { myEvents: myEvents, selectedEvent: selectedEvent, onChangeEvent: handleOnChangeEvent, myOrders: myOrders, onSelectOrder: handleOnSelectOrder, onRefresh: getOrders, isLoading: isLoading, isGettingEventDetails: isGettingEventDetails, styles: styles, config: config, onFetchMoreOrders: handleOnFetchMoreOrders, texts: texts })));
133
- };
160
+ React.createElement(SessionHandle, { ref: sessionHandleRef },
161
+ React.createElement(MyOrdersView, { myEvents: myEvents, selectedEvent: selectedEvent, onChangeEvent: handleOnChangeEvent, myOrders: myOrders, onSelectOrder: handleOnSelectOrder, onRefresh: getOrders, isLoading: isLoading, isGettingEventDetails: isGettingEventDetails, styles: styles, config: config, onFetchMoreOrders: handleOnFetchMoreOrders, texts: texts }))));
162
+ });
134
163
  export default MyOrders;
135
164
  //# sourceMappingURL=MyOrders.js.map