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!, #to_hash, #to_json

Instance Attribute Details

#birthDateObject

Returns the value of attribute birthDate.



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

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.



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

def isActive
  @isActive
end

#lastNameObject

Returns the value of attribute lastName.



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

def lastName
  @lastName
end

#taxIdObject

Returns the value of attribute taxId.



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

def taxId
  @taxId
end

#taxIdMaskedObject

Returns the value of attribute taxIdMasked.



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

def taxIdMasked
  @taxIdMasked
end

Class Method Details

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



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

def self.get(customerId, customerBeneficiaryId, connection = nil, loggingObject = nil)
  cb = CustomerBeneficiary.new
  cb.customerId = customerId
  cb.customerBeneficiaryId = customerBeneficiaryId
  cb.get connection, loggingObject
end

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



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

def self.list(customerId, connection = nil, loggingObject = nil)
  cb = CustomerBeneficiary.new
  cb.customerId = customerId
  cb.list connection, loggingObject
end

Instance Method Details

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



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

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



47
48
49
50
# File 'lib/corepro/customer_beneficiary.rb', line 47

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

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



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

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

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



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

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

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



42
43
44
45
# File 'lib/corepro/customer_beneficiary.rb', line 42

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