Class: CorePro::CustomerBeneficiary
- Inherits:
-
Models::ModelBase
- Object
- Models::JsonBase
- Models::ModelBase
- CorePro::CustomerBeneficiary
- Defined in:
- lib/corepro/customer_beneficiary.rb
Instance Attribute Summary collapse
-
#birthDate ⇒ Object
Returns the value of attribute birthDate.
-
#customerBeneficiaryId ⇒ Object
Returns the value of attribute customerBeneficiaryId.
-
#customerId ⇒ Object
Returns the value of attribute customerId.
-
#firstName ⇒ Object
Returns the value of attribute firstName.
-
#isActive ⇒ Object
Returns the value of attribute isActive.
-
#lastModifiedDate ⇒ Object
Returns the value of attribute lastModifiedDate.
-
#lastName ⇒ Object
Returns the value of attribute lastName.
-
#middleName ⇒ Object
Returns the value of attribute middleName.
-
#taxId ⇒ Object
Returns the value of attribute taxId.
-
#taxIdMasked ⇒ Object
Returns the value of attribute taxIdMasked.
Attributes inherited from Models::ModelBase
Class Method Summary collapse
- .get(customerId, customerBeneficiaryId, connection = nil, loggingObject = nil) ⇒ Object
- .list(customerId, connection = nil, loggingObject = nil) ⇒ Object
Instance Method Summary collapse
- #create(connection = nil, loggingObject = nil) ⇒ Object
- #deactivate(connection = nil, loggingObject = nil) ⇒ Object
- #update(connection = nil, loggingObject = nil) ⇒ Object
Methods inherited from Models::ModelBase
Methods inherited from Models::JsonBase
#from_json!, #is_hash?, #to_hash, #to_json
Instance Attribute Details
#birthDate ⇒ Object
Returns the value of attribute birthDate.
12 13 14 |
# File 'lib/corepro/customer_beneficiary.rb', line 12 def birthDate @birthDate end |
#customerBeneficiaryId ⇒ Object
Returns the value of attribute customerBeneficiaryId.
8 9 10 |
# File 'lib/corepro/customer_beneficiary.rb', line 8 def customerBeneficiaryId @customerBeneficiaryId end |
#customerId ⇒ Object
Returns the value of attribute customerId.
7 8 9 |
# File 'lib/corepro/customer_beneficiary.rb', line 7 def customerId @customerId end |
#firstName ⇒ Object
Returns the value of attribute firstName.
9 10 11 |
# File 'lib/corepro/customer_beneficiary.rb', line 9 def firstName @firstName end |
#isActive ⇒ Object
Returns the value of attribute isActive.
15 16 17 |
# File 'lib/corepro/customer_beneficiary.rb', line 15 def isActive @isActive end |
#lastModifiedDate ⇒ Object
Returns the value of attribute lastModifiedDate.
16 17 18 |
# File 'lib/corepro/customer_beneficiary.rb', line 16 def lastModifiedDate @lastModifiedDate end |
#lastName ⇒ Object
Returns the value of attribute lastName.
11 12 13 |
# File 'lib/corepro/customer_beneficiary.rb', line 11 def lastName @lastName end |
#middleName ⇒ Object
Returns the value of attribute middleName.
10 11 12 |
# File 'lib/corepro/customer_beneficiary.rb', line 10 def middleName @middleName end |
#taxId ⇒ Object
Returns the value of attribute taxId.
13 14 15 |
# File 'lib/corepro/customer_beneficiary.rb', line 13 def taxId @taxId end |
#taxIdMasked ⇒ Object
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 |