import 'package:app_hit_a_wod/src/models/box.model.dart';
import 'package:app_hit_a_wod/src/models/subscription.model.dart';
import 'package:app_hit_a_wod/src/models/usage.model.dart';
import 'package:json_annotation/json_annotation.dart';

part 'company.model.g.dart';

@JsonSerializable()
class Company {

  Company();

  factory Company.fromJson(Map<String, dynamic> json) => _$CompanyFromJson(json);
  Map<String, dynamic> toJson() => _$CompanyToJson(this);

  int id;
  String name;
  String slogan;             
  String logo_url;           
  String cif;                
  String address;            
  String city;               
  String zipcode;            
  String country;            
  String county;             
  String phone;              
  String email;              
  String fact_name;          
  String fact_address_line1; 
  String fact_address_line2; 
  String fact_zipcode;       
  String fact_city;          
  String fact_county;        
  String fact_country_code;  
  String fact_prefix;        
  String fact_serie;         
  String card_brand;         
  String card_last_four;     
  DateTime trial_ends_at;
  DateTime created_at;
  DateTime updated_at;
  Subscription active_plan;
  String fiscal_address;
  Usage usage;
  bool is_stripe_active;
  List<Box> boxes;
  String stripe_public_key;
}