import { isly } from "isly";
import { Acquirer } from "../../Acquirer";
import { Amount } from "../../Amount";
import { Merchant } from "../../Merchant";
import { Exchange } from "../../Transaction/Exchange";
import { Batch } from "../Batch";
import { Fee } from "../Fee";
import { Identifier as SettlementIdentifier } from "../Identifier";
export type Creatable = Creatable.Known | Creatable.Unknown;
export declare namespace Creatable {
interface Base {
card: string;
transaction?: string;
transactionReference?: string;
account: string;
approvalCode: string;
merchant: Merchant;
acquirer: Acquirer;
reference: string;
batch: Batch;
fee: Fee;
amount: Amount;
settlement: SettlementIdentifier;
exchange?: Exchange;
}
namespace Base {
const type: import("isly/dist/cjs/object").IslyObject;
}
interface Capture extends Base {
type: "capture";
}
namespace Capture {
const type: import("isly/dist/cjs/object").IslyObject;
}
interface Refund extends Base {
type: "refund";
}
namespace Refund {
const type: import("isly/dist/cjs/object").IslyObject;
}
type Known = Capture | Refund;
namespace Known {
const type: isly.Type;
}
interface Unknown extends Partial {
type: "unknown";
data: Record;
}
namespace Unknown {
const type: import("isly/dist/cjs/object").IslyObject;
}
const type: isly.Type;
}