Пример #1
0
        /// <summary>
        /// Returns true if AccountingEmails instances are equal
        /// </summary>
        /// <param name="other">Instance of AccountingEmails to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(AccountingEmails other)
        {
            // credit: http://stackoverflow.com/a/10454552/677735
            if (other == null)
            {
                return(false);
            }

            return(false);
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompanyInfo" /> class.
 /// </summary>
 /// <param name="Address">Address (required).</param>
 /// <param name="PostalCode">PostalCode (required).</param>
 /// <param name="City">City (required).</param>
 /// <param name="CountryIsoCodeAlpha3">CountryIsoCodeAlpha3 (required).</param>
 /// <param name="Company">Company (required).</param>
 /// <param name="VatNumber">VatNumber.</param>
 /// <param name="AccountingEmails">AccountingEmails.</param>
 public CompanyInfo(Address Address = default(Address), PostalCode PostalCode = default(PostalCode), City City = default(City), BeezUPCommonCountryIsoCodeAlpha3 CountryIsoCodeAlpha3 = default(BeezUPCommonCountryIsoCodeAlpha3), Company Company = default(Company), VatNumber VatNumber = default(VatNumber), AccountingEmails AccountingEmails = default(AccountingEmails))
 {
     // to ensure "Address" is required (not null)
     if (Address == null)
     {
         throw new InvalidDataException("Address is a required property for CompanyInfo and cannot be null");
     }
     else
     {
         this.Address = Address;
     }
     // to ensure "PostalCode" is required (not null)
     if (PostalCode == null)
     {
         throw new InvalidDataException("PostalCode is a required property for CompanyInfo and cannot be null");
     }
     else
     {
         this.PostalCode = PostalCode;
     }
     // to ensure "City" is required (not null)
     if (City == null)
     {
         throw new InvalidDataException("City is a required property for CompanyInfo and cannot be null");
     }
     else
     {
         this.City = City;
     }
     // to ensure "CountryIsoCodeAlpha3" is required (not null)
     if (CountryIsoCodeAlpha3 == null)
     {
         throw new InvalidDataException("CountryIsoCodeAlpha3 is a required property for CompanyInfo and cannot be null");
     }
     else
     {
         this.CountryIsoCodeAlpha3 = CountryIsoCodeAlpha3;
     }
     // to ensure "Company" is required (not null)
     if (Company == null)
     {
         throw new InvalidDataException("Company is a required property for CompanyInfo and cannot be null");
     }
     else
     {
         this.Company = Company;
     }
     this.VatNumber        = VatNumber;
     this.AccountingEmails = AccountingEmails;
 }