trinsic_api 3.3.0.pre.alpha4 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/AadhaarDocumentOutput.md +28 -0
- data/docs/BrazilCnhProviderOutput.md +4 -0
- data/docs/BrazilCpfProviderOutput.md +0 -2
- data/docs/ChinaResidentIdMatchOutput.md +7 -1
- data/docs/CoteDIvoireNidLookup2ProviderOutput.md +4 -0
- data/docs/CzechBankIdProviderOutput.md +2 -2
- data/docs/CzechMojeIdProviderOutput.md +2 -0
- data/docs/DigidentityAddressOutput.md +22 -0
- data/docs/DigidentityProviderOutput.md +40 -0
- data/docs/DigilockerAadhaarProviderOutput.md +5 -1
- data/docs/ElSalvadorDuiProviderOutput.md +2 -2
- data/docs/FinnishTrustNetworkAddressOutput.md +3 -1
- data/docs/FinnishTrustNetworkProviderOutput.md +1 -1
- data/docs/{SignzyIndiaAadhaarFetchProviderOutput.md → IndiaDigilockerAadhaarFetchProviderOutput.md} +6 -2
- data/docs/IndonesiaDukcapilMatchProviderOutput.md +6 -0
- data/docs/ItsmeProviderOutput.md +2 -0
- data/docs/KenyaNidLookup2ProviderOutput.md +4 -0
- data/docs/KoreaTelcoMatchProviderOutput.md +6 -0
- data/docs/NigeriaNinLookup2ProviderOutput.md +4 -0
- data/docs/PhilippinesPhysicalNidProviderOutput.md +5 -1
- data/docs/PolandMobywatelMatchProviderOutput.md +4 -0
- data/docs/Provider.md +6 -2
- data/docs/ProviderInput.md +0 -12
- data/docs/ProviderOutput.md +9 -29
- data/docs/RecommendProviderInformation.md +6 -2
- data/docs/SouthAfricaNidLookup2ProviderOutput.md +2 -0
- data/docs/SubProviderMetadata.md +6 -4
- data/docs/SubmitNativeChallengeResponseRequest.md +1 -1
- data/docs/ZimbabweNidLookup2ProviderOutput.md +2 -0
- data/lib/trinsic_api/api_client.rb +1 -1
- data/lib/trinsic_api/models/{belgium_id_card_provider_output.rb → aadhaar_document_output.rb} +52 -30
- data/lib/trinsic_api/models/brazil_cnh_provider_output.rb +23 -1
- data/lib/trinsic_api/models/brazil_cpf_provider_output.rb +1 -12
- data/lib/trinsic_api/models/china_resident_id_match_output.rb +38 -5
- data/lib/trinsic_api/models/cote_d_ivoire_nid_lookup2_provider_output.rb +23 -1
- data/lib/trinsic_api/models/czech_bank_id_provider_output.rb +2 -2
- data/lib/trinsic_api/models/czech_moje_id_provider_output.rb +12 -1
- data/lib/trinsic_api/models/{nigeria_nin_match2_sex_field.rb → digidentity_address_output.rb} +31 -20
- data/lib/trinsic_api/models/{nigeria_nin_match2_input.rb → digidentity_provider_output.rb} +101 -67
- data/lib/trinsic_api/models/digilocker_aadhaar_provider_output.rb +27 -5
- data/lib/trinsic_api/models/el_salvador_dui_provider_output.rb +2 -2
- data/lib/trinsic_api/models/finnish_trust_network_address_output.rb +16 -5
- data/lib/trinsic_api/models/{signzy_india_aadhaar_fetch_provider_output.rb → india_digilocker_aadhaar_fetch_provider_output.rb} +26 -4
- data/lib/trinsic_api/models/indonesia_dukcapil_match_provider_output.rb +34 -1
- data/lib/trinsic_api/models/itsme_provider_output.rb +12 -1
- data/lib/trinsic_api/models/kenya_nid_lookup2_provider_output.rb +23 -1
- data/lib/trinsic_api/models/korea_telco_match_provider_output.rb +34 -1
- data/lib/trinsic_api/models/nigeria_nin_lookup2_provider_output.rb +23 -1
- data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +27 -5
- data/lib/trinsic_api/models/poland_mobywatel_match_provider_output.rb +23 -1
- data/lib/trinsic_api/models/provider.rb +71 -17
- data/lib/trinsic_api/models/provider_input.rb +1 -67
- data/lib/trinsic_api/models/provider_output.rb +46 -156
- data/lib/trinsic_api/models/recommend_provider_information.rb +71 -17
- data/lib/trinsic_api/models/south_africa_nid_lookup2_provider_output.rb +12 -1
- data/lib/trinsic_api/models/sub_provider_metadata.rb +68 -25
- data/lib/trinsic_api/models/submit_native_challenge_response_request.rb +1 -1
- data/lib/trinsic_api/models/zimbabwe_nid_lookup2_provider_output.rb +12 -1
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +4 -37
- data/spec/models/{kenya_nid_input_spec.rb → aadhaar_document_output_spec.rb} +12 -12
- data/spec/models/brazil_cnh_provider_output_spec.rb +12 -0
- data/spec/models/brazil_cpf_provider_output_spec.rb +0 -6
- data/spec/models/china_resident_id_match_output_spec.rb +18 -0
- data/spec/models/cote_d_ivoire_nid_lookup2_provider_output_spec.rb +12 -0
- data/spec/models/czech_moje_id_provider_output_spec.rb +6 -0
- data/spec/models/{latvia_eparaksts_provider_output_spec.rb → digidentity_address_output_spec.rb} +9 -9
- data/spec/models/{yoti_deeplink_provider_output_spec.rb → digidentity_provider_output_spec.rb} +18 -18
- data/spec/models/digilocker_aadhaar_provider_output_spec.rb +12 -0
- data/spec/models/finnish_trust_network_address_output_spec.rb +6 -0
- data/spec/models/{signzy_india_aadhaar_fetch_provider_output_spec.rb → india_digilocker_aadhaar_fetch_provider_output_spec.rb} +18 -6
- data/spec/models/indonesia_dukcapil_match_provider_output_spec.rb +18 -0
- data/spec/models/itsme_provider_output_spec.rb +6 -0
- data/spec/models/kenya_nid_lookup2_provider_output_spec.rb +12 -0
- data/spec/models/korea_telco_match_provider_output_spec.rb +18 -0
- data/spec/models/nigeria_nin_lookup2_provider_output_spec.rb +12 -0
- data/spec/models/philippines_physical_nid_provider_output_spec.rb +12 -0
- data/spec/models/poland_mobywatel_match_provider_output_spec.rb +12 -0
- data/spec/models/provider_input_spec.rb +0 -36
- data/spec/models/provider_output_spec.rb +21 -81
- data/spec/models/provider_spec.rb +13 -1
- data/spec/models/recommend_provider_information_spec.rb +13 -1
- data/spec/models/south_africa_nid_lookup2_provider_output_spec.rb +6 -0
- data/spec/models/sub_provider_metadata_spec.rb +8 -2
- data/spec/models/zimbabwe_nid_lookup2_provider_output_spec.rb +6 -0
- metadata +293 -425
- data/docs/BelgiumIdCardProviderOutput.md +0 -24
- data/docs/CzechiaMojeIdProviderOutput.md +0 -24
- data/docs/EstoniaIdCardProviderOutput.md +0 -24
- data/docs/FinlandIdCardProviderOutput.md +0 -24
- data/docs/FrejaIndirectProviderOutput.md +0 -24
- data/docs/KenyaNidInput.md +0 -28
- data/docs/KenyaNidMatch2DateOfBirthField.md +0 -20
- data/docs/KenyaNidMatch2FullNameField.md +0 -20
- data/docs/KenyaNidMatch2Input.md +0 -28
- data/docs/KenyaNidMatch2InputSex.md +0 -15
- data/docs/KenyaNidMatch2NationalIdNumberField.md +0 -20
- data/docs/KenyaNidMatch2ProviderOutput.md +0 -24
- data/docs/KenyaNidMatch2SexField.md +0 -20
- data/docs/LatviaEparakstsProviderOutput.md +0 -22
- data/docs/LithuaniaIdCardProviderOutput.md +0 -24
- data/docs/LloydsSmartIdProviderOutput.md +0 -40
- data/docs/NigeriaNinInput.md +0 -30
- data/docs/NigeriaNinMatch2DateOfBirthField.md +0 -20
- data/docs/NigeriaNinMatch2FullNameField.md +0 -20
- data/docs/NigeriaNinMatch2Input.md +0 -30
- data/docs/NigeriaNinMatch2InputSex.md +0 -15
- data/docs/NigeriaNinMatch2NationalIdNumberField.md +0 -20
- data/docs/NigeriaNinMatch2PhoneNumberField.md +0 -20
- data/docs/NigeriaNinMatch2ProviderOutput.md +0 -26
- data/docs/NigeriaNinMatch2SexField.md +0 -20
- data/docs/PortugalIdCardProviderOutput.md +0 -24
- data/docs/SerbiaIdCardProviderOutput.md +0 -24
- data/docs/SouthAfricaNidInput.md +0 -24
- data/docs/SouthAfricaNidMatch2DateOfBirthField.md +0 -20
- data/docs/SouthAfricaNidMatch2FullNameField.md +0 -20
- data/docs/SouthAfricaNidMatch2Input.md +0 -28
- data/docs/SouthAfricaNidMatch2InputSex.md +0 -15
- data/docs/SouthAfricaNidMatch2NationalIdNumberField.md +0 -20
- data/docs/SouthAfricaNidMatch2ProviderOutput.md +0 -26
- data/docs/SouthAfricaNidMatch2SexField.md +0 -20
- data/docs/YotiDeeplinkProviderOutput.md +0 -40
- data/lib/trinsic_api/models/czechia_moje_id_provider_output.rb +0 -196
- data/lib/trinsic_api/models/estonia_id_card_provider_output.rb +0 -196
- data/lib/trinsic_api/models/finland_id_card_provider_output.rb +0 -196
- data/lib/trinsic_api/models/freja_indirect_provider_output.rb +0 -196
- data/lib/trinsic_api/models/kenya_nid_input.rb +0 -353
- data/lib/trinsic_api/models/kenya_nid_match2_date_of_birth_field.rb +0 -173
- data/lib/trinsic_api/models/kenya_nid_match2_full_name_field.rb +0 -173
- data/lib/trinsic_api/models/kenya_nid_match2_input.rb +0 -239
- data/lib/trinsic_api/models/kenya_nid_match2_input_sex.rb +0 -41
- data/lib/trinsic_api/models/kenya_nid_match2_national_id_number_field.rb +0 -173
- data/lib/trinsic_api/models/kenya_nid_match2_provider_output.rb +0 -196
- data/lib/trinsic_api/models/kenya_nid_match2_sex_field.rb +0 -173
- data/lib/trinsic_api/models/latvia_eparaksts_provider_output.rb +0 -185
- data/lib/trinsic_api/models/lithuania_id_card_provider_output.rb +0 -196
- data/lib/trinsic_api/models/lloyds_smart_id_provider_output.rb +0 -284
- data/lib/trinsic_api/models/nigeria_nin_input.rb +0 -339
- data/lib/trinsic_api/models/nigeria_nin_match2_date_of_birth_field.rb +0 -173
- data/lib/trinsic_api/models/nigeria_nin_match2_full_name_field.rb +0 -173
- data/lib/trinsic_api/models/nigeria_nin_match2_input_sex.rb +0 -41
- data/lib/trinsic_api/models/nigeria_nin_match2_national_id_number_field.rb +0 -173
- data/lib/trinsic_api/models/nigeria_nin_match2_phone_number_field.rb +0 -173
- data/lib/trinsic_api/models/nigeria_nin_match2_provider_output.rb +0 -207
- data/lib/trinsic_api/models/portugal_id_card_provider_output.rb +0 -196
- data/lib/trinsic_api/models/serbia_id_card_provider_output.rb +0 -196
- data/lib/trinsic_api/models/south_africa_nid_input.rb +0 -306
- data/lib/trinsic_api/models/south_africa_nid_match2_date_of_birth_field.rb +0 -173
- data/lib/trinsic_api/models/south_africa_nid_match2_full_name_field.rb +0 -173
- data/lib/trinsic_api/models/south_africa_nid_match2_input.rb +0 -239
- data/lib/trinsic_api/models/south_africa_nid_match2_input_sex.rb +0 -41
- data/lib/trinsic_api/models/south_africa_nid_match2_national_id_number_field.rb +0 -173
- data/lib/trinsic_api/models/south_africa_nid_match2_provider_output.rb +0 -207
- data/lib/trinsic_api/models/south_africa_nid_match2_sex_field.rb +0 -173
- data/lib/trinsic_api/models/yoti_deeplink_provider_output.rb +0 -284
- data/spec/models/belgium_id_card_provider_output_spec.rb +0 -54
- data/spec/models/czechia_moje_id_provider_output_spec.rb +0 -54
- data/spec/models/estonia_id_card_provider_output_spec.rb +0 -54
- data/spec/models/finland_id_card_provider_output_spec.rb +0 -54
- data/spec/models/freja_indirect_provider_output_spec.rb +0 -54
- data/spec/models/kenya_nid_match2_date_of_birth_field_spec.rb +0 -42
- data/spec/models/kenya_nid_match2_full_name_field_spec.rb +0 -42
- data/spec/models/kenya_nid_match2_input_sex_spec.rb +0 -30
- data/spec/models/kenya_nid_match2_input_spec.rb +0 -66
- data/spec/models/kenya_nid_match2_national_id_number_field_spec.rb +0 -42
- data/spec/models/kenya_nid_match2_provider_output_spec.rb +0 -54
- data/spec/models/kenya_nid_match2_sex_field_spec.rb +0 -42
- data/spec/models/lithuania_id_card_provider_output_spec.rb +0 -54
- data/spec/models/lloyds_smart_id_provider_output_spec.rb +0 -102
- data/spec/models/nigeria_nin_input_spec.rb +0 -72
- data/spec/models/nigeria_nin_match2_date_of_birth_field_spec.rb +0 -42
- data/spec/models/nigeria_nin_match2_full_name_field_spec.rb +0 -42
- data/spec/models/nigeria_nin_match2_input_sex_spec.rb +0 -30
- data/spec/models/nigeria_nin_match2_input_spec.rb +0 -72
- data/spec/models/nigeria_nin_match2_national_id_number_field_spec.rb +0 -42
- data/spec/models/nigeria_nin_match2_phone_number_field_spec.rb +0 -42
- data/spec/models/nigeria_nin_match2_provider_output_spec.rb +0 -60
- data/spec/models/nigeria_nin_match2_sex_field_spec.rb +0 -42
- data/spec/models/portugal_id_card_provider_output_spec.rb +0 -54
- data/spec/models/serbia_id_card_provider_output_spec.rb +0 -54
- data/spec/models/south_africa_nid_input_spec.rb +0 -54
- data/spec/models/south_africa_nid_match2_date_of_birth_field_spec.rb +0 -42
- data/spec/models/south_africa_nid_match2_full_name_field_spec.rb +0 -42
- data/spec/models/south_africa_nid_match2_input_sex_spec.rb +0 -30
- data/spec/models/south_africa_nid_match2_input_spec.rb +0 -66
- data/spec/models/south_africa_nid_match2_national_id_number_field_spec.rb +0 -42
- data/spec/models/south_africa_nid_match2_provider_output_spec.rb +0 -60
- data/spec/models/south_africa_nid_match2_sex_field_spec.rb +0 -42
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Trinsic API
|
|
3
|
-
|
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: v1
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.26.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'date'
|
|
14
|
-
require 'time'
|
|
15
|
-
|
|
16
|
-
module TrinsicApi
|
|
17
|
-
# Exposed properties for the `south-africa-nid-match-2` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
-
class SouthAfricaNidMatch2ProviderOutput < ApiModelBase
|
|
19
|
-
# Outcome of the verification of the national ID number.
|
|
20
|
-
attr_accessor :national_id_number
|
|
21
|
-
|
|
22
|
-
# Outcome of the verification of the full name.
|
|
23
|
-
attr_accessor :full_name
|
|
24
|
-
|
|
25
|
-
# Outcome of the verification of the date of birth.
|
|
26
|
-
attr_accessor :date_of_birth
|
|
27
|
-
|
|
28
|
-
# Outcome of the verification of the sex.
|
|
29
|
-
attr_accessor :sex
|
|
30
|
-
|
|
31
|
-
# Citizenship status of the individual, if the ID number is valid. Possible values: - Citizen - PermanentResident
|
|
32
|
-
attr_accessor :citizenship_status
|
|
33
|
-
|
|
34
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
-
def self.attribute_map
|
|
36
|
-
{
|
|
37
|
-
:'national_id_number' => :'nationalIdNumber',
|
|
38
|
-
:'full_name' => :'fullName',
|
|
39
|
-
:'date_of_birth' => :'dateOfBirth',
|
|
40
|
-
:'sex' => :'sex',
|
|
41
|
-
:'citizenship_status' => :'citizenshipStatus'
|
|
42
|
-
}
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
# Returns attribute mapping this model knows about
|
|
46
|
-
def self.acceptable_attribute_map
|
|
47
|
-
attribute_map
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
# Returns all the JSON keys this model knows about
|
|
51
|
-
def self.acceptable_attributes
|
|
52
|
-
acceptable_attribute_map.values
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
# Attribute type mapping.
|
|
56
|
-
def self.openapi_types
|
|
57
|
-
{
|
|
58
|
-
:'national_id_number' => :'SouthAfricaNidMatch2NationalIdNumberField',
|
|
59
|
-
:'full_name' => :'SouthAfricaNidMatch2FullNameField',
|
|
60
|
-
:'date_of_birth' => :'SouthAfricaNidMatch2DateOfBirthField',
|
|
61
|
-
:'sex' => :'SouthAfricaNidMatch2SexField',
|
|
62
|
-
:'citizenship_status' => :'String'
|
|
63
|
-
}
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
# List of attributes with nullable: true
|
|
67
|
-
def self.openapi_nullable
|
|
68
|
-
Set.new([
|
|
69
|
-
:'national_id_number',
|
|
70
|
-
:'full_name',
|
|
71
|
-
:'date_of_birth',
|
|
72
|
-
:'sex',
|
|
73
|
-
:'citizenship_status'
|
|
74
|
-
])
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
# Returns attribute type mapping
|
|
78
|
-
def self.acceptable_openapi_types
|
|
79
|
-
openapi_types
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
# Returns the nullable attributes
|
|
83
|
-
def self.acceptable_openapi_nullable
|
|
84
|
-
openapi_nullable
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
# Initializes the object
|
|
88
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
89
|
-
def initialize(attributes = {})
|
|
90
|
-
if (!attributes.is_a?(Hash))
|
|
91
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::SouthAfricaNidMatch2ProviderOutput` initialize method"
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
95
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
96
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
97
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
98
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::SouthAfricaNidMatch2ProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
99
|
-
end
|
|
100
|
-
h[k.to_sym] = v
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
if attributes.key?(:'national_id_number')
|
|
104
|
-
self.national_id_number = attributes[:'national_id_number']
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
if attributes.key?(:'full_name')
|
|
108
|
-
self.full_name = attributes[:'full_name']
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
if attributes.key?(:'date_of_birth')
|
|
112
|
-
self.date_of_birth = attributes[:'date_of_birth']
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
if attributes.key?(:'sex')
|
|
116
|
-
self.sex = attributes[:'sex']
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
if attributes.key?(:'citizenship_status')
|
|
120
|
-
self.citizenship_status = attributes[:'citizenship_status']
|
|
121
|
-
end
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
125
|
-
# @return Array for valid properties with the reasons
|
|
126
|
-
def list_invalid_properties
|
|
127
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
128
|
-
invalid_properties = Array.new
|
|
129
|
-
invalid_properties
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
# Check to see if the all the properties in the model are valid
|
|
133
|
-
# @return true if the model is valid
|
|
134
|
-
def valid?
|
|
135
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
136
|
-
true
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
# Checks equality by comparing each attribute.
|
|
140
|
-
# @param [Object] Object to be compared
|
|
141
|
-
def ==(o)
|
|
142
|
-
return true if self.equal?(o)
|
|
143
|
-
self.class == o.class &&
|
|
144
|
-
national_id_number == o.national_id_number &&
|
|
145
|
-
full_name == o.full_name &&
|
|
146
|
-
date_of_birth == o.date_of_birth &&
|
|
147
|
-
sex == o.sex &&
|
|
148
|
-
citizenship_status == o.citizenship_status
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
# @see the `==` method
|
|
152
|
-
# @param [Object] Object to be compared
|
|
153
|
-
def eql?(o)
|
|
154
|
-
self == o
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
# Calculates hash code according to all attributes.
|
|
158
|
-
# @return [Integer] Hash code
|
|
159
|
-
def hash
|
|
160
|
-
[national_id_number, full_name, date_of_birth, sex, citizenship_status].hash
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
# Builds the object from hash
|
|
164
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
165
|
-
# @return [Object] Returns the model itself
|
|
166
|
-
def self.build_from_hash(attributes)
|
|
167
|
-
return nil unless attributes.is_a?(Hash)
|
|
168
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
169
|
-
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
170
|
-
map = acceptable_attribute_map
|
|
171
|
-
transformed_hash = {}
|
|
172
|
-
acceptable_openapi_types.each_pair do |key, type|
|
|
173
|
-
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
174
|
-
transformed_hash["#{key}"] = nil
|
|
175
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
176
|
-
# check to ensure the input is an array given that the attribute
|
|
177
|
-
# is documented as an array but the input is not
|
|
178
|
-
if attributes[map[key]].is_a?(Array)
|
|
179
|
-
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
180
|
-
end
|
|
181
|
-
elsif !attributes[map[key]].nil?
|
|
182
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
183
|
-
end
|
|
184
|
-
end
|
|
185
|
-
new(transformed_hash)
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
# Returns the object in the form of hash
|
|
189
|
-
# @return [Hash] Returns the object in the form of hash
|
|
190
|
-
def to_hash
|
|
191
|
-
hash = {}
|
|
192
|
-
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
193
|
-
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
194
|
-
value = self.send(attr)
|
|
195
|
-
if value.nil?
|
|
196
|
-
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
197
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
hash[param] = _to_hash(value)
|
|
201
|
-
end
|
|
202
|
-
hash
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
end
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Trinsic API
|
|
3
|
-
|
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: v1
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.26.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'date'
|
|
14
|
-
require 'time'
|
|
15
|
-
|
|
16
|
-
module TrinsicApi
|
|
17
|
-
class SouthAfricaNidMatch2SexField < ApiModelBase
|
|
18
|
-
# The sex value submitted for this check. Possible input values: - Male - Female
|
|
19
|
-
attr_accessor :input_value
|
|
20
|
-
|
|
21
|
-
# The outcome of comparing the submitted sex to the issuer record. Possible values: - Exact Match - No Match - Not Provided - Not Returned
|
|
22
|
-
attr_accessor :outcome
|
|
23
|
-
|
|
24
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
-
def self.attribute_map
|
|
26
|
-
{
|
|
27
|
-
:'input_value' => :'inputValue',
|
|
28
|
-
:'outcome' => :'outcome'
|
|
29
|
-
}
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# Returns attribute mapping this model knows about
|
|
33
|
-
def self.acceptable_attribute_map
|
|
34
|
-
attribute_map
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# Returns all the JSON keys this model knows about
|
|
38
|
-
def self.acceptable_attributes
|
|
39
|
-
acceptable_attribute_map.values
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# Attribute type mapping.
|
|
43
|
-
def self.openapi_types
|
|
44
|
-
{
|
|
45
|
-
:'input_value' => :'String',
|
|
46
|
-
:'outcome' => :'String'
|
|
47
|
-
}
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
# List of attributes with nullable: true
|
|
51
|
-
def self.openapi_nullable
|
|
52
|
-
Set.new([
|
|
53
|
-
:'input_value',
|
|
54
|
-
:'outcome'
|
|
55
|
-
])
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
# Returns attribute type mapping
|
|
59
|
-
def self.acceptable_openapi_types
|
|
60
|
-
openapi_types
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
# Returns the nullable attributes
|
|
64
|
-
def self.acceptable_openapi_nullable
|
|
65
|
-
openapi_nullable
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
# Initializes the object
|
|
69
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
70
|
-
def initialize(attributes = {})
|
|
71
|
-
if (!attributes.is_a?(Hash))
|
|
72
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::SouthAfricaNidMatch2SexField` initialize method"
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
76
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
77
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
78
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
79
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::SouthAfricaNidMatch2SexField`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
80
|
-
end
|
|
81
|
-
h[k.to_sym] = v
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if attributes.key?(:'input_value')
|
|
85
|
-
self.input_value = attributes[:'input_value']
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
if attributes.key?(:'outcome')
|
|
89
|
-
self.outcome = attributes[:'outcome']
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
94
|
-
# @return Array for valid properties with the reasons
|
|
95
|
-
def list_invalid_properties
|
|
96
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
97
|
-
invalid_properties = Array.new
|
|
98
|
-
invalid_properties
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
# Check to see if the all the properties in the model are valid
|
|
102
|
-
# @return true if the model is valid
|
|
103
|
-
def valid?
|
|
104
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
105
|
-
true
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
# Checks equality by comparing each attribute.
|
|
109
|
-
# @param [Object] Object to be compared
|
|
110
|
-
def ==(o)
|
|
111
|
-
return true if self.equal?(o)
|
|
112
|
-
self.class == o.class &&
|
|
113
|
-
input_value == o.input_value &&
|
|
114
|
-
outcome == o.outcome
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
# @see the `==` method
|
|
118
|
-
# @param [Object] Object to be compared
|
|
119
|
-
def eql?(o)
|
|
120
|
-
self == o
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
# Calculates hash code according to all attributes.
|
|
124
|
-
# @return [Integer] Hash code
|
|
125
|
-
def hash
|
|
126
|
-
[input_value, outcome].hash
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
# Builds the object from hash
|
|
130
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
|
-
# @return [Object] Returns the model itself
|
|
132
|
-
def self.build_from_hash(attributes)
|
|
133
|
-
return nil unless attributes.is_a?(Hash)
|
|
134
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
135
|
-
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
136
|
-
map = acceptable_attribute_map
|
|
137
|
-
transformed_hash = {}
|
|
138
|
-
acceptable_openapi_types.each_pair do |key, type|
|
|
139
|
-
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
140
|
-
transformed_hash["#{key}"] = nil
|
|
141
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
142
|
-
# check to ensure the input is an array given that the attribute
|
|
143
|
-
# is documented as an array but the input is not
|
|
144
|
-
if attributes[map[key]].is_a?(Array)
|
|
145
|
-
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
146
|
-
end
|
|
147
|
-
elsif !attributes[map[key]].nil?
|
|
148
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
149
|
-
end
|
|
150
|
-
end
|
|
151
|
-
new(transformed_hash)
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
# Returns the object in the form of hash
|
|
155
|
-
# @return [Hash] Returns the object in the form of hash
|
|
156
|
-
def to_hash
|
|
157
|
-
hash = {}
|
|
158
|
-
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
159
|
-
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
160
|
-
value = self.send(attr)
|
|
161
|
-
if value.nil?
|
|
162
|
-
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
163
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
hash[param] = _to_hash(value)
|
|
167
|
-
end
|
|
168
|
-
hash
|
|
169
|
-
end
|
|
170
|
-
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
end
|
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Trinsic API
|
|
3
|
-
|
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: v1
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.26.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'date'
|
|
14
|
-
require 'time'
|
|
15
|
-
|
|
16
|
-
module TrinsicApi
|
|
17
|
-
# Exposed properties for the `yoti-deeplink` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
-
class YotiDeeplinkProviderOutput < ApiModelBase
|
|
19
|
-
# A Yoti-generated unique ID for this individual, consistent across repeat shares and different for each Relying Party.
|
|
20
|
-
attr_accessor :yoti_remember_me_id
|
|
21
|
-
|
|
22
|
-
# The email address of the individual
|
|
23
|
-
attr_accessor :email
|
|
24
|
-
|
|
25
|
-
# The given name of the individual. This can correspond to first and middle names in English.
|
|
26
|
-
attr_accessor :given_name
|
|
27
|
-
|
|
28
|
-
# The family name of the individual
|
|
29
|
-
attr_accessor :family_name
|
|
30
|
-
|
|
31
|
-
# Full name of the individual which is composed of the given and family name. Unverified full name may be safe to use. For example, Aadhaar card provides full name, but due to certain limitations of verifying Aadhaar, Yoti is unable to verify this property so it is listed as \"unverified\".
|
|
32
|
-
attr_accessor :full_name
|
|
33
|
-
|
|
34
|
-
# The date of birth of the individual. Unverified date of birth may be safe to use. For example, Aadhaar card provides date of birth, but due to certain limitations of verifying Aadhaar, Yoti is unable to verify this property so it is listed as \"unverified\".
|
|
35
|
-
attr_accessor :date_of_birth
|
|
36
|
-
|
|
37
|
-
# The gender of the individual. Depending on the source or country, gender may not be verified. This is a setting that can be configured while setting up scopes. Unverified gender may be safe to use. For example, Aadhaar card provides gender, but due to certain limitations of verifying Aadhaar, Yoti is unable to verify this property so it is listed as \"unverified\". In some countries Possible values: - \"MALE\" - \"FEMALE\" - \"TRANSGENDER\" - \"OTHER\"
|
|
38
|
-
attr_accessor :gender
|
|
39
|
-
|
|
40
|
-
# The nationality of the individual as a ISO alpha-3 code
|
|
41
|
-
attr_accessor :nationality
|
|
42
|
-
|
|
43
|
-
# The mobile phone number of the individual. This number was verified with a one time password (OTP) during the individual's registration with Yoti. In some cases, Yoti may do additional checks against its sources to confirm the individual's identity.
|
|
44
|
-
attr_accessor :mobile_number
|
|
45
|
-
|
|
46
|
-
# A structured postal address for the individual that comes from the underlying document or can be manually added. In the case of being manually added, the address is considered \"unverified\". Unverified addresses may be safe to use. For example, Aadhaar card provides an address, but due to certain limitations of verifying Aadhaar, Yoti is unable to verify this property so it is listed as \"unverified\".
|
|
47
|
-
attr_accessor :structured_postal_address
|
|
48
|
-
|
|
49
|
-
# The whole address for the individual that comes from the underlying document or can be manually added. In the case of being manually added, the address is considered \"unverified\". The format of this will be different for each country. Refer to `StructuredPostalAddress` for a detailed version of the address.
|
|
50
|
-
attr_accessor :postal_address
|
|
51
|
-
|
|
52
|
-
# The details of the underlying document used to help create the Yoti credential
|
|
53
|
-
attr_accessor :document_details
|
|
54
|
-
|
|
55
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
56
|
-
def self.attribute_map
|
|
57
|
-
{
|
|
58
|
-
:'yoti_remember_me_id' => :'yotiRememberMeId',
|
|
59
|
-
:'email' => :'email',
|
|
60
|
-
:'given_name' => :'givenName',
|
|
61
|
-
:'family_name' => :'familyName',
|
|
62
|
-
:'full_name' => :'fullName',
|
|
63
|
-
:'date_of_birth' => :'dateOfBirth',
|
|
64
|
-
:'gender' => :'gender',
|
|
65
|
-
:'nationality' => :'nationality',
|
|
66
|
-
:'mobile_number' => :'mobileNumber',
|
|
67
|
-
:'structured_postal_address' => :'structuredPostalAddress',
|
|
68
|
-
:'postal_address' => :'postalAddress',
|
|
69
|
-
:'document_details' => :'documentDetails'
|
|
70
|
-
}
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
# Returns attribute mapping this model knows about
|
|
74
|
-
def self.acceptable_attribute_map
|
|
75
|
-
attribute_map
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
# Returns all the JSON keys this model knows about
|
|
79
|
-
def self.acceptable_attributes
|
|
80
|
-
acceptable_attribute_map.values
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
# Attribute type mapping.
|
|
84
|
-
def self.openapi_types
|
|
85
|
-
{
|
|
86
|
-
:'yoti_remember_me_id' => :'String',
|
|
87
|
-
:'email' => :'String',
|
|
88
|
-
:'given_name' => :'String',
|
|
89
|
-
:'family_name' => :'String',
|
|
90
|
-
:'full_name' => :'String',
|
|
91
|
-
:'date_of_birth' => :'Date',
|
|
92
|
-
:'gender' => :'String',
|
|
93
|
-
:'nationality' => :'String',
|
|
94
|
-
:'mobile_number' => :'String',
|
|
95
|
-
:'structured_postal_address' => :'YotiStructuredPostalAddress',
|
|
96
|
-
:'postal_address' => :'String',
|
|
97
|
-
:'document_details' => :'YotiDocumentDetails'
|
|
98
|
-
}
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
# List of attributes with nullable: true
|
|
102
|
-
def self.openapi_nullable
|
|
103
|
-
Set.new([
|
|
104
|
-
:'yoti_remember_me_id',
|
|
105
|
-
:'email',
|
|
106
|
-
:'given_name',
|
|
107
|
-
:'family_name',
|
|
108
|
-
:'full_name',
|
|
109
|
-
:'date_of_birth',
|
|
110
|
-
:'gender',
|
|
111
|
-
:'nationality',
|
|
112
|
-
:'mobile_number',
|
|
113
|
-
:'structured_postal_address',
|
|
114
|
-
:'postal_address',
|
|
115
|
-
:'document_details'
|
|
116
|
-
])
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
# Returns attribute type mapping
|
|
120
|
-
def self.acceptable_openapi_types
|
|
121
|
-
openapi_types
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
# Returns the nullable attributes
|
|
125
|
-
def self.acceptable_openapi_nullable
|
|
126
|
-
openapi_nullable
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
# Initializes the object
|
|
130
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
|
-
def initialize(attributes = {})
|
|
132
|
-
if (!attributes.is_a?(Hash))
|
|
133
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::YotiDeeplinkProviderOutput` initialize method"
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
137
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
138
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
139
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
140
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::YotiDeeplinkProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
141
|
-
end
|
|
142
|
-
h[k.to_sym] = v
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
if attributes.key?(:'yoti_remember_me_id')
|
|
146
|
-
self.yoti_remember_me_id = attributes[:'yoti_remember_me_id']
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
if attributes.key?(:'email')
|
|
150
|
-
self.email = attributes[:'email']
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
if attributes.key?(:'given_name')
|
|
154
|
-
self.given_name = attributes[:'given_name']
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
if attributes.key?(:'family_name')
|
|
158
|
-
self.family_name = attributes[:'family_name']
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
if attributes.key?(:'full_name')
|
|
162
|
-
self.full_name = attributes[:'full_name']
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
if attributes.key?(:'date_of_birth')
|
|
166
|
-
self.date_of_birth = attributes[:'date_of_birth']
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
if attributes.key?(:'gender')
|
|
170
|
-
self.gender = attributes[:'gender']
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
if attributes.key?(:'nationality')
|
|
174
|
-
self.nationality = attributes[:'nationality']
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
if attributes.key?(:'mobile_number')
|
|
178
|
-
self.mobile_number = attributes[:'mobile_number']
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
if attributes.key?(:'structured_postal_address')
|
|
182
|
-
self.structured_postal_address = attributes[:'structured_postal_address']
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
if attributes.key?(:'postal_address')
|
|
186
|
-
self.postal_address = attributes[:'postal_address']
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
if attributes.key?(:'document_details')
|
|
190
|
-
self.document_details = attributes[:'document_details']
|
|
191
|
-
end
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
195
|
-
# @return Array for valid properties with the reasons
|
|
196
|
-
def list_invalid_properties
|
|
197
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
198
|
-
invalid_properties = Array.new
|
|
199
|
-
invalid_properties
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
# Check to see if the all the properties in the model are valid
|
|
203
|
-
# @return true if the model is valid
|
|
204
|
-
def valid?
|
|
205
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
206
|
-
true
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
# Checks equality by comparing each attribute.
|
|
210
|
-
# @param [Object] Object to be compared
|
|
211
|
-
def ==(o)
|
|
212
|
-
return true if self.equal?(o)
|
|
213
|
-
self.class == o.class &&
|
|
214
|
-
yoti_remember_me_id == o.yoti_remember_me_id &&
|
|
215
|
-
email == o.email &&
|
|
216
|
-
given_name == o.given_name &&
|
|
217
|
-
family_name == o.family_name &&
|
|
218
|
-
full_name == o.full_name &&
|
|
219
|
-
date_of_birth == o.date_of_birth &&
|
|
220
|
-
gender == o.gender &&
|
|
221
|
-
nationality == o.nationality &&
|
|
222
|
-
mobile_number == o.mobile_number &&
|
|
223
|
-
structured_postal_address == o.structured_postal_address &&
|
|
224
|
-
postal_address == o.postal_address &&
|
|
225
|
-
document_details == o.document_details
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
# @see the `==` method
|
|
229
|
-
# @param [Object] Object to be compared
|
|
230
|
-
def eql?(o)
|
|
231
|
-
self == o
|
|
232
|
-
end
|
|
233
|
-
|
|
234
|
-
# Calculates hash code according to all attributes.
|
|
235
|
-
# @return [Integer] Hash code
|
|
236
|
-
def hash
|
|
237
|
-
[yoti_remember_me_id, email, given_name, family_name, full_name, date_of_birth, gender, nationality, mobile_number, structured_postal_address, postal_address, document_details].hash
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
# Builds the object from hash
|
|
241
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
242
|
-
# @return [Object] Returns the model itself
|
|
243
|
-
def self.build_from_hash(attributes)
|
|
244
|
-
return nil unless attributes.is_a?(Hash)
|
|
245
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
246
|
-
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
247
|
-
map = acceptable_attribute_map
|
|
248
|
-
transformed_hash = {}
|
|
249
|
-
acceptable_openapi_types.each_pair do |key, type|
|
|
250
|
-
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
251
|
-
transformed_hash["#{key}"] = nil
|
|
252
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
253
|
-
# check to ensure the input is an array given that the attribute
|
|
254
|
-
# is documented as an array but the input is not
|
|
255
|
-
if attributes[map[key]].is_a?(Array)
|
|
256
|
-
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
257
|
-
end
|
|
258
|
-
elsif !attributes[map[key]].nil?
|
|
259
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
260
|
-
end
|
|
261
|
-
end
|
|
262
|
-
new(transformed_hash)
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
# Returns the object in the form of hash
|
|
266
|
-
# @return [Hash] Returns the object in the form of hash
|
|
267
|
-
def to_hash
|
|
268
|
-
hash = {}
|
|
269
|
-
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
270
|
-
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
271
|
-
value = self.send(attr)
|
|
272
|
-
if value.nil?
|
|
273
|
-
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
274
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
hash[param] = _to_hash(value)
|
|
278
|
-
end
|
|
279
|
-
hash
|
|
280
|
-
end
|
|
281
|
-
|
|
282
|
-
end
|
|
283
|
-
|
|
284
|
-
end
|