import { CardType } from './IPaymentCard'; export default interface IPandaPayload { readonly unique_ref: string; readonly approval_code: number; readonly response_code: 'E' | 'D' | 'R' | 'P'; readonly response_text: string; readonly bank_response_code: string; readonly authorized_amount?: number; readonly avs_response: string; readonly cvv_response: string; readonly processing_terminal: string; readonly fraud_review_response?: string; readonly additionnal_field?: string; readonly card_reference: string; readonly merchant_ref: string; readonly date_time: Date; readonly hash_a_hash: string; readonly brand_tx_identifier: string; readonly last4: string; readonly brand: string; readonly exp: string; } export interface IPandaPaymentRequest { readonly order_id: string; readonly terminal_id?: string; readonly amount: number; readonly timestamp: Date; readonly card_number: string; readonly card_type: CardType; readonly cvv: string; readonly card_expiry: string; readonly card_holdername: string; readonly currency: string; readonly postal_code: string; readonly terminal_type: OrderType; readonly transaction_type: TransactionType; readonly auto_process?: boolean; readonly customer_email?: string; readonly sms_number?: string; readonly address_1: string; readonly address_2?: string; } export interface IPandaRefundPayload { readonly unique_ref: string; readonly response_code: 'A' | 'E' | 'D' | 'R' | 'P'; readonly response_text: string; readonly terminal_id: string; readonly amount: number; readonly date_time: string; readonly hash: string; } export declare enum TransactionType { MOTO = 4, ECOMM = 7, POS = 0, RECURRING = 2, TELEPHONE = 4, MAIL = 4 } export declare enum OrderType { MOTO = 1, ECOMM = 2, POS = 3 }