예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShipmentDocument" /> 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 ShipmentDocument(string id = default(string), TypeEnum?type = default(TypeEnum?), ShipmentDocumentAttributes attributes = default(ShipmentDocumentAttributes), ShipmentDocumentRelationships relationships = default(ShipmentDocumentRelationships))
 {
     // to ensure "attributes" is required (not null)
     if (attributes == null)
     {
         throw new InvalidDataException("attributes is a required property for ShipmentDocument and cannot be null");
     }
     else
     {
         this.Attributes = attributes;
     }
     this.Id            = id;
     this.Type          = type;
     this.Relationships = relationships;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CompanyIdshipmentDocumentsData" /> 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 CompanyIdshipmentDocumentsData(string id = default(string), TypeEnum?type = default(TypeEnum?), ShipmentDocumentAttributes attributes = default(ShipmentDocumentAttributes), CompanyIdshipmentDocumentsDataRelationships relationships = default(CompanyIdshipmentDocumentsDataRelationships))
 {
     this.Id            = id;
     this.Type          = type;
     this.Attributes    = attributes;
     this.Relationships = relationships;
 }