UNPKG

@unchainedshop/plugins

Version:

Official plugin collection for the Unchained Engine with payment, delivery, and pricing adapters

74 lines (73 loc) 2.05 kB
import type { Response } from './Response.ts'; import type { Request } from './Request.ts'; import type { TransactionAmount, TransactionStatus } from './Transaction.ts'; import type { PaymentMethods } from './PaymentMethods.ts'; export interface PaymentPageAssertInput extends Request { Token: string; } export interface PaymentPageAssertResponse extends Response { Transaction: { Type: 'PAYMENT'; Status: TransactionStatus; Id: string; CaptureId?: string; Date: string; Amount: TransactionAmount; OrderId?: string; AcquirerName?: string; AcquirerReference?: string; SixTransactionReference: string; ApprovalCode?: string; DirectDebit?: string; MandateId: string; CreditorId: string; Invoice: { Payee: Map<string, string>; }; ReasonForTransfer?: string; DueDate?: string; IssuerReference?: Map<string, string>; }; PaymentMeans: { Brand: { PaymentMethod?: PaymentMethods; Name: string; }; }; DisplayText: string; Wallet?: string; Card: { MaskedNumber: string; ExpYear: number; ExpMonth: number; HolderName?: string; HolderSegment?: string; CountryCode?: string; HashValue?: string; }; BankAccount?: Map<string, string>; Twint?: Map<string, string>; Paypal?: Map<string, string>; Payer?: object; BillingAddress?: Map<string, string>; RegistrationResult?: { Success: boolean; Alias?: string; Id: string; Lifetime: number; Error?: { ErrorName?: string; ErrorMessage?: string; }; AuthenticationResult?: { Result: 'OK' | 'NOT_SUPPORTED'; }; Message: string; }; Liability?: object; Dcc?: object; MastercardIssuerInstallments?: object; FraudPrevention?: { Result?: 'APPROVED' | 'MANUAL_REVIEW'; }; }