Class: Booker::V4::Models::Customer

Inherits:
Model show all
Defined in:
lib/booker/v4/models/customer.rb

Direct Known Subclasses

Customer2

Constant Summary

Constants inherited from Model

Model::CONSTANTIZE_MODULE

Constants inherited from Model

Model::CONSTANTIZE_MODULE

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Concerns::DateTimeConcern

#time_from_booker_datetime, #time_to_booker_datetime, #timezone_from_booker_offset!, #timezone_from_booker_timezone, #to_wday

Methods inherited from Model

constantize, from_list, #initialize, #to_hash, #to_json

Constructor Details

This class inherits a constructor from Booker::Model

Instance Attribute Details

#AddressObject

Returns the value of attribute Address.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def Address
  @Address
end

#AllowReceiveEmailsObject

Returns the value of attribute AllowReceiveEmails.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def AllowReceiveEmails
  @AllowReceiveEmails
end

#AllowReceivePromotionalEmailsObject

Returns the value of attribute AllowReceivePromotionalEmails.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def AllowReceivePromotionalEmails
  @AllowReceivePromotionalEmails
end

#AllowReceiveSMSObject

Returns the value of attribute AllowReceiveSMS.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def AllowReceiveSMS
  @AllowReceiveSMS
end

#CellPhoneObject

Returns the value of attribute CellPhone.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def CellPhone
  @CellPhone
end

#CreditCardObject

Returns the value of attribute CreditCard.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def CreditCard
  @CreditCard
end

#CustomerIDObject

Returns the value of attribute CustomerID.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def CustomerID
  @CustomerID
end

#CustomerRecordTypeObject

Returns the value of attribute CustomerRecordType.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def CustomerRecordType
  @CustomerRecordType
end

#DateOfBirthObject

Returns the value of attribute DateOfBirth.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def DateOfBirth
  @DateOfBirth
end

#EmailObject

Returns the value of attribute Email.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def Email
  @Email
end

#EmergencyContactNameObject

Returns the value of attribute EmergencyContactName.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def EmergencyContactName
  @EmergencyContactName
end

#EmergencyContactPhoneObject

Returns the value of attribute EmergencyContactPhone.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def EmergencyContactPhone
  @EmergencyContactPhone
end

#EmergencyContactRelationshipObject

Returns the value of attribute EmergencyContactRelationship.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def EmergencyContactRelationship
  @EmergencyContactRelationship
end

#FirstNameObject

Returns the value of attribute FirstName.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def FirstName
  @FirstName
end

#GenderObject

Returns the value of attribute Gender.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def Gender
  @Gender
end

#GenderIDObject

Returns the value of attribute GenderID.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def GenderID
  @GenderID
end

#GUIDObject

Returns the value of attribute GUID.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def GUID
  @GUID
end

#HasActiveMembershipObject

Returns the value of attribute HasActiveMembership.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def HasActiveMembership
  @HasActiveMembership
end

#HasMembershipObject

Returns the value of attribute HasMembership.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def HasMembership
  @HasMembership
end

#HasPastMembershipObject

Returns the value of attribute HasPastMembership.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def HasPastMembership
  @HasPastMembership
end

#HomePhoneObject

Returns the value of attribute HomePhone.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def HomePhone
  @HomePhone
end

#IsActiveObject

Returns the value of attribute IsActive.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def IsActive
  @IsActive
end

#IsNewCustomerObject

Returns the value of attribute IsNewCustomer.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def IsNewCustomer
  @IsNewCustomer
end

#LastNameObject

Returns the value of attribute LastName.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def LastName
  @LastName
end

#LocationIDObject

Returns the value of attribute LocationID.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def LocationID
  @LocationID
end

#LocationNameObject

Returns the value of attribute LocationName.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def LocationName
  @LocationName
end

#LoyaltyPointsObject

Returns the value of attribute LoyaltyPoints.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def LoyaltyPoints
  @LoyaltyPoints
end

#MobilePhoneObject

Returns the value of attribute MobilePhone.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def MobilePhone
  @MobilePhone
end

#MobilePhoneCarrierIDObject

Returns the value of attribute MobilePhoneCarrierID.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def MobilePhoneCarrierID
  @MobilePhoneCarrierID
end

#NumberOfReferralsObject

Returns the value of attribute NumberOfReferrals.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def NumberOfReferrals
  @NumberOfReferrals
end

#OccupationObject

Returns the value of attribute Occupation.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def Occupation
  @Occupation
end

#PreferredStaffGenderObject

Returns the value of attribute PreferredStaffGender.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def PreferredStaffGender
  @PreferredStaffGender
end

#PreferredStaffMemberIDObject

Returns the value of attribute PreferredStaffMemberID.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def PreferredStaffMemberID
  @PreferredStaffMemberID
end

#ReferredByCustomerIDObject

Returns the value of attribute ReferredByCustomerID.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def ReferredByCustomerID
  @ReferredByCustomerID
end

#SendEmailObject

Returns the value of attribute SendEmail.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def SendEmail
  @SendEmail
end

#ShippingAddressObject

Returns the value of attribute ShippingAddress.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def ShippingAddress
  @ShippingAddress
end

#WorkPhoneObject

Returns the value of attribute WorkPhone.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def WorkPhone
  @WorkPhone
end

#WorkPhoneExtObject

Returns the value of attribute WorkPhoneExt.



5
6
7
# File 'lib/booker/v4/models/customer.rb', line 5

def WorkPhoneExt
  @WorkPhoneExt
end

Class Method Details

.from_hash(hash) ⇒ Object



44
45
46
47
# File 'lib/booker/v4/models/customer.rb', line 44

def self.from_hash(hash)
  return super unless hash['Customer'].is_a?(Hash)
  super(hash['Customer'].merge('CustomerID' => hash['CustomerID']))
end