Class: Unit::Application::CreateIndividualApplicationRequest
- Inherits:
-
Object
- Object
- Unit::Application::CreateIndividualApplicationRequest
- Defined in:
- lib/unit/models/application/create_individual_application_request.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#annual_income ⇒ Object
readonly
Returns the value of attribute annual_income.
-
#date_of_birth ⇒ Object
readonly
Returns the value of attribute date_of_birth.
-
#dba ⇒ Object
readonly
Returns the value of attribute dba.
-
#device_fingerprints ⇒ Object
readonly
Returns the value of attribute device_fingerprints.
-
#ein ⇒ Object
readonly
Returns the value of attribute ein.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#evaluation_params ⇒ Object
readonly
Returns the value of attribute evaluation_params.
-
#full_name ⇒ Object
readonly
Returns the value of attribute full_name.
-
#idempotency_key ⇒ Object
readonly
Returns the value of attribute idempotency_key.
-
#industry ⇒ Object
readonly
Returns the value of attribute industry.
-
#ip ⇒ Object
readonly
Returns the value of attribute ip.
-
#jwt_subject ⇒ Object
readonly
Returns the value of attribute jwt_subject.
-
#nationality ⇒ Object
readonly
Returns the value of attribute nationality.
-
#occupation ⇒ Object
readonly
Returns the value of attribute occupation.
-
#passport ⇒ Object
readonly
Returns the value of attribute passport.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#power_of_attorney_agent ⇒ Object
readonly
Returns the value of attribute power_of_attorney_agent.
-
#sole_proprietorship ⇒ Object
readonly
Returns the value of attribute sole_proprietorship.
-
#source_of_income ⇒ Object
readonly
Returns the value of attribute source_of_income.
-
#ssn ⇒ Object
readonly
Returns the value of attribute ssn.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(ssn, full_name, date_of_birth, address, email, phone, ip = nil, ein = nil, industry = nil, dba = nil, sole_proprietorship = nil, passport = nil, nationality = nil, device_fingerprints = nil, idempotency_key = nil, tags = nil, jwt_subject = nil, power_of_attorney_agent = nil, evaluation_params = nil, occupation = nil, annual_income = nil, source_of_income = nil) ⇒ CreateIndividualApplicationRequest
constructor
A new instance of CreateIndividualApplicationRequest.
- #to_json_api ⇒ Object
Constructor Details
#initialize(ssn, full_name, date_of_birth, address, email, phone, ip = nil, ein = nil, industry = nil, dba = nil, sole_proprietorship = nil, passport = nil, nationality = nil, device_fingerprints = nil, idempotency_key = nil, tags = nil, jwt_subject = nil, power_of_attorney_agent = nil, evaluation_params = nil, occupation = nil, annual_income = nil, source_of_income = nil) ⇒ CreateIndividualApplicationRequest
Returns a new instance of CreateIndividualApplicationRequest.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 34 def initialize(ssn, full_name, date_of_birth, address, email, phone, ip = nil, ein = nil, industry = nil, dba = nil, sole_proprietorship = nil, passport = nil, nationality = nil, device_fingerprints = nil, idempotency_key = nil, = nil, jwt_subject = nil, power_of_attorney_agent = nil, evaluation_params = nil, occupation = nil, annual_income = nil, source_of_income = nil) @ssn = ssn @full_name = full_name @date_of_birth = date_of_birth @address = address @phone = phone @email = email @ip = ip @ein = ein @industry = industry @dba = dba @sole_proprietorship = sole_proprietorship @passport = passport @nationality = nationality @device_fingerprints = device_fingerprints @idempotency_key = idempotency_key @tags = @jwt_object = jwt_subject @power_of_attorney_agent = power_of_attorney_agent @evaluation_params = evaluation_params @occupation = occupation @annual_income = annual_income @source_of_income = source_of_income @type = "individualApplication" end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def address @address end |
#annual_income ⇒ Object (readonly)
Returns the value of attribute annual_income.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def annual_income @annual_income end |
#date_of_birth ⇒ Object (readonly)
Returns the value of attribute date_of_birth.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def date_of_birth @date_of_birth end |
#dba ⇒ Object (readonly)
Returns the value of attribute dba.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def dba @dba end |
#device_fingerprints ⇒ Object (readonly)
Returns the value of attribute device_fingerprints.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def device_fingerprints @device_fingerprints end |
#ein ⇒ Object (readonly)
Returns the value of attribute ein.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def ein @ein end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def email @email end |
#evaluation_params ⇒ Object (readonly)
Returns the value of attribute evaluation_params.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def evaluation_params @evaluation_params end |
#full_name ⇒ Object (readonly)
Returns the value of attribute full_name.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def full_name @full_name end |
#idempotency_key ⇒ Object (readonly)
Returns the value of attribute idempotency_key.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def idempotency_key @idempotency_key end |
#industry ⇒ Object (readonly)
Returns the value of attribute industry.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def industry @industry end |
#ip ⇒ Object (readonly)
Returns the value of attribute ip.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def ip @ip end |
#jwt_subject ⇒ Object (readonly)
Returns the value of attribute jwt_subject.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def jwt_subject @jwt_subject end |
#nationality ⇒ Object (readonly)
Returns the value of attribute nationality.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def nationality @nationality end |
#occupation ⇒ Object (readonly)
Returns the value of attribute occupation.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def occupation @occupation end |
#passport ⇒ Object (readonly)
Returns the value of attribute passport.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def passport @passport end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def phone @phone end |
#power_of_attorney_agent ⇒ Object (readonly)
Returns the value of attribute power_of_attorney_agent.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def power_of_attorney_agent @power_of_attorney_agent end |
#sole_proprietorship ⇒ Object (readonly)
Returns the value of attribute sole_proprietorship.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def sole_proprietorship @sole_proprietorship end |
#source_of_income ⇒ Object (readonly)
Returns the value of attribute source_of_income.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def source_of_income @source_of_income end |
#ssn ⇒ Object (readonly)
Returns the value of attribute ssn.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def ssn @ssn end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def @tags end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 8 def type @type end |
Instance Method Details
#to_json_api ⇒ Object
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/unit/models/application/create_individual_application_request.rb', line 62 def to_json_api payload = { data: { type: type, attributes: { ssn: ssn, fullName: full_name.represent, dateOfBirth: date_of_birth, address: address.represent, email: email, phone: phone.represent, ip: ip, ein: ein, industry: industry, dba: dba, soleProprietorship: sole_proprietorship, passport: passport, nationality: nationality, deviceFingerprints: device_fingerprints, idempotencyKey: idempotency_key, tags: , jwtSubject: jwt_subject, powerOfAttorneyAgent: power_of_attorney_agent&.represent, evaluationParams: evaluation_params&.represent, occupation: occupation, annualIncome: annual_income, sourceOfIncome: source_of_income } } } payload[:data][:attributes].compact! payload.to_json end |