Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompanyIdpurchaseBillsdetailedData" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="type">Type of the resource.</param>
 /// <param name="attributes">attributes.</param>
 /// <param name="relationships">relationships.</param>
 public CompanyIdpurchaseBillsdetailedData(string id = default(string), TypeEnum?type = default(TypeEnum?), PurchaseBillDetailedFormAttributes attributes = default(PurchaseBillDetailedFormAttributes), CompanyIdpurchaseBillsdetailedDataRelationships relationships = default(CompanyIdpurchaseBillsdetailedDataRelationships))
 {
     this.Id            = id;
     this.Type          = type;
     this.Attributes    = attributes;
     this.Relationships = relationships;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PurchaseBillDetailedForm" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="type">Type of the resource.</param>
 /// <param name="attributes">attributes (required).</param>
 /// <param name="relationships">relationships.</param>
 public PurchaseBillDetailedForm(string id = default(string), TypeEnum?type = default(TypeEnum?), PurchaseBillDetailedFormAttributes attributes = default(PurchaseBillDetailedFormAttributes), Object relationships = default(Object))
 {
     // to ensure "attributes" is required (not null)
     if (attributes == null)
     {
         throw new InvalidDataException("attributes is a required property for PurchaseBillDetailedForm and cannot be null");
     }
     else
     {
         this.Attributes = attributes;
     }
     this.Id            = id;
     this.Type          = type;
     this.Relationships = relationships;
 }