import { Amount } from '../../commonStateTypes/amount'; import { ID } from '../../commonStateTypes/common'; import { ZeniDate } from '../../zeniDayJS'; export interface ChargeCard { accountLast4: string; available: Amount; balance: Amount; billingAddressId: ID; cardActivationAttemptHistory: CardActivationOrPinChangeAttemptHistory[]; cardCreaterUserId: ID; cardHolderUserId: ID; cardName: string; cardPinChangeAttemptHistory: CardActivationOrPinChangeAttemptHistory[]; cardProvider: string; cardProviderID: ID; cardProviderType: string; connectedAccountId: ID; creditLimitFrequency: CreditLimitFrequency; dailyPurchaseLimit: Amount; dailyPurchaseSpends: Amount; dailyWithdrawalLimit: Amount; dailyWithdrawals: Amount; hold: Amount; id: ID; isDeleted: boolean; isLockedByAdmin: boolean; isPinSet: boolean; limit: Amount; monthlyPurchaseLimit: Amount; monthlyPurchaseSpends: Amount; monthlyWithdrawalLimit: Amount; monthlyWithdrawals: Amount; status: CardStatus; type: CardType; validThru: ValidThru; cardColorCode?: string; createTime?: ZeniDate; inviteUpdateTime?: ZeniDate; isDeclinedTransaction?: boolean; isRepaymentInitiated?: boolean; mailingAddressId?: ID; providerCardCreateTime?: ZeniDate; recommendations?: ChargeCardRecommendation[]; shippingAddressId?: ID; shippingAddressType?: ShippingAddressType; updateTime?: ZeniDate; } export interface ChargeCardRecommendation { creditLimit: Amount; } export interface CardActivationOrPinChangeAttemptHistory { statusCode: CardActivationOrPinUpdateEventCodeType; timestamp: ZeniDate; userId: ID; } export declare const toCardActivationOrPinUpdateEventCodeType: (v: string) => "failed" | "success"; export type CardActivationOrPinUpdateEventCodeType = ReturnType; export interface ChargeCardState { chargeCardByID: Record; } export interface CreditLimitFrequency { code: CreditLimitFrequencyCodeType; name: string; } export declare const toCreditLimitFrequencyCodeType: (v: string) => "weekly" | "monthly" | "quarterly" | "daily" | "yearly"; export type CreditLimitFrequencyCodeType = ReturnType; interface CardStatus { code: CardStatusCodeType; name: string; } export declare const toCardStatusCodeType: (v: string) => "active" | "inactive" | "stolen" | "lost" | "frozen" | "closed_by_customer" | "suspected_fraud" | "request_on_hold" | "locked" | "closed"; export type CardStatusCodeType = ReturnType; export interface ValidThru { month: number; year: number; } export declare const toCreditCardCodeType: (v: string) => "business_physical_credit_card" | "business_virtual_credit_card"; export type CreditCardCodeType = ReturnType; export declare const toDebitCardCodeType: (v: string) => "business_virtual_debit_card" | "business_physical_debit_card"; export type DebitCardCodeType = ReturnType; export declare const toCardCodeType: (v: string) => "business_physical_credit_card" | "business_virtual_credit_card" | "business_virtual_debit_card" | "business_physical_debit_card"; export type CardCodeType = ReturnType; export declare const toChargeCardType: (v: string) => "credit_card" | "debit_card"; export type ChargeCardType = ReturnType; export declare const toShippingAddressType: (v: string) => "card_holder_personal_address" | "company_address" | "custom_address"; export type ShippingAddressType = ReturnType; export interface CardType { code: CreditCardCodeType | DebitCardCodeType; name: string; } export declare const toCardAddressType: (v: string) => "company_address" | "custom_address" | "personal_address"; export type CardAddressType = ReturnType; export {};