tf-checkout-react-native 1.0.27 → 1.0.29

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 (95) hide show
  1. package/README.md +425 -94
  2. package/android/.gradle/7.4/checksums/checksums.lock +0 -0
  3. package/android/.gradle/7.4/checksums/md5-checksums.bin +0 -0
  4. package/android/.gradle/7.4/checksums/sha1-checksums.bin +0 -0
  5. package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  6. package/android/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  7. package/android/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
  8. package/android/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  9. package/android/.gradle/7.4/fileChanges/last-build.bin +0 -0
  10. package/android/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
  11. package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  12. package/android/.gradle/7.4/fileHashes/resourceHashesCache.bin +0 -0
  13. package/android/.gradle/7.4/gc.properties +0 -0
  14. package/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
  15. package/android/.gradle/7.5.1/checksums/md5-checksums.bin +0 -0
  16. package/android/.gradle/7.5.1/checksums/sha1-checksums.bin +0 -0
  17. package/android/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  18. package/android/.gradle/7.5.1/dependencies-accessors/gc.properties +0 -0
  19. package/android/.gradle/7.5.1/executionHistory/executionHistory.lock +0 -0
  20. package/android/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
  21. package/android/.gradle/7.5.1/fileHashes/fileHashes.bin +0 -0
  22. package/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
  23. package/android/.gradle/7.5.1/gc.properties +0 -0
  24. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  25. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  26. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  27. package/android/.gradle/file-system.probe +0 -0
  28. package/android/.gradle/vcs-1/gc.properties +0 -0
  29. package/android/.idea/compiler.xml +6 -0
  30. package/android/.idea/gradle.xml +18 -0
  31. package/android/.idea/jarRepositories.xml +25 -0
  32. package/android/.idea/misc.xml +10 -0
  33. package/android/.idea/vcs.xml +6 -0
  34. package/android/build.gradle +5 -5
  35. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  36. package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  37. package/android/gradlew +234 -0
  38. package/android/gradlew.bat +89 -0
  39. package/android/local.properties +8 -0
  40. package/ios/TFCheckoutRNModule.xcodeproj/project.pbxproj +3 -3
  41. package/ios/TFCheckoutRNModule.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  42. package/ios/TFCheckoutRNModule.xcodeproj/project.xcworkspace/xcuserdata/jorgtz.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  43. package/ios/TFCheckoutRNModule.xcodeproj/xcshareddata/xcschemes/TFCheckoutRNModule.xcscheme +67 -0
  44. package/lib/api/ApiClient.d.ts +4 -3
  45. package/lib/api/ApiClient.js +66 -9
  46. package/lib/api/ApiClient.js.map +1 -1
  47. package/lib/api/Constants.js +1 -1
  48. package/lib/api/ErrorHandler.d.ts +3 -0
  49. package/lib/api/ErrorHandler.js +23 -0
  50. package/lib/api/ErrorHandler.js.map +1 -0
  51. package/lib/api/types.d.ts +113 -63
  52. package/lib/api/types.js.map +1 -1
  53. package/lib/components/dropdown/types.d.ts +1 -0
  54. package/lib/components/login/LoginView.js +0 -1
  55. package/lib/components/login/LoginView.js.map +1 -1
  56. package/lib/components/stripePayment/StripePayment.js.map +1 -1
  57. package/lib/components/stripePayment/types.d.ts +5 -4
  58. package/lib/containers/billingInfo/Billing.js +46 -17
  59. package/lib/containers/billingInfo/Billing.js.map +1 -1
  60. package/lib/containers/billingInfo/types.d.ts +2 -1
  61. package/lib/containers/checkout/Checkout.js +19 -20
  62. package/lib/containers/checkout/Checkout.js.map +1 -1
  63. package/lib/containers/checkout/styles.d.ts +2 -4
  64. package/lib/containers/checkout/styles.js +3 -5
  65. package/lib/containers/checkout/styles.js.map +1 -1
  66. package/lib/containers/checkout/types.d.ts +1 -1
  67. package/lib/containers/myOrders/MyOrders.js +67 -9
  68. package/lib/containers/myOrders/MyOrders.js.map +1 -1
  69. package/lib/containers/myOrders/MyOrdersView.js +30 -8
  70. package/lib/containers/myOrders/MyOrdersView.js.map +1 -1
  71. package/lib/containers/myOrders/types.d.ts +18 -0
  72. package/lib/containers/resetPassword/ResetPassword.js +0 -1
  73. package/lib/containers/resetPassword/ResetPassword.js.map +1 -1
  74. package/lib/core/MyOrdersCore/MyOrdersCore.js +6 -3
  75. package/lib/core/MyOrdersCore/MyOrdersCore.js.map +1 -1
  76. package/lib/core/MyOrdersCore/MyOrdersCoreTypes.d.ts +4 -2
  77. package/lib/core/TicketsCore/TicketsCore.js +4 -1
  78. package/lib/core/TicketsCore/TicketsCore.js.map +1 -1
  79. package/lib/core/TicketsCore/TicketsCoreTypes.d.ts +3 -2
  80. package/lib/helpers/LocalStorage.d.ts +1 -0
  81. package/lib/helpers/LocalStorage.js +3 -0
  82. package/lib/helpers/LocalStorage.js.map +1 -1
  83. package/lib/index.d.ts +3 -3
  84. package/lib/index.js.map +1 -1
  85. package/lib/types/IAccountTickets.d.ts +70 -0
  86. package/lib/types/IAccountTickets.js +2 -0
  87. package/lib/types/IAccountTickets.js.map +1 -0
  88. package/lib/types/ICountry.d.ts +5 -0
  89. package/lib/types/ICountry.js +2 -0
  90. package/lib/types/ICountry.js.map +1 -0
  91. package/lib/types/IEvent.d.ts +66 -55
  92. package/lib/types/index.d.ts +1 -0
  93. package/lib/types/index.js +1 -0
  94. package/lib/types/index.js.map +1 -1
  95. package/package.json +3 -3
