Class: CorePro::Models::CustomerVerifyRequest

Inherits:
ModelBase show all
Defined in:
lib/corepro/models/customer_verify_request.rb

Instance Attribute Summary collapse

Attributes inherited from ModelBase

#requestId

Instance Method Summary collapse

Methods inherited from ModelBase

escape, #to_s

Methods inherited from JsonBase

#is_hash?, #to_hash, #to_json

Constructor Details

#initializeCustomerVerifyRequest

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

#answersObject

Returns the value of attribute answers.



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

def answers
  @answers
end

#customerIdObject

Returns the value of attribute customerId.



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

def customerId
  @customerId
end

#verificationIdObject

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