예제 #1
0
 /// <summary>
 /// Initializes a new instance of the CreatePropertyModel class.
 /// </summary>
 /// <param name="code">The code for the property that can be shown in
 /// reports and table views</param>
 /// <param name="commercialRegisterEntry">The entry in the Commercial
 /// Reigster of the company running the property, as it should appear
 /// on invoices</param>
 /// <param name="companyName">The legal name of the company running the
 /// property.</param>
 /// <param name="currencyCode">The currency a property works
 /// with.</param>
 /// <param name="defaultCheckInTime">The default check-in time&lt;br
 /// /&gt;Specify a time (without fractional second part) as defined in
 /// the &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="defaultCheckOutTime">The default check-out time&lt;br
 /// /&gt;Specify a time (without fractional second part) as defined in
 /// the &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="location">The location of the property</param>
 /// <param name="name">The name for the property</param>
 /// <param name="paymentTerms">The payment terms used for all rate
 /// plans</param>
 /// <param name="taxId">The Tax-ID of the company running the property,
 /// as it should appear on invoices</param>
 /// <param name="timeZone">The time zone name of the property from the
 /// IANA Time Zone Database.
 /// (see:
 /// https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)</param>
 /// <param name="bankAccount">Bank account information of the company
 /// running the property</param>
 /// <param name="description">The description for the property</param>
 /// <param name="managingDirectors">The managing director(s) of the
 /// company, as they should appear on invoices</param>
 public CreatePropertyModel(string code, string commercialRegisterEntry, string companyName, string currencyCode, string defaultCheckInTime, string defaultCheckOutTime, CreateAddressModel location, IDictionary <string, string> name, IDictionary <string, string> paymentTerms, string taxId, string timeZone, BankAccountModel bankAccount = default(BankAccountModel), IDictionary <string, string> description = default(IDictionary <string, string>), string managingDirectors = default(string))
 {
     BankAccount             = bankAccount;
     Code                    = code;
     CommercialRegisterEntry = commercialRegisterEntry;
     CompanyName             = companyName;
     CurrencyCode            = currencyCode;
     DefaultCheckInTime      = defaultCheckInTime;
     DefaultCheckOutTime     = defaultCheckOutTime;
     Description             = description;
     Location                = location;
     ManagingDirectors       = managingDirectors;
     Name                    = name;
     PaymentTerms            = paymentTerms;
     TaxId                   = taxId;
     TimeZone                = timeZone;
     CustomInit();
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the PropertyModel class.
 /// </summary>
 /// <param name="code">The code for the property that can be shown in
 /// reports and table views</param>
 /// <param name="commercialRegisterEntry">The entry in the Commercial
 /// Reigster of the company running the property, as it should appear
 /// on invoices</param>
 /// <param name="companyName">The legal name of the company running the
 /// property.</param>
 /// <param name="created">Date of creation&lt;br /&gt;Specify a date
 /// and time (without fractional second part) in UTC or with UTC offset
 /// as defined in &lt;a
 /// href="https://en.wikipedia.org/wiki/ISO_8601"&gt;ISO8601:2004&lt;/a&gt;</param>
 /// <param name="currencyCode">The currency a property works
 /// with.</param>
 /// <param name="id">The property id</param>
 /// <param name="isTemplate">Whether the property can be used as a
 /// template for other properties</param>
 /// <param name="location">The location of the property</param>
 /// <param name="name">The name for the property</param>
 /// <param name="paymentTerms">The payment terms used for all rate
 /// plans</param>
 /// <param name="taxId">The Tax-ID of the company running the property,
 /// as it should appear on invoices</param>
 /// <param name="timeZone">The time zone name of the property from the
 /// IANA Time Zone Database.
 /// (see:
 /// https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)</param>
 /// <param name="description">The description for the property</param>
 /// <param name="managingDirectors">The managing director(s) of the
 /// company, as they should appear on invoices</param>
 /// <param name="propertyTemplateId">The id of the property used as a
 /// template while creating the property</param>
 public PropertyModel(string code, string commercialRegisterEntry, string companyName, System.DateTime created, string currencyCode, string id, bool isTemplate, AddressModel location, IDictionary <string, string> name, IDictionary <string, string> paymentTerms, string taxId, string timeZone, BankAccountModel bankAccount = default(BankAccountModel), IDictionary <string, string> description = default(IDictionary <string, string>), string managingDirectors = default(string), string propertyTemplateId = default(string))
 {
     BankAccount             = bankAccount;
     Code                    = code;
     CommercialRegisterEntry = commercialRegisterEntry;
     CompanyName             = companyName;
     Created                 = created;
     CurrencyCode            = currencyCode;
     Description             = description;
     Id                 = id;
     IsTemplate         = isTemplate;
     Location           = location;
     ManagingDirectors  = managingDirectors;
     Name               = name;
     PaymentTerms       = paymentTerms;
     PropertyTemplateId = propertyTemplateId;
     TaxId              = taxId;
     TimeZone           = timeZone;
     CustomInit();
 }