package/README.md CHANGED
@@ -17,10 +17,10 @@ Configure [ReactNative environment](https://reactnative.dev/docs/environment-set
17
17
  ### Android
18
18
 
19
19
  - Android 5.0 (API level 21) and above
20
- - Gradle plugin version `4.2.2`
21
- - Gradle version `6.7.1`
22
- - Compile Sdk Version and Target Sdk Version `30`
23
- - Build Tools Version `30.0.2`
20
+ - Gradle plugin version `7.3.1`
21
+ - Gradle version `7.5.1`
22
+ - Compile Sdk Version and Target Sdk Version `33`
23
+ - Build Tools Version `33.0.0`
24
24
  - Java version `1.8`
25
25
  - Kotlin version `1.5.31`
26
26
 
@@ -34,7 +34,7 @@ To download the PDFs, add the `WRITE_EXTERNAL_STORAGE` permission to the Android
34
34
 
35
35
  ### iOS
36
36
 
37
- - Compatible with apps targeting iOS 11 or above.
37
+ - Compatible with apps targeting iOS `13.0` or above.
38
38
  - Pods version `1.10.1`
39
39
  - Command Line Tools version `13.0`
40
40
 
@@ -907,7 +907,11 @@ const sessionHandleRef = useRef<SessionHandleType>(null)
907
907
 
908
908
  // fetchCountries
909
909
  onFetchCountriesError?: (error: IError) => void
910
- onFetchCountriesSuccess?: () => void
910
+ onFetchCountriesSuccess?: (data: {
911
+ code: string
912
+ id: string
913
+ name: string
914
+ }[]) => void
911
915
 
912
916
  // fetchState
913
917
  onFetchStatesError?: (error: IError) => void
@@ -1309,40 +1313,66 @@ import { MyOrders, SessionHandleType } from 'tf-checkout-react-native'
1309
1313
  ref={SessionHandleType}
1310
1314
  onSelectOrder: (order: {
1311
1315
  order: {
1312
- header: {
1313
- isReferralDisabled: boolean
1314
- shareLink: string
1315
- total: string
1316
- salesReferred: string
1317
- },
1318
- items: [
1319
- {
1320
- name: string
1316
+ header: {
1321
1317
  currency: string
1322
- price: string
1323
- discount: string
1324
- quantity: string
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
1325
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
+ }
1326
1347
  },
1327
- {...}
1328
- ],
1329
- tickets: [
1330
- {
1331
- hash: string
1332
- ticketType: string
1333
- holderName?: string
1334
- holderEmail?: string
1335
- holderPhone?: string
1336
- status: string
1337
- pdfLink?: string
1338
- qrData?: string
1339
- isSellable?: boolean
1340
- description?: string
1341
- descriptionPlain?: string
1342
- },
1343
- {...}
1344
- ]
1345
- }
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
+ }
1346
1376
  }) => void
