export interface SearchResponse { page: number; count: number; total: number; results: T[]; } export declare enum PaymentProvider { Worldpay = "worldpay", Stripe = "stripe", Smartpay = "smartpay", Epdq = "epdq", Sandbox = "sandbox" } export declare enum AccountType { Live = "live", Test = "test" } export declare enum TransactionState { Undefined = "UNDEFINED", Created = "CREATED", Started = "STARTED", Submitted = "SUBMITTED", Capturable = "CAPTURABLE", Success = "SUCCESS", FailedRejected = "FAILED_REJECTED", FailedExpired = "FAILED_EXPIRED", FailedCancelled = "FAILED_CANCELLED", Cancelled = "CANCELLED", Error = "ERROR", ErrorGateway = "ERROR_GATEWAY" } export declare enum ExternalPayoutState { Undefined = "undefined", InTransit = "intransit", PaidOut = "paidout", Failed = "failed" } export declare enum ExternalTransactionState { Undefined = "undefined", Created = "created", Started = "started", Submitted = "submitted", Capturable = "capturable", Success = "success", Declined = "declined", TimedOut = "timedout", Cancelled = "cancelled", Error = "error" } export declare enum TransactionErrorCode { /** Payment method rejected. P0010. */ Rejected = "P0010", /** Payment expired. P0020. */ Expired = "P0020", /** Payment was cancelled by the user. P0030. */ CancelledByUser = "P0030", /** Payment was cancelled by the service. P0040. */ CancelledByService = "P0040", /** Payment provider returned an error. P0040. */ Error = "P0050" } export interface State { finished: boolean; status: T; code?: TransactionErrorCode; message?: string; } export declare enum TransactionType { Payment = "PAYMENT", Refund = "REFUND" } export declare enum ResourceType { Payment = "PAYMENT", Refund = "REFUND", Payout = "PAYOUT" } export declare enum TransactionSource { CardAPI = "CARD_API", CardPaymentLink = "CARD_PAYMENT_LINK", CardExternalTelephone = "CARD_EXTERNAL_TELEPHONE" } export declare enum EmailCollectionMode { Mandatory = "MANDATORY", Optional = "OPTIONAL", Off = "OFF" } export interface EmailNotifications { PAYMENT_CONFIRMED?: { version: number; enabled: boolean; template_body?: string; }; REFUND_ISSUES?: { version: number; enabled: boolean; template_body?: string; }; } export declare enum CardBrand { Visa = "visa", MasterCard = "master-card", AmericanExpress = "american-express", DinersClub = "diners-club", Discover = "discover", Jcb = "jcb", UnionPay = "unionpay", Maestro = "maestro" } export declare enum CardBrandLabel { Visa = "Visa", MasterCard = "Mastercard", AmericanExpress = "American Express", DinersClub = "Diners Club", Discover = "Discover", Jcb = "Jcb", UnionPay = "Union Pay", Maestro = "Maestro" } export declare enum CardType { Debit = "DEBIT", Credit = "CREDIT" } export interface SupportedCard { id: string; brand: CardBrand; label: string; type: CardType; requires3ds: boolean; } export declare enum Language { English = "en", Welsh = "cy" } export declare type kv = { [key: string]: string | boolean | undefined; }; export declare enum App { Connector = "CONNECTOR", AdminUsers = "ADMIN_USERS", Products = "PRODUCTS", Ledger = "LEDGER", PublicAuth = "PUBLIC_AUTH" }