Class: MicrosoftGraph::Models::BookingCustomerInformation
- Inherits:
-
BookingCustomerInformationBase
- Object
- BookingCustomerInformationBase
- MicrosoftGraph::Models::BookingCustomerInformation
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/booking_customer_information.rb
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
-
#custom_question_answers ⇒ Object
Gets the customQuestionAnswers property value.
-
#custom_question_answers=(value) ⇒ Object
Sets the customQuestionAnswers property value.
-
#customer_id ⇒ Object
Gets the customerId property value.
-
#customer_id=(value) ⇒ Object
Sets the customerId property value.
-
#email_address ⇒ Object
Gets the emailAddress property value.
-
#email_address=(value) ⇒ Object
Sets the emailAddress property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new BookingCustomerInformation and sets the default values.
-
#location ⇒ Object
Gets the location property value.
-
#location=(value) ⇒ Object
Sets the location property value.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#notes ⇒ Object
Gets the notes property value.
-
#notes=(value) ⇒ Object
Sets the notes property value.
-
#phone ⇒ Object
Gets the phone property value.
-
#phone=(value) ⇒ Object
Sets the phone property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#time_zone ⇒ Object
Gets the timeZone property value.
-
#time_zone=(value) ⇒ Object
Sets the timeZone property value.
Methods inherited from BookingCustomerInformationBase
#additional_data, #additional_data=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new BookingCustomerInformation and sets the default values.
37 38 39 40 |
# File 'lib/models/booking_customer_information.rb', line 37 def initialize() super @odata_type = "#microsoft.graph.bookingCustomerInformation" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
46 47 48 49 |
# File 'lib/models/booking_customer_information.rb', line 46 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return BookingCustomerInformation.new end |
Instance Method Details
#custom_question_answers ⇒ Object
Gets the customQuestionAnswers property value. It consists of the list of custom questions and answers given by the customer as part of the appointment
54 55 56 |
# File 'lib/models/booking_customer_information.rb', line 54 def custom_question_answers return @custom_question_answers end |
#custom_question_answers=(value) ⇒ Object
Sets the customQuestionAnswers property value. It consists of the list of custom questions and answers given by the customer as part of the appointment
62 63 64 |
# File 'lib/models/booking_customer_information.rb', line 62 def custom_question_answers=(value) @custom_question_answers = value end |
#customer_id ⇒ Object
Gets the customerId property value. The ID of the bookingCustomer for this appointment. If no ID is specified when an appointment is created, then a new bookingCustomer object is created. Once set, you should consider the customerId immutable.
69 70 71 |
# File 'lib/models/booking_customer_information.rb', line 69 def customer_id return @customer_id end |
#customer_id=(value) ⇒ Object
Sets the customerId property value. The ID of the bookingCustomer for this appointment. If no ID is specified when an appointment is created, then a new bookingCustomer object is created. Once set, you should consider the customerId immutable.
77 78 79 |
# File 'lib/models/booking_customer_information.rb', line 77 def customer_id=(value) @customer_id = value end |
#email_address ⇒ Object
Gets the emailAddress property value. The SMTP address of the bookingCustomer who is booking the appointment
84 85 86 |
# File 'lib/models/booking_customer_information.rb', line 84 def email_address return @email_address end |
#email_address=(value) ⇒ Object
Sets the emailAddress property value. The SMTP address of the bookingCustomer who is booking the appointment
92 93 94 |
# File 'lib/models/booking_customer_information.rb', line 92 def email_address=(value) @email_address = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/models/booking_customer_information.rb', line 99 def get_field_deserializers() return super.merge({ "customQuestionAnswers" => lambda {|n| @custom_question_answers = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::BookingQuestionAnswer.create_from_discriminator_value(pn) }) }, "customerId" => lambda {|n| @customer_id = n.get_string_value() }, "emailAddress" => lambda {|n| @email_address = n.get_string_value() }, "location" => lambda {|n| @location = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Location.create_from_discriminator_value(pn) }) }, "name" => lambda {|n| @name = n.get_string_value() }, "notes" => lambda {|n| @notes = n.get_string_value() }, "phone" => lambda {|n| @phone = n.get_string_value() }, "timeZone" => lambda {|n| @time_zone = n.get_string_value() }, }) end |
#location ⇒ Object
Gets the location property value. Represents location information for the bookingCustomer who is booking the appointment.
115 116 117 |
# File 'lib/models/booking_customer_information.rb', line 115 def location return @location end |
#location=(value) ⇒ Object
Sets the location property value. Represents location information for the bookingCustomer who is booking the appointment.
123 124 125 |
# File 'lib/models/booking_customer_information.rb', line 123 def location=(value) @location = value end |
#name ⇒ Object
Gets the name property value. The customer’s name.
130 131 132 |
# File 'lib/models/booking_customer_information.rb', line 130 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. The customer’s name.
138 139 140 |
# File 'lib/models/booking_customer_information.rb', line 138 def name=(value) @name = value end |
#notes ⇒ Object
Gets the notes property value. Notes from the customer associated with this appointment. You can get the value only when reading this bookingAppointment by its ID. You can set this property only when initially creating an appointment with a new customer. After that point, the value is computed from the customer represented by the customerId.
145 146 147 |
# File 'lib/models/booking_customer_information.rb', line 145 def notes return @notes end |
#notes=(value) ⇒ Object
Sets the notes property value. Notes from the customer associated with this appointment. You can get the value only when reading this bookingAppointment by its ID. You can set this property only when initially creating an appointment with a new customer. After that point, the value is computed from the customer represented by the customerId.
153 154 155 |
# File 'lib/models/booking_customer_information.rb', line 153 def notes=(value) @notes = value end |
#phone ⇒ Object
Gets the phone property value. The customer’s phone number.
160 161 162 |
# File 'lib/models/booking_customer_information.rb', line 160 def phone return @phone end |
#phone=(value) ⇒ Object
Sets the phone property value. The customer’s phone number.
168 169 170 |
# File 'lib/models/booking_customer_information.rb', line 168 def phone=(value) @phone = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/models/booking_customer_information.rb', line 176 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("customQuestionAnswers", @custom_question_answers) writer.write_string_value("customerId", @customer_id) writer.write_string_value("emailAddress", @email_address) writer.write_object_value("location", @location) writer.write_string_value("name", @name) writer.write_string_value("notes", @notes) writer.write_string_value("phone", @phone) writer.write_string_value("timeZone", @time_zone) end |
#time_zone ⇒ Object
Gets the timeZone property value. The time zone of the customer. For a list of possible values, see dateTimeTimeZone.
192 193 194 |
# File 'lib/models/booking_customer_information.rb', line 192 def time_zone return @time_zone end |
#time_zone=(value) ⇒ Object
Sets the timeZone property value. The time zone of the customer. For a list of possible values, see dateTimeTimeZone.
200 201 202 |
# File 'lib/models/booking_customer_information.rb', line 200 def time_zone=(value) @time_zone = value end |