Class: MicrosoftGraph::Models::BookingBusiness
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/booking_business.rb
Overview
Represents a Microsot Bookings Business.
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#address ⇒ Object
Gets the address property value.
-
#address=(value) ⇒ Object
Sets the address property value.
-
#appointments ⇒ Object
Gets the appointments property value.
-
#appointments=(value) ⇒ Object
Sets the appointments property value.
-
#business_hours ⇒ Object
Gets the businessHours property value.
-
#business_hours=(value) ⇒ Object
Sets the businessHours property value.
-
#business_type ⇒ Object
Gets the businessType property value.
-
#business_type=(value) ⇒ Object
Sets the businessType property value.
-
#calendar_view ⇒ Object
Gets the calendarView property value.
-
#calendar_view=(value) ⇒ Object
Sets the calendarView property value.
-
#custom_questions ⇒ Object
Gets the customQuestions property value.
-
#custom_questions=(value) ⇒ Object
Sets the customQuestions property value.
-
#customers ⇒ Object
Gets the customers property value.
-
#customers=(value) ⇒ Object
Sets the customers property value.
-
#default_currency_iso ⇒ Object
Gets the defaultCurrencyIso property value.
-
#default_currency_iso=(value) ⇒ Object
Sets the defaultCurrencyIso property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#email ⇒ Object
Gets the email property value.
-
#email=(value) ⇒ Object
Sets the email property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new bookingBusiness and sets the default values.
-
#is_published ⇒ Object
Gets the isPublished property value.
-
#is_published=(value) ⇒ Object
Sets the isPublished property value.
-
#language_tag ⇒ Object
Gets the languageTag property value.
-
#language_tag=(value) ⇒ Object
Sets the languageTag property value.
-
#phone ⇒ Object
Gets the phone property value.
-
#phone=(value) ⇒ Object
Sets the phone property value.
-
#public_url ⇒ Object
Gets the publicUrl property value.
-
#public_url=(value) ⇒ Object
Sets the publicUrl property value.
-
#scheduling_policy ⇒ Object
Gets the schedulingPolicy property value.
-
#scheduling_policy=(value) ⇒ Object
Sets the schedulingPolicy property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#services ⇒ Object
Gets the services property value.
-
#services=(value) ⇒ Object
Sets the services property value.
-
#staff_members ⇒ Object
Gets the staffMembers property value.
-
#staff_members=(value) ⇒ Object
Sets the staffMembers property value.
-
#web_site_url ⇒ Object
Gets the webSiteUrl property value.
-
#web_site_url=(value) ⇒ Object
Sets the webSiteUrl property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new bookingBusiness and sets the default values.
144 145 146 |
# File 'lib/models/booking_business.rb', line 144 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
152 153 154 155 |
# File 'lib/models/booking_business.rb', line 152 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return BookingBusiness.new end |
Instance Method Details
#address ⇒ Object
Gets the address property value. The street address of the business. The address property, together with phone and webSiteUrl, appear in the footer of a business scheduling page. The attribute type of physicalAddress is not supported in v1.0. Internally we map the addresses to the type others.
69 70 71 |
# File 'lib/models/booking_business.rb', line 69 def address return @address end |
#address=(value) ⇒ Object
Sets the address property value. The street address of the business. The address property, together with phone and webSiteUrl, appear in the footer of a business scheduling page. The attribute type of physicalAddress is not supported in v1.0. Internally we map the addresses to the type others.
77 78 79 |
# File 'lib/models/booking_business.rb', line 77 def address=(value) @address = value end |
#appointments ⇒ Object
Gets the appointments property value. All the appointments of this business. Read-only. Nullable.
84 85 86 |
# File 'lib/models/booking_business.rb', line 84 def appointments return @appointments end |
#appointments=(value) ⇒ Object
Sets the appointments property value. All the appointments of this business. Read-only. Nullable.
92 93 94 |
# File 'lib/models/booking_business.rb', line 92 def appointments=(value) @appointments = value end |
#business_hours ⇒ Object
Gets the businessHours property value. The hours of operation for the business.
99 100 101 |
# File 'lib/models/booking_business.rb', line 99 def business_hours return @business_hours end |
#business_hours=(value) ⇒ Object
Sets the businessHours property value. The hours of operation for the business.
107 108 109 |
# File 'lib/models/booking_business.rb', line 107 def business_hours=(value) @business_hours = value end |
#business_type ⇒ Object
Gets the businessType property value. The type of business.
114 115 116 |
# File 'lib/models/booking_business.rb', line 114 def business_type return @business_type end |
#business_type=(value) ⇒ Object
Sets the businessType property value. The type of business.
122 123 124 |
# File 'lib/models/booking_business.rb', line 122 def business_type=(value) @business_type = value end |
#calendar_view ⇒ Object
Gets the calendarView property value. The set of appointments of this business in a specified date range. Read-only. Nullable.
129 130 131 |
# File 'lib/models/booking_business.rb', line 129 def calendar_view return @calendar_view end |
#calendar_view=(value) ⇒ Object
Sets the calendarView property value. The set of appointments of this business in a specified date range. Read-only. Nullable.
137 138 139 |
# File 'lib/models/booking_business.rb', line 137 def calendar_view=(value) @calendar_view = value end |
#custom_questions ⇒ Object
Gets the customQuestions property value. All the custom questions of this business. Read-only. Nullable.
160 161 162 |
# File 'lib/models/booking_business.rb', line 160 def custom_questions return @custom_questions end |
#custom_questions=(value) ⇒ Object
Sets the customQuestions property value. All the custom questions of this business. Read-only. Nullable.
168 169 170 |
# File 'lib/models/booking_business.rb', line 168 def custom_questions=(value) @custom_questions = value end |
#customers ⇒ Object
Gets the customers property value. All the customers of this business. Read-only. Nullable.
175 176 177 |
# File 'lib/models/booking_business.rb', line 175 def customers return @customers end |
#customers=(value) ⇒ Object
Sets the customers property value. All the customers of this business. Read-only. Nullable.
183 184 185 |
# File 'lib/models/booking_business.rb', line 183 def customers=(value) @customers = value end |
#default_currency_iso ⇒ Object
Gets the defaultCurrencyIso property value. The code for the currency that the business operates in on Microsoft Bookings.
190 191 192 |
# File 'lib/models/booking_business.rb', line 190 def default_currency_iso return @default_currency_iso end |
#default_currency_iso=(value) ⇒ Object
Sets the defaultCurrencyIso property value. The code for the currency that the business operates in on Microsoft Bookings.
198 199 200 |
# File 'lib/models/booking_business.rb', line 198 def default_currency_iso=(value) @default_currency_iso = value end |
#display_name ⇒ Object
Gets the displayName property value. The name of the business, which interfaces with customers. This name appears at the top of the business scheduling page.
205 206 207 |
# File 'lib/models/booking_business.rb', line 205 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The name of the business, which interfaces with customers. This name appears at the top of the business scheduling page.
213 214 215 |
# File 'lib/models/booking_business.rb', line 213 def display_name=(value) @display_name = value end |
#email ⇒ Object
Gets the email property value. The email address for the business.
220 221 222 |
# File 'lib/models/booking_business.rb', line 220 def email return @email end |
#email=(value) ⇒ Object
Sets the email property value. The email address for the business.
228 229 230 |
# File 'lib/models/booking_business.rb', line 228 def email=(value) @email = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 |
# File 'lib/models/booking_business.rb', line 235 def get_field_deserializers() return super.merge({ "address" => lambda {|n| @address = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PhysicalAddress.create_from_discriminator_value(pn) }) }, "appointments" => lambda {|n| @appointments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::BookingAppointment.create_from_discriminator_value(pn) }) }, "businessHours" => lambda {|n| @business_hours = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::BookingWorkHours.create_from_discriminator_value(pn) }) }, "businessType" => lambda {|n| @business_type = n.get_string_value() }, "calendarView" => lambda {|n| @calendar_view = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::BookingAppointment.create_from_discriminator_value(pn) }) }, "customQuestions" => lambda {|n| @custom_questions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::BookingCustomQuestion.create_from_discriminator_value(pn) }) }, "customers" => lambda {|n| @customers = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::BookingCustomerBase.create_from_discriminator_value(pn) }) }, "defaultCurrencyIso" => lambda {|n| @default_currency_iso = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "email" => lambda {|n| @email = n.get_string_value() }, "isPublished" => lambda {|n| @is_published = n.get_boolean_value() }, "languageTag" => lambda {|n| @language_tag = n.get_string_value() }, "phone" => lambda {|n| @phone = n.get_string_value() }, "publicUrl" => lambda {|n| @public_url = n.get_string_value() }, "schedulingPolicy" => lambda {|n| @scheduling_policy = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::BookingSchedulingPolicy.create_from_discriminator_value(pn) }) }, "services" => lambda {|n| @services = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::BookingService.create_from_discriminator_value(pn) }) }, "staffMembers" => lambda {|n| @staff_members = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::BookingStaffMemberBase.create_from_discriminator_value(pn) }) }, "webSiteUrl" => lambda {|n| @web_site_url = n.get_string_value() }, }) end |
#is_published ⇒ Object
Gets the isPublished property value. The scheduling page has been made available to external customers. Use the publish and unpublish actions to set this property. Read-only.
261 262 263 |
# File 'lib/models/booking_business.rb', line 261 def is_published return @is_published end |
#is_published=(value) ⇒ Object
Sets the isPublished property value. The scheduling page has been made available to external customers. Use the publish and unpublish actions to set this property. Read-only.
269 270 271 |
# File 'lib/models/booking_business.rb', line 269 def is_published=(value) @is_published = value end |
#language_tag ⇒ Object
Gets the languageTag property value. The language of the self-service booking page.
276 277 278 |
# File 'lib/models/booking_business.rb', line 276 def language_tag return @language_tag end |
#language_tag=(value) ⇒ Object
Sets the languageTag property value. The language of the self-service booking page.
284 285 286 |
# File 'lib/models/booking_business.rb', line 284 def language_tag=(value) @language_tag = value end |
#phone ⇒ Object
Gets the phone property value. The telephone number for the business. The phone property, together with address and webSiteUrl, appear in the footer of a business scheduling page.
291 292 293 |
# File 'lib/models/booking_business.rb', line 291 def phone return @phone end |
#phone=(value) ⇒ Object
Sets the phone property value. The telephone number for the business. The phone property, together with address and webSiteUrl, appear in the footer of a business scheduling page.
299 300 301 |
# File 'lib/models/booking_business.rb', line 299 def phone=(value) @phone = value end |
#public_url ⇒ Object
Gets the publicUrl property value. The URL for the scheduling page, which is set after you publish or unpublish the page. Read-only.
306 307 308 |
# File 'lib/models/booking_business.rb', line 306 def public_url return @public_url end |
#public_url=(value) ⇒ Object
Sets the publicUrl property value. The URL for the scheduling page, which is set after you publish or unpublish the page. Read-only.
314 315 316 |
# File 'lib/models/booking_business.rb', line 314 def public_url=(value) @public_url = value end |
#scheduling_policy ⇒ Object
Gets the schedulingPolicy property value. Specifies how bookings can be created for this business.
321 322 323 |
# File 'lib/models/booking_business.rb', line 321 def scheduling_policy return @scheduling_policy end |
#scheduling_policy=(value) ⇒ Object
Sets the schedulingPolicy property value. Specifies how bookings can be created for this business.
329 330 331 |
# File 'lib/models/booking_business.rb', line 329 def scheduling_policy=(value) @scheduling_policy = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 |
# File 'lib/models/booking_business.rb', line 337 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("address", @address) writer.write_collection_of_object_values("appointments", @appointments) writer.write_collection_of_object_values("businessHours", @business_hours) writer.write_string_value("businessType", @business_type) writer.write_collection_of_object_values("calendarView", @calendar_view) writer.write_collection_of_object_values("customQuestions", @custom_questions) writer.write_collection_of_object_values("customers", @customers) writer.write_string_value("defaultCurrencyIso", @default_currency_iso) writer.write_string_value("displayName", @display_name) writer.write_string_value("email", @email) writer.write_string_value("languageTag", @language_tag) writer.write_string_value("phone", @phone) writer.write_object_value("schedulingPolicy", @scheduling_policy) writer.write_collection_of_object_values("services", @services) writer.write_collection_of_object_values("staffMembers", @staff_members) writer.write_string_value("webSiteUrl", @web_site_url) end |
#services ⇒ Object
Gets the services property value. All the services offered by this business. Read-only. Nullable.
361 362 363 |
# File 'lib/models/booking_business.rb', line 361 def services return @services end |
#services=(value) ⇒ Object
Sets the services property value. All the services offered by this business. Read-only. Nullable.
369 370 371 |
# File 'lib/models/booking_business.rb', line 369 def services=(value) @services = value end |
#staff_members ⇒ Object
Gets the staffMembers property value. All the staff members that provide services in this business. Read-only. Nullable.
376 377 378 |
# File 'lib/models/booking_business.rb', line 376 def staff_members return @staff_members end |
#staff_members=(value) ⇒ Object
Sets the staffMembers property value. All the staff members that provide services in this business. Read-only. Nullable.
384 385 386 |
# File 'lib/models/booking_business.rb', line 384 def staff_members=(value) @staff_members = value end |
#web_site_url ⇒ Object
Gets the webSiteUrl property value. The URL of the business web site. The webSiteUrl property, together with address, phone, appear in the footer of a business scheduling page.
391 392 393 |
# File 'lib/models/booking_business.rb', line 391 def web_site_url return @web_site_url end |
#web_site_url=(value) ⇒ Object
Sets the webSiteUrl property value. The URL of the business web site. The webSiteUrl property, together with address, phone, appear in the footer of a business scheduling page.
399 400 401 |
# File 'lib/models/booking_business.rb', line 399 def web_site_url=(value) @web_site_url = value end |