1347
1377
 
1348
1378
  onFetchMyOrdersSuccess?: (data: IMyOrdersData) => void
@@ -1353,23 +1383,78 @@ import { MyOrders, SessionHandleType } from 'tf-checkout-react-native'
1353
1383
 
1354
1384
  onLoadingChange?: (isLoading: boolean) => void
1355
1385
 
1356
- styles?: IMyOrdersStyles
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
+ }
1357
1404
  config?: {
1358
1405
  isEventsDropdownHidden?: boolean
1359
1406
  areActivityIndicatorsEnabled?: boolean
1360
1407
  areAlertsEnabled?: boolean
1408
+ isTimeFilterDropdownHidden?: boolean
1361
1409
  }
1362
1410
  texts?: {
1363
1411
  selectEventPlaceholder?: string
1412
+ selectTimeFilterPlaceholder?: string
1364
1413
  title?: string
1414
+ timeFilters?: {
1415
+ upcoming?: string
1416
+ ongoingAndUpcoming?: string
1417
+ ongoing?: string
1418
+ past?: string
1419
+ }
1365
1420
  }
1366
1421
  }
1367
1422
  ```
1368
1423
  IMyOrdersData
1369
1424
  ```ts
1370
1425
  {
1371
- events: IMyOrdersEvent[]
1372
- orders: IMyOrdersOrder[]
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
1373
1458
  filter?: string
1374
1459
  brandFilter?: string
1375
1460
  subBrands?: boolean
@@ -1385,20 +1470,47 @@ IMyOrderDetailsData
1385
1470
  ```ts
1386
1471
  {
1387
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
1388
1485
  isReferralDisabled: boolean
1486
+ isVenueHidden: boolean
1487
+ salesReferred: string
1389
1488
  shareLink: string
1489
+ timeZone: string
1390
1490
  total: string
1391
- salesReferred: 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
1392
1504
  }
1393
1505
  items?: {
1394
- isActive: boolean
1395
1506
  currency: string
1396
1507
  discount: string
1508
+ hash: string
1509
+ isActive: boolean
1397
1510
  name: string
1398
1511
  price: string
1399
1512
  quantity: string
1400
1513
  total: string
1401
- hash: string
1402
1514
  }[]
1403
1515
  tickets: {
1404
1516
  currency: string
@@ -1411,6 +1523,7 @@ IMyOrderDetailsData
1411
1523
  holderPhone?: string
1412
1524
  isOnSale: boolean
1413
1525
  isSellable: boolean
1526
+ isTable: boolean
1414
1527
  pdfLink: string
1415
1528
  qrData: string
1416
1529
  resaleFeeAmount: number
@@ -1905,6 +2018,8 @@ Exposes the following functions:
1905
2018
 
1906
2019
  `refreshAccessToken` : Refreshes expired access token.
1907
2020
 
2021
+ `getAccountTickets`: Fetches the tickets purchased for the user that logged in.
2022
+
1908
2023
  ```js
1909
2024
  {
1910
2025
  // Fetches the tickets from the event set in the config function. It receives a promoCode parameter to apply to the tickets.
@@ -1970,68 +2085,84 @@ Exposes the following functions:
1970
2085
  extraData?: any
1971
2086
  }
1972
2087
  eventData?: {
1973
- passwordProtected: boolean
1974
- passwordAuthenticated: boolean
1975
- name: string
1976
- description?: string
1977
- slug: string
1978
- redirectUrl?: string
1979
- facebookEvent?: string
1980
- title: string
1981
- relatedProducts: []
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
1982
2098
  country: string
2099
+ currency: {
2100
+ currency: string
2101
+ decimal_places: number
2102
+ symbol: string
2103
+ }
1983
2104
  date: string
1984
- startDate: string
2105
+ description?: string
2106
+ descriptions: any
2107
+ enableWaitingList: boolean
1985
2108
  endDate: string
1986
- timezone: string
2109
+ eventType: any
2110
+ facebookEvent?: string
2111
+ faq: []
2112
+ feeMode: string
2113
+ feesIncluded?: any
1987
2114
  formattedDate: string
1988
- venueCountry: string
1989
- venueCity?: string
1990
- venueState?: string
1991
- hideVenueUntil?: string
2115
+ fullTitleReplacement?: any
2116
+ hideTopInfluencers: boolean
1992
2117
  hideVenue?: boolean
1993
- venueName?: string
1994
- venueGooglePlaceId?: string
1995
- venueLatitude?: string
1996
- venueLongitude?: string
1997
- venuePostalCode?: string
1998
- venueStreet?: string
1999
- venueStreetNumber?: string
2000
- eventType: any
2001
- productImage: string
2118
+ hideVenueUntil?: string
2002
2119
  imageUrl: string
2003
2120
  imageUrlHd: string
2004
- backgroundImage: string
2005
- backgroundVideo?: string
2006
- twitterImage?: string
2121
+ imageURLs: any
2122
+ isTimeSlotEvent: boolean
2123
+ l10nLanguages: []
2124
+ minimumAge?: any
2125
+ name: string
2007
2126
  ogImage?: string
2008
- tags: []
2127
+ pagePixels?: string
2128
+ passwordAuthenticated: boolean
2129
+ passwordProtected: boolean
2009
2130
  preregEnabled: boolean
2010
- presalesStarted: boolean
2131
+ preregistered: []
2011
2132
  presalesEnded: boolean
2012
- salesStart?: string
2133
+ presalesStarted: boolean
2134
+ productImage: string
2135
+ redirectUrl?: string
2136
+ referrals: []
2137
+ referralsEnabled: boolean
2138
+ relatedProducts: []
2013
2139
  salesEnd: string
2014
- salesStarted: boolean
2015
2140
  salesEnded: boolean
2016
- feeMode: string
2017
- feesIncluded?: any
2018
- minimumAge?: any
2019
- enableWaitingList: boolean
2020
- alwaysShowWaitingList?: any
2021
- titleReplacementImage?: any
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
2022
2151
  titleReplacementHeight?: any
2152
+ titleReplacementImage?: any
2023
2153
  titleReplacementImageSvg?: any
2024
- fullTitleReplacement?: any
2025
- affirmAllowed: boolean
2026
- subHeading?: any
2027
- isTimeSlotEvent: boolean
2028
- preregistered: []
2029
- referralsEnabled: boolean
2030
- referrals: []
2031
- faq: []
2032
- l10nLanguages: []
2033
- imageURLs: any
2034
- descriptions: any
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
2035
2166
  }
2036
2167
  }>
