AllocationDTO: {
address?: string;
allocationId: string;
deposit?: {
contract: string;
id: string;
validate?: Record<string, any>;
};
extendTimeout?: number;
makeDeposit?: boolean;
paymentPlatform?: string;
remainingAmount: string;
spentAmount: string;
timeout?: string;
timestamp: string;
totalAmount: string;
}
Type declaration
Optional
address?: string
Readonly
allocationId: string
Optional
deposit?: {
contract: string;
id: string;
validate?: Record<string, any>;
}
contract: string
id: string
Optional
validate?: Record<string, any>
Optional
extendTimeout?: number
Optional
makeDeposit?: boolean
Optional
paymentPlatform?: string
Readonly
remainingAmount: string
Readonly
spentAmount: string
Optional
timeout?: string
Readonly
timestamp: string
totalAmount: string
An Allocation is a designated sum of money reserved for the purpose of making some particular payments. Allocations are currently purely virtual objects. They exist only in Requestor's database. An Allocation is connected to a payment account (wallet) specified by
address
andpaymentPlatform
field. If these fields are not present the default payment platform is used and the address is assumed to be identical to the Requestor's Node ID.NOTE:
timeout
andmakeDeposit
field are currently ignored.