Class: CorePro::CustomerBeneficiary

Inherits:
Models::ModelBase show all
Defined in:
lib/corepro/customer_beneficiary.rb

Instance Attribute Summary collapse

Attributes inherited from Models::ModelBase

#requestId

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Models::ModelBase

escape, #to_s

Methods inherited from Models::JsonBase

#from_json!, #is_hash?, #to_hash, #to_json

Instance Attribute Details

#birthDateObject

Returns the value of attribute birthDate.



12
13
14
# File 'lib/corepro/customer_beneficiary.rb', line 12

def birthDate
  @birthDate
end

#customerBeneficiaryIdObject

Returns the value of attribute customerBeneficiaryId.



8
9
10
# File 'lib/corepro/customer_beneficiary.rb', line 8

def customerBeneficiaryId
  @customerBeneficiaryId
end

#customerIdObject

Returns the value of attribute customerId.



7
8
9
# File 'lib/corepro/customer_beneficiary.rb', line 7

def customerId
  @customerId
end

#firstNameObject

Returns the value of attribute firstName.



9
10
11
# File 'lib/corepro/customer_beneficiary.rb', line 9

def firstName
  @firstName
end

#isActiveObject

Returns the value of attribute isActive.



15
16
17
# File 'lib/corepro/customer_beneficiary.rb', line 15

def isActive
  @isActive
end

#lastModifiedDateObject

Returns the value of attribute lastModifiedDate.



16
17
18
# File 'lib/corepro/customer_beneficiary.rb', line 16

def lastModifiedDate
  @lastModifiedDate
end

#lastNameObject

Returns the value of attribute lastName.



11
12
13
# File 'lib/corepro/customer_beneficiary.rb', line 11

def lastName
  @lastName
end

#middleNameObject

Returns the value of attribute middleName.



10
11
12
# File 'lib/corepro/customer_beneficiary.rb', line 10

def middleName
  @middleName
end

#taxIdObject

Returns the value of attribute taxId.



13
14
15
# File 'lib/corepro/customer_beneficiary.rb', line 13

def taxId
  @taxId
end

#taxIdMaskedObject

Returns the value of attribute taxIdMasked.



14
15
16
# File 'lib/corepro/customer_beneficiary.rb', line 14

def taxIdMasked
  @taxIdMasked
end

Class Method Details

.get(customerId, customerBeneficiaryId, connection = nil, loggingObject = nil) ⇒ Object



22
23
24
# File 'lib/corepro/customer_beneficiary.rb', line 22

def self.get(customerId, customerBeneficiaryId, connection = nil, loggingObject = nil)
  CorePro::Utils::Requestor.get("/customerbeneficiary/get/#{customerId}/#{customerBeneficiaryId}", CustomerBeneficiary, connection, loggingObject)
end

.list(customerId, connection = nil, loggingObject = nil) ⇒ Object



18
19
20
# File 'lib/corepro/customer_beneficiary.rb', line 18

def self.list(customerId, connection = nil, loggingObject = nil)
  CorePro::Utils::Requestor.get("/customerbeneficiary/list/#{customerId}", CustomerBeneficiary, connection, loggingObject)
end

Instance Method Details

#create(connection = nil, loggingObject = nil) ⇒ Object



26
27
28
29
# File 'lib/corepro/customer_beneficiary.rb', line 26

def create(connection = nil, loggingObject = nil)
  cbid = CorePro::Utils::Requestor.post('/customerbeneficiary/create', CorePro::Models::CustomerBeneficiaryIdOnly, self, connection, loggingObject)
  cbid.customerBeneficiaryId
end

#deactivate(connection = nil, loggingObject = nil) ⇒ Object



36
37
38
39
# File 'lib/corepro/customer_beneficiary.rb', line 36

def deactivate(connection = nil, loggingObject = nil)
  cbid = CorePro::Utils::Requestor.post('/customerbeneficiary/deactivate', CorePro::Models::CustomerBeneficiaryIdOnly, self, connection, loggingObject)
  cbid.customerBeneficiaryId
end

#update(connection = nil, loggingObject = nil) ⇒ Object



31
32
33
34
# File 'lib/corepro/customer_beneficiary.rb', line 31

def update(connection = nil, loggingObject = nil)
  cbid = CorePro::Utils::Requestor.post('/customerbeneficiary/update', CorePro::Models::CustomerBeneficiaryIdOnly, self, connection, loggingObject)
  cbid.customerBeneficiaryId
end