2037
2168
 
@@ -2070,10 +2201,90 @@ Exposes the following functions:
2070
2201
  status: number
2071
2202
  }>
2072
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>
2073
2274
  }>
2074
2275
  }
2075
2276
  ```
2076
2277
 
2278
+ ## MyOrderRequestFromType
2279
+ ```
2280
+ MyOrderRequestFromType =
2281
+ | 'upcoming_events'
2282
+ | 'ongoing_and_upcoming_events'
2283
+ | 'ongoing_events'
2284
+ | 'past_events'
2285
+ | ''
2286
+ ```
2287
+
2077
2288
  Import the component from the library
2078
2289
 
2079
2290
  ```js
@@ -2249,9 +2460,11 @@ Exposes the following functions:
2249
2460
  message: string
2250
2461
  extraData?: any
2251
2462
  }
2252
- countriesData?: {
2253
- [key: number | string]: string
2254
- }
2463
+ countriesData?: {
2464
+ code: string
2465
+ id: string
2466
+ name: string
2467
+ }[]
2255
2468
  }>
2256
2469
 
2257
2470
  // Fetches the states list.
@@ -2508,6 +2721,7 @@ Exposes the following functions:
2508
2721
 
2509
2722
  `refreshAccessToken` Refreshes access token.
2510
2723
 
