Variables
Const AttemptDeleteNonTestUserError
AttemptDeleteNonTestUserError: HttpsError = new functions.https.HttpsError("permission-denied","Deleting normal users in testing mode is not allowed")
Const CardForDeletionNotExist
CardForDeletionNotExist: HttpsError = new functions.https.HttpsError("not-found","The credit card to be deleted does not exist")
Const CreditCardDataMissing
CreditCardDataMissing: HttpsError = new functions.https.HttpsError("not-found","The credit card data is missing")
Const CreditCardIdConflictError
CreditCardIdConflictError: HttpsError = new functions.https.HttpsError("already-exists","The credit card ID has already existed")
Const CreditCardNotExistError
CreditCardNotExistError: HttpsError = new functions.https.HttpsError("not-found","The credit card does not exist")
Const EmptyWalletError
EmptyWalletError: HttpsError = new functions.https.HttpsError("not-found","No card found, wallet is empty")
Const PromoNotExistError
PromoNotExistError: HttpsError = new functions.https.HttpsError("not-found","The promotion ID does not exist")
Const PromotionAlreadyExistError
PromotionAlreadyExistError: HttpsError = new functions.https.HttpsError("already-exists","A promotion with the same ID has already existed")
Const PromotionDataMissingError
PromotionDataMissingError: HttpsError = new functions.https.HttpsError("not-found","The promotion data is missing. Please check if the request object is properly constructed")
Const PromotionIdMissingError
PromotionIdMissingError: HttpsError = new functions.https.HttpsError("not-found","The ID of the promotion is missing")
Const UnauthenticatedUserError
UnauthenticatedUserError: HttpsError = new functions.https.HttpsError("unknown","Unknown user, not authenticated")
Const UnknownUserError
UnknownUserError: HttpsError = new functions.https.HttpsError("unknown","Unknown user, uid not exist")