UNPKG

payrex-js-sdk

Version:
31 lines (29 loc) 887 B
type PayrexApiError = { code: string; detail: string; parameter: string; }; interface BaseService { basePath: string; } declare enum PayrexPaymentMethods { CARD = "card", GCASH = "gcash", MAYA = "maya", QRPH = "qrph" } declare enum PayrexCardCaptureTypes { AUTOMATIC = "automatic", MANUAL = "manual" } type PI_PaymentMethods = PayrexPaymentMethods; type PI_CaptureType = PayrexCardCaptureTypes; type AvailablePaymentMethods = `${PayrexPaymentMethods}`[]; type PayrexPaymentMethodOptions = { card: { capture_type: `${PayrexCardCaptureTypes}` | string; allowed_bins?: string[]; allowed_funding?: string[]; }; }; export { type AvailablePaymentMethods, type BaseService, type PI_CaptureType, type PI_PaymentMethods, type PayrexApiError, PayrexCardCaptureTypes, type PayrexPaymentMethodOptions, PayrexPaymentMethods };