// 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 DataKeys { // IMPORTANT: THESE STRINGS MAP DIRECTLY TO TYPES DEFINED IN // THE NPM PACKAGE TYPESCRIPT INTERFACE. CHANGING THESE REQUIRES // CHANGES TO THE TYPESCRIPT INTERFACE companion object { // SDK Initialization Keys const val ProductionEnvironmentKey = "productionEnvironment" const val IsInitializedKey = "isInitialized" const val HybridSdkVersionKey = "version" const val HybridBuildTypeKey = "buildType" const val HybridBuildTypePublicValue = "Public" const val HybridBuildTypeInternalValue = "Internal" // Google Pay Initialization Keys const val GPayProductionEnvironmentKey = "googlePayProductionEnvironment" const val GPayExistingPaymentMethodRequiredKey = "existingPaymentMethodRequired" const val GPayEmailRequiredKey = "emailRequired" const val GPayPhoneNumberRequiredKey = "phoneNumberRequired" const val GPayFullAddressFormatKey = "fullAddressFormat" const val GPayCountryCodeKey = "countryCode" const val GPayMerchantNameKey = "merchantName" // Payment Method Keys const val PaymentMethodKey = "paymentMethod" const val IDKey = "id" const val Last4Key = "last4" const val CardTypeKey = "cardType" const val ExpirationMonthKey = "expMonth" const val ExpirationYearKey = "expYear" const val PostalCodeKey = "postalCode" const val CountryCodeKey = "countryCode" const val IsDigitalWalletKey = "isDigitalWallet" // Payment Method Error Keys const val PaymentMethodErrorKey = "error" // Digital Wallet Payment Method Request Keys const val GPayAmountKey = "amount" const val GPayCurrencyCodeKey = "currencyCode" const val GPayCurrencyMultiplierKey = "currencyMultiplier" const val GPayErrorMessageKey = "errorMessage" const val GPayErrorTypeKey = "googlePayErrorType" const val DigitalWalletTypeKey = "digitalWalletType" const val DigitalWalletTypeValue = "googlePay" // OnCardChangeEvent Keys const val InvalidFieldsKey = "invalidFields" const val EmptyFieldsKey = "emptyFields" const val ErrorsKey = "errors" const val EditedFieldsErrorKey = "editedFieldsError" const val AllFieldsErrorKey = "allFieldsError" // OnFocusFieldEvent Keys const val FieldKey = "field" //CvvDetailsChangedEvent Keys const val EditedFieldErrorKey = "editedFieldError" const val UneditedFieldErrorKey = "uneditedFieldError" //Field State Keys const val StateKey = "state" const val IsEmptyKey = "isEmpty" const val IsFocusedKey = "isFocused" const val IsValidKey = "isValid" const val WasEditedKey = "wasEdited" const val WasFocusedKey = "wasFocused" // Events const val DigitalWalletReadyEvent = "digitalWalletReadyEvent" const val GPayIsReadyKey = "isReady" // Style Keys const val BorderWidthKey = "borderWidth" const val BackgroundColorKey = "backgroundColor" const val BorderColorKey = "borderColor" const val CornerRadiusKey = "cornerRadius" const val CursorColorKey = "cursorColor" const val ErrorTextColorKey = "errorTextColor" const val FontFamilyKey = "fontFamily" const val FontWeightKey = "fontWeight" const val PlaceholderColorKey = "placeholderColor" const val FocusedPlaceholderColorKey = "focusedPlaceholderColor" const val ItalicKey = "italic" const val TextPaddingLeftKey = "textPaddingLeft" const val TextPaddingRightKey = "textPaddingRight" const val FontSizeKey = "fontSize" const val TextColorKey = "textColor" const val TextAlignKey = "textAlign" const val CardElevationKey = "cardElevation" const val FieldDividerColorKey = "fieldDividerColor" const val FieldDividerWidthKey = "fieldDividerWidth" // Placeholder Keys const val NumberKey = "number" const val ExpirationKey = "expiration" const val CvvKey = "cvv" // Gravity Keys const val GravityCenterKey = "center" const val GravityRightKey = "right" // Error Message Types const val InvalidErrorKey = "invalidError" const val EmptyErrorKey = "emptyError" const val UnsupportedCardError = "unsupportedCardError" } }