Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportResponse" /> class.
 /// </summary>
 /// <param name="Account">Account contact information. (required).</param>
 /// <param name="Aggregated">Aggregated report billing data including all subtenant accounts if any. (required).</param>
 /// <param name="BillingData">Report billing data. (required).</param>
 /// <param name="Id">Billing report ID. (required).</param>
 /// <param name="Month">Month of requested billing report (required).</param>
 /// <param name="_Object">Billing report response object. Always set to &#39;billing-report&#39;. (required).</param>
 /// <param name="ServicePackage">Report service package..</param>
 /// <param name="Subtenants">List of billing reports for subtenant accounts. Empty list if account does not have any subtenant account. (required).</param>
 public ReportResponse(ReportAccountContactInfo Account = default(ReportAccountContactInfo), ReportBillingData Aggregated = default(ReportBillingData), ReportBillingData BillingData = default(ReportBillingData), string Id = default(string), string Month = default(string), ObjectEnum?_Object = default(ObjectEnum?), ServicePackageReport ServicePackage = default(ServicePackageReport), List <SubtenantAccountReport> Subtenants = default(List <SubtenantAccountReport>))
 {
     // to ensure "Account" is required (not null)
     if (Account == null)
     {
         throw new InvalidDataException("Account is a required property for ReportResponse and cannot be null");
     }
     else
     {
         this.Account = Account;
     }
     // to ensure "Aggregated" is required (not null)
     if (Aggregated == null)
     {
         throw new InvalidDataException("Aggregated is a required property for ReportResponse and cannot be null");
     }
     else
     {
         this.Aggregated = Aggregated;
     }
     // to ensure "BillingData" is required (not null)
     if (BillingData == null)
     {
         throw new InvalidDataException("BillingData is a required property for ReportResponse and cannot be null");
     }
     else
     {
         this.BillingData = BillingData;
     }
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for ReportResponse and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "Month" is required (not null)
     if (Month == null)
     {
         throw new InvalidDataException("Month is a required property for ReportResponse and cannot be null");
     }
     else
     {
         this.Month = Month;
     }
     // to ensure "_Object" is required (not null)
     if (_Object == null)
     {
         throw new InvalidDataException("_Object is a required property for ReportResponse and cannot be null");
     }
     else
     {
         this._Object = _Object;
     }
     // to ensure "Subtenants" is required (not null)
     if (Subtenants == null)
     {
         throw new InvalidDataException("Subtenants is a required property for ReportResponse and cannot be null");
     }
     else
     {
         this.Subtenants = Subtenants;
     }
     this.ServicePackage = ServicePackage;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SubtenantAccountReport" /> class.
 /// </summary>
 /// <param name="Account">Subtenant account contact information. (required).</param>
 /// <param name="BillingData">Report billing data. (required).</param>
 /// <param name="ServicePackage">Report service package for subtenant account..</param>
 public SubtenantAccountReport(SubtenantReportAccountContactInfo Account = default(SubtenantReportAccountContactInfo), ReportBillingData BillingData = default(ReportBillingData), SubtenantServicePackageReport ServicePackage = default(SubtenantServicePackageReport))
 {
     // to ensure "Account" is required (not null)
     if (Account == null)
     {
         throw new InvalidDataException("Account is a required property for SubtenantAccountReport and cannot be null");
     }
     else
     {
         this.Account = Account;
     }
     // to ensure "BillingData" is required (not null)
     if (BillingData == null)
     {
         throw new InvalidDataException("BillingData is a required property for SubtenantAccountReport and cannot be null");
     }
     else
     {
         this.BillingData = BillingData;
     }
     this.ServicePackage = ServicePackage;
 }