// Copyright © 2022 Olo Inc. All rights reserved. // This software is made available under the Olo Pay SDK License (See LICENSE.md file) package com.olopaysdkreactnative.data class ErrorCodes { // IMPORTANT: THESE STRINGS MAP DIRECTLY TO TYPES DEFINED IN // THE NPM PACKAGE TYPESCRIPT INTERFACE. CHANGING THESE REQUIRES // CHANGES TO THE TYPESCRIPT INTERFACE AND IOS ERROR CODES companion object { const val ApiError = "ApiError" // Stripe API Error const val CardDeclined = "CardDeclined" // Stripe Card Exception const val ConnectionError = "ConnectionError" // Stripe API Error const val DigitalWalletNotReady = "DigitalWalletNotReady" const val DigitalWalletUninitialized = "DigitalWalletUninitialized" const val EmptyCompanyLabel = "EmptyCompanyLabel" const val ExpiredCard = "ExpiredCard" // Stripe Card Exception const val GeneralError = "generalError" //Do not change casing on this... it's a requirement from iOS const val GooglePayDeveloperError = "GooglePayDeveloperError" const val GooglePayInternalError = "GooglePayInternalError" const val GooglePayInvalidSetup = "GooglePayInvalidSetup" const val GooglePayNetworkError = "GooglePayNetworkError" const val InvalidCardDetails = "InvalidCardDetails" // Stripe Card Exception const val InvalidCountryCode = "InvalidCountryCode" const val InvalidCvv = "InvalidCVV" // Stripe Card Exception const val InvalidExpiration = "InvalidExpiration" // Stripe Card Exception const val InvalidNumber = "InvalidNumber" // Stripe Card Exception const val InvalidParameter = "InvalidParameter" const val InvalidPostalCode = "InvalidPostalCode" // Stripe Card Exception const val InvalidRequest = "InvalidRequest" // Stripe API Error const val LineItemsTotalMismatch = "LineItemsTotalMismatch" const val MissingParameter = "MissingParameter" const val ProcessingError = "ProcessingError" // Stripe Card Exception const val SdkUninitialized = "SdkUninitialized" const val UnexpectedError = "UnexpectedError" const val UnknownCard = "UnknownCard" // Stripe Card Exception const val ViewNotFound = "ViewNotFound" } }