tf-checkout-react-native 1.0.26 → 1.0.28
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/README.md +473 -97
- package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4.2/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.4.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.4.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +18 -0
- package/android/.idea/jarRepositories.xml +25 -0
- package/android/.idea/misc.xml +10 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/local.properties +8 -0
- package/ios/TFCheckoutRNModule.xcodeproj/project.xcworkspace/xcuserdata/jorgegutierrez.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/TFCheckoutRNModule.xcodeproj/xcshareddata/xcschemes/TFCheckoutRNModule.xcscheme +67 -0
- package/lib/api/ApiClient.d.ts +10 -4
- package/lib/api/ApiClient.js +133 -13
- package/lib/api/ApiClient.js.map +1 -1
- package/lib/api/Constants.js +1 -1
- package/lib/api/ErrorHandler.d.ts +3 -0
- package/lib/api/ErrorHandler.js +23 -0
- package/lib/api/ErrorHandler.js.map +1 -0
- package/lib/api/types.d.ts +119 -60
- package/lib/api/types.js.map +1 -1
- package/lib/components/dropdown/types.d.ts +1 -0
- package/lib/components/login/LoginView.js +0 -1
- package/lib/components/login/LoginView.js.map +1 -1
- package/lib/containers/billingInfo/Billing.js +46 -17
- package/lib/containers/billingInfo/Billing.js.map +1 -1
- package/lib/containers/billingInfo/types.d.ts +2 -1
- package/lib/containers/checkout/Checkout.js +13 -4
- package/lib/containers/checkout/Checkout.js.map +1 -1
- package/lib/containers/checkout/types.d.ts +0 -1
- package/lib/containers/myOrders/MyOrders.js +74 -14
- package/lib/containers/myOrders/MyOrders.js.map +1 -1
- package/lib/containers/myOrders/MyOrdersView.js +30 -8
- package/lib/containers/myOrders/MyOrdersView.js.map +1 -1
- package/lib/containers/myOrders/types.d.ts +21 -3
- package/lib/containers/resetPassword/ResetPassword.js +0 -1
- package/lib/containers/resetPassword/ResetPassword.js.map +1 -1
- package/lib/containers/tickets/Tickets.js.map +1 -1
- package/lib/core/CheckoutCore/CheckoutCore.js +2 -2
- package/lib/core/CheckoutCore/CheckoutCore.js.map +1 -1
- package/lib/core/CheckoutCore/CheckoutCoreTypes.d.ts +1 -1
- package/lib/core/MyOrdersCore/MyOrdersCore.js +6 -3
- package/lib/core/MyOrdersCore/MyOrdersCore.js.map +1 -1
- package/lib/core/MyOrdersCore/MyOrdersCoreTypes.d.ts +4 -2
- package/lib/core/TicketsCore/TicketsCore.js +11 -1
- package/lib/core/TicketsCore/TicketsCore.js.map +1 -1
- package/lib/core/TicketsCore/TicketsCoreTypes.d.ts +3 -2
- package/lib/helpers/Config.d.ts +1 -1
- package/lib/helpers/LocalStorage.d.ts +1 -0
- package/lib/helpers/LocalStorage.js +3 -0
- package/lib/helpers/LocalStorage.js.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.js.map +1 -1
- package/lib/types/IAccountTickets.d.ts +70 -0
- package/lib/types/IAccountTickets.js +2 -0
- package/lib/types/IAccountTickets.js.map +1 -0
- package/lib/types/ICountry.d.ts +5 -0
- package/lib/types/ICountry.js +2 -0
- package/lib/types/ICountry.js.map +1 -0
- package/lib/types/IEvent.d.ts +66 -55
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +1 -0
- package/lib/types/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -142,7 +142,7 @@ const YourComponent: FC () => {
|
|
|
142
142
|
|
|
143
143
|
````ts
|
|
144
144
|
{
|
|
145
|
-
EVENT_ID
|
|
145
|
+
EVENT_ID?: string | number,
|
|
146
146
|
CLIENT?: string,
|
|
147
147
|
ENV?: 'PROD' | 'DEV' | 'STAG',
|
|
148
148
|
CLIENT_ID?: string,
|
|
@@ -594,7 +594,6 @@ const sessionHandleRef = useRef<SessionHandleType>(null)
|
|
|
594
594
|
|
|
595
595
|
<Tickets
|
|
596
596
|
ref={sessionHandleRef}
|
|
597
|
-
eventId={EVENT_ID}
|
|
598
597
|
onAddToCartSuccess={handleOnAddToCartSuccess} />
|
|
599
598
|
```
|
|
600
599
|
|
|
@@ -908,7 +907,11 @@ const sessionHandleRef = useRef<SessionHandleType>(null)
|
|
|
908
907
|
|
|
909
908
|
// fetchCountries
|
|
910
909
|
onFetchCountriesError?: (error: IError) => void
|
|
911
|
-
onFetchCountriesSuccess?: (
|
|
910
|
+
onFetchCountriesSuccess?: (data: {
|
|
911
|
+
code: string
|
|
912
|
+
id: string
|
|
913
|
+
name: string
|
|
914
|
+
}[]) => void
|
|
912
915
|
|
|
913
916
|
// fetchState
|
|
914
917
|
onFetchStatesError?: (error: IError) => void
|
|
@@ -1120,7 +1123,6 @@ const sessionHandleRef = useRef<SessionHandleType>(null)
|
|
|
1120
1123
|
|
|
1121
1124
|
<Checkout
|
|
1122
1125
|
ref={sessionHandleRef}
|
|
1123
|
-
eventId={EVENT_ID}
|
|
1124
1126
|
hash={hash}
|
|
1125
1127
|
total={total}
|
|
1126
1128
|
onPaymentSuccess={handleOnPaymentSuccess}
|
|
@@ -1136,7 +1138,6 @@ const sessionHandleRef = useRef<SessionHandleType>(null)
|
|
|
1136
1138
|
```js
|
|
1137
1139
|
{
|
|
1138
1140
|
ref?: SessionHandleType
|
|
1139
|
-
eventId: number
|
|
1140
1141
|
hash: string
|
|
1141
1142
|
total: string
|
|
1142
1143
|
|
|
@@ -1190,7 +1191,6 @@ const sessionHandleRef = useRef<SessionHandleType>(null)
|
|
|
1190
1191
|
```
|
|
1191
1192
|
| Property | Description |
|
|
1192
1193
|
|----------|-------------|
|
|
1193
|
-
| eventId | Same as used in the `Tickets` component. |
|
|
1194
1194
|
| hash | retrieved from the `onCheckoutSuccess` callback in the `BillingInfo`component. |
|
|
1195
1195
|
| total | retrieved from the `onCheckoutSuccess` callback in the `BillingInfo` component. |
|
|
1196
1196
|
| onPaymentSuccess | will handle the success in the payment process. Will return the `hash`. |
|
|
@@ -1201,7 +1201,7 @@ const sessionHandleRef = useRef<SessionHandleType>(null)
|
|
|
1201
1201
|
|
|
1202
1202
|
### styles
|
|
1203
1203
|
|
|
1204
|
-
```
|
|
1204
|
+
```ts
|
|
1205
1205
|
{
|
|
1206
1206
|
rootStyle?: ViewStyle
|
|
1207
1207
|
title?: StyleProp<TextStyle>
|
|
@@ -1252,7 +1252,7 @@ import { PurchaseConfirmation, SessionHandleType } from 'tf-checkout-react-nativ
|
|
|
1252
1252
|
|
|
1253
1253
|
Add it to the render function.
|
|
1254
1254
|
|
|
1255
|
-
```
|
|
1255
|
+
```ts
|
|
1256
1256
|
const sessionHandleRef = useRef<SessionHandleType>(null)
|
|
1257
1257
|
|
|
1258
1258
|
<PurchaseConfirmation
|
|
@@ -1308,67 +1308,231 @@ import { MyOrders, SessionHandleType } from 'tf-checkout-react-native'
|
|
|
1308
1308
|
|
|
1309
1309
|
### Props
|
|
1310
1310
|
|
|
1311
|
-
```
|
|
1311
|
+
```ts
|
|
1312
1312
|
{
|
|
1313
1313
|
ref={SessionHandleType}
|
|
1314
1314
|
onSelectOrder: (order: {
|
|
1315
1315
|
order: {
|
|
1316
|
-
|
|
1317
|
-
isReferralDisabled: boolean
|
|
1318
|
-
shareLink: string
|
|
1319
|
-
total: string
|
|
1320
|
-
salesReferred: string
|
|
1321
|
-
},
|
|
1322
|
-
items: [
|
|
1323
|
-
{
|
|
1324
|
-
name: string
|
|
1316
|
+
header: {
|
|
1325
1317
|
currency: string
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1318
|
+
date: string
|
|
1319
|
+
eventEndDate: string
|
|
1320
|
+
eventId: string
|
|
1321
|
+
eventName: string
|
|
1322
|
+
eventSalesEndDate: string
|
|
1323
|
+
eventSalesStartDate: string
|
|
1324
|
+
eventStartDate: string
|
|
1325
|
+
eventUrl: string
|
|
1326
|
+
hideVenueUntil: string | null
|
|
1327
|
+
id: string
|
|
1328
|
+
image: string
|
|
1329
|
+
isReferralDisabled: boolean
|
|
1330
|
+
isVenueHidden: boolean
|
|
1331
|
+
salesReferred: string
|
|
1332
|
+
shareLink: string
|
|
1333
|
+
timeZone: string
|
|
1329
1334
|
total: string
|
|
1335
|
+
venue: {
|
|
1336
|
+
city: string
|
|
1337
|
+
country: string
|
|
1338
|
+
googlePlaceId?: string
|
|
1339
|
+
latitude?: string
|
|
1340
|
+
longitude?: string
|
|
1341
|
+
name?: string
|
|
1342
|
+
postalCode?: string
|
|
1343
|
+
state: string
|
|
1344
|
+
street?: string
|
|
1345
|
+
streetNumber?: string
|
|
1346
|
+
}
|
|
1330
1347
|
},
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1348
|
+
items: [
|
|
1349
|
+
{
|
|
1350
|
+
name: string
|
|
1351
|
+
currency: string
|
|
1352
|
+
price: string
|
|
1353
|
+
discount: string
|
|
1354
|
+
quantity: string
|
|
1355
|
+
total: string
|
|
1356
|
+
},
|
|
1357
|
+
{...}
|
|
1358
|
+
],
|
|
1359
|
+
tickets: [
|
|
1360
|
+
{
|
|
1361
|
+
hash: string
|
|
1362
|
+
ticketType: string
|
|
1363
|
+
holderName?: string
|
|
1364
|
+
holderEmail?: string
|
|
1365
|
+
holderPhone?: string
|
|
1366
|
+
status: string
|
|
1367
|
+
pdfLink?: string
|
|
1368
|
+
qrData?: string
|
|
1369
|
+
isSellable?: boolean
|
|
1370
|
+
description?: string
|
|
1371
|
+
descriptionPlain?: string
|
|
1372
|
+
},
|
|
1373
|
+
{...}
|
|
1374
|
+
]
|
|
1375
|
+
}
|
|
1350
1376
|
}) => void
|
|
1351
1377
|
|
|
1352
|
-
onFetchMyOrdersSuccess?: () => void
|
|
1378
|
+
onFetchMyOrdersSuccess?: (data: IMyOrdersData) => void
|
|
1353
1379
|
onFetchMyOrdersError?: (error: IError) => void
|
|
1354
1380
|
|
|
1355
|
-
onFetchOrderDetailsSuccess?: () => void
|
|
1381
|
+
onFetchOrderDetailsSuccess?: (data: IMyOrderDetailsData) => void
|
|
1356
1382
|
onFetchOrderDetailsError?: (error: IError) => void
|
|
1357
1383
|
|
|
1358
1384
|
onLoadingChange?: (isLoading: boolean) => void
|
|
1359
1385
|
|
|
1360
|
-
styles?:
|
|
1386
|
+
styles?: {
|
|
1387
|
+
orderListItem?: IOrderListItemStyles
|
|
1388
|
+
safeArea?: StyleProp<ViewStyle>
|
|
1389
|
+
listContainer?: StyleProp<ViewStyle>
|
|
1390
|
+
eventsContainer?: StyleProp<ViewStyle>
|
|
1391
|
+
eventsTitle?: StyleProp<TextStyle>
|
|
1392
|
+
refreshControlColor?: ColorValue
|
|
1393
|
+
eventsDropdown?: IDropdownStyles
|
|
1394
|
+
rootContainer?: StyleProp<ViewStyle>
|
|
1395
|
+
eventsSelectionContainer?: StyleProp<ViewStyle>
|
|
1396
|
+
clearEventSelectionIcon?: StyleProp<ImageStyle>
|
|
1397
|
+
timeFilters?: {
|
|
1398
|
+
container?: StyleProp<ViewStyle>
|
|
1399
|
+
dropdown?: IDropdownStyles
|
|
1400
|
+
selectionContainer?: StyleProp<ViewStyle>
|
|
1401
|
+
clearSelectionIcon?: StyleProp<ImageStyle>
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1361
1404
|
config?: {
|
|
1362
1405
|
isEventsDropdownHidden?: boolean
|
|
1363
1406
|
areActivityIndicatorsEnabled?: boolean
|
|
1364
1407
|
areAlertsEnabled?: boolean
|
|
1408
|
+
isTimeFilterDropdownHidden?: boolean
|
|
1365
1409
|
}
|
|
1366
1410
|
texts?: {
|
|
1367
1411
|
selectEventPlaceholder?: string
|
|
1412
|
+
selectTimeFilterPlaceholder?: string
|
|
1368
1413
|
title?: string
|
|
1414
|
+
timeFilters?: {
|
|
1415
|
+
upcoming?: string
|
|
1416
|
+
ongoingAndUpcoming?: string
|
|
1417
|
+
ongoing?: string
|
|
1418
|
+
past?: string
|
|
1419
|
+
}
|
|
1369
1420
|
}
|
|
1370
1421
|
}
|
|
1371
1422
|
```
|
|
1423
|
+
IMyOrdersData
|
|
1424
|
+
```ts
|
|
1425
|
+
{
|
|
1426
|
+
events: {
|
|
1427
|
+
event_name: string
|
|
1428
|
+
url_name: string
|
|
1429
|
+
}[]
|
|
1430
|
+
orders: {
|
|
1431
|
+
amount: string
|
|
1432
|
+
currency: string
|
|
1433
|
+
date: string
|
|
1434
|
+
eventEndDate: string
|
|
1435
|
+
eventId: string
|
|
1436
|
+
eventName: string
|
|
1437
|
+
eventSalesEndDate: string
|
|
1438
|
+
eventSalesStartDate: string | null
|
|
1439
|
+
eventStartDate: string
|
|
1440
|
+
eventUrl: string
|
|
1441
|
+
hideVenue: boolean
|
|
1442
|
+
hideVenueUntil: string | null
|
|
1443
|
+
id: string
|
|
1444
|
+
image: string
|
|
1445
|
+
timezone: string
|
|
1446
|
+
venueCity: string
|
|
1447
|
+
venueCountry: string
|
|
1448
|
+
venueGooglePlaceId?: string
|
|
1449
|
+
venueLatitude?: string
|
|
1450
|
+
venueLongitude?: string
|
|
1451
|
+
venueName?: string
|
|
1452
|
+
venuePostalCode?: string
|
|
1453
|
+
venueState: string
|
|
1454
|
+
venueStreet?: string
|
|
1455
|
+
venueStreetNumber?: string
|
|
1456
|
+
}[]
|
|
1457
|
+
//Those mark with ? are only included if the venue is not hidden
|
|
1458
|
+
filter?: string
|
|
1459
|
+
brandFilter?: string
|
|
1460
|
+
subBrands?: boolean
|
|
1461
|
+
pagination: {
|
|
1462
|
+
page: number
|
|
1463
|
+
limit: number
|
|
1464
|
+
totalCount: number
|
|
1465
|
+
totalPages: number
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
```
|
|
1469
|
+
IMyOrderDetailsData
|
|
1470
|
+
```ts
|
|
1471
|
+
{
|
|
1472
|
+
header: {
|
|
1473
|
+
currency: string
|
|
1474
|
+
date: string
|
|
1475
|
+
eventEndDate: string
|
|
1476
|
+
eventId: string
|
|
1477
|
+
eventName: string
|
|
1478
|
+
eventSalesEndDate: string
|
|
1479
|
+
eventSalesStartDate: string
|
|
1480
|
+
eventStartDate: string
|
|
1481
|
+
eventUrl: string
|
|
1482
|
+
hideVenueUntil: string | null
|
|
1483
|
+
id: string
|
|
1484
|
+
image: string
|
|
1485
|
+
isReferralDisabled: boolean
|
|
1486
|
+
isVenueHidden: boolean
|
|
1487
|
+
salesReferred: string
|
|
1488
|
+
shareLink: string
|
|
1489
|
+
timeZone: string
|
|
1490
|
+
total: string
|
|
1491
|
+
venue: {
|
|
1492
|
+
city: string
|
|
1493
|
+
country: string
|
|
1494
|
+
googlePlaceId?: string
|
|
1495
|
+
latitude?: string
|
|
1496
|
+
longitude?: string
|
|
1497
|
+
name?: string
|
|
1498
|
+
postalCode?: string
|
|
1499
|
+
state: string
|
|
1500
|
+
street?: string
|
|
1501
|
+
streetNumber?: string
|
|
1502
|
+
}
|
|
1503
|
+
//Those mark with ? are only included if the venue is not hidden
|
|
1504
|
+
}
|
|
1505
|
+
items?: {
|
|
1506
|
+
currency: string
|
|
1507
|
+
discount: string
|
|
1508
|
+
hash: string
|
|
1509
|
+
isActive: boolean
|
|
1510
|
+
name: string
|
|
1511
|
+
price: string
|
|
1512
|
+
quantity: string
|
|
1513
|
+
total: string
|
|
1514
|
+
}[]
|
|
1515
|
+
tickets: {
|
|
1516
|
+
currency: string
|
|
1517
|
+
description: string
|
|
1518
|
+
descriptionPlain?: string
|
|
1519
|
+
eventName: string
|
|
1520
|
+
hash: string
|
|
1521
|
+
holderEmail?: string
|
|
1522
|
+
holderName: string
|
|
1523
|
+
holderPhone?: string
|
|
1524
|
+
isOnSale: boolean
|
|
1525
|
+
isSellable: boolean
|
|
1526
|
+
isTable: boolean
|
|
1527
|
+
pdfLink: string
|
|
1528
|
+
qrData: string
|
|
1529
|
+
resaleFeeAmount: number
|
|
1530
|
+
status: string
|
|
1531
|
+
ticketType: string
|
|
1532
|
+
ticketTypeHash: string
|
|
1533
|
+
}[]
|
|
1534
|
+
}
|
|
1535
|
+
```
|
|
1372
1536
|
|
|
1373
1537
|
### styles
|
|
1374
1538
|
```js
|
|
@@ -1854,6 +2018,8 @@ Exposes the following functions:
|
|
|
1854
2018
|
|
|
1855
2019
|
`refreshAccessToken` : Refreshes expired access token.
|
|
1856
2020
|
|
|
2021
|
+
`getAccountTickets`: Fetches the tickets purchased for the user that logged in.
|
|
2022
|
+
|
|
1857
2023
|
```js
|
|
1858
2024
|
{
|
|
1859
2025
|
// Fetches the tickets from the event set in the config function. It receives a promoCode parameter to apply to the tickets.
|
|
@@ -1919,68 +2085,84 @@ Exposes the following functions:
|
|
|
1919
2085
|
extraData?: any
|
|
1920
2086
|
}
|
|
1921
2087
|
eventData?: {
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
2088
|
+
affirmAllowed: boolean
|
|
2089
|
+
alwaysShowWaitingList?: any
|
|
2090
|
+
backgroundImage: string
|
|
2091
|
+
backgroundVideo?: string
|
|
2092
|
+
brandCheckoutPixels?: string
|
|
2093
|
+
brandConversionPixels?: string
|
|
2094
|
+
brandGoogleAnalyticsKey?: string
|
|
2095
|
+
brandPagePixels?: string
|
|
2096
|
+
checkoutPixels?: string
|
|
2097
|
+
conversionPixels?: string
|
|
1931
2098
|
country: string
|
|
2099
|
+
currency: {
|
|
2100
|
+
currency: string
|
|
2101
|
+
decimal_places: number
|
|
2102
|
+
symbol: string
|
|
2103
|
+
}
|
|
1932
2104
|
date: string
|
|
1933
|
-
|
|
2105
|
+
description?: string
|
|
2106
|
+
descriptions: any
|
|
2107
|
+
enableWaitingList: boolean
|
|
1934
2108
|
endDate: string
|
|
1935
|
-
|
|
2109
|
+
eventType: any
|
|
2110
|
+
facebookEvent?: string
|
|
2111
|
+
faq: []
|
|
2112
|
+
feeMode: string
|
|
2113
|
+
feesIncluded?: any
|
|
1936
2114
|
formattedDate: string
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
venueState?: string
|
|
1940
|
-
hideVenueUntil?: string
|
|
2115
|
+
fullTitleReplacement?: any
|
|
2116
|
+
hideTopInfluencers: boolean
|
|
1941
2117
|
hideVenue?: boolean
|
|
1942
|
-
|
|
1943
|
-
venueGooglePlaceId?: string
|
|
1944
|
-
venueLatitude?: string
|
|
1945
|
-
venueLongitude?: string
|
|
1946
|
-
venuePostalCode?: string
|
|
1947
|
-
venueStreet?: string
|
|
1948
|
-
venueStreetNumber?: string
|
|
1949
|
-
eventType: any
|
|
1950
|
-
productImage: string
|
|
2118
|
+
hideVenueUntil?: string
|
|
1951
2119
|
imageUrl: string
|
|
1952
2120
|
imageUrlHd: string
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
2121
|
+
imageURLs: any
|
|
2122
|
+
isTimeSlotEvent: boolean
|
|
2123
|
+
l10nLanguages: []
|
|
2124
|
+
minimumAge?: any
|
|
2125
|
+
name: string
|
|
1956
2126
|
ogImage?: string
|
|
1957
|
-
|
|
2127
|
+
pagePixels?: string
|
|
2128
|
+
passwordAuthenticated: boolean
|
|
2129
|
+
passwordProtected: boolean
|
|
1958
2130
|
preregEnabled: boolean
|
|
1959
|
-
|
|
2131
|
+
preregistered: []
|
|
1960
2132
|
presalesEnded: boolean
|
|
1961
|
-
|
|
2133
|
+
presalesStarted: boolean
|
|
2134
|
+
productImage: string
|
|
2135
|
+
redirectUrl?: string
|
|
2136
|
+
referrals: []
|
|
2137
|
+
referralsEnabled: boolean
|
|
2138
|
+
relatedProducts: []
|
|
1962
2139
|
salesEnd: string
|
|
1963
|
-
salesStarted: boolean
|
|
1964
2140
|
salesEnded: boolean
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
2141
|
+
salesStart?: string
|
|
2142
|
+
salesStarted: boolean
|
|
2143
|
+
slug: string
|
|
2144
|
+
startDate: string
|
|
2145
|
+
subHeading?: any
|
|
2146
|
+
tableMapEnabled: boolean
|
|
2147
|
+
tags: []
|
|
2148
|
+
ticketsSold: number
|
|
2149
|
+
timezone: string
|
|
2150
|
+
title: string
|
|
1971
2151
|
titleReplacementHeight?: any
|
|
2152
|
+
titleReplacementImage?: any
|
|
1972
2153
|
titleReplacementImageSvg?: any
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
2154
|
+
twitterImage?: string
|
|
2155
|
+
venueCity?: string
|
|
2156
|
+
venueCountry: string
|
|
2157
|
+
venueGooglePlaceId?: string
|
|
2158
|
+
venueLatitude?: string
|
|
2159
|
+
venueLongitude?: string
|
|
2160
|
+
venueName?: string
|
|
2161
|
+
venuePostalCode?: string
|
|
2162
|
+
venueState?: string
|
|
2163
|
+
venueStreet?: string
|
|
2164
|
+
venueStreetNumber?: string
|
|
2165
|
+
waitingListMaxQuantity: number
|
|
1984
2166
|
}
|
|
1985
2167
|
}>
|
|
1986
2168
|
|
|
@@ -2019,10 +2201,90 @@ Exposes the following functions:
|
|
|
2019
2201
|
status: number
|
|
2020
2202
|
}>
|
|
2021
2203
|
refreshAccessToken(refreshToken?: string): Promise<IFetchAccessTokenResponse>
|
|
2204
|
+
|
|
2205
|
+
getAccountTickets({
|
|
2206
|
+
page: number
|
|
2207
|
+
limit?: number
|
|
2208
|
+
filter?: string
|
|
2209
|
+
from?: MyOrderRequestFromType
|
|
2210
|
+
}): Promise<
|
|
2211
|
+
data?: {
|
|
2212
|
+
attributes: {
|
|
2213
|
+
page: number
|
|
2214
|
+
limit: number
|
|
2215
|
+
total_count: number
|
|
2216
|
+
total_pages: number
|
|
2217
|
+
filter?: any
|
|
2218
|
+
brand_filter: string
|
|
2219
|
+
sub_brands: boolean
|
|
2220
|
+
purchased_events: {
|
|
2221
|
+
url_name: string
|
|
2222
|
+
event_name: string
|
|
2223
|
+
}[]
|
|
2224
|
+
tickets: {
|
|
2225
|
+
id: string
|
|
2226
|
+
orderId: string
|
|
2227
|
+
hash: string
|
|
2228
|
+
qrData: string
|
|
2229
|
+
ticketType: string
|
|
2230
|
+
ticketTypeHash: string
|
|
2231
|
+
description?: any
|
|
2232
|
+
descriptionPlain?: any
|
|
2233
|
+
currency: string
|
|
2234
|
+
price: string
|
|
2235
|
+
retainAmountOnSale: number
|
|
2236
|
+
status: string
|
|
2237
|
+
holderName: string
|
|
2238
|
+
holderEmail?: any
|
|
2239
|
+
holderPhone?: any
|
|
2240
|
+
isTable: boolean
|
|
2241
|
+
isSellable: boolean
|
|
2242
|
+
isOnSale: boolean
|
|
2243
|
+
createdAt: Date
|
|
2244
|
+
pdfLink: string
|
|
2245
|
+
eventId: string
|
|
2246
|
+
eventName: string
|
|
2247
|
+
eventUrl: string
|
|
2248
|
+
eventTimezone: string
|
|
2249
|
+
eventStartDate: Date
|
|
2250
|
+
eventEndDate: Date
|
|
2251
|
+
eventSalesStartDate?: any
|
|
2252
|
+
eventSalesEndDate: Date
|
|
2253
|
+
eventImage: string
|
|
2254
|
+
eventBackgroundImage: string
|
|
2255
|
+
eventIsOnlineEvent: boolean
|
|
2256
|
+
venueCountry: string
|
|
2257
|
+
venueCity: string
|
|
2258
|
+
venueState: string
|
|
2259
|
+
hideVenueUntil?: any
|
|
2260
|
+
hideVenue: boolean
|
|
2261
|
+
venueName?: string //Optional
|
|
2262
|
+
venueGooglePlaceId?: string //Optional
|
|
2263
|
+
venueLatitude?: string //Optional
|
|
2264
|
+
venueLongitude?: string //Optional
|
|
2265
|
+
venuePostalCode?: string //Optional
|
|
2266
|
+
venueStreet?: string //Optional
|
|
2267
|
+
venueStreetNumber?: string //Optional
|
|
2268
|
+
}[]
|
|
2269
|
+
}
|
|
2270
|
+
relationships: any[]
|
|
2271
|
+
type: string
|
|
2272
|
+
},
|
|
2273
|
+
error?: IError>
|
|
2022
2274
|
}>
|
|
2023
2275
|
}
|
|
2024
2276
|
```
|
|
2025
2277
|
|
|
2278
|
+
## MyOrderRequestFromType
|
|
2279
|
+
```
|
|
2280
|
+
MyOrderRequestFromType =
|
|
2281
|
+
| 'upcoming_events'
|
|
2282
|
+
| 'ongoing_and_upcoming_events'
|
|
2283
|
+
| 'ongoing_events'
|
|
2284
|
+
| 'past_events'
|
|
2285
|
+
| ''
|
|
2286
|
+
```
|
|
2287
|
+
|
|
2026
2288
|
Import the component from the library
|
|
2027
2289
|
|
|
2028
2290
|
```js
|
|
@@ -2198,9 +2460,11 @@ Exposes the following functions:
|
|
|
2198
2460
|
message: string
|
|
2199
2461
|
extraData?: any
|
|
2200
2462
|
}
|
|
2201
|
-
countriesData?:
|
|
2202
|
-
|
|
2203
|
-
|
|
2463
|
+
countriesData?: {
|
|
2464
|
+
code: string
|
|
2465
|
+
id: string
|
|
2466
|
+
name: string
|
|
2467
|
+
}[]
|
|
2204
2468
|
}>
|
|
2205
2469
|
|
|
2206
2470
|
// Fetches the states list.
|
|
@@ -2292,8 +2556,8 @@ Exposes the following functions:
|
|
|
2292
2556
|
|
|
2293
2557
|
|
|
2294
2558
|
```ts
|
|
2295
|
-
// Get event conditions for the
|
|
2296
|
-
getEventConditions(
|
|
2559
|
+
// Get event conditions for the Event Id set on the setConfig.
|
|
2560
|
+
getEventConditions(): Promise<any>
|
|
2297
2561
|
|
|
2298
2562
|
// Get purchase order details for the current event.
|
|
2299
2563
|
getPurchaseOrderDetails(orderId: string): Promise<{
|
|
@@ -2457,6 +2721,7 @@ Exposes the following functions:
|
|
|
2457
2721
|
|
|
2458
2722
|
`refreshAccessToken` Refreshes access token.
|
|
2459
2723
|
|
|
2724
|
+
`getAccountTickets`: Fetches the tickets purchased for the user that logged in.
|
|
2460
2725
|
|
|
2461
2726
|
```ts
|
|
2462
2727
|
refreshAccessToken(refreshToken?: string): Promise<IFetchAccessTokenResponse>
|
|
@@ -2477,6 +2742,15 @@ getMyOrders(page: number, filter: string): Promise<{
|
|
|
2477
2742
|
eventUrl: string
|
|
2478
2743
|
image: string
|
|
2479
2744
|
}[]
|
|
2745
|
+
filter?: string
|
|
2746
|
+
brandFilter?: string
|
|
2747
|
+
subBrands?: boolean
|
|
2748
|
+
pagination: {
|
|
2749
|
+
page: number
|
|
2750
|
+
limit: number
|
|
2751
|
+
totalCount: number
|
|
2752
|
+
totalPages: number
|
|
2753
|
+
}
|
|
2480
2754
|
}
|
|
2481
2755
|
|
|
2482
2756
|
myOrdersError?: {
|
|
@@ -2484,6 +2758,76 @@ getMyOrders(page: number, filter: string): Promise<{
|
|
|
2484
2758
|
message: string
|
|
2485
2759
|
extraData?: any
|
|
2486
2760
|
}
|
|
2761
|
+
|
|
2762
|
+
getAccountTickets({
|
|
2763
|
+
page: number
|
|
2764
|
+
limit?: number
|
|
2765
|
+
filter?: string
|
|
2766
|
+
from?: MyOrderRequestFromType
|
|
2767
|
+
}): Promise<
|
|
2768
|
+
data?: {
|
|
2769
|
+
attributes: {
|
|
2770
|
+
page: number
|
|
2771
|
+
limit: number
|
|
2772
|
+
total_count: number
|
|
2773
|
+
total_pages: number
|
|
2774
|
+
filter?: any
|
|
2775
|
+
brand_filter: string
|
|
2776
|
+
sub_brands: boolean
|
|
2777
|
+
purchased_events: {
|
|
2778
|
+
url_name: string
|
|
2779
|
+
event_name: string
|
|
2780
|
+
}[]
|
|
2781
|
+
tickets: {
|
|
2782
|
+
id: string
|
|
2783
|
+
orderId: string
|
|
2784
|
+
hash: string
|
|
2785
|
+
qrData: string
|
|
2786
|
+
ticketType: string
|
|
2787
|
+
ticketTypeHash: string
|
|
2788
|
+
description?: any
|
|
2789
|
+
descriptionPlain?: any
|
|
2790
|
+
currency: string
|
|
2791
|
+
price: string
|
|
2792
|
+
retainAmountOnSale: number
|
|
2793
|
+
status: string
|
|
2794
|
+
holderName: string
|
|
2795
|
+
holderEmail?: any
|
|
2796
|
+
holderPhone?: any
|
|
2797
|
+
isTable: boolean
|
|
2798
|
+
isSellable: boolean
|
|
2799
|
+
isOnSale: boolean
|
|
2800
|
+
createdAt: Date
|
|
2801
|
+
pdfLink: string
|
|
2802
|
+
eventId: string
|
|
2803
|
+
eventName: string
|
|
2804
|
+
eventUrl: string
|
|
2805
|
+
eventTimezone: string
|
|
2806
|
+
eventStartDate: Date
|
|
2807
|
+
eventEndDate: Date
|
|
2808
|
+
eventSalesStartDate?: any
|
|
2809
|
+
eventSalesEndDate: Date
|
|
2810
|
+
eventImage: string
|
|
2811
|
+
eventBackgroundImage: string
|
|
2812
|
+
eventIsOnlineEvent: boolean
|
|
2813
|
+
venueCountry: string
|
|
2814
|
+
venueCity: string
|
|
2815
|
+
venueState: string
|
|
2816
|
+
hideVenueUntil?: any
|
|
2817
|
+
hideVenue: boolean
|
|
2818
|
+
venueName?: string //Optional
|
|
2819
|
+
venueGooglePlaceId?: string //Optional
|
|
2820
|
+
venueLatitude?: string //Optional
|
|
2821
|
+
venueLongitude?: string //Optional
|
|
2822
|
+
venuePostalCode?: string //Optional
|
|
2823
|
+
venueStreet?: string //Optional
|
|
2824
|
+
venueStreetNumber?: string //Optional
|
|
2825
|
+
}[]
|
|
2826
|
+
}
|
|
2827
|
+
relationships: any[]
|
|
2828
|
+
type: string
|
|
2829
|
+
},
|
|
2830
|
+
error?: IError>
|
|
2487
2831
|
}>
|
|
2488
2832
|
|
|
2489
2833
|
|
|
@@ -2529,6 +2873,17 @@ getOrderDetails(orderId: string): Promise<{
|
|
|
2529
2873
|
}
|
|
2530
2874
|
}>
|
|
2531
2875
|
```
|
|
2876
|
+
|
|
2877
|
+
## MyOrderRequestFromType
|
|
2878
|
+
```
|
|
2879
|
+
MyOrderRequestFromType =
|
|
2880
|
+
| 'upcoming_events'
|
|
2881
|
+
| 'ongoing_and_upcoming_events'
|
|
2882
|
+
| 'ongoing_events'
|
|
2883
|
+
| 'past_events'
|
|
2884
|
+
| ''
|
|
2885
|
+
```
|
|
2886
|
+
|
|
2532
2887
|
---
|
|
2533
2888
|
## OrderDetailsCore
|
|
2534
2889
|
Allows to re-sale the tickets or to remove them from the re-sale system.
|
|
@@ -2693,6 +3048,27 @@ Wrap your component with the Core component.
|
|
|
2693
3048
|
|
|
2694
3049
|
# Changelog
|
|
2695
3050
|
|
|
3051
|
+
## Version 1.0.28
|
|
3052
|
+
- Add `getAccountTickets` request in `MyOrdersCore` and `TicketsCore`, it will allow get Tickets from the logged-in user.
|
|
3053
|
+
- Add filter to `getMyOrders` request in `MyOrdersCore` component, to filter by time frame by passing the following string:
|
|
3054
|
+
|
|
3055
|
+
```ts
|
|
3056
|
+
'upcoming_events' | 'ongoing_and_upcoming_events' | 'ongoing_events' | 'past_events'
|
|
3057
|
+
```
|
|
3058
|
+
|
|
3059
|
+
- Add more data to the `getMyOrders` success response.
|
|
3060
|
+
- Add more data to the `getOrderDetails` success response.
|
|
3061
|
+
- Add `ticketsSold` prop to Event's object in fetchEvent success data.
|
|
3062
|
+
|
|
3063
|
+
## Version 1.0.27
|
|
3064
|
+
- Make `EVENT_ID` optional in the `setConfig` function. An error will be returned when `EVENT_ID` is not set and trying to make a request that requires it.
|
|
3065
|
+
|
|
3066
|
+
- Remove `eventId` prop from `Checkout UI` component in favor of use the one on the Config.
|
|
3067
|
+
|
|
3068
|
+
- Add missing pagination data in `onFetchMyOrdersSuccess` response.
|
|
3069
|
+
|
|
3070
|
+
- Add missing success data in `onFetchOrderDetailsSuccess` response.
|
|
3071
|
+
|
|
2696
3072
|
## Version 1.0.26
|
|
2697
3073
|
- Add the possibility to remove all of the following Billing/Street Address fields from free tickets:
|
|
2698
3074
|
- Billing Street Address
|
|
@@ -2703,7 +3079,7 @@ Wrap your component with the Core component.
|
|
|
2703
3079
|
|
|
2704
3080
|
- Update `addToCart` success response to include:
|
|
2705
3081
|
```
|
|
2706
|
-
|
|
3082
|
+
isTicketFree?: boolean
|
|
2707
3083
|
isPhoneHidden?: boolean
|
|
2708
3084
|
```
|
|
2709
3085
|
|