Class: MicrosoftGraph::Models::BookingCustomerInformation

Inherits:
BookingCustomerInformationBase show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/booking_customer_information.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BookingCustomerInformationBase

#additional_data, #additional_data=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a booking_customer_information

Raises:

  • (StandardError)


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_answersObject

Gets the customQuestionAnswers property value. It consists of the list of custom questions and answers given by the customer as part of the appointment

Returns:

  • a booking_question_answer



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

Parameters:

  • value

    Value to set for the custom_question_answers property.

Returns:

  • a void



62
63
64
# File 'lib/models/booking_customer_information.rb', line 62

def custom_question_answers=(value)
    @custom_question_answers = value
end

#customer_idObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the customer_id property.

Returns:

  • a void



77
78
79
# File 'lib/models/booking_customer_information.rb', line 77

def customer_id=(value)
    @customer_id = value
end

#email_addressObject

Gets the emailAddress property value. The SMTP address of the bookingCustomer who is booking the appointment

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the email_address property.

Returns:

  • a void



92
93
94
# File 'lib/models/booking_customer_information.rb', line 92

def email_address=(value)
    @email_address = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#locationObject

Gets the location property value. Represents location information for the bookingCustomer who is booking the appointment.

Returns:

  • a location



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.

Parameters:

  • value

    Value to set for the location property.

Returns:

  • a void



123
124
125
# File 'lib/models/booking_customer_information.rb', line 123

def location=(value)
    @location = value
end

#nameObject

Gets the name property value. The customer’s name.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the name property.

Returns:

  • a void



138
139
140
# File 'lib/models/booking_customer_information.rb', line 138

def name=(value)
    @name = value
end

#notesObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the notes property.

Returns:

  • a void



153
154
155
# File 'lib/models/booking_customer_information.rb', line 153

def notes=(value)
    @notes = value
end

#phoneObject

Gets the phone property value. The customer’s phone number.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the phone property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_zoneObject

Gets the timeZone property value. The time zone of the customer. For a list of possible values, see dateTimeTimeZone.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the time_zone property.

Returns:

  • a void



200
201
202
# File 'lib/models/booking_customer_information.rb', line 200

def time_zone=(value)
    @time_zone = value
end