// 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 GPayExistingPaymentMethodRequiredKey = "existingPaymentMethodRequired" const val GPayEmailRequiredKey = "emailRequired" const val GPayPhoneNumberRequiredKey = "phoneNumberRequired" const val GPayFullNameRequiredKey = "fullNameRequired" const val GPayFullBillingAddressRequiredKey = "fullBillingAddressRequired" const val GPayCountryCodeKey = "countryCode" const val GPayCompanyLabel = "companyLabel" const val GPayConfigOptionsKey = "googlePayConfig" const val DigitalWalletConfigKey = "digitalWalletConfig" const val GPayTotalPriceLabelKey = "totalPriceLabel" const val GPayLineItemsKey = "lineItems" const val GPayValidateLineItems = "validateLineItems" // 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 EmailKey = "email" const val DigitalWalletCardDescriptionKey = "digitalWalletCardDescription" const val BillingAddressKey = "billingAddress" const val FullNameKey = "fullName" const val FullPhoneticNameKey = "fullPhoneticName" const val PhoneNumberKey = "phoneNumber" const val IsDigitalWalletKey = "isDigitalWallet" // Address Keys const val Address1Key = "address1" const val Address2Key = "address2" const val Address3Key = "address3" const val LocalityKey = "locality" const val AdministrativeAreaKey = "administrativeArea" const val SortingCodeKey = "sortingCode" // Digital Wallet Payment Method Request Keys const val GPayAmountKey = "amount" const val GPayCheckoutStatusKey = "checkoutStatus" const val GPayCurrencyCodeKey = "currencyCode" const val GPayCurrencyMultiplierKey = "currencyMultiplier" // 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" const val BlurEventName = "onBlurEvent" const val FocusEventName = "onFocusEvent" const val CardChangeEventName = "onCardChangeEvent" const val FormCompleteEventName = "onFormCompleteEvent" const val FocusFieldEventName = "onFocusFieldEvent" const val CvvChangeEventName = "onCvvChangeEvent" const val CvvTokenResultEventName = "onCvvTokenResultEvent" const val PaymentMethodResultEventName = "onPaymentMethodResultEvent" const val DigitalWalletButtonClickedEventName = "onClickedEvent" // 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" // Google Pay Button Keys const val ThemeKey = "theme" const val TypeKey = "type" // Line Item Keys const val LineItemAmountKey = "amount" const val LineItemLabelKey = "label" const val LineItemTypeKey = "type" const val LineItemStatusKey = "status" // Result Event Keys const val CvvTokenKey = "token" const val ErrorKey = "error" const val MessageKey = "message" const val CodeKey = "code" } }