1- using Newtonsoft . Json ;
2- using System ;
1+ using System ;
32using System . Collections . Generic ;
43
54namespace EstateReportingAPI . DataTransferObjects ;
65
76public class Contract
87{
98 #region Properties
10- [ JsonProperty ( "estate_id" ) ]
119 public Guid EstateId { get ; set ; }
12- [ JsonProperty ( "estate_reporting_id" ) ]
1310 public Int32 EstateReportingId { get ; set ; }
14- [ JsonProperty ( "contract_id" ) ]
1511 public Guid ContractId { get ; set ; }
16- [ JsonProperty ( "contract_reporting_id" ) ]
1712 public Int32 ContractReportingId { get ; set ; }
18- [ JsonProperty ( "description" ) ]
1913 public String Description { get ; set ; }
20- [ JsonProperty ( "operator_name" ) ]
2114 public String OperatorName { get ; set ; }
22- [ JsonProperty ( "operator_id" ) ]
2315 public Guid OperatorId { get ; set ; }
24- [ JsonProperty ( "operator_reporting_id" ) ]
2516 public Int32 OperatorReportingId { get ; set ; }
26- [ JsonProperty ( "products" ) ]
2717 public List < ContractProduct > Products { get ; set ; }
2818 #endregion
2919}
3020
3121public class ContractProduct
3222{
33- [ JsonProperty ( "contract_id" ) ]
3423 public Guid ContractId { get ; set ; }
35- [ JsonProperty ( "contract_product_reporting_id" ) ]
3624 public Int32 ContractProductReportingId { get ; set ; }
3725
38- [ JsonProperty ( "product_id" ) ]
3926 public Guid ProductId { get ; set ; }
40- [ JsonProperty ( "product_name" ) ]
4127 public String ProductName { get ; set ; }
42- [ JsonProperty ( "display_text" ) ]
4328 public String DisplayText { get ; set ; }
44- [ JsonProperty ( "product_type" ) ]
4529 public Int32 ProductType { get ; set ; }
46- [ JsonProperty ( "value" ) ]
4730 public Decimal ? Value { get ; set ; }
48- [ JsonProperty ( "transaction_fees" ) ]
4931 public List < ContractProductTransactionFee > TransactionFees { get ; set ; }
5032}
5133
5234public class ContractProductTransactionFee {
53- [ JsonProperty ( "transaction_fee_id" ) ]
5435 public Guid TransactionFeeId { get ; set ; }
55- [ JsonProperty ( "contract_product_transaction_fee_reporting_id" ) ]
5636 public Int32 ContractProductTransactionFeeReportingId { get ; set ; }
5737
58- [ JsonProperty ( "description" ) ]
5938 public string ? Description { get ; set ; }
60- [ JsonProperty ( "calculation_type" ) ]
6139 public Int32 CalculationType { get ; set ; }
62- [ JsonProperty ( "fee_type" ) ]
6340 public Int32 FeeType { get ; set ; }
64- [ JsonProperty ( "value" ) ]
6541 public Decimal Value { get ; set ; }
6642}
6743
6844
6945public class Estate
7046{
71- [ JsonProperty ( "estate_id" ) ]
7247 public Guid EstateId { get ; set ; }
73- [ JsonProperty ( "estate_name" ) ]
7448 public string ? EstateName { get ; set ; }
75- [ JsonProperty ( "reference" ) ]
7649 public string ? Reference { get ; set ; }
77- [ JsonProperty ( "operators" ) ]
7850 public List < EstateOperator > ? Operators { get ; set ; }
79- [ JsonProperty ( "merchants" ) ]
8051 public List < EstateMerchant > ? Merchants { get ; set ; }
81- [ JsonProperty ( "contracts" ) ]
8252 public List < EstateContract > ? Contracts { get ; set ; }
83- [ JsonProperty ( "users" ) ]
8453 public List < EstateUser > ? Users { get ; set ; }
8554}
8655
8756public class EstateUser
8857{
89- [ JsonProperty ( "user_id" ) ]
9058 public Guid UserId { get ; set ; }
91- [ JsonProperty ( "email_address" ) ]
9259 public string ? EmailAddress { get ; set ; }
93- [ JsonProperty ( "created_date_time" ) ]
9460 public DateTime CreatedDateTime { get ; set ; }
9561}
9662
9763public class EstateOperator
9864{
99- [ JsonProperty ( "operator_id" ) ]
10065 public Guid OperatorId { get ; set ; }
101- [ JsonProperty ( "name" ) ]
10266 public string ? Name { get ; set ; }
103- [ JsonProperty ( "require_custom_merchant_number" ) ]
10467 public bool RequireCustomMerchantNumber { get ; set ; }
105- [ JsonProperty ( "require_custom_terminal_number" ) ]
10668 public bool RequireCustomTerminalNumber { get ; set ; }
107- [ JsonProperty ( "created_date_time" ) ]
10869 public DateTime CreatedDateTime { get ; set ; }
10970}
11071
11172public class EstateContract
11273{
113- [ JsonProperty ( "operator_id" ) ]
11474 public Guid OperatorId { get ; set ; }
115- [ JsonProperty ( "contract_id" ) ]
11675 public Guid ContractId { get ; set ; }
117- [ JsonProperty ( "name" ) ]
11876 public string ? Name { get ; set ; }
119- [ JsonProperty ( "operator_name" ) ]
12077 public string ? OperatorName { get ; set ; }
12178}
12279
12380
12481public class EstateMerchant
12582{
126- [ JsonProperty ( "merchant_id" ) ]
12783 public Guid MerchantId { get ; set ; }
128- [ JsonProperty ( "name" ) ]
12984 public string ? Name { get ; set ; }
130- [ JsonProperty ( "reference" ) ]
13185 public string ? Reference { get ; set ; }
13286}
0 commit comments