bitpay-sdk
Version:
Complete version of the NodeJS library for the new cryptographically secure BitPay API
60 lines (59 loc) • 1.76 kB
TypeScript
import { PayoutTransaction } from './PayoutTransaction';
export interface PayoutInterface {
amount: number;
currency: string;
ledgerCurrency: string;
token?: string;
effectiveDate?: string;
dateExecuted?: string;
accountId?: string;
reference?: string;
notificationEmail?: string;
notificationURL?: string;
email?: string;
recipientId?: string;
shopperId?: string;
label?: string;
message?: string;
id?: string;
status?: string;
groupId?: string;
requestDate?: string;
exchangeRates?: Record<string, Record<string, number>>;
transactions?: PayoutTransaction[];
code?: number;
ignoreEmails?: boolean;
}
export declare class Payout implements PayoutInterface {
amount: number;
currency: string;
ledgerCurrency: string;
token?: string;
effectiveDate?: string;
dateExecuted?: string;
accountId?: string;
reference?: string;
notificationEmail?: string;
notificationURL?: string;
email?: string;
recipientId?: string;
shopperId?: string;
label?: string;
message?: string;
id?: string;
status?: string;
groupId?: string;
requestDate?: string;
exchangeRates?: Record<string, Record<string, number>>;
transactions?: PayoutTransaction[];
code?: number;
ignoreEmails: boolean;
/**
* Constructor, create a request Payout object.
*
* @param amount The decimal amount to be paid in the Payout request.
* @param currency The three digit currency string for the Payout to use.
* @param ledgerCurrency The three digit currency string for the Payout to use.
*/
constructor(amount: number, currency: string, ledgerCurrency: string);
}