import { AllowedValueWithCode } from '../../commonStateTypes/allowedValue'; import { AmountPayload } from '../reimbursement/reimbursementPayload'; import { CardType, ChargeCard } from './chargeCard'; export interface CardTypePayload { code: string; name: string; } export declare const toCardType: (payload: CardTypePayload) => CardType; interface IssueRequestMetadata { card_name: string; card_type: string; currency_code: string; holder_user_id: string; purchase_limit: number; purchase_limit_frequency: { code: string; }; unit_credit_account_id: string; } export interface ChargeCardPayload { available_amount: number; balance_amount: number; billing_address_id: string; card_id: string; card_name: string; card_provider: string | null; card_purchase_limits: { daily_purchase_limit: number; monthly_purchase_limit: number; }; card_purchase_spends: { daily_purchases: number; monthly_purchases: number; }; card_type: CardTypePayload; card_withdrawal_limits: { daily_withdrawal_limit: number; monthly_withdrawal_limit: number; }; card_withdrawals: { daily_withdrawal: number; monthly_withdrawal: number; }; connected_account_id: string; create_time: string | null; created_by_user_id: string; currency_code: string; currency_symbol: string; expiration_date: string | null; hold_amount: number; holder_user_id: string; idempotency_key: string | null; is_deleted: boolean; is_pin_set: boolean; issue_request_metadata: IssueRequestMetadata | null; last_4_digits: string | null; mailing_address_id: string | null; provider_card_id: string | null; provider_card_type: string | null; provider_last_authorization_fetch_time: string | null; provider_last_transaction_fetch_time: string | null; purchase_limit: number; purchase_limit_frequency: AllowedValueWithCode; status: AllowedValueWithCode; update_time: string | null; zeni_last_transaction_fetch_time: string | null; card_activation_attempt_history?: CardActivationOrPinChangeAttemptHistoryPayload[]; card_color_code?: string | null; card_pin_change_attempt_history?: CardActivationOrPinChangeAttemptHistoryPayload[] | null; invite_update_time?: string | null; is_declined_transaction?: boolean; is_locked_by_admin?: boolean; is_repayment_initiated?: boolean; provider_card_create_time?: string | null; recommendations?: ChargeCardRecommendationPayload[]; shipping_address_id?: string | null; shipping_address_type?: string | null; } interface ChargeCardRecommendationPayload { purchase_limit: AmountPayload; } interface CardActivationOrPinChangeAttemptHistoryPayload { status_code: string; timestamp: string; user_id: string; } export declare const mapChargeCardPayloadToChargeCard: (payload: ChargeCardPayload) => ChargeCard; export {};