@sellout/models 0.0.384 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{src/schemas → mongo}/Address.ts +57 -62
- package/{src/schemas → mongo}/Metrics.ts +0 -6
- package/package.json +4 -25
- package/{src/proto → proto}/artist.proto +7 -21
- package/{src/proto → proto}/broadcast.proto +13 -50
- package/{src/proto → proto}/common.proto +59 -76
- package/proto/email.proto +179 -0
- package/{src/proto → proto}/error.proto +0 -1
- package/proto/event.proto +270 -0
- package/{src/proto → proto}/fee.proto +0 -71
- package/{src/proto → proto}/file-upload.proto +0 -2
- package/proto/order.proto +272 -0
- package/{src/proto → proto}/organization.proto +1 -58
- package/{src/proto → proto}/role.proto +4 -48
- package/{src/proto → proto}/seating.proto +0 -42
- package/proto/stripe.proto +181 -0
- package/proto/task.proto +39 -0
- package/proto/twilio.proto +43 -0
- package/{src/proto → proto}/user-profile.proto +2 -48
- package/{src/proto → proto}/user.proto +1 -204
- package/{src/proto → proto}/venue.proto +10 -21
- package/utils/EventUtil.ts +186 -0
- package/utils/FeeUtil.ts +34 -0
- package/utils/OrderUtil.ts +226 -0
- package/.dist/enums/ContactsScreenEnum.d.ts +0 -5
- package/.dist/enums/ContactsScreenEnum.js +0 -10
- package/.dist/enums/ContactsScreenEnum.js.map +0 -1
- package/.dist/enums/CustomFieldTypeEnum.d.ts +0 -6
- package/.dist/enums/CustomFieldTypeEnum.js +0 -11
- package/.dist/enums/CustomFieldTypeEnum.js.map +0 -1
- package/.dist/enums/DefaultArtistImageUrls.d.ts +0 -5
- package/.dist/enums/DefaultArtistImageUrls.js +0 -11
- package/.dist/enums/DefaultArtistImageUrls.js.map +0 -1
- package/.dist/enums/DefaultEventImageUrls.d.ts +0 -4
- package/.dist/enums/DefaultEventImageUrls.js +0 -10
- package/.dist/enums/DefaultEventImageUrls.js.map +0 -1
- package/.dist/enums/DefaultVenueImageUrls.d.ts +0 -3
- package/.dist/enums/DefaultVenueImageUrls.js +0 -9
- package/.dist/enums/DefaultVenueImageUrls.js.map +0 -1
- package/.dist/enums/DropDownEnum.d.ts +0 -3
- package/.dist/enums/DropDownEnum.js +0 -8
- package/.dist/enums/DropDownEnum.js.map +0 -1
- package/.dist/enums/EPurchasePortalModes.d.ts +0 -8
- package/.dist/enums/EPurchasePortalModes.js +0 -15
- package/.dist/enums/EPurchasePortalModes.js.map +0 -1
- package/.dist/enums/EPurchasePortalStatus.d.ts +0 -4
- package/.dist/enums/EPurchasePortalStatus.js +0 -9
- package/.dist/enums/EPurchasePortalStatus.js.map +0 -1
- package/.dist/enums/OrderChannelEnum.d.ts +0 -4
- package/.dist/enums/OrderChannelEnum.js +0 -10
- package/.dist/enums/OrderChannelEnum.js.map +0 -1
- package/.dist/enums/OrderItemTypeEnum.d.ts +0 -4
- package/.dist/enums/OrderItemTypeEnum.js +0 -10
- package/.dist/enums/OrderItemTypeEnum.js.map +0 -1
- package/.dist/enums/OrderShareTimestamp.d.ts +0 -6
- package/.dist/enums/OrderShareTimestamp.js +0 -11
- package/.dist/enums/OrderShareTimestamp.js.map +0 -1
- package/.dist/enums/PaymentMethodTypeEnum.d.ts +0 -7
- package/.dist/enums/PaymentMethodTypeEnum.js +0 -12
- package/.dist/enums/PaymentMethodTypeEnum.js.map +0 -1
- package/.dist/enums/TierStatusEnum.d.ts +0 -5
- package/.dist/enums/TierStatusEnum.js +0 -10
- package/.dist/enums/TierStatusEnum.js.map +0 -1
- package/.dist/graphql/fragments/event.fragment.d.ts +0 -22
- package/.dist/graphql/fragments/event.fragment.js +0 -347
- package/.dist/graphql/fragments/event.fragment.js.map +0 -1
- package/.dist/graphql/fragments/order.fragment.d.ts +0 -10
- package/.dist/graphql/fragments/order.fragment.js +0 -99
- package/.dist/graphql/fragments/order.fragment.js.map +0 -1
- package/.dist/graphql/fragments/season.fragment.d.ts +0 -23
- package/.dist/graphql/fragments/season.fragment.js +0 -341
- package/.dist/graphql/fragments/season.fragment.js.map +0 -1
- package/.dist/graphql/links/debounceLink.d.ts +0 -3
- package/.dist/graphql/links/debounceLink.js +0 -9
- package/.dist/graphql/links/debounceLink.js.map +0 -1
- package/.dist/graphql/mutations/acceptRole.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/acceptRole.mutation.js +0 -18
- package/.dist/graphql/mutations/acceptRole.mutation.js.map +0 -1
- package/.dist/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.js +0 -10
- package/.dist/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.js.map +0 -1
- package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.js +0 -19
- package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.js.map +0 -1
- package/.dist/graphql/mutations/batchPrintBreakApartOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/batchPrintBreakApartOrder.mutation.js +0 -59
- package/.dist/graphql/mutations/batchPrintBreakApartOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/breakApartOrder.d.ts +0 -2
- package/.dist/graphql/mutations/breakApartOrder.js +0 -47
- package/.dist/graphql/mutations/breakApartOrder.js.map +0 -1
- package/.dist/graphql/mutations/breakApartSeasonOrder.d.ts +0 -2
- package/.dist/graphql/mutations/breakApartSeasonOrder.js +0 -55
- package/.dist/graphql/mutations/breakApartSeasonOrder.js.map +0 -1
- package/.dist/graphql/mutations/cancelOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/cancelOrder.mutation.js +0 -12
- package/.dist/graphql/mutations/cancelOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/cancelTickets.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/cancelTickets.mutation.js +0 -20
- package/.dist/graphql/mutations/cancelTickets.mutation.js.map +0 -1
- package/.dist/graphql/mutations/connectStripe.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/connectStripe.mutation.js +0 -10
- package/.dist/graphql/mutations/connectStripe.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createArtist.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createArtist.mutation.js +0 -41
- package/.dist/graphql/mutations/createArtist.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createContacts.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createContacts.mutation.js +0 -10
- package/.dist/graphql/mutations/createContacts.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createEvent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createEvent.mutation.js +0 -93
- package/.dist/graphql/mutations/createEvent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.js +0 -39
- package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createFee.mutation.js +0 -28
- package/.dist/graphql/mutations/createFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createOrder.mutation.js +0 -56
- package/.dist/graphql/mutations/createOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createOrderPaymentIntent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createOrderPaymentIntent.mutation.js +0 -13
- package/.dist/graphql/mutations/createOrderPaymentIntent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createOrganisation.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createOrganisation.mutation.js +0 -13
- package/.dist/graphql/mutations/createOrganisation.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createOrganizationFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createOrganizationFee.mutation.js +0 -29
- package/.dist/graphql/mutations/createOrganizationFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createPlatformFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createPlatformFee.mutation.js +0 -29
- package/.dist/graphql/mutations/createPlatformFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createRole.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createRole.mutation.js +0 -16
- package/.dist/graphql/mutations/createRole.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createSeason.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createSeason.mutation.js +0 -82
- package/.dist/graphql/mutations/createSeason.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createSeasonOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createSeasonOrder.mutation.js +0 -62
- package/.dist/graphql/mutations/createSeasonOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js +0 -15
- package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createStripeSetupIntent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createStripeSetupIntent.mutation.js +0 -10
- package/.dist/graphql/mutations/createStripeSetupIntent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createStripeTerminalConnectionToken.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createStripeTerminalConnectionToken.mutation.js +0 -10
- package/.dist/graphql/mutations/createStripeTerminalConnectionToken.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createVenue.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createVenue.mutation.js +0 -33
- package/.dist/graphql/mutations/createVenue.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createWaitList.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createWaitList.mutation.js +0 -12
- package/.dist/graphql/mutations/createWaitList.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createWebFlowSite.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createWebFlowSite.mutation.js +0 -39
- package/.dist/graphql/mutations/createWebFlowSite.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteEvent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteEvent.mutation.js +0 -22
- package/.dist/graphql/mutations/deleteEvent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.js +0 -10
- package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteFee.mutation.js +0 -10
- package/.dist/graphql/mutations/deleteFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteOrganizationFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteOrganizationFee.mutation.js +0 -10
- package/.dist/graphql/mutations/deleteOrganizationFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deletePlatformFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deletePlatformFee.mutation.js +0 -10
- package/.dist/graphql/mutations/deletePlatformFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteRole.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteRole.mutation.js +0 -10
- package/.dist/graphql/mutations/deleteRole.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteSecondaryEmail.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteSecondaryEmail.mutation.js +0 -18
- package/.dist/graphql/mutations/deleteSecondaryEmail.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteStripeTerminalReader.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteStripeTerminalReader.mutation.js +0 -10
- package/.dist/graphql/mutations/deleteStripeTerminalReader.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteSubscription.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteSubscription.mutation.js +0 -13
- package/.dist/graphql/mutations/deleteSubscription.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteSuperAdminOrg.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteSuperAdminOrg.mutation.js +0 -10
- package/.dist/graphql/mutations/deleteSuperAdminOrg.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteTicketHold.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteTicketHold.mutation.js +0 -13
- package/.dist/graphql/mutations/deleteTicketHold.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteUnverifiedUser.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteUnverifiedUser.mutation.js +0 -11
- package/.dist/graphql/mutations/deleteUnverifiedUser.mutation.js.map +0 -1
- package/.dist/graphql/mutations/duplicateEvent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/duplicateEvent.mutation.js +0 -90
- package/.dist/graphql/mutations/duplicateEvent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/eventEmailTemplate.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/eventEmailTemplate.mutation.js +0 -10
- package/.dist/graphql/mutations/eventEmailTemplate.mutation.js.map +0 -1
- package/.dist/graphql/mutations/forgotPassword.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/forgotPassword.mutation.js +0 -10
- package/.dist/graphql/mutations/forgotPassword.mutation.js.map +0 -1
- package/.dist/graphql/mutations/generateActivityReport.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/generateActivityReport.mutation.js +0 -15
- package/.dist/graphql/mutations/generateActivityReport.mutation.js.map +0 -1
- package/.dist/graphql/mutations/generateEventQRCode.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/generateEventQRCode.mutation.js +0 -10
- package/.dist/graphql/mutations/generateEventQRCode.mutation.js.map +0 -1
- package/.dist/graphql/mutations/generateOrderReport.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/generateOrderReport.mutation.js +0 -13
- package/.dist/graphql/mutations/generateOrderReport.mutation.js.map +0 -1
- package/.dist/graphql/mutations/generateUserProfileReport.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/generateUserProfileReport.mutation.js +0 -13
- package/.dist/graphql/mutations/generateUserProfileReport.mutation.js.map +0 -1
- package/.dist/graphql/mutations/holdTicket.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/holdTicket.mutation.js +0 -12
- package/.dist/graphql/mutations/holdTicket.mutation.js.map +0 -1
- package/.dist/graphql/mutations/login.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/login.mutation.js +0 -20
- package/.dist/graphql/mutations/login.mutation.js.map +0 -1
- package/.dist/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.js +0 -18
- package/.dist/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.js.map +0 -1
- package/.dist/graphql/mutations/multipleBreakApartOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/multipleBreakApartOrder.mutation.js +0 -59
- package/.dist/graphql/mutations/multipleBreakApartOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/multipleBreakApartSeasonOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/multipleBreakApartSeasonOrder.mutation.js +0 -64
- package/.dist/graphql/mutations/multipleBreakApartSeasonOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/orderIntegrationUpdate.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/orderIntegrationUpdate.mutation.js +0 -12
- package/.dist/graphql/mutations/orderIntegrationUpdate.mutation.js.map +0 -1
- package/.dist/graphql/mutations/publishEvent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/publishEvent.mutation.js +0 -105
- package/.dist/graphql/mutations/publishEvent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/publishSeason.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/publishSeason.mutation.js +0 -82
- package/.dist/graphql/mutations/publishSeason.mutation.js.map +0 -1
- package/.dist/graphql/mutations/refundOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/refundOrder.mutation.js +0 -143
- package/.dist/graphql/mutations/refundOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/register.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/register.mutation.js +0 -40
- package/.dist/graphql/mutations/register.mutation.js.map +0 -1
- package/.dist/graphql/mutations/registerStripeTerminalReader.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/registerStripeTerminalReader.mutation.js +0 -18
- package/.dist/graphql/mutations/registerStripeTerminalReader.mutation.js.map +0 -1
- package/.dist/graphql/mutations/remapWebFlowSite.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/remapWebFlowSite.mutation.js +0 -37
- package/.dist/graphql/mutations/remapWebFlowSite.mutation.js.map +0 -1
- package/.dist/graphql/mutations/resetStripeConnection.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/resetStripeConnection.mutation.js +0 -10
- package/.dist/graphql/mutations/resetStripeConnection.mutation.js.map +0 -1
- package/.dist/graphql/mutations/resetUserPassword.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/resetUserPassword.mutation.js +0 -10
- package/.dist/graphql/mutations/resetUserPassword.mutation.js.map +0 -1
- package/.dist/graphql/mutations/resetUserPasswordInApp.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/resetUserPasswordInApp.mutation.js +0 -10
- package/.dist/graphql/mutations/resetUserPasswordInApp.mutation.js.map +0 -1
- package/.dist/graphql/mutations/salesReport.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/salesReport.mutation.js +0 -12
- package/.dist/graphql/mutations/salesReport.mutation.js.map +0 -1
- package/.dist/graphql/mutations/scanOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/scanOrder.mutation.js +0 -22
- package/.dist/graphql/mutations/scanOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/sendOrderReceiptEmail.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/sendOrderReceiptEmail.mutation.js +0 -10
- package/.dist/graphql/mutations/sendOrderReceiptEmail.mutation.js.map +0 -1
- package/.dist/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.js +0 -10
- package/.dist/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.js.map +0 -1
- package/.dist/graphql/mutations/sendUserEmailVerification.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/sendUserEmailVerification.mutation.js +0 -12
- package/.dist/graphql/mutations/sendUserEmailVerification.mutation.js.map +0 -1
- package/.dist/graphql/mutations/sendUserPhoneAuthentication.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/sendUserPhoneAuthentication.mutation.js +0 -10
- package/.dist/graphql/mutations/sendUserPhoneAuthentication.mutation.js.map +0 -1
- package/.dist/graphql/mutations/sendUserPhoneVerification.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/sendUserPhoneVerification.mutation.js +0 -12
- package/.dist/graphql/mutations/sendUserPhoneVerification.mutation.js.map +0 -1
- package/.dist/graphql/mutations/setUserOrgContextId.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/setUserOrgContextId.mutation.js +0 -12
- package/.dist/graphql/mutations/setUserOrgContextId.mutation.js.map +0 -1
- package/.dist/graphql/mutations/setUserPassword.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/setUserPassword.mutation.js +0 -12
- package/.dist/graphql/mutations/setUserPassword.mutation.js.map +0 -1
- package/.dist/graphql/mutations/sharingTicket.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/sharingTicket.mutation.js +0 -12
- package/.dist/graphql/mutations/sharingTicket.mutation.js.map +0 -1
- package/.dist/graphql/mutations/sharingTicketStatusChange.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/sharingTicketStatusChange.mutation.js +0 -12
- package/.dist/graphql/mutations/sharingTicketStatusChange.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateArtist.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateArtist.mutation.js +0 -41
- package/.dist/graphql/mutations/updateArtist.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateBasicUserInfo.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateBasicUserInfo.mutation.js +0 -12
- package/.dist/graphql/mutations/updateBasicUserInfo.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateContact.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateContact.mutation.js +0 -17
- package/.dist/graphql/mutations/updateContact.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateEvent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateEvent.mutation.js +0 -102
- package/.dist/graphql/mutations/updateEvent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.js +0 -29
- package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateFee.mutation.js +0 -27
- package/.dist/graphql/mutations/updateFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateGuestOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateGuestOrder.mutation.js +0 -13
- package/.dist/graphql/mutations/updateGuestOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateOrder.mutation.js +0 -13
- package/.dist/graphql/mutations/updateOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateOrgEmailWebhook.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateOrgEmailWebhook.mutation.js +0 -10
- package/.dist/graphql/mutations/updateOrgEmailWebhook.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateOrganistion.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateOrganistion.mutation.js +0 -12
- package/.dist/graphql/mutations/updateOrganistion.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateOrganization.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateOrganization.mutation.js +0 -20
- package/.dist/graphql/mutations/updateOrganization.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateOrganizationFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateOrganizationFee.mutation.js +0 -28
- package/.dist/graphql/mutations/updateOrganizationFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updatePlatformFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updatePlatformFee.mutation.js +0 -28
- package/.dist/graphql/mutations/updatePlatformFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateSeason.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateSeason.mutation.js +0 -82
- package/.dist/graphql/mutations/updateSeason.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateUserEmail.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateUserEmail.mutation.js +0 -24
- package/.dist/graphql/mutations/updateUserEmail.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateUserInfo.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateUserInfo.mutation.js +0 -16
- package/.dist/graphql/mutations/updateUserInfo.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateUserPhoneNumber.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateUserPhoneNumber.mutation.js +0 -24
- package/.dist/graphql/mutations/updateUserPhoneNumber.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateUserPreferredLogIn.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateUserPreferredLogIn.mutation.js +0 -14
- package/.dist/graphql/mutations/updateUserPreferredLogIn.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateVenue.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateVenue.mutation.js +0 -33
- package/.dist/graphql/mutations/updateVenue.mutation.js.map +0 -1
- package/.dist/graphql/mutations/uploadFiles.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/uploadFiles.mutation.js +0 -15
- package/.dist/graphql/mutations/uploadFiles.mutation.js.map +0 -1
- package/.dist/graphql/mutations/verifyUserEmail.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/verifyUserEmail.mutation.js +0 -12
- package/.dist/graphql/mutations/verifyUserEmail.mutation.js.map +0 -1
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.mutation.js +0 -19
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.mutation.js.map +0 -1
- package/.dist/graphql/mutations/verifyUserPhoneNumber.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/verifyUserPhoneNumber.mutation.js +0 -12
- package/.dist/graphql/mutations/verifyUserPhoneNumber.mutation.js.map +0 -1
- package/.dist/graphql/mutations/waitListReport.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/waitListReport.mutation.js +0 -12
- package/.dist/graphql/mutations/waitListReport.mutation.js.map +0 -1
- package/.dist/graphql/queries/DuplicateUrlStubUniqueness.query.d.ts +0 -2
- package/.dist/graphql/queries/DuplicateUrlStubUniqueness.query.js +0 -11
- package/.dist/graphql/queries/DuplicateUrlStubUniqueness.query.js.map +0 -1
- package/.dist/graphql/queries/analytics.query.d.ts +0 -2
- package/.dist/graphql/queries/analytics.query.js +0 -27
- package/.dist/graphql/queries/analytics.query.js.map +0 -1
- package/.dist/graphql/queries/artist.query.d.ts +0 -2
- package/.dist/graphql/queries/artist.query.js +0 -41
- package/.dist/graphql/queries/artist.query.js.map +0 -1
- package/.dist/graphql/queries/artists.query.d.ts +0 -2
- package/.dist/graphql/queries/artists.query.js +0 -41
- package/.dist/graphql/queries/artists.query.js.map +0 -1
- package/.dist/graphql/queries/context.query.d.ts +0 -2
- package/.dist/graphql/queries/context.query.js +0 -43
- package/.dist/graphql/queries/context.query.js.map +0 -1
- package/.dist/graphql/queries/customerOrders.query.d.ts +0 -2
- package/.dist/graphql/queries/customerOrders.query.js +0 -48
- package/.dist/graphql/queries/customerOrders.query.js.map +0 -1
- package/.dist/graphql/queries/customerProfile.query.d.ts +0 -2
- package/.dist/graphql/queries/customerProfile.query.js +0 -57
- package/.dist/graphql/queries/customerProfile.query.js.map +0 -1
- package/.dist/graphql/queries/discountCodeVerify.query.d.ts +0 -2
- package/.dist/graphql/queries/discountCodeVerify.query.js +0 -22
- package/.dist/graphql/queries/discountCodeVerify.query.js.map +0 -1
- package/.dist/graphql/queries/event.query.d.ts +0 -2
- package/.dist/graphql/queries/event.query.js +0 -102
- package/.dist/graphql/queries/event.query.js.map +0 -1
- package/.dist/graphql/queries/eventCalenderOrganizations.query.d.ts +0 -2
- package/.dist/graphql/queries/eventCalenderOrganizations.query.js +0 -17
- package/.dist/graphql/queries/eventCalenderOrganizations.query.js.map +0 -1
- package/.dist/graphql/queries/eventFees.query.d.ts +0 -2
- package/.dist/graphql/queries/eventFees.query.js +0 -28
- package/.dist/graphql/queries/eventFees.query.js.map +0 -1
- package/.dist/graphql/queries/events.query.d.ts +0 -2
- package/.dist/graphql/queries/events.query.js +0 -94
- package/.dist/graphql/queries/events.query.js.map +0 -1
- package/.dist/graphql/queries/eventsAdminCalender.query.d.ts +0 -2
- package/.dist/graphql/queries/eventsAdminCalender.query.js +0 -66
- package/.dist/graphql/queries/eventsAdminCalender.query.js.map +0 -1
- package/.dist/graphql/queries/eventsListOptimized.query.d.ts +0 -2
- package/.dist/graphql/queries/eventsListOptimized.query.js +0 -62
- package/.dist/graphql/queries/eventsListOptimized.query.js.map +0 -1
- package/.dist/graphql/queries/fee.query.d.ts +0 -2
- package/.dist/graphql/queries/fee.query.js +0 -28
- package/.dist/graphql/queries/fee.query.js.map +0 -1
- package/.dist/graphql/queries/fees.query.d.ts +0 -2
- package/.dist/graphql/queries/fees.query.js +0 -28
- package/.dist/graphql/queries/fees.query.js.map +0 -1
- package/.dist/graphql/queries/getSharedTicketsByEmailPhoneNumber.query.d.ts +0 -2
- package/.dist/graphql/queries/getSharedTicketsByEmailPhoneNumber.query.js +0 -31
- package/.dist/graphql/queries/getSharedTicketsByEmailPhoneNumber.query.js.map +0 -1
- package/.dist/graphql/queries/getTicketSharing.query.d.ts +0 -2
- package/.dist/graphql/queries/getTicketSharing.query.js +0 -13
- package/.dist/graphql/queries/getTicketSharing.query.js.map +0 -1
- package/.dist/graphql/queries/isDeletebleOrganization.d.ts +0 -2
- package/.dist/graphql/queries/isDeletebleOrganization.js +0 -10
- package/.dist/graphql/queries/isDeletebleOrganization.js.map +0 -1
- package/.dist/graphql/queries/isSuperUser.query.d.ts +0 -2
- package/.dist/graphql/queries/isSuperUser.query.js +0 -10
- package/.dist/graphql/queries/isSuperUser.query.js.map +0 -1
- package/.dist/graphql/queries/listStripeTerminalReaders.query.d.ts +0 -2
- package/.dist/graphql/queries/listStripeTerminalReaders.query.js +0 -18
- package/.dist/graphql/queries/listStripeTerminalReaders.query.js.map +0 -1
- package/.dist/graphql/queries/notifiyEvent.d.ts +0 -2
- package/.dist/graphql/queries/notifiyEvent.js +0 -13
- package/.dist/graphql/queries/notifiyEvent.js.map +0 -1
- package/.dist/graphql/queries/order.query.d.ts +0 -2
- package/.dist/graphql/queries/order.query.js +0 -222
- package/.dist/graphql/queries/order.query.js.map +0 -1
- package/.dist/graphql/queries/orders.query.d.ts +0 -2
- package/.dist/graphql/queries/orders.query.js +0 -153
- package/.dist/graphql/queries/orders.query.js.map +0 -1
- package/.dist/graphql/queries/ordersTableOptimized.query.d.ts +0 -2
- package/.dist/graphql/queries/ordersTableOptimized.query.js +0 -81
- package/.dist/graphql/queries/ordersTableOptimized.query.js.map +0 -1
- package/.dist/graphql/queries/organizationFees.query.d.ts +0 -2
- package/.dist/graphql/queries/organizationFees.query.js +0 -29
- package/.dist/graphql/queries/organizationFees.query.js.map +0 -1
- package/.dist/graphql/queries/organizations.query.d.ts +0 -2
- package/.dist/graphql/queries/organizations.query.js +0 -51
- package/.dist/graphql/queries/organizations.query.js.map +0 -1
- package/.dist/graphql/queries/platformFees.query.d.ts +0 -2
- package/.dist/graphql/queries/platformFees.query.js +0 -29
- package/.dist/graphql/queries/platformFees.query.js.map +0 -1
- package/.dist/graphql/queries/platformSettings.query.d.ts +0 -2
- package/.dist/graphql/queries/platformSettings.query.js +0 -14
- package/.dist/graphql/queries/platformSettings.query.js.map +0 -1
- package/.dist/graphql/queries/profile.query.d.ts +0 -2
- package/.dist/graphql/queries/profile.query.js +0 -100
- package/.dist/graphql/queries/profile.query.js.map +0 -1
- package/.dist/graphql/queries/profiles.query.d.ts +0 -2
- package/.dist/graphql/queries/profiles.query.js +0 -30
- package/.dist/graphql/queries/profiles.query.js.map +0 -1
- package/.dist/graphql/queries/promoCodeVerify.query.d.ts +0 -2
- package/.dist/graphql/queries/promoCodeVerify.query.js +0 -60
- package/.dist/graphql/queries/promoCodeVerify.query.js.map +0 -1
- package/.dist/graphql/queries/publicEvent.query.d.ts +0 -2
- package/.dist/graphql/queries/publicEvent.query.js +0 -83
- package/.dist/graphql/queries/publicEvent.query.js.map +0 -1
- package/.dist/graphql/queries/publicSeason.query.d.ts +0 -2
- package/.dist/graphql/queries/publicSeason.query.js +0 -87
- package/.dist/graphql/queries/publicSeason.query.js.map +0 -1
- package/.dist/graphql/queries/role.query.d.ts +0 -2
- package/.dist/graphql/queries/role.query.js +0 -29
- package/.dist/graphql/queries/role.query.js.map +0 -1
- package/.dist/graphql/queries/roles.query.d.ts +0 -2
- package/.dist/graphql/queries/roles.query.js +0 -29
- package/.dist/graphql/queries/roles.query.js.map +0 -1
- package/.dist/graphql/queries/season.query.d.ts +0 -2
- package/.dist/graphql/queries/season.query.js +0 -82
- package/.dist/graphql/queries/season.query.js.map +0 -1
- package/.dist/graphql/queries/seasonFees.query.d.ts +0 -2
- package/.dist/graphql/queries/seasonFees.query.js +0 -29
- package/.dist/graphql/queries/seasonFees.query.js.map +0 -1
- package/.dist/graphql/queries/seasons.query.d.ts +0 -2
- package/.dist/graphql/queries/seasons.query.js +0 -81
- package/.dist/graphql/queries/seasons.query.js.map +0 -1
- package/.dist/graphql/queries/seasonsDropdown.query.d.ts +0 -2
- package/.dist/graphql/queries/seasonsDropdown.query.js +0 -20
- package/.dist/graphql/queries/seasonsDropdown.query.js.map +0 -1
- package/.dist/graphql/queries/seating.query.d.ts +0 -2
- package/.dist/graphql/queries/seating.query.js +0 -17
- package/.dist/graphql/queries/seating.query.js.map +0 -1
- package/.dist/graphql/queries/seatingKeys.query.d.ts +0 -2
- package/.dist/graphql/queries/seatingKeys.query.js +0 -12
- package/.dist/graphql/queries/seatingKeys.query.js.map +0 -1
- package/.dist/graphql/queries/stripeCardDetail.query.d.ts +0 -2
- package/.dist/graphql/queries/stripeCardDetail.query.js +0 -19
- package/.dist/graphql/queries/stripeCardDetail.query.js.map +0 -1
- package/.dist/graphql/queries/superAdminAllCustomer.query.d.ts +0 -2
- package/.dist/graphql/queries/superAdminAllCustomer.query.js +0 -24
- package/.dist/graphql/queries/superAdminAllCustomer.query.js.map +0 -1
- package/.dist/graphql/queries/ticketRestriction.query.d.ts +0 -2
- package/.dist/graphql/queries/ticketRestriction.query.js +0 -18
- package/.dist/graphql/queries/ticketRestriction.query.js.map +0 -1
- package/.dist/graphql/queries/userExists.query.d.ts +0 -2
- package/.dist/graphql/queries/userExists.query.js +0 -34
- package/.dist/graphql/queries/userExists.query.js.map +0 -1
- package/.dist/graphql/queries/userProfile.query.d.ts +0 -2
- package/.dist/graphql/queries/userProfile.query.js +0 -31
- package/.dist/graphql/queries/userProfile.query.js.map +0 -1
- package/.dist/graphql/queries/userProfilesAdmin.query.d.ts +0 -2
- package/.dist/graphql/queries/userProfilesAdmin.query.js +0 -56
- package/.dist/graphql/queries/userProfilesAdmin.query.js.map +0 -1
- package/.dist/graphql/queries/userRoles.query.d.ts +0 -2
- package/.dist/graphql/queries/userRoles.query.js +0 -31
- package/.dist/graphql/queries/userRoles.query.js.map +0 -1
- package/.dist/graphql/queries/venue.query.d.ts +0 -2
- package/.dist/graphql/queries/venue.query.js +0 -34
- package/.dist/graphql/queries/venue.query.js.map +0 -1
- package/.dist/graphql/queries/venues.query.d.ts +0 -2
- package/.dist/graphql/queries/venues.query.js +0 -34
- package/.dist/graphql/queries/venues.query.js.map +0 -1
- package/.dist/graphql/queries/waitList.query.d.ts +0 -2
- package/.dist/graphql/queries/waitList.query.js +0 -104
- package/.dist/graphql/queries/waitList.query.js.map +0 -1
- package/.dist/graphql/queries/webFlowSites.query.d.ts +0 -2
- package/.dist/graphql/queries/webFlowSites.query.js +0 -21
- package/.dist/graphql/queries/webFlowSites.query.js.map +0 -1
- package/.dist/graphql/queries/webflow.query.d.ts +0 -2
- package/.dist/graphql/queries/webflow.query.js +0 -39
- package/.dist/graphql/queries/webflow.query.js.map +0 -1
- package/.dist/interfaces/IAddress.d.ts +0 -14
- package/.dist/interfaces/IAddress.js +0 -3
- package/.dist/interfaces/IAddress.js.map +0 -1
- package/.dist/interfaces/IAnalytics.d.ts +0 -86
- package/.dist/interfaces/IAnalytics.js +0 -130
- package/.dist/interfaces/IAnalytics.js.map +0 -1
- package/.dist/interfaces/IApiKey.d.ts +0 -8
- package/.dist/interfaces/IApiKey.js +0 -3
- package/.dist/interfaces/IApiKey.js.map +0 -1
- package/.dist/interfaces/IArtist.d.ts +0 -19
- package/.dist/interfaces/IArtist.js +0 -10
- package/.dist/interfaces/IArtist.js.map +0 -1
- package/.dist/interfaces/IArtistContact.d.ts +0 -8
- package/.dist/interfaces/IArtistContact.js +0 -3
- package/.dist/interfaces/IArtistContact.js.map +0 -1
- package/.dist/interfaces/IArtistPressKit.d.ts +0 -8
- package/.dist/interfaces/IArtistPressKit.js +0 -3
- package/.dist/interfaces/IArtistPressKit.js.map +0 -1
- package/.dist/interfaces/IBillingAddress.d.ts +0 -8
- package/.dist/interfaces/IBillingAddress.js +0 -3
- package/.dist/interfaces/IBillingAddress.js.map +0 -1
- package/.dist/interfaces/IContact.d.ts +0 -9
- package/.dist/interfaces/IContact.js +0 -3
- package/.dist/interfaces/IContact.js.map +0 -1
- package/.dist/interfaces/ICreateOrderParams.d.ts +0 -64
- package/.dist/interfaces/ICreateOrderParams.js +0 -3
- package/.dist/interfaces/ICreateOrderParams.js.map +0 -1
- package/.dist/interfaces/IEmailHolders.d.ts +0 -4
- package/.dist/interfaces/IEmailHolders.js +0 -3
- package/.dist/interfaces/IEmailHolders.js.map +0 -1
- package/.dist/interfaces/IEmailTicketHolder.d.ts +0 -10
- package/.dist/interfaces/IEmailTicketHolder.js +0 -3
- package/.dist/interfaces/IEmailTicketHolder.js.map +0 -1
- package/.dist/interfaces/IEvent.d.ts +0 -116
- package/.dist/interfaces/IEvent.js +0 -63
- package/.dist/interfaces/IEvent.js.map +0 -1
- package/.dist/interfaces/IEventCustomField.d.ts +0 -13
- package/.dist/interfaces/IEventCustomField.js +0 -3
- package/.dist/interfaces/IEventCustomField.js.map +0 -1
- package/.dist/interfaces/IEventPosterUrl.d.ts +0 -5
- package/.dist/interfaces/IEventPosterUrl.js +0 -3
- package/.dist/interfaces/IEventPosterUrl.js.map +0 -1
- package/.dist/interfaces/IEventPromotion.d.ts +0 -33
- package/.dist/interfaces/IEventPromotion.js +0 -22
- package/.dist/interfaces/IEventPromotion.js.map +0 -1
- package/.dist/interfaces/IEventQuery.d.ts +0 -26
- package/.dist/interfaces/IEventQuery.js +0 -15
- package/.dist/interfaces/IEventQuery.js.map +0 -1
- package/.dist/interfaces/IEventSchedule.d.ts +0 -7
- package/.dist/interfaces/IEventSchedule.js +0 -3
- package/.dist/interfaces/IEventSchedule.js.map +0 -1
- package/.dist/interfaces/IEventUpgrade.d.ts +0 -22
- package/.dist/interfaces/IEventUpgrade.js +0 -10
- package/.dist/interfaces/IEventUpgrade.js.map +0 -1
- package/.dist/interfaces/IFee.d.ts +0 -52
- package/.dist/interfaces/IFee.js +0 -39
- package/.dist/interfaces/IFee.js.map +0 -1
- package/.dist/interfaces/IFile.d.ts +0 -7
- package/.dist/interfaces/IFile.js +0 -3
- package/.dist/interfaces/IFile.js.map +0 -1
- package/.dist/interfaces/IOrder.d.ts +0 -83
- package/.dist/interfaces/IOrder.js +0 -6
- package/.dist/interfaces/IOrder.js.map +0 -1
- package/.dist/interfaces/IOrderCustomField.d.ts +0 -8
- package/.dist/interfaces/IOrderCustomField.js +0 -4
- package/.dist/interfaces/IOrderCustomField.js.map +0 -1
- package/.dist/interfaces/IOrderIntegration.d.ts +0 -5
- package/.dist/interfaces/IOrderIntegration.js +0 -3
- package/.dist/interfaces/IOrderIntegration.js.map +0 -1
- package/.dist/interfaces/IOrderIntegrationResponse.d.ts +0 -9
- package/.dist/interfaces/IOrderIntegrationResponse.js +0 -3
- package/.dist/interfaces/IOrderIntegrationResponse.js.map +0 -1
- package/.dist/interfaces/IOrderQuery.d.ts +0 -18
- package/.dist/interfaces/IOrderQuery.js +0 -3
- package/.dist/interfaces/IOrderQuery.js.map +0 -1
- package/.dist/interfaces/IOrderShareEnum.d.ts +0 -13
- package/.dist/interfaces/IOrderShareEnum.js +0 -3
- package/.dist/interfaces/IOrderShareEnum.js.map +0 -1
- package/.dist/interfaces/IOrderShareTimestamp.d.ts +0 -6
- package/.dist/interfaces/IOrderShareTimestamp.js +0 -3
- package/.dist/interfaces/IOrderShareTimestamp.js.map +0 -1
- package/.dist/interfaces/IOrderState.d.ts +0 -22
- package/.dist/interfaces/IOrderState.js +0 -34
- package/.dist/interfaces/IOrderState.js.map +0 -1
- package/.dist/interfaces/IOrderSummary.d.ts +0 -43
- package/.dist/interfaces/IOrderSummary.js +0 -3
- package/.dist/interfaces/IOrderSummary.js.map +0 -1
- package/.dist/interfaces/IOrderTicket.d.ts +0 -27
- package/.dist/interfaces/IOrderTicket.js +0 -3
- package/.dist/interfaces/IOrderTicket.js.map +0 -1
- package/.dist/interfaces/IOrderType.d.ts +0 -7
- package/.dist/interfaces/IOrderType.js +0 -13
- package/.dist/interfaces/IOrderType.js.map +0 -1
- package/.dist/interfaces/IOrderUpgrade.d.ts +0 -17
- package/.dist/interfaces/IOrderUpgrade.js +0 -3
- package/.dist/interfaces/IOrderUpgrade.js.map +0 -1
- package/.dist/interfaces/IOrganization.d.ts +0 -34
- package/.dist/interfaces/IOrganization.js +0 -9
- package/.dist/interfaces/IOrganization.js.map +0 -1
- package/.dist/interfaces/IPagination.d.ts +0 -19
- package/.dist/interfaces/IPagination.js +0 -19
- package/.dist/interfaces/IPagination.js.map +0 -1
- package/.dist/interfaces/IPayment.d.ts +0 -19
- package/.dist/interfaces/IPayment.js +0 -3
- package/.dist/interfaces/IPayment.js.map +0 -1
- package/.dist/interfaces/IPerformance.d.ts +0 -19
- package/.dist/interfaces/IPerformance.js +0 -3
- package/.dist/interfaces/IPerformance.js.map +0 -1
- package/.dist/interfaces/IProcessingFees.d.ts +0 -5
- package/.dist/interfaces/IProcessingFees.js +0 -4
- package/.dist/interfaces/IProcessingFees.js.map +0 -1
- package/.dist/interfaces/IQuery.d.ts +0 -15
- package/.dist/interfaces/IQuery.js +0 -21
- package/.dist/interfaces/IQuery.js.map +0 -1
- package/.dist/interfaces/IRefund.d.ts +0 -7
- package/.dist/interfaces/IRefund.js +0 -3
- package/.dist/interfaces/IRefund.js.map +0 -1
- package/.dist/interfaces/IRefundModal.d.ts +0 -9
- package/.dist/interfaces/IRefundModal.js +0 -3
- package/.dist/interfaces/IRefundModal.js.map +0 -1
- package/.dist/interfaces/IRole.d.ts +0 -26
- package/.dist/interfaces/IRole.js +0 -29
- package/.dist/interfaces/IRole.js.map +0 -1
- package/.dist/interfaces/ISalesReport.d.ts +0 -15
- package/.dist/interfaces/ISalesReport.js +0 -9
- package/.dist/interfaces/ISalesReport.js.map +0 -1
- package/.dist/interfaces/IScan.d.ts +0 -7
- package/.dist/interfaces/IScan.js +0 -3
- package/.dist/interfaces/IScan.js.map +0 -1
- package/.dist/interfaces/ISearchDropdownItem.d.ts +0 -4
- package/.dist/interfaces/ISearchDropdownItem.js +0 -3
- package/.dist/interfaces/ISearchDropdownItem.js.map +0 -1
- package/.dist/interfaces/ISeason.d.ts +0 -81
- package/.dist/interfaces/ISeason.js +0 -34
- package/.dist/interfaces/ISeason.js.map +0 -1
- package/.dist/interfaces/ISeasonCustomField.d.ts +0 -13
- package/.dist/interfaces/ISeasonCustomField.js +0 -3
- package/.dist/interfaces/ISeasonCustomField.js.map +0 -1
- package/.dist/interfaces/ISeasonPosterUrl.d.ts +0 -5
- package/.dist/interfaces/ISeasonPosterUrl.js +0 -3
- package/.dist/interfaces/ISeasonPosterUrl.js.map +0 -1
- package/.dist/interfaces/ISeasonQuery.d.ts +0 -23
- package/.dist/interfaces/ISeasonQuery.js +0 -15
- package/.dist/interfaces/ISeasonQuery.js.map +0 -1
- package/.dist/interfaces/ISeasonUpgrade.d.ts +0 -16
- package/.dist/interfaces/ISeasonUpgrade.js +0 -3
- package/.dist/interfaces/ISeasonUpgrade.js.map +0 -1
- package/.dist/interfaces/ISeating.d.ts +0 -9
- package/.dist/interfaces/ISeating.js +0 -3
- package/.dist/interfaces/ISeating.js.map +0 -1
- package/.dist/interfaces/ISocialAccountLink.d.ts +0 -13
- package/.dist/interfaces/ISocialAccountLink.js +0 -14
- package/.dist/interfaces/ISocialAccountLink.js.map +0 -1
- package/.dist/interfaces/IStripeCustomer.d.ts +0 -6
- package/.dist/interfaces/IStripeCustomer.js +0 -3
- package/.dist/interfaces/IStripeCustomer.js.map +0 -1
- package/.dist/interfaces/IStripePaymentMethod.d.ts +0 -10
- package/.dist/interfaces/IStripePaymentMethod.js +0 -3
- package/.dist/interfaces/IStripePaymentMethod.js.map +0 -1
- package/.dist/interfaces/IStripeTerminalReader.d.ts +0 -9
- package/.dist/interfaces/IStripeTerminalReader.js +0 -3
- package/.dist/interfaces/IStripeTerminalReader.js.map +0 -1
- package/.dist/interfaces/ITask.d.ts +0 -30
- package/.dist/interfaces/ITask.js +0 -16
- package/.dist/interfaces/ITask.js.map +0 -1
- package/.dist/interfaces/ITeiMemberInfo.d.ts +0 -6
- package/.dist/interfaces/ITeiMemberInfo.js +0 -3
- package/.dist/interfaces/ITeiMemberInfo.js.map +0 -1
- package/.dist/interfaces/ITicketExchange.d.ts +0 -10
- package/.dist/interfaces/ITicketExchange.js +0 -11
- package/.dist/interfaces/ITicketExchange.js.map +0 -1
- package/.dist/interfaces/ITicketHold.d.ts +0 -12
- package/.dist/interfaces/ITicketHold.js +0 -3
- package/.dist/interfaces/ITicketHold.js.map +0 -1
- package/.dist/interfaces/ITicketTier.d.ts +0 -10
- package/.dist/interfaces/ITicketTier.js +0 -3
- package/.dist/interfaces/ITicketTier.js.map +0 -1
- package/.dist/interfaces/ITicketType.d.ts +0 -25
- package/.dist/interfaces/ITicketType.js +0 -3
- package/.dist/interfaces/ITicketType.js.map +0 -1
- package/.dist/interfaces/IUser.d.ts +0 -29
- package/.dist/interfaces/IUser.js +0 -10
- package/.dist/interfaces/IUser.js.map +0 -1
- package/.dist/interfaces/IUserProfile.d.ts +0 -52
- package/.dist/interfaces/IUserProfile.js +0 -3
- package/.dist/interfaces/IUserProfile.js.map +0 -1
- package/.dist/interfaces/IVenue.d.ts +0 -13
- package/.dist/interfaces/IVenue.js +0 -3
- package/.dist/interfaces/IVenue.js.map +0 -1
- package/.dist/interfaces/IWebFlow.d.ts +0 -50
- package/.dist/interfaces/IWebFlow.js +0 -11
- package/.dist/interfaces/IWebFlow.js.map +0 -1
- package/.dist/schemas/Address.d.ts +0 -63
- package/.dist/schemas/Address.js +0 -65
- package/.dist/schemas/Address.js.map +0 -1
- package/.dist/schemas/Artist.d.ts +0 -107
- package/.dist/schemas/Artist.js +0 -120
- package/.dist/schemas/Artist.js.map +0 -1
- package/.dist/schemas/Event.d.ts +0 -814
- package/.dist/schemas/Event.js +0 -647
- package/.dist/schemas/Event.js.map +0 -1
- package/.dist/schemas/Fee.d.ts +0 -88
- package/.dist/schemas/Fee.js +0 -93
- package/.dist/schemas/Fee.js.map +0 -1
- package/.dist/schemas/Metrics.d.ts +0 -136
- package/.dist/schemas/Metrics.js +0 -142
- package/.dist/schemas/Metrics.js.map +0 -1
- package/.dist/schemas/Order.d.ts +0 -787
- package/.dist/schemas/Order.js +0 -664
- package/.dist/schemas/Order.js.map +0 -1
- package/.dist/schemas/Organization.d.ts +0 -193
- package/.dist/schemas/Organization.js +0 -132
- package/.dist/schemas/Organization.js.map +0 -1
- package/.dist/schemas/Role.d.ts +0 -36
- package/.dist/schemas/Role.js +0 -42
- package/.dist/schemas/Role.js.map +0 -1
- package/.dist/schemas/Season.d.ts +0 -703
- package/.dist/schemas/Season.js +0 -521
- package/.dist/schemas/Season.js.map +0 -1
- package/.dist/schemas/Seating.d.ts +0 -33
- package/.dist/schemas/Seating.js +0 -39
- package/.dist/schemas/Seating.js.map +0 -1
- package/.dist/schemas/User.d.ts +0 -113
- package/.dist/schemas/User.js +0 -119
- package/.dist/schemas/User.js.map +0 -1
- package/.dist/schemas/UserProfile.d.ts +0 -179
- package/.dist/schemas/UserProfile.js +0 -126
- package/.dist/schemas/UserProfile.js.map +0 -1
- package/.dist/schemas/Venue.d.ts +0 -108
- package/.dist/schemas/Venue.js +0 -56
- package/.dist/schemas/Venue.js.map +0 -1
- package/.dist/schemas/WebFlow.d.ts +0 -121
- package/.dist/schemas/WebFlow.js +0 -133
- package/.dist/schemas/WebFlow.js.map +0 -1
- package/.dist/sellout-proto.js +0 -179792
- package/.dist/utils/AnalyticsUtil.d.ts +0 -41
- package/.dist/utils/AnalyticsUtil.js +0 -767
- package/.dist/utils/AnalyticsUtil.js.map +0 -1
- package/.dist/utils/EventUtil.d.ts +0 -116
- package/.dist/utils/EventUtil.js +0 -908
- package/.dist/utils/EventUtil.js.map +0 -1
- package/.dist/utils/FeeUtil.d.ts +0 -14
- package/.dist/utils/FeeUtil.js +0 -82
- package/.dist/utils/FeeUtil.js.map +0 -1
- package/.dist/utils/OrderUtil.d.ts +0 -53
- package/.dist/utils/OrderUtil.js +0 -408
- package/.dist/utils/OrderUtil.js.map +0 -1
- package/.dist/utils/PaymentUtil.d.ts +0 -35
- package/.dist/utils/PaymentUtil.js +0 -564
- package/.dist/utils/PaymentUtil.js.map +0 -1
- package/.dist/utils/SaveLogsToFile.d.ts +0 -2
- package/.dist/utils/SaveLogsToFile.js +0 -47
- package/.dist/utils/SaveLogsToFile.js.map +0 -1
- package/.dist/utils/SeasonUtil.d.ts +0 -73
- package/.dist/utils/SeasonUtil.js +0 -472
- package/.dist/utils/SeasonUtil.js.map +0 -1
- package/.dist/utils/TierUtil.d.ts +0 -11
- package/.dist/utils/TierUtil.js +0 -92
- package/.dist/utils/TierUtil.js.map +0 -1
- package/.dist/utils/WebFlowUtil.d.ts +0 -7
- package/.dist/utils/WebFlowUtil.js +0 -10
- package/.dist/utils/WebFlowUtil.js.map +0 -1
- package/src/enums/ContactsScreenEnum.ts +0 -5
- package/src/enums/CustomFieldTypeEnum.ts +0 -6
- package/src/enums/DefaultArtistImageUrls.ts +0 -5
- package/src/enums/DefaultEventImageUrls.ts +0 -4
- package/src/enums/DefaultVenueImageUrls.ts +0 -3
- package/src/enums/DropDownEnum.ts +0 -3
- package/src/enums/EPurchasePortalModes.ts +0 -8
- package/src/enums/EPurchasePortalStatus.ts +0 -4
- package/src/enums/OrderChannelEnum.ts +0 -4
- package/src/enums/OrderItemTypeEnum.ts +0 -4
- package/src/enums/OrderShareTimestamp.ts +0 -7
- package/src/enums/PaymentMethodTypeEnum.ts +0 -7
- package/src/enums/TierStatusEnum.ts +0 -5
- package/src/graphql/fragments/event.fragment.ts +0 -372
- package/src/graphql/fragments/order.fragment.ts +0 -109
- package/src/graphql/fragments/season.fragment.ts +0 -365
- package/src/graphql/links/debounceLink.ts +0 -3
- package/src/graphql/mutations/acceptRole.mutation.ts +0 -17
- package/src/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.ts +0 -9
- package/src/graphql/mutations/attachStripePaymentMethod.mutation.ts +0 -18
- package/src/graphql/mutations/batchPrintBreakApartOrder.mutation.ts +0 -56
- package/src/graphql/mutations/breakApartOrder.ts +0 -43
- package/src/graphql/mutations/breakApartSeasonOrder.ts +0 -51
- package/src/graphql/mutations/cancelOrder.mutation.ts +0 -11
- package/src/graphql/mutations/cancelTickets.mutation.ts +0 -19
- package/src/graphql/mutations/connectStripe.mutation.ts +0 -9
- package/src/graphql/mutations/createArtist.mutation.ts +0 -40
- package/src/graphql/mutations/createContacts.mutation.ts +0 -9
- package/src/graphql/mutations/createEvent.mutation.ts +0 -89
- package/src/graphql/mutations/createEventOrSeasonFee.mutation.ts +0 -38
- package/src/graphql/mutations/createFee.mutation.ts +0 -27
- package/src/graphql/mutations/createOrder.mutation.ts +0 -55
- package/src/graphql/mutations/createOrderPaymentIntent.mutation.ts +0 -12
- package/src/graphql/mutations/createOrganisation.mutation.ts +0 -11
- package/src/graphql/mutations/createOrganizationFee.mutation.ts +0 -28
- package/src/graphql/mutations/createPlatformFee.mutation.ts +0 -28
- package/src/graphql/mutations/createRole.mutation.ts +0 -15
- package/src/graphql/mutations/createSeason.mutation.ts +0 -78
- package/src/graphql/mutations/createSeasonOrder.mutation.ts +0 -61
- package/src/graphql/mutations/createSeasonOrderPaymentIntent.mutation.ts +0 -14
- package/src/graphql/mutations/createStripeSetupIntent.mutation.ts +0 -9
- package/src/graphql/mutations/createStripeTerminalConnectionToken.mutation.ts +0 -9
- package/src/graphql/mutations/createVenue.mutation.ts +0 -33
- package/src/graphql/mutations/createWaitList.mutation.ts +0 -11
- package/src/graphql/mutations/createWebFlowSite.mutation.ts +0 -39
- package/src/graphql/mutations/deleteEvent.mutation.ts +0 -21
- package/src/graphql/mutations/deleteEventOrSeasonFee.mutation.ts +0 -10
- package/src/graphql/mutations/deleteFee.mutation.ts +0 -10
- package/src/graphql/mutations/deleteOrganizationFee.mutation.ts +0 -10
- package/src/graphql/mutations/deletePlatformFee.mutation.ts +0 -10
- package/src/graphql/mutations/deleteRole.mutation.ts +0 -10
- package/src/graphql/mutations/deleteSecondaryEmail.mutation.ts +0 -17
- package/src/graphql/mutations/deleteStripeTerminalReader.mutation.ts +0 -9
- package/src/graphql/mutations/deleteSubscription.mutation.ts +0 -12
- package/src/graphql/mutations/deleteSuperAdminOrg.mutation.ts +0 -9
- package/src/graphql/mutations/deleteTicketHold.mutation.ts +0 -12
- package/src/graphql/mutations/deleteUnverifiedUser.mutation.ts +0 -10
- package/src/graphql/mutations/duplicateEvent.mutation.ts +0 -86
- package/src/graphql/mutations/eventEmailTemplate.mutation.ts +0 -9
- package/src/graphql/mutations/forgotPassword.mutation.ts +0 -9
- package/src/graphql/mutations/generateActivityReport.mutation.ts +0 -14
- package/src/graphql/mutations/generateEventQRCode.mutation.ts +0 -9
- package/src/graphql/mutations/generateOrderReport.mutation.ts +0 -12
- package/src/graphql/mutations/generateUserProfileReport.mutation.ts +0 -13
- package/src/graphql/mutations/holdTicket.mutation.ts +0 -11
- package/src/graphql/mutations/login.mutation.ts +0 -19
- package/src/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.ts +0 -17
- package/src/graphql/mutations/multipleBreakApartOrder.mutation.ts +0 -56
- package/src/graphql/mutations/multipleBreakApartSeasonOrder.mutation.ts +0 -61
- package/src/graphql/mutations/orderIntegrationUpdate.mutation.ts +0 -10
- package/src/graphql/mutations/publishEvent.mutation.ts +0 -101
- package/src/graphql/mutations/publishSeason.mutation.ts +0 -78
- package/src/graphql/mutations/refundOrder.mutation.ts +0 -139
- package/src/graphql/mutations/register.mutation.ts +0 -39
- package/src/graphql/mutations/registerStripeTerminalReader.mutation.ts +0 -17
- package/src/graphql/mutations/remapWebFlowSite.mutation.ts +0 -36
- package/src/graphql/mutations/resetStripeConnection.mutation.ts +0 -9
- package/src/graphql/mutations/resetUserPassword.mutation.ts +0 -9
- package/src/graphql/mutations/resetUserPasswordInApp.mutation.ts +0 -9
- package/src/graphql/mutations/salesReport.mutation.ts +0 -10
- package/src/graphql/mutations/scanOrder.mutation.ts +0 -21
- package/src/graphql/mutations/sendOrderReceiptEmail.mutation.ts +0 -9
- package/src/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.ts +0 -9
- package/src/graphql/mutations/sendUserEmailVerification.mutation.ts +0 -11
- package/src/graphql/mutations/sendUserPhoneAuthentication.mutation.ts +0 -10
- package/src/graphql/mutations/sendUserPhoneVerification.mutation.ts +0 -11
- package/src/graphql/mutations/setUserOrgContextId.mutation.ts +0 -11
- package/src/graphql/mutations/setUserPassword.mutation.ts +0 -11
- package/src/graphql/mutations/sharingTicket.mutation.ts +0 -11
- package/src/graphql/mutations/sharingTicketStatusChange.mutation.ts +0 -11
- package/src/graphql/mutations/updateArtist.mutation.ts +0 -40
- package/src/graphql/mutations/updateBasicUserInfo.mutation.ts +0 -11
- package/src/graphql/mutations/updateContact.mutation.ts +0 -16
- package/src/graphql/mutations/updateEvent.mutation.ts +0 -98
- package/src/graphql/mutations/updateEventOrSeasonFee.mutation.ts +0 -28
- package/src/graphql/mutations/updateFee.mutation.ts +0 -25
- package/src/graphql/mutations/updateGuestOrder.mutation.ts +0 -11
- package/src/graphql/mutations/updateOrder.mutation.ts +0 -11
- package/src/graphql/mutations/updateOrgEmailWebhook.mutation.ts +0 -9
- package/src/graphql/mutations/updateOrganistion.mutation.ts +0 -10
- package/src/graphql/mutations/updateOrganization.mutation.ts +0 -19
- package/src/graphql/mutations/updateOrganizationFee.mutation.ts +0 -27
- package/src/graphql/mutations/updatePlatformFee.mutation.ts +0 -27
- package/src/graphql/mutations/updateSeason.mutation.ts +0 -78
- package/src/graphql/mutations/updateUserEmail.mutation.ts +0 -23
- package/src/graphql/mutations/updateUserInfo.mutation.ts +0 -15
- package/src/graphql/mutations/updateUserPhoneNumber.mutation.ts +0 -23
- package/src/graphql/mutations/updateUserPreferredLogIn.mutation.ts +0 -13
- package/src/graphql/mutations/updateVenue.mutation.ts +0 -32
- package/src/graphql/mutations/uploadFiles.mutation.ts +0 -14
- package/src/graphql/mutations/verifyUserEmail.mutation.ts +0 -11
- package/src/graphql/mutations/verifyUserPhoneAuthentication.mutation.ts +0 -18
- package/src/graphql/mutations/verifyUserPhoneNumber.mutation.ts +0 -11
- package/src/graphql/mutations/waitListReport.mutation.ts +0 -11
- package/src/graphql/queries/DuplicateUrlStubUniqueness.query.ts +0 -10
- package/src/graphql/queries/analytics.query.ts +0 -26
- package/src/graphql/queries/artist.query.ts +0 -40
- package/src/graphql/queries/artists.query.ts +0 -41
- package/src/graphql/queries/context.query.ts +0 -42
- package/src/graphql/queries/customerOrders.query.ts +0 -44
- package/src/graphql/queries/customerProfile.query.ts +0 -56
- package/src/graphql/queries/discountCodeVerify.query.ts +0 -21
- package/src/graphql/queries/event.query.ts +0 -98
- package/src/graphql/queries/eventCalenderOrganizations.query.ts +0 -16
- package/src/graphql/queries/eventFees.query.ts +0 -27
- package/src/graphql/queries/events.query.ts +0 -90
- package/src/graphql/queries/eventsAdminCalender.query.ts +0 -62
- package/src/graphql/queries/eventsListOptimized.query.ts +0 -58
- package/src/graphql/queries/fee.query.ts +0 -27
- package/src/graphql/queries/fees.query.ts +0 -27
- package/src/graphql/queries/getSharedTicketsByEmailPhoneNumber.query.ts +0 -30
- package/src/graphql/queries/getTicketSharing.query.ts +0 -12
- package/src/graphql/queries/isDeletebleOrganization.ts +0 -9
- package/src/graphql/queries/isSuperUser.query.ts +0 -9
- package/src/graphql/queries/listStripeTerminalReaders.query.ts +0 -17
- package/src/graphql/queries/notifiyEvent.ts +0 -10
- package/src/graphql/queries/order.query.ts +0 -218
- package/src/graphql/queries/orders.query.ts +0 -149
- package/src/graphql/queries/ordersTableOptimized.query.ts +0 -80
- package/src/graphql/queries/organizationFees.query.ts +0 -28
- package/src/graphql/queries/organizations.query.ts +0 -50
- package/src/graphql/queries/platformFees.query.ts +0 -28
- package/src/graphql/queries/platformSettings.query.ts +0 -13
- package/src/graphql/queries/profile.query.ts +0 -99
- package/src/graphql/queries/profiles.query.ts +0 -29
- package/src/graphql/queries/promoCodeVerify.query.ts +0 -59
- package/src/graphql/queries/publicEvent.query.ts +0 -79
- package/src/graphql/queries/publicSeason.query.ts +0 -83
- package/src/graphql/queries/role.query.ts +0 -28
- package/src/graphql/queries/roles.query.ts +0 -28
- package/src/graphql/queries/season.query.ts +0 -78
- package/src/graphql/queries/seasonFees.query.ts +0 -28
- package/src/graphql/queries/seasons.query.ts +0 -77
- package/src/graphql/queries/seasonsDropdown.query.ts +0 -19
- package/src/graphql/queries/seating.query.ts +0 -16
- package/src/graphql/queries/seatingKeys.query.ts +0 -11
- package/src/graphql/queries/stripeCardDetail.query.ts +0 -18
- package/src/graphql/queries/superAdminAllCustomer.query.ts +0 -23
- package/src/graphql/queries/ticketRestriction.query.ts +0 -17
- package/src/graphql/queries/userExists.query.ts +0 -33
- package/src/graphql/queries/userProfile.query.ts +0 -30
- package/src/graphql/queries/userProfilesAdmin.query.ts +0 -55
- package/src/graphql/queries/userRoles.query.ts +0 -30
- package/src/graphql/queries/venue.query.ts +0 -33
- package/src/graphql/queries/venues.query.ts +0 -34
- package/src/graphql/queries/waitList.query.ts +0 -98
- package/src/graphql/queries/webFlowSites.query.ts +0 -20
- package/src/graphql/queries/webflow.query.ts +0 -38
- package/src/interfaces/IAddress.ts +0 -14
- package/src/interfaces/IAnalytics.ts +0 -156
- package/src/interfaces/IApiKey.ts +0 -8
- package/src/interfaces/IArtist.ts +0 -21
- package/src/interfaces/IArtistContact.ts +0 -8
- package/src/interfaces/IArtistPressKit.ts +0 -9
- package/src/interfaces/IBillingAddress.ts +0 -8
- package/src/interfaces/IContact.ts +0 -9
- package/src/interfaces/ICreateOrderParams.ts +0 -72
- package/src/interfaces/IEmailHolders.ts +0 -5
- package/src/interfaces/IEmailTicketHolder.ts +0 -10
- package/src/interfaces/IEvent.ts +0 -139
- package/src/interfaces/IEventCustomField.ts +0 -14
- package/src/interfaces/IEventPosterUrl.ts +0 -5
- package/src/interfaces/IEventPromotion.ts +0 -37
- package/src/interfaces/IEventQuery.ts +0 -28
- package/src/interfaces/IEventSchedule.ts +0 -7
- package/src/interfaces/IEventUpgrade.ts +0 -23
- package/src/interfaces/IFee.ts +0 -61
- package/src/interfaces/IFile.ts +0 -7
- package/src/interfaces/IOrder.ts +0 -91
- package/src/interfaces/IOrderCustomField.ts +0 -8
- package/src/interfaces/IOrderIntegration.ts +0 -5
- package/src/interfaces/IOrderIntegrationResponse.ts +0 -9
- package/src/interfaces/IOrderQuery.ts +0 -18
- package/src/interfaces/IOrderShareEnum.ts +0 -13
- package/src/interfaces/IOrderShareTimestamp.ts +0 -6
- package/src/interfaces/IOrderState.ts +0 -25
- package/src/interfaces/IOrderSummary.ts +0 -45
- package/src/interfaces/IOrderTicket.ts +0 -27
- package/src/interfaces/IOrderType.ts +0 -7
- package/src/interfaces/IOrderUpgrade.ts +0 -18
- package/src/interfaces/IOrganization.ts +0 -35
- package/src/interfaces/IPagination.ts +0 -21
- package/src/interfaces/IPayment.ts +0 -19
- package/src/interfaces/IPerformance.ts +0 -20
- package/src/interfaces/IProcessingFees.ts +0 -6
- package/src/interfaces/IQuery.ts +0 -30
- package/src/interfaces/IRefund.ts +0 -7
- package/src/interfaces/IRefundModal.ts +0 -9
- package/src/interfaces/IRole.ts +0 -37
- package/src/interfaces/ISalesReport.ts +0 -18
- package/src/interfaces/IScan.ts +0 -7
- package/src/interfaces/ISearchDropdownItem.ts +0 -5
- package/src/interfaces/ISeason.ts +0 -92
- package/src/interfaces/ISeasonCustomField.ts +0 -14
- package/src/interfaces/ISeasonPosterUrl.ts +0 -5
- package/src/interfaces/ISeasonQuery.ts +0 -25
- package/src/interfaces/ISeasonUpgrade.ts +0 -16
- package/src/interfaces/ISeating.ts +0 -9
- package/src/interfaces/ISocialAccountLink.ts +0 -14
- package/src/interfaces/IStripeCustomer.ts +0 -7
- package/src/interfaces/IStripePaymentMethod.ts +0 -10
- package/src/interfaces/IStripeTerminalReader.ts +0 -9
- package/src/interfaces/ITask.ts +0 -33
- package/src/interfaces/ITeiMemberInfo.ts +0 -6
- package/src/interfaces/ITicketExchange.ts +0 -11
- package/src/interfaces/ITicketHold.ts +0 -12
- package/src/interfaces/ITicketTier.ts +0 -10
- package/src/interfaces/ITicketType.ts +0 -26
- package/src/interfaces/IUser.ts +0 -30
- package/src/interfaces/IUserProfile.ts +0 -62
- package/src/interfaces/IVenue.ts +0 -14
- package/src/interfaces/IWebFlow.ts +0 -55
- package/src/proto/email.proto +0 -450
- package/src/proto/event.proto +0 -826
- package/src/proto/order.proto +0 -901
- package/src/proto/plivo.proto +0 -31
- package/src/proto/season.proto +0 -212
- package/src/proto/stripe.proto +0 -436
- package/src/proto/task.proto +0 -82
- package/src/schemas/Artist.ts +0 -118
- package/src/schemas/Event.ts +0 -657
- package/src/schemas/Fee.ts +0 -88
- package/src/schemas/Order.ts +0 -668
- package/src/schemas/Organization.ts +0 -126
- package/src/schemas/Role.ts +0 -37
- package/src/schemas/Season.ts +0 -526
- package/src/schemas/Seating.ts +0 -34
- package/src/schemas/User.ts +0 -114
- package/src/schemas/UserProfile.ts +0 -122
- package/src/schemas/Venue.ts +0 -51
- package/src/schemas/WebFlow.ts +0 -132
- package/src/utils/AnalyticsUtil.ts +0 -1139
- package/src/utils/EventUtil.ts +0 -983
- package/src/utils/FeeUtil.ts +0 -79
- package/src/utils/OrderUtil.ts +0 -425
- package/src/utils/PaymentUtil.ts +0 -841
- package/src/utils/SaveLogsToFile.ts +0 -13
- package/src/utils/SeasonUtil.ts +0 -497
- package/src/utils/TierUtil.ts +0 -76
- package/src/utils/fee-util-broken-but-why +0 -36
- package/tsconfig.json +0 -29
- package/tslint.json +0 -21
- /package/{src/proto → proto}/web-flow.proto +0 -0
- /package/{src/utils → utils}/WebFlowUtil.ts +0 -0
package/src/utils/PaymentUtil.ts
DELETED
|
@@ -1,841 +0,0 @@
|
|
|
1
|
-
import FeeUtil from "./FeeUtil";
|
|
2
|
-
import {
|
|
3
|
-
ICreateOrderTicketParams,
|
|
4
|
-
ICreateOrderUpgradeParams,
|
|
5
|
-
} from "../interfaces/ICreateOrderParams";
|
|
6
|
-
import IFee, {
|
|
7
|
-
FeeAppliedToEnum,
|
|
8
|
-
FeeFiltersEnum,
|
|
9
|
-
FeeTypeEnum,
|
|
10
|
-
FeeAppliedByEnum,
|
|
11
|
-
} from "../interfaces/IFee";
|
|
12
|
-
import { PaymentMethodTypeEnum } from "../enums/PaymentMethodTypeEnum";
|
|
13
|
-
import IEventPromotion, {
|
|
14
|
-
EventPromotionAppliesToEnum,
|
|
15
|
-
EventPromotionDiscountTypeEnum,
|
|
16
|
-
} from "../interfaces/IEventPromotion";
|
|
17
|
-
|
|
18
|
-
interface IPaymentCalculatorParams {
|
|
19
|
-
tickets: ICreateOrderTicketParams[];
|
|
20
|
-
upgrades: ICreateOrderUpgradeParams[];
|
|
21
|
-
fees: IFee[];
|
|
22
|
-
paymentMethodType: PaymentMethodTypeEnum;
|
|
23
|
-
promotions?: IEventPromotion[];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
class PaymentUtil {
|
|
27
|
-
calculatePaymentTotal(params: IPaymentCalculatorParams): any {
|
|
28
|
-
let {
|
|
29
|
-
tickets = [],
|
|
30
|
-
upgrades = [],
|
|
31
|
-
fees = [],
|
|
32
|
-
paymentMethodType,
|
|
33
|
-
promotions = [],
|
|
34
|
-
} = params;
|
|
35
|
-
|
|
36
|
-
// No items, total is always 0
|
|
37
|
-
if (!tickets.length && !upgrades.length) return 0;
|
|
38
|
-
|
|
39
|
-
const ticketFeesPromoCodePercent = promotions?.filter(
|
|
40
|
-
(f) =>
|
|
41
|
-
f.appliesTo === EventPromotionAppliesToEnum.PerTicket &&
|
|
42
|
-
f.discountType === EventPromotionDiscountTypeEnum.Percent
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
const discountFeePercentPerTicketTotal = tickets?.reduce((cur, ticket) => {
|
|
46
|
-
return (
|
|
47
|
-
cur +
|
|
48
|
-
ticketFeesPromoCodePercent?.reduce((cur, promotion) => {
|
|
49
|
-
const value = cur + applyTicketDiscount(ticket, promotion);
|
|
50
|
-
return value;
|
|
51
|
-
}, 0)
|
|
52
|
-
);
|
|
53
|
-
}, 0);
|
|
54
|
-
|
|
55
|
-
if (promotions?.length) {
|
|
56
|
-
tickets = tickets.map(ticket => {
|
|
57
|
-
if (promotions && promotions[0].discountType === EventPromotionDiscountTypeEnum.Flat && promotions[0].appliesTo === EventPromotionAppliesToEnum.PerTicket) {
|
|
58
|
-
if (promotions[0]?.ticketTypeIds.length == 0) {
|
|
59
|
-
const discountValue = Number(promotions[0].discountValue);
|
|
60
|
-
const originalPrice = ticket.price;
|
|
61
|
-
const discountedPrice = originalPrice - discountValue;
|
|
62
|
-
return {
|
|
63
|
-
...ticket,
|
|
64
|
-
price: discountedPrice
|
|
65
|
-
};
|
|
66
|
-
} else {
|
|
67
|
-
if (promotions[0]?.ticketTypeIds.includes(ticket?.ticketTypeId)) {
|
|
68
|
-
const discountValue = Number(promotions[0].discountValue);
|
|
69
|
-
const originalPrice = ticket.price;
|
|
70
|
-
const discountedPrice = originalPrice - discountValue;
|
|
71
|
-
return {
|
|
72
|
-
...ticket,
|
|
73
|
-
price: discountedPrice
|
|
74
|
-
};
|
|
75
|
-
} else {
|
|
76
|
-
const originalPrice = ticket.price;
|
|
77
|
-
return {
|
|
78
|
-
...ticket,
|
|
79
|
-
price: originalPrice
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
if (promotions && promotions[0].discountType === EventPromotionDiscountTypeEnum.Percent && promotions[0].appliesTo === EventPromotionAppliesToEnum.PerTicket) {
|
|
85
|
-
|
|
86
|
-
if (promotions[0]?.ticketTypeIds.length == 0) {
|
|
87
|
-
const discountValue = Number(promotions[0].discountValue);
|
|
88
|
-
const percentTicketValue = (ticket.origionalPrice * discountValue) / 100
|
|
89
|
-
const originalPrice = ticket.price;
|
|
90
|
-
const discountPercentPrice = originalPrice - percentTicketValue;
|
|
91
|
-
return {
|
|
92
|
-
...ticket,
|
|
93
|
-
price: discountPercentPrice
|
|
94
|
-
};
|
|
95
|
-
} else {
|
|
96
|
-
|
|
97
|
-
if (promotions[0]?.ticketTypeIds.includes(ticket?.ticketTypeId)) {
|
|
98
|
-
const discountValue = Number(promotions[0].discountValue);
|
|
99
|
-
const percentTicketValue = (ticket.origionalPrice * discountValue) / 100
|
|
100
|
-
const originalPrice = ticket.price;
|
|
101
|
-
const discountPercentPrice = originalPrice - percentTicketValue
|
|
102
|
-
|
|
103
|
-
return {
|
|
104
|
-
...ticket,
|
|
105
|
-
price: discountPercentPrice
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
const originalPrice = ticket.price;
|
|
110
|
-
return {
|
|
111
|
-
...ticket,
|
|
112
|
-
price: originalPrice
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
return ticket;
|
|
119
|
-
})
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// Filter fees
|
|
123
|
-
fees = fees.filter((fee: IFee) => {
|
|
124
|
-
if (!fee?.paymentMethods || fee?.paymentMethods?.length == 0) {
|
|
125
|
-
return true;
|
|
126
|
-
} else if (fee?.paymentMethods?.includes(paymentMethodType as any)) {
|
|
127
|
-
return true;
|
|
128
|
-
} else {
|
|
129
|
-
return false;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
let guestFees = fees.filter(
|
|
134
|
-
(fee: IFee) => fee.filters && fee.filters[0] == FeeFiltersEnum.GuestTicket
|
|
135
|
-
);
|
|
136
|
-
|
|
137
|
-
fees = fees.filter(
|
|
138
|
-
(fee: IFee) =>
|
|
139
|
-
fee.filters && fee.filters[0] !== FeeFiltersEnum.GuestTicket
|
|
140
|
-
);
|
|
141
|
-
|
|
142
|
-
function applyGuestTicketFee(
|
|
143
|
-
ticket: ICreateOrderTicketParams,
|
|
144
|
-
fee: IFee
|
|
145
|
-
): number {
|
|
146
|
-
// Ignore seated fees if not seated
|
|
147
|
-
if (
|
|
148
|
-
fee.filters &&
|
|
149
|
-
fee.filters.includes(FeeFiltersEnum.Seated) &&
|
|
150
|
-
!ticket.seat
|
|
151
|
-
) {
|
|
152
|
-
return 0;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
if (!ticket.guestTicket) {
|
|
156
|
-
return 0;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
const minFee = fee.minAppliedToPrice || 0;
|
|
160
|
-
const maxFee = fee.maxAppliedToPrice || Infinity;
|
|
161
|
-
|
|
162
|
-
if (minFee <= ticket.price && ticket.price <= maxFee) {
|
|
163
|
-
if (fee.type === FeeTypeEnum.Flat) {
|
|
164
|
-
return fee.value;
|
|
165
|
-
}
|
|
166
|
-
if (fee.type === FeeTypeEnum.Percent) {
|
|
167
|
-
return (ticket.price * fee.value) / 100;
|
|
168
|
-
}
|
|
169
|
-
} else {
|
|
170
|
-
return 0;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
return 0;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
const ticketFeesPromoCodeFlat = promotions?.filter(
|
|
177
|
-
(f) =>
|
|
178
|
-
f.appliesTo === EventPromotionAppliesToEnum.PerTicket &&
|
|
179
|
-
f.discountType === EventPromotionDiscountTypeEnum.Flat
|
|
180
|
-
);
|
|
181
|
-
|
|
182
|
-
// Fees applied
|
|
183
|
-
const ticketFeesPromotersFlat = fees.filter(
|
|
184
|
-
(f) =>
|
|
185
|
-
f.appliedTo === FeeAppliedToEnum.Ticket &&
|
|
186
|
-
f.appliedBy == FeeAppliedByEnum.Organization &&
|
|
187
|
-
f.type === FeeTypeEnum.Flat
|
|
188
|
-
);
|
|
189
|
-
const ticketFeesPromotersPercent = fees.filter(
|
|
190
|
-
(f) =>
|
|
191
|
-
f.appliedTo === FeeAppliedToEnum.Ticket &&
|
|
192
|
-
f.appliedBy == FeeAppliedByEnum.Organization &&
|
|
193
|
-
f.type === FeeTypeEnum.Percent
|
|
194
|
-
);
|
|
195
|
-
|
|
196
|
-
const ticketFeesSelloutPercent = fees.filter(
|
|
197
|
-
(f) =>
|
|
198
|
-
f.appliedTo === FeeAppliedToEnum.Ticket &&
|
|
199
|
-
f.appliedBy == FeeAppliedByEnum.Sellout &&
|
|
200
|
-
f.type === FeeTypeEnum.Percent
|
|
201
|
-
);
|
|
202
|
-
// added upgrade fee percentage for sellout fees total
|
|
203
|
-
const upgradeFeesSelloutPercent = fees.filter(
|
|
204
|
-
(f) =>
|
|
205
|
-
f.appliedTo === FeeAppliedToEnum.Upgrade &&
|
|
206
|
-
f.appliedBy == FeeAppliedByEnum.Sellout &&
|
|
207
|
-
f.type === FeeTypeEnum.Percent
|
|
208
|
-
);
|
|
209
|
-
|
|
210
|
-
const upgradeFeesPromotersFees = fees.filter(
|
|
211
|
-
(f) =>
|
|
212
|
-
f.appliedTo === FeeAppliedToEnum.Upgrade &&
|
|
213
|
-
f.appliedBy == FeeAppliedByEnum.Organization
|
|
214
|
-
);
|
|
215
|
-
|
|
216
|
-
const upgradeFeesSelloutFees = fees.filter(
|
|
217
|
-
(f) =>
|
|
218
|
-
f.appliedTo === FeeAppliedToEnum.Upgrade &&
|
|
219
|
-
f.appliedBy == FeeAppliedByEnum.Sellout
|
|
220
|
-
);
|
|
221
|
-
|
|
222
|
-
const selloutFees: any = fees.filter(
|
|
223
|
-
(f) => f.appliedBy == FeeAppliedByEnum.Sellout
|
|
224
|
-
);
|
|
225
|
-
// sales tax fee
|
|
226
|
-
const salesTaxFees = fees.find((f) => f.name == "Sales tax");
|
|
227
|
-
const stripeFees = fees.filter(
|
|
228
|
-
(f) => f.appliedBy == FeeAppliedByEnum.Stripe
|
|
229
|
-
);
|
|
230
|
-
// Orders mattes here. Flat type fees must be applied before Percent type fees
|
|
231
|
-
const promoterOrderFees = fees
|
|
232
|
-
.filter(
|
|
233
|
-
(f) =>
|
|
234
|
-
f.appliedTo === FeeAppliedToEnum.Order &&
|
|
235
|
-
f.name != "Sales tax" &&
|
|
236
|
-
f.appliedBy == FeeAppliedByEnum.Organization
|
|
237
|
-
)
|
|
238
|
-
.sort(({ type }) => {
|
|
239
|
-
if (type === "Flat") return -1;
|
|
240
|
-
else return 1;
|
|
241
|
-
});
|
|
242
|
-
// Caclualtions
|
|
243
|
-
const ticketTotal = tickets.reduce((cur, ticket) => cur + ticket.price, 0);
|
|
244
|
-
const upgradeTotal = upgrades.reduce(
|
|
245
|
-
(cur, upgrade) => cur + upgrade.price,
|
|
246
|
-
0
|
|
247
|
-
);
|
|
248
|
-
|
|
249
|
-
const totalTicketUpgrade = ticketTotal + upgradeTotal;
|
|
250
|
-
|
|
251
|
-
const discountFeeFlatPerTicketTotal = tickets?.reduce((cur, ticket) => {
|
|
252
|
-
return (
|
|
253
|
-
cur +
|
|
254
|
-
ticketFeesPromoCodeFlat?.reduce((cur, promotion) => {
|
|
255
|
-
const value = cur + applyTicketDiscount(ticket, promotion);
|
|
256
|
-
return value;
|
|
257
|
-
}, 0)
|
|
258
|
-
);
|
|
259
|
-
}, 0);
|
|
260
|
-
|
|
261
|
-
const discountFeeFlatPerOrderAmt = promotions?.reduce(
|
|
262
|
-
(cur: number, promotion: IEventPromotion) => {
|
|
263
|
-
if (
|
|
264
|
-
promotion.discountType == EventPromotionDiscountTypeEnum.Flat &&
|
|
265
|
-
promotion.appliesTo === EventPromotionAppliesToEnum.PerOrder
|
|
266
|
-
) {
|
|
267
|
-
const value = cur + promotion.discountValue;
|
|
268
|
-
return value;
|
|
269
|
-
}
|
|
270
|
-
return cur;
|
|
271
|
-
},
|
|
272
|
-
0
|
|
273
|
-
);
|
|
274
|
-
|
|
275
|
-
const discountFeePercentPerOrderAmt = promotions?.reduce(
|
|
276
|
-
(cur: number, promotion: IEventPromotion) => {
|
|
277
|
-
if (
|
|
278
|
-
promotion.discountType == EventPromotionDiscountTypeEnum.Percent &&
|
|
279
|
-
promotion.appliesTo === EventPromotionAppliesToEnum.PerOrder
|
|
280
|
-
) {
|
|
281
|
-
const value = cur + (totalTicketUpgrade * promotion.discountValue) / 100;
|
|
282
|
-
return value;
|
|
283
|
-
}
|
|
284
|
-
return cur;
|
|
285
|
-
},
|
|
286
|
-
0
|
|
287
|
-
);
|
|
288
|
-
|
|
289
|
-
const discount =
|
|
290
|
-
Math.round(
|
|
291
|
-
discountFeeFlatPerTicketTotal || 0 + discountFeePercentPerTicketTotal || 0) || 0;
|
|
292
|
-
const discountOrder =
|
|
293
|
-
Math.round(
|
|
294
|
-
discountFeeFlatPerOrderAmt || 0 + discountFeePercentPerOrderAmt || 0) || 0;
|
|
295
|
-
|
|
296
|
-
const totalTicketAndUpgrades = Math.round(ticketTotal - discountOrder || 0) + Math.round(upgradeTotal);
|
|
297
|
-
|
|
298
|
-
const promoterFeeFlatPerOrderTotal = promoterOrderFees.reduce(
|
|
299
|
-
(acc, fee: any) => {
|
|
300
|
-
return fee.type == FeeTypeEnum.Flat ? acc + getFeeAmtRangeBased(fee) : acc;
|
|
301
|
-
},
|
|
302
|
-
0
|
|
303
|
-
);
|
|
304
|
-
|
|
305
|
-
const promoterFeeFlatPerTicketTotal = tickets.reduce((cur, ticket) => {
|
|
306
|
-
return (
|
|
307
|
-
cur +
|
|
308
|
-
ticketFeesPromotersFlat.reduce((cur, fee) => {
|
|
309
|
-
const value = cur + applyTicketFee(ticket, fee);
|
|
310
|
-
return value;
|
|
311
|
-
}, 0)
|
|
312
|
-
);
|
|
313
|
-
}, 0);
|
|
314
|
-
|
|
315
|
-
const promoterFeeFlatPerUpgradeTotal = upgrades.reduce((cur, upgrade) => {
|
|
316
|
-
return (
|
|
317
|
-
cur +
|
|
318
|
-
upgradeFeesPromotersFees.reduce((cur, fee) => {
|
|
319
|
-
const value = cur + applyUpgradeFee(upgrade, fee);
|
|
320
|
-
return value;
|
|
321
|
-
}, 0)
|
|
322
|
-
);
|
|
323
|
-
}, 0);
|
|
324
|
-
|
|
325
|
-
const SelloutFeeFlatPerUpgradeTotal = upgrades.reduce((cur, upgrade) => {
|
|
326
|
-
return (
|
|
327
|
-
cur +
|
|
328
|
-
upgradeFeesSelloutFees.reduce((cur, fee) => {
|
|
329
|
-
const value = cur + applyUpgradeFee(upgrade, fee);
|
|
330
|
-
return value;
|
|
331
|
-
}, 0)
|
|
332
|
-
);
|
|
333
|
-
}, 0);
|
|
334
|
-
|
|
335
|
-
const promoterFeePercentPerTicketTotal = tickets.reduce((cur, ticket) => {
|
|
336
|
-
return (
|
|
337
|
-
cur +
|
|
338
|
-
ticketFeesPromotersPercent.reduce((cur, fee) => {
|
|
339
|
-
const value = cur + applyTicketFee(ticket, fee);
|
|
340
|
-
return value;
|
|
341
|
-
}, 0)
|
|
342
|
-
);
|
|
343
|
-
}, 0);
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
let promoterFeePercentPerTicketTotal1 = Math.round(promoterFeePercentPerTicketTotal)
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
let selloutFeePercentPerTicketTotal = tickets.reduce((cur, ticket) => {
|
|
351
|
-
return (
|
|
352
|
-
cur +
|
|
353
|
-
ticketFeesSelloutPercent.reduce((cur, fee) => {
|
|
354
|
-
const value = cur + applyTicketFee(ticket, fee);
|
|
355
|
-
return value;
|
|
356
|
-
}, 0)
|
|
357
|
-
);
|
|
358
|
-
}, 0);
|
|
359
|
-
|
|
360
|
-
// added upgrade fee percentage for sellout fees total
|
|
361
|
-
let selloutFeePercentPerUpgradeTotal = upgrades.reduce((cur, upgrade) => {
|
|
362
|
-
return (
|
|
363
|
-
cur +
|
|
364
|
-
upgradeFeesSelloutPercent.reduce((cur, fee) => {
|
|
365
|
-
const value = cur + applyUpgradeFee(upgrade, fee);
|
|
366
|
-
return value;
|
|
367
|
-
}, 0)
|
|
368
|
-
);
|
|
369
|
-
}, 0);
|
|
370
|
-
|
|
371
|
-
selloutFeePercentPerTicketTotal = Math.round(selloutFeePercentPerTicketTotal);
|
|
372
|
-
|
|
373
|
-
const promoterFeePercentPerOrder = promoterOrderFees.reduce((acc, fee) => {
|
|
374
|
-
if (fee.type == FeeTypeEnum.Percent) {
|
|
375
|
-
return acc + getFeeAmtRangeBased(fee, totalTicketAndUpgrades);
|
|
376
|
-
}
|
|
377
|
-
return acc;
|
|
378
|
-
}, 0);
|
|
379
|
-
|
|
380
|
-
let promoterFeePercentPerOrder1 = Math.round(promoterFeePercentPerOrder)
|
|
381
|
-
|
|
382
|
-
const ticketGuestFeeTotalForPromoter = tickets.reduce((cur, ticket) => {
|
|
383
|
-
return (
|
|
384
|
-
cur +
|
|
385
|
-
guestFees.reduce((cur, fee) => {
|
|
386
|
-
const value =
|
|
387
|
-
fee.appliedBy == FeeAppliedByEnum.Organization
|
|
388
|
-
? cur + applyGuestTicketFee(ticket, fee)
|
|
389
|
-
: 0;
|
|
390
|
-
return value;
|
|
391
|
-
}, 0)
|
|
392
|
-
);
|
|
393
|
-
}, 0);
|
|
394
|
-
|
|
395
|
-
const ticketGuestFeeTotalForSellout = tickets.reduce((cur, ticket) => {
|
|
396
|
-
return (
|
|
397
|
-
cur +
|
|
398
|
-
guestFees.reduce((cur, fee) => {
|
|
399
|
-
const value =
|
|
400
|
-
fee.appliedBy == FeeAppliedByEnum.Sellout
|
|
401
|
-
? cur + applyGuestTicketFee(ticket, fee)
|
|
402
|
-
: 0;
|
|
403
|
-
return value;
|
|
404
|
-
}, 0)
|
|
405
|
-
);
|
|
406
|
-
}, 0);
|
|
407
|
-
|
|
408
|
-
const orderSubtotal = Math.round(
|
|
409
|
-
totalTicketAndUpgrades +
|
|
410
|
-
promoterFeeFlatPerTicketTotal +
|
|
411
|
-
promoterFeeFlatPerOrderTotal +
|
|
412
|
-
promoterFeePercentPerTicketTotal1 +
|
|
413
|
-
promoterFeePercentPerOrder1 +
|
|
414
|
-
ticketGuestFeeTotalForPromoter +
|
|
415
|
-
promoterFeeFlatPerUpgradeTotal
|
|
416
|
-
);
|
|
417
|
-
|
|
418
|
-
const salesTaxAmount = salesTaxFees
|
|
419
|
-
? (orderSubtotal * salesTaxFees.value) / 100
|
|
420
|
-
: 0;
|
|
421
|
-
|
|
422
|
-
const promoterTotal = Math.round(orderSubtotal) + Math.round(salesTaxAmount);
|
|
423
|
-
|
|
424
|
-
// apply sellout percent fees on ticket and add-on total rather than promoter total
|
|
425
|
-
const selloutPercentFeesAmt = selloutFees.reduce((acc, fee) => {
|
|
426
|
-
if (fee.type == FeeTypeEnum.Percent && fee.appliedTo == FeeAppliedToEnum.Order) {
|
|
427
|
-
// return acc + getFeeAmount(fee, promoterTotal);
|
|
428
|
-
return acc + getFeeAmtRangeBased(fee, totalTicketAndUpgrades);
|
|
429
|
-
}
|
|
430
|
-
return acc;
|
|
431
|
-
}, 0);
|
|
432
|
-
|
|
433
|
-
const selloutFeeFlatPerTicketAmt = tickets.reduce(
|
|
434
|
-
(cur: number, ticket: any) => {
|
|
435
|
-
return (
|
|
436
|
-
cur +
|
|
437
|
-
selloutFees.reduce((cur: number, fee: IFee) => {
|
|
438
|
-
if (
|
|
439
|
-
fee.type == FeeTypeEnum.Flat &&
|
|
440
|
-
fee.appliedTo === FeeAppliedToEnum.Ticket &&
|
|
441
|
-
!fee?.filters?.includes(FeeFiltersEnum.Seated)
|
|
442
|
-
) {
|
|
443
|
-
const value = cur + applyTicketFee(ticket, fee);
|
|
444
|
-
return value;
|
|
445
|
-
}
|
|
446
|
-
return cur;
|
|
447
|
-
}, 0)
|
|
448
|
-
);
|
|
449
|
-
},
|
|
450
|
-
0
|
|
451
|
-
);
|
|
452
|
-
|
|
453
|
-
const selloutFeeFlatPerOrderAmt = selloutFees.reduce(
|
|
454
|
-
(cur: number, fee: IFee) => {
|
|
455
|
-
if (
|
|
456
|
-
fee.type === FeeTypeEnum.Flat &&
|
|
457
|
-
fee.appliedTo === FeeAppliedToEnum.Order
|
|
458
|
-
) {
|
|
459
|
-
const value = cur + getFeeAmtRangeBased(fee, totalTicketAndUpgrades);
|
|
460
|
-
return value;
|
|
461
|
-
}
|
|
462
|
-
return cur;
|
|
463
|
-
},
|
|
464
|
-
0
|
|
465
|
-
);
|
|
466
|
-
|
|
467
|
-
const selloutSeatedFeeAmt = tickets.reduce((cur: number, ticket: any) => {
|
|
468
|
-
return (
|
|
469
|
-
cur +
|
|
470
|
-
selloutFees.reduce((cur: number, fee: IFee) => {
|
|
471
|
-
if (
|
|
472
|
-
fee.type == FeeTypeEnum.Flat &&
|
|
473
|
-
fee.appliedTo === FeeAppliedToEnum.Ticket &&
|
|
474
|
-
fee?.filters?.includes(FeeFiltersEnum.Seated)
|
|
475
|
-
) {
|
|
476
|
-
const value = cur + applyTicketFee(ticket, fee);
|
|
477
|
-
return value;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
return cur;
|
|
481
|
-
}, 0)
|
|
482
|
-
);
|
|
483
|
-
}, 0);
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
const selloutFeesTotal = Math.round(
|
|
487
|
-
selloutFeePercentPerTicketTotal +
|
|
488
|
-
selloutFeePercentPerUpgradeTotal + // calculated total upgrade fees for sellout fees
|
|
489
|
-
selloutPercentFeesAmt +
|
|
490
|
-
selloutFeeFlatPerTicketAmt +
|
|
491
|
-
selloutFeeFlatPerOrderAmt +
|
|
492
|
-
selloutSeatedFeeAmt +
|
|
493
|
-
ticketGuestFeeTotalForSellout +
|
|
494
|
-
SelloutFeeFlatPerUpgradeTotal
|
|
495
|
-
);
|
|
496
|
-
|
|
497
|
-
const preStripeTotal = promoterTotal + selloutFeesTotal;
|
|
498
|
-
|
|
499
|
-
let stripeFeeAmt = 0;
|
|
500
|
-
|
|
501
|
-
const stripeFeePercentage =
|
|
502
|
-
stripeFees.find((fee) => fee.type == FeeTypeEnum.Percent)?.value || 0;
|
|
503
|
-
const stripeFeeFlat =
|
|
504
|
-
stripeFees.find((fee) => fee.type == FeeTypeEnum.Flat)?.value || 0;
|
|
505
|
-
stripeFeeAmt =
|
|
506
|
-
(preStripeTotal + stripeFeeFlat) / (1 - stripeFeePercentage / 100) -
|
|
507
|
-
preStripeTotal;
|
|
508
|
-
|
|
509
|
-
function applyTicketFee(
|
|
510
|
-
ticket: ICreateOrderTicketParams,
|
|
511
|
-
fee: IFee
|
|
512
|
-
): number {
|
|
513
|
-
// Ignore seated fees if not seated
|
|
514
|
-
if (
|
|
515
|
-
fee.filters &&
|
|
516
|
-
fee.filters.includes(FeeFiltersEnum.Seated) &&
|
|
517
|
-
!ticket.seat
|
|
518
|
-
) {
|
|
519
|
-
return 0;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
const minFee = fee.minAppliedToPrice || 0;
|
|
523
|
-
const maxFee = fee.maxAppliedToPrice || Infinity;
|
|
524
|
-
|
|
525
|
-
if (minFee <= ticket.price && ticket.price <= maxFee) {
|
|
526
|
-
if (fee.type === FeeTypeEnum.Flat) {
|
|
527
|
-
return fee.value;
|
|
528
|
-
}
|
|
529
|
-
if (fee.type === FeeTypeEnum.Percent) {
|
|
530
|
-
return (ticket.price * fee.value) / 100;
|
|
531
|
-
}
|
|
532
|
-
} else {
|
|
533
|
-
return 0;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
return 0;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
function applyTicketDiscount(
|
|
540
|
-
ticket: ICreateOrderTicketParams,
|
|
541
|
-
promotion: IEventPromotion
|
|
542
|
-
): any {
|
|
543
|
-
if (
|
|
544
|
-
promotion.ticketTypeIds.includes(ticket?.ticketTypeId) ||
|
|
545
|
-
promotion.ticketTypeIds.length == 0
|
|
546
|
-
) {
|
|
547
|
-
if (promotion?.discountType === EventPromotionDiscountTypeEnum.Flat) {
|
|
548
|
-
return promotion.discountValue;
|
|
549
|
-
}
|
|
550
|
-
if (promotion.discountType === EventPromotionDiscountTypeEnum.Percent) {
|
|
551
|
-
return (ticket.origionalPrice * promotion.discountValue) / 100;
|
|
552
|
-
}
|
|
553
|
-
} else {
|
|
554
|
-
return 0;
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
function applyUpgradeFee(
|
|
559
|
-
upgrade: ICreateOrderUpgradeParams,
|
|
560
|
-
fee: IFee
|
|
561
|
-
): number {
|
|
562
|
-
const minFee = fee.minAppliedToPrice || 0;
|
|
563
|
-
const maxFee = fee.maxAppliedToPrice || Infinity;
|
|
564
|
-
|
|
565
|
-
if (minFee <= upgrade.price && upgrade.price <= maxFee) {
|
|
566
|
-
if (fee.type === FeeTypeEnum.Flat) {
|
|
567
|
-
return fee.value;
|
|
568
|
-
}
|
|
569
|
-
if (fee.type === FeeTypeEnum.Percent) {
|
|
570
|
-
return (upgrade.price * fee.value) / 100;
|
|
571
|
-
}
|
|
572
|
-
} else {
|
|
573
|
-
return 0;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
return 0;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
let promoterFeeAmount =
|
|
580
|
-
promoterFeeFlatPerTicketTotal +
|
|
581
|
-
promoterFeeFlatPerOrderTotal +
|
|
582
|
-
promoterFeePercentPerTicketTotal1 +
|
|
583
|
-
promoterFeePercentPerOrder1 +
|
|
584
|
-
ticketGuestFeeTotalForPromoter +
|
|
585
|
-
promoterFeeFlatPerUpgradeTotal;
|
|
586
|
-
|
|
587
|
-
// calculate fee based on min and max
|
|
588
|
-
function getFeeAmtRangeBased(fee, amt = 0) {
|
|
589
|
-
const minFee = fee.minAppliedToPrice || 0;
|
|
590
|
-
const maxFee = fee.maxAppliedToPrice || Infinity;
|
|
591
|
-
|
|
592
|
-
if (amt < minFee || amt > maxFee) {
|
|
593
|
-
return 0;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
if (fee.type === FeeTypeEnum.Flat) {
|
|
597
|
-
return fee.value;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
if (fee.type === FeeTypeEnum.Percent) {
|
|
601
|
-
return amt * (fee.value / 100);
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
return 0;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
let total = {
|
|
608
|
-
salesTax: Math.round(salesTaxAmount || 0),
|
|
609
|
-
total: Math.round(preStripeTotal) + Math.round(stripeFeeAmt) || 0,
|
|
610
|
-
promoterFees: Math.round((promoterFeeAmount) || 0),
|
|
611
|
-
stripeFees: Math.round(stripeFeeAmt || 0),
|
|
612
|
-
selloutFees: Math.round(selloutFeesTotal || 0),
|
|
613
|
-
orderSubtotal: Math.round(orderSubtotal || 0),
|
|
614
|
-
subTotal: Math.round(totalTicketAndUpgrades || 0),
|
|
615
|
-
totalFees: Math.round((promoterFeeAmount + stripeFeeAmt + selloutFeesTotal + salesTaxAmount) || 0),
|
|
616
|
-
totalWithoutTaxFees: Math.round((promoterFeeAmount + stripeFeeAmt + selloutFeesTotal) || 0),
|
|
617
|
-
guestFeeForPromoter: Math.round(ticketGuestFeeTotalForPromoter || 0),
|
|
618
|
-
guestFeeForSellout: Math.round(ticketGuestFeeTotalForSellout || 0),
|
|
619
|
-
discountAmount: Math.round(discount || discountOrder) || 0,
|
|
620
|
-
|
|
621
|
-
}
|
|
622
|
-
return total;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
calculatePaymentSubtotal(params: IPaymentCalculatorParams): number {
|
|
626
|
-
let {
|
|
627
|
-
tickets = [],
|
|
628
|
-
upgrades = [],
|
|
629
|
-
paymentMethodType,
|
|
630
|
-
} = params;
|
|
631
|
-
|
|
632
|
-
if (paymentMethodType === PaymentMethodTypeEnum.None) return 0;
|
|
633
|
-
const ticketTotal = tickets.reduce((cur, ticket) => cur + ticket.price, 0); // + (ticket.price * tax/100)
|
|
634
|
-
const upgradeTotal = upgrades.reduce(
|
|
635
|
-
(cur, upgrade) => cur + upgrade.price,
|
|
636
|
-
0
|
|
637
|
-
);
|
|
638
|
-
return ticketTotal + upgradeTotal
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
calculatePaymentSubtotalValue(params: any): number {
|
|
642
|
-
let {
|
|
643
|
-
tickets = [],
|
|
644
|
-
upgrades = [],
|
|
645
|
-
} = params;
|
|
646
|
-
|
|
647
|
-
const ticketTotal = tickets.reduce((cur, ticket) => cur + ticket.price, 0); // + (ticket.price * tax/100)
|
|
648
|
-
const upgradeTotal = upgrades.reduce(
|
|
649
|
-
(cur, upgrade) => cur + upgrade.price,
|
|
650
|
-
0
|
|
651
|
-
); // + (upgrade.price * tax/100)
|
|
652
|
-
|
|
653
|
-
return ticketTotal + upgradeTotal;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
calculateFee(params: IPaymentCalculatorParams): number {
|
|
657
|
-
let { fees } = params;
|
|
658
|
-
const salesTax = fees.filter((f) => f.name == "Sales tax");
|
|
659
|
-
const tax = salesTax.length > 0 ? salesTax[0].value : 0;
|
|
660
|
-
const total = this.calculatePaymentTotal(params).total;
|
|
661
|
-
let subtotal = this.calculatePaymentSubtotal(params);
|
|
662
|
-
subtotal = subtotal + (subtotal * tax) / 100;
|
|
663
|
-
return Math.round(total - subtotal);
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
calculateFeeWithoutTax(params: IPaymentCalculatorParams): any {
|
|
667
|
-
const total = this.calculatePaymentTotal(params);
|
|
668
|
-
return total;
|
|
669
|
-
}
|
|
670
|
-
calculateOrganizationFee(params: IPaymentCalculatorParams): number {
|
|
671
|
-
let { tickets = [], upgrades = [], fees = [], paymentMethodType } = params;
|
|
672
|
-
|
|
673
|
-
fees = FeeUtil.promoterFees(fees);
|
|
674
|
-
return this.calculateFee({
|
|
675
|
-
tickets,
|
|
676
|
-
upgrades,
|
|
677
|
-
fees,
|
|
678
|
-
paymentMethodType,
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
calculateTaxFee(params: IPaymentCalculatorParams): number {
|
|
683
|
-
let { tickets = [], upgrades = [], fees = [], paymentMethodType } = params;
|
|
684
|
-
|
|
685
|
-
fees = FeeUtil.taxFees(fees);
|
|
686
|
-
return this.calculateFeeWithoutTax({
|
|
687
|
-
tickets,
|
|
688
|
-
upgrades,
|
|
689
|
-
fees,
|
|
690
|
-
paymentMethodType,
|
|
691
|
-
});
|
|
692
|
-
}
|
|
693
|
-
calculatePlatformFee(params: IPaymentCalculatorParams): number {
|
|
694
|
-
let { tickets = [], upgrades = [], fees = [], paymentMethodType } = params;
|
|
695
|
-
|
|
696
|
-
fees = FeeUtil.selloutFees(fees);
|
|
697
|
-
|
|
698
|
-
return this.calculateFee({
|
|
699
|
-
tickets,
|
|
700
|
-
upgrades,
|
|
701
|
-
fees,
|
|
702
|
-
paymentMethodType,
|
|
703
|
-
});
|
|
704
|
-
}
|
|
705
|
-
calculateStripeFee(params: IPaymentCalculatorParams): number {
|
|
706
|
-
const total = this.calculatePaymentTotal(params).total;
|
|
707
|
-
const subtotal = this.calculatePaymentSubtotal(params);
|
|
708
|
-
const platformFees = this.calculatePlatformFee(params);
|
|
709
|
-
const organizationFee = this.calculateOrganizationFee(params);
|
|
710
|
-
return total - subtotal - platformFees - organizationFee;
|
|
711
|
-
}
|
|
712
|
-
calculateProcessingFee(params: IPaymentCalculatorParams): number {
|
|
713
|
-
const total = this.calculatePaymentTotal(params).total;
|
|
714
|
-
const subtotal = this.calculatePaymentSubtotal(params);
|
|
715
|
-
const organizationFee = this.calculateOrganizationFee(params);
|
|
716
|
-
return total - subtotal - organizationFee;
|
|
717
|
-
}
|
|
718
|
-
calculateGuestFee(tickets: any, event: any): number {
|
|
719
|
-
let guestTicketFees = event?.fees.filter(
|
|
720
|
-
(fee: IFee) =>
|
|
721
|
-
fee.filters && fee.filters[0] === FeeFiltersEnum.GuestTicket
|
|
722
|
-
);
|
|
723
|
-
|
|
724
|
-
let stripeFees = event?.fees.filter(
|
|
725
|
-
(fee: IFee) =>
|
|
726
|
-
fee.appliedBy === FeeAppliedByEnum.Stripe &&
|
|
727
|
-
fee.type === FeeTypeEnum.Percent
|
|
728
|
-
);
|
|
729
|
-
|
|
730
|
-
let guestFeesValue = guestTicketFees && guestTicketFees[0]?.value;
|
|
731
|
-
let stripeFeesValue = stripeFees && stripeFees[0]?.value;
|
|
732
|
-
let guestMembers = tickets.filter((a) => a.guestTicket).length;
|
|
733
|
-
let guestFees = (guestFeesValue as number) * guestMembers;
|
|
734
|
-
return guestTicketFees.length > 0 && event.organization.isTegIntegration
|
|
735
|
-
? guestFees + (guestFees * stripeFeesValue) / 100
|
|
736
|
-
: 0;
|
|
737
|
-
}
|
|
738
|
-
getApplicableFees({
|
|
739
|
-
price,
|
|
740
|
-
fees,
|
|
741
|
-
isTicketType = false,
|
|
742
|
-
isUpgradeType = false,
|
|
743
|
-
}: {
|
|
744
|
-
price: number;
|
|
745
|
-
fees: any[];
|
|
746
|
-
isTicketType?: boolean;
|
|
747
|
-
isUpgradeType?: boolean;
|
|
748
|
-
}): { label: string; amount: number }[] {
|
|
749
|
-
if (!fees || fees.length === 0) return [];
|
|
750
|
-
|
|
751
|
-
const filteredFees = fees.filter((fee) => {
|
|
752
|
-
const min = fee.minAppliedToPrice;
|
|
753
|
-
const max = fee.maxAppliedToPrice;
|
|
754
|
-
const baseCondition =
|
|
755
|
-
!fee.disabled &&
|
|
756
|
-
((min === 0 && max === 0) || (price >= min && price <= max));
|
|
757
|
-
|
|
758
|
-
if (!baseCondition) return false;
|
|
759
|
-
|
|
760
|
-
const feeSeatedFilter = FeeFiltersEnum.Seated;
|
|
761
|
-
const guestFilter = FeeFiltersEnum.GuestTicket;
|
|
762
|
-
const feeCardEntryFilter = FeeFiltersEnum.CardEntry;
|
|
763
|
-
const feeCardReaderWifiFilter = FeeFiltersEnum.CardReader;
|
|
764
|
-
const feeCardReaderBluetoothFilter = FeeFiltersEnum.CardReaderBluetooth;
|
|
765
|
-
|
|
766
|
-
const excludedFilters = [
|
|
767
|
-
feeSeatedFilter,
|
|
768
|
-
guestFilter,
|
|
769
|
-
feeCardEntryFilter,
|
|
770
|
-
feeCardReaderWifiFilter,
|
|
771
|
-
feeCardReaderBluetoothFilter,
|
|
772
|
-
];
|
|
773
|
-
|
|
774
|
-
const hasExcludedFilter =
|
|
775
|
-
fee.filters &&
|
|
776
|
-
fee.filters.some((filter: string) =>
|
|
777
|
-
excludedFilters.includes(filter as FeeFiltersEnum)
|
|
778
|
-
);
|
|
779
|
-
if (hasExcludedFilter) return false;
|
|
780
|
-
|
|
781
|
-
if (isTicketType) {
|
|
782
|
-
return fee.appliedTo === FeeAppliedToEnum.Ticket &&
|
|
783
|
-
(fee.appliedBy === FeeAppliedByEnum.Sellout);
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
if (isUpgradeType) {
|
|
787
|
-
return fee.appliedTo === FeeAppliedToEnum.Upgrade &&
|
|
788
|
-
(fee.appliedBy === FeeAppliedByEnum.Sellout);
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
return false;
|
|
792
|
-
});
|
|
793
|
-
|
|
794
|
-
//TODO Group by label and sum the amount
|
|
795
|
-
const feeMap = new Map<string, number>();
|
|
796
|
-
|
|
797
|
-
// filteredFees?.forEach((fee) => {
|
|
798
|
-
// const amount =
|
|
799
|
-
// fee?.type === FeeTypeEnum.Flat
|
|
800
|
-
// ? fee.value
|
|
801
|
-
// : (fee.value / 100) * price;
|
|
802
|
-
|
|
803
|
-
// const label =
|
|
804
|
-
// fee?.appliedBy === FeeAppliedByEnum.Sellout
|
|
805
|
-
// ? "Sellout service fees"
|
|
806
|
-
// : fee.name;
|
|
807
|
-
|
|
808
|
-
// const current = feeMap.get(label) || 0;
|
|
809
|
-
// feeMap.set(label, current + amount);
|
|
810
|
-
// });
|
|
811
|
-
filteredFees.forEach((fee) => {
|
|
812
|
-
const amount =
|
|
813
|
-
fee.type === FeeTypeEnum.Flat
|
|
814
|
-
? fee.value
|
|
815
|
-
: (fee.value / 100) * price;
|
|
816
|
-
|
|
817
|
-
const label =
|
|
818
|
-
fee.appliedBy === FeeAppliedByEnum.Sellout ||
|
|
819
|
-
fee.appliedBy === FeeAppliedByEnum.Organization
|
|
820
|
-
? "Sellout service fees"
|
|
821
|
-
: fee.name;
|
|
822
|
-
|
|
823
|
-
const current = feeMap.get(label) || 0;
|
|
824
|
-
feeMap.set(label, current + amount);
|
|
825
|
-
});
|
|
826
|
-
const result: { label: string; amount: number }[] = [];
|
|
827
|
-
feeMap.forEach((amount, label) => {
|
|
828
|
-
result.push({
|
|
829
|
-
label,
|
|
830
|
-
amount: parseFloat((amount / 100).toFixed(2)),
|
|
831
|
-
});
|
|
832
|
-
});
|
|
833
|
-
|
|
834
|
-
return result;
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
export default new PaymentUtil();
|