import 'package:app_hit_a_wod/src/models/box_order_line.model.dart';
import 'package:app_hit_a_wod/src/models/discount.model.dart';
import 'package:app_hit_a_wod/src/models/invoice.model.dart';
import 'package:app_hit_a_wod/src/models/payment.model.dart';
import 'package:json_annotation/json_annotation.dart';

part 'box_order.model.g.dart';

@JsonSerializable()
class BoxOrder {

  BoxOrder();

  factory BoxOrder.fromJson(Map<String, dynamic> json) => _$BoxOrderFromJson(json);
  Map<String, dynamic> toJson() => _$BoxOrderToJson(this);

  int id;
  int box_id;
  int payment_id;
  int user_id;
  int invoice_id;
  double subtotal;
  double vat;
  double total;
  DateTime created_at;
  DateTime updated_at;
  Discount discount;
  List<BoxOrderLine> lines;
  Invoice invoice;
  Payment payment;

}