import { IIdentity } from '../identity-types'; import * as Extension from '../extension-types'; import * as RequestLogicTypes from '../request-logic-types'; /** Manager of the extension */ export interface IAnyDeclarative extends Extension.IExtension { createDeclareSentPaymentAction: (parameters: ISentParameters) => Extension.IAction; createDeclareSentRefundAction: (parameters: ISentParameters) => Extension.IAction; createDeclareReceivedPaymentAction: (parameters: IReceivedParameters) => Extension.IAction; createDeclareReceivedRefundAction: (parameters: IReceivedParameters) => Extension.IAction; createAddPaymentInstructionAction: (parameters: IAddPaymentInstructionParameters) => Extension.IAction; createAddRefundInstructionAction: (parameters: IAddRefundInstructionParameters) => Extension.IAction; createCreationAction: (parameters: TCreationParameters) => Extension.IAction; createAddDelegateAction: (parameters: IAddDelegateParameters) => Extension.IAction; } /** Extension values of the extension */ export interface IValues { paymentInfo?: any; refundInfo?: any; } /** Parameters of creation action */ export interface ICreationParameters { paymentInfo?: any; refundInfo?: any; payeeDelegate?: IIdentity; payerDelegate?: IIdentity; /** Optional salt to compute a payment reference */ salt?: string; } /** Parameters of declareSentPayment and declareSentRefund action */ export interface ISentParameters { amount: RequestLogicTypes.Amount; note: string; txHash?: string; network?: string; } /** Parameters of declareReceivedPayment and declareReceivedRefund action */ export interface IReceivedParameters { amount: RequestLogicTypes.Amount; note: string; txHash?: string; network?: string; } /** Parameters of addPaymentInstruction action */ export interface IAddPaymentInstructionParameters { paymentInfo: any; } /** Parameters of addRefundInstruction action */ export interface IAddRefundInstructionParameters { refundInfo: any; } /** Parameters of addPayeeDelegate action */ export interface IAddDelegateParameters { delegate: IIdentity; } /** Actions possible */ export declare enum ACTION { CREATE = "create", DECLARE_SENT_PAYMENT = "declareSentPayment", DECLARE_RECEIVED_PAYMENT = "declareReceivedPayment", DECLARE_SENT_REFUND = "declareSentRefund", DECLARE_RECEIVED_REFUND = "declareReceivedRefund", ADD_PAYMENT_INSTRUCTION = "addPaymentInstruction", ADD_REFUND_INSTRUCTION = "addRefundInstruction", ADD_DELEGATE = "addDelegate" } //# sourceMappingURL=pn-any-declarative-types.d.ts.map