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.
-
#lastName ⇒ Object
Returns the value of attribute lastName.
-
#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
- #get(connection = nil, loggingObject = nil) ⇒ Object
- #list(connection = nil, loggingObject = nil) ⇒ Object
- #update(connection = nil, loggingObject = nil) ⇒ Object
Methods inherited from Models::ModelBase
Methods inherited from Models::JsonBase
#from_json!, #to_hash, #to_json
Instance Attribute Details
#birthDate ⇒ Object
Returns the value of attribute birthDate.
11 12 13 |
# File 'lib/corepro/customer_beneficiary.rb', line 11 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.
14 15 16 |
# File 'lib/corepro/customer_beneficiary.rb', line 14 def isActive @isActive end |
#lastName ⇒ Object
Returns the value of attribute lastName.
10 11 12 |
# File 'lib/corepro/customer_beneficiary.rb', line 10 def lastName @lastName end |
#taxId ⇒ Object
Returns the value of attribute taxId.
12 13 14 |
# File 'lib/corepro/customer_beneficiary.rb', line 12 def taxId @taxId end |
#taxIdMasked ⇒ Object
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 |