Class: CorePro::Models::CustomerVerifyRequest
- Defined in:
- lib/corepro/models/customer_verify_request.rb
Instance Attribute Summary collapse
-
#answers ⇒ Object
Returns the value of attribute answers.
-
#customerId ⇒ Object
Returns the value of attribute customerId.
-
#verificationId ⇒ Object
Returns the value of attribute verificationId.
Attributes inherited from ModelBase
Instance Method Summary collapse
- #from_json!(json, classDefs) ⇒ Object
-
#initialize ⇒ CustomerVerifyRequest
constructor
A new instance of CustomerVerifyRequest.
- #verify(connection = nil, loggingObject = nil) ⇒ Object
Methods inherited from ModelBase
Methods inherited from JsonBase
Constructor Details
#initialize ⇒ CustomerVerifyRequest
Returns a new instance of CustomerVerifyRequest.
19 20 21 |
# File 'lib/corepro/models/customer_verify_request.rb', line 19 def initialize @answers = [] end |
Instance Attribute Details
#answers ⇒ Object
Returns the value of attribute answers.
11 12 13 |
# File 'lib/corepro/models/customer_verify_request.rb', line 11 def answers @answers end |
#customerId ⇒ Object
Returns the value of attribute customerId.
9 10 11 |
# File 'lib/corepro/models/customer_verify_request.rb', line 9 def customerId @customerId end |
#verificationId ⇒ Object
Returns the value of attribute verificationId.
10 11 12 |
# File 'lib/corepro/models/customer_verify_request.rb', line 10 def verificationId @verificationId end |
Instance Method Details
#from_json!(json, classDefs) ⇒ Object
13 14 15 16 17 |
# File 'lib/corepro/models/customer_verify_request.rb', line 13 def from_json! json, classDefs classDefs = classDefs || {} classDefs['answers'] = CustomerAnswer super json, classDefs end |
#verify(connection = nil, loggingObject = nil) ⇒ Object
23 24 25 |
# File 'lib/corepro/models/customer_verify_request.rb', line 23 def verify(connection = nil, loggingObject = nil) CorePro::Utils::Requestor.post('/customer/verify', CustomerResponse, self, connection, loggingObject) end |