import { Invoice } from './invoice.model';
import { Payment } from './payment.model';
import { Discount } from './discount.model';

export class BoxOrder {
    id:                  number;
    box_id:              number;
    payment_id:          number;
    user_id:             number;
    invoice_id:          number;
    subtotal:            number;
    vat:                 number;
    total:               number;
    created_at:          Date;
    updated_at:          Date;
    laravel_through_key: number;
    discount:            Discount;
    lines:               Line[];
    invoice:             Invoice;
    payment:             Payment;
}

export class Line {
    id:                     number;
    box_order_id:           number;
    box_product_variant_id: number;
    user_subscription_id:   number;
    price:                  number;
    quantity:               number;
    subtotal:               number;
    vat:                    number;
    total:                  number;
    created_at:             Date;
    updated_at:             Date;
    discount:               Discount;
}