19 lines
886 B
TypeScript
19 lines
886 B
TypeScript
import { OpSchema as Refund } from "../../oak-app-domain/Refund/Schema";
|
|
import { Schema, OpSchema as Pay, UpdateOperationData as PayUpdateData } from "../../oak-app-domain/Pay/Schema";
|
|
import PayClazz from "../../types/PayClazz";
|
|
import { BRC } from "../../types/RuntimeCxt";
|
|
export default class Account implements PayClazz {
|
|
refund(refund: Refund): Promise<undefined>;
|
|
closeRefund(refund: Refund): Promise<void>;
|
|
getRefundState(refund: Refund): Promise<[Refund['iState'], undefined]>;
|
|
decodePayNotification(params: Record<string, any>, body: any): Promise<{
|
|
payId: string;
|
|
iState: string | null | undefined;
|
|
extra?: PayUpdateData | undefined;
|
|
}>;
|
|
channel: string;
|
|
prepay(pay: Schema, data: PayUpdateData, context: BRC): Promise<void>;
|
|
getState(pay: Pay): Promise<[string, PayUpdateData]>;
|
|
close(pay: Pay): Promise<void>;
|
|
}
|