Class: MicrosoftGraph::Models::BookingCustomer
- Inherits:
-
BookingCustomerBase
- Object
- Entity
- BookingCustomerBase
- MicrosoftGraph::Models::BookingCustomer
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/booking_customer.rb
Overview
Represents a customer of the 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
-
#addresses ⇒ Object
Gets the addresses property value.
-
#addresses=(value) ⇒ Object
Sets the addresses property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName 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 bookingCustomer and sets the default values.
-
#phones ⇒ Object
Gets the phones property value.
-
#phones=(value) ⇒ Object
Sets the phones property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new bookingCustomer and sets the default values.
42 43 44 45 |
# File 'lib/models/booking_customer.rb', line 42 def initialize() super @odata_type = "#microsoft.graph.bookingCustomer" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
51 52 53 54 |
# File 'lib/models/booking_customer.rb', line 51 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return BookingCustomer.new end |
Instance Method Details
#addresses ⇒ Object
Gets the addresses property value. Addresses associated with the customer. The attribute type of physicalAddress is not supported in v1.0. Internally we map the addresses to the type others.
27 28 29 |
# File 'lib/models/booking_customer.rb', line 27 def addresses return @addresses end |
#addresses=(value) ⇒ Object
Sets the addresses property value. Addresses associated with the customer. The attribute type of physicalAddress is not supported in v1.0. Internally we map the addresses to the type others.
35 36 37 |
# File 'lib/models/booking_customer.rb', line 35 def addresses=(value) @addresses = value end |
#display_name ⇒ Object
Gets the displayName property value. The name of the customer.
59 60 61 |
# File 'lib/models/booking_customer.rb', line 59 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The name of the customer.
67 68 69 |
# File 'lib/models/booking_customer.rb', line 67 def display_name=(value) @display_name = value end |
#email_address ⇒ Object
Gets the emailAddress property value. The SMTP address of the customer.
74 75 76 |
# File 'lib/models/booking_customer.rb', line 74 def email_address return @email_address end |
#email_address=(value) ⇒ Object
Sets the emailAddress property value. The SMTP address of the customer.
82 83 84 |
# File 'lib/models/booking_customer.rb', line 82 def email_address=(value) @email_address = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
89 90 91 92 93 94 95 96 |
# File 'lib/models/booking_customer.rb', line 89 def get_field_deserializers() return super.merge({ "addresses" => lambda {|n| @addresses = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PhysicalAddress.create_from_discriminator_value(pn) }) }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "emailAddress" => lambda {|n| @email_address = n.get_string_value() }, "phones" => lambda {|n| @phones = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Phone.create_from_discriminator_value(pn) }) }, }) end |
#phones ⇒ Object
Gets the phones property value. Phone numbers associated with the customer, including home, business and mobile numbers.
101 102 103 |
# File 'lib/models/booking_customer.rb', line 101 def phones return @phones end |
#phones=(value) ⇒ Object
Sets the phones property value. Phone numbers associated with the customer, including home, business and mobile numbers.
109 110 111 |
# File 'lib/models/booking_customer.rb', line 109 def phones=(value) @phones = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
117 118 119 120 121 122 123 124 |
# File 'lib/models/booking_customer.rb', line 117 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("addresses", @addresses) writer.write_string_value("displayName", @display_name) writer.write_string_value("emailAddress", @email_address) writer.write_collection_of_object_values("phones", @phones) end |