export interface Payment { token: string; paymentMethodId: number; bin: string; amount: string; totalFinancedAmount: string; currency: string; installments: number; creditCardPlanId: number; paymentType: string; documentNumber: string; cardholder: string; idVen: number; storeId: string; data: string; subPayments: string[]; } export interface SpsResponsePayment { id: string; status: string; card_number_length: number; date_created: string; bin: string; last_four_digits: string; security_code_length: number; expiration_month: number; expiration_year: number; date_due: string; cardholder: Cardholder; } export interface ResponseApi { success: boolean; errorsMessages: string[]; data: any; } export interface Identification { type: string; number: string; } export interface Cardholder { identification: Identification; name: string; } export interface CreditCard { id: number; name: string; } export interface CreditCardPlans { id: number; creditCarId: number; description: string; installments: number; totalAmount: string; interest: string; tna: string; cft: string; } export interface PaymentResponseInfo { payment_id: string; ticket: string; card_authorization_code: string; address_validation_code: string; message?: any; code?: any; error_type: string; validation_errors: ValidationError[]; error: Error; } export interface Error { type: string; reason: Reason; } export interface Reason { id: number; description: string; additional_description: string; } export interface ValidationError { code: string; param: string; } export interface ErrorDetail { type: string; message: string; param: string; } export interface ErrorTokenInfo { isValid: boolean; error: ErrorDetail; param: string; } export interface ErrorToken { error: ErrorTokenInfo[]; } export interface PaymentResult { success: boolean; paymentId: string; integrator: string; }