コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrderHeaderLinks" /> class.
 /// </summary>
 /// <param name="Self">Self (required).</param>
 public OrderHeaderLinks(LinksGetOrderLink Self = default(LinksGetOrderLink))
 {
     // to ensure "Self" is required (not null)
     if (Self == null)
     {
         throw new InvalidDataException("Self is a required property for OrderHeaderLinks and cannot be null");
     }
     else
     {
         this.Self = Self;
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrderLinks" /> class.
 /// </summary>
 /// <param name="Self">Self (required).</param>
 /// <param name="History">History (required).</param>
 /// <param name="Harvest">Harvest (required).</param>
 /// <param name="SetMerchantInfo">SetMerchantInfo (required).</param>
 /// <param name="ClearMerchantInfo">ClearMerchantInfo (required).</param>
 public OrderLinks(LinksGetOrderLink Self = default(LinksGetOrderLink), LinksGetOrderHistoryLink History = default(LinksGetOrderHistoryLink), LinksHarvestOrderLink Harvest = default(LinksHarvestOrderLink), LinksSetMerchantOrderInfoLink SetMerchantInfo = default(LinksSetMerchantOrderInfoLink), LinksClearMerchantOrderInfoLink ClearMerchantInfo = default(LinksClearMerchantOrderInfoLink))
 {
     // to ensure "Self" is required (not null)
     if (Self == null)
     {
         throw new InvalidDataException("Self is a required property for OrderLinks and cannot be null");
     }
     else
     {
         this.Self = Self;
     }
     // to ensure "History" is required (not null)
     if (History == null)
     {
         throw new InvalidDataException("History is a required property for OrderLinks and cannot be null");
     }
     else
     {
         this.History = History;
     }
     // to ensure "Harvest" is required (not null)
     if (Harvest == null)
     {
         throw new InvalidDataException("Harvest is a required property for OrderLinks and cannot be null");
     }
     else
     {
         this.Harvest = Harvest;
     }
     // to ensure "SetMerchantInfo" is required (not null)
     if (SetMerchantInfo == null)
     {
         throw new InvalidDataException("SetMerchantInfo is a required property for OrderLinks and cannot be null");
     }
     else
     {
         this.SetMerchantInfo = SetMerchantInfo;
     }
     // to ensure "ClearMerchantInfo" is required (not null)
     if (ClearMerchantInfo == null)
     {
         throw new InvalidDataException("ClearMerchantInfo is a required property for OrderLinks and cannot be null");
     }
     else
     {
         this.ClearMerchantInfo = ClearMerchantInfo;
     }
 }