2724
+ `getAccountTickets`: Fetches the tickets purchased for the user that logged in.
2511
2725
 
2512
2726
  ```ts
2513
2727
  refreshAccessToken(refreshToken?: string): Promise<IFetchAccessTokenResponse>
@@ -2544,6 +2758,76 @@ getMyOrders(page: number, filter: string): Promise<{
2544
2758
  message: string
2545
2759
  extraData?: any
2546
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>
2547
2831
  }>
2548
2832
 
2549
2833
 
@@ -2589,6 +2873,17 @@ getOrderDetails(orderId: string): Promise<{
2589
2873
  }
2590
2874
  }>
2591
2875
  ```
2876
+
2877
+ ## MyOrderRequestFromType
2878
+ ```
2879
+ MyOrderRequestFromType =
2880
+ | 'upcoming_events'
2881
+ | 'ongoing_and_upcoming_events'
2882
+ | 'ongoing_events'
2883
+ | 'past_events'
2884
+ | ''
2885
+ ```
2886
+
2592
2887
  ---
2593
2888
  ## OrderDetailsCore
2594
2889
  Allows to re-sale the tickets or to remove them from the re-sale system.
@@ -2753,6 +3048,42 @@ Wrap your component with the Core component.
2753
3048
 
2754
3049
  # Changelog
2755
3050
 
3051
+ ## Version 1.0.29
3052
+
3053
+ - Update Stripe SDK to version 0.26.0.
3054
+ - Minimum iOS Deployment version = `13`.
3055
+ - Expose styles to customize Stripe Card Form:
3056
+ - cardStyle?: CardFormView.Styles
3057
+ ```
3058
+ {
3059
+ backgroundColor?: string;
3060
+ borderWidth?: number;
3061
+ borderColor?: string;
3062
+ borderRadius?: number;
3063
+ textColor?: string;
3064
+ fontSize?: number;
3065
+ placeholderColor?: string;
3066
+ cursorColor?: string;
3067
+ textErrorColor?: string;
3068
+ fontFamily?: string;
3069
+ }
3070
+ ```
3071
+ - cardContainer?: StyleProp<ViewStyle>
3072
+
3073
+
3074
+
3075
+ ## Version 1.0.28
3076
+ - Add `getAccountTickets` request in `MyOrdersCore` and `TicketsCore`, it will allow get Tickets from the logged-in user.
3077
+ - Add filter to `getMyOrders` request in `MyOrdersCore` component, to filter by time frame by passing the following string:
3078
+
3079
+ ```ts
3080
+ 'upcoming_events' | 'ongoing_and_upcoming_events' | 'ongoing_events' | 'past_events'
3081
+ ```
3082
+
3083
+ - Add more data to the `getMyOrders` success response.
3084
+ - Add more data to the `getOrderDetails` success response.
3085
+ - Add `ticketsSold` prop to Event's object in fetchEvent success data.
3086
+
2756
3087
  ## Version 1.0.27
2757
3088
  - 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.
2758
3089
 
File without changes