einvoicing
Version:
A JavaScript library for creating and parsing electronic invoices compliant with the eInvoicing Directive, EN 16931, and popular extensions
25 lines (24 loc) • 683 B
TypeScript
/**
* Payment.ts
*
* @copyright Vitalii Savchuk <esvit666@gmail.com>
* @package esvit/einvoicing
* @licence MIT https://opensource.org/licenses/MIT
*/
import { ValueObject } from "../base/ValueObject";
import PaymentMandate from "./PaymentMandate";
import PaymentTransfer from "./PaymentTransfer";
import PaymentCard from "./PaymentCard";
export interface IPayment {
terms?: string;
meansCode?: string;
meansName?: string;
id?: string;
card?: PaymentCard;
transfer?: PaymentTransfer;
mandate?: PaymentMandate;
}
export default class Payment extends ValueObject<IPayment> {
static create(props: IPayment): Payment;
toPrimitive(): IPayment;
}