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,196 +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 `a-fi-id-login` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
-
class FinlandIdCardProviderOutput < ApiModelBase
|
|
19
|
-
# The first name of the verified individual
|
|
20
|
-
attr_accessor :first_name
|
|
21
|
-
|
|
22
|
-
# The last name of the verified individual
|
|
23
|
-
attr_accessor :last_name
|
|
24
|
-
|
|
25
|
-
# The date of birth of the verified individual
|
|
26
|
-
attr_accessor :date_of_birth
|
|
27
|
-
|
|
28
|
-
# The 11-digit Finnish Personal Identification Code (Henkilötunnus) of the verified individual. This is in the format DDMMYYCZZZQ, where: - DDMMYY is the date of birth - C is a symbol which determines the century of birth - ZZZ is an individual number, indicating gender - Q is a checksum character If ZZZ is even, the individual is female. If ZZZ is odd, the individual is male. If C is '+', the individual was born in the 19th century (1800-1899). If C is '-', 'U', 'V', 'W', 'X', or 'Y', the individual was born in the 20th century (1900-1999). If C is 'A', 'B', 'C', 'D', 'E', or 'F', the individual was born in the 21st century (2000-2099).
|
|
29
|
-
attr_accessor :personal_identification_code
|
|
30
|
-
|
|
31
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
|
-
def self.attribute_map
|
|
33
|
-
{
|
|
34
|
-
:'first_name' => :'firstName',
|
|
35
|
-
:'last_name' => :'lastName',
|
|
36
|
-
:'date_of_birth' => :'dateOfBirth',
|
|
37
|
-
:'personal_identification_code' => :'personalIdentificationCode'
|
|
38
|
-
}
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# Returns attribute mapping this model knows about
|
|
42
|
-
def self.acceptable_attribute_map
|
|
43
|
-
attribute_map
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
# Returns all the JSON keys this model knows about
|
|
47
|
-
def self.acceptable_attributes
|
|
48
|
-
acceptable_attribute_map.values
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
# Attribute type mapping.
|
|
52
|
-
def self.openapi_types
|
|
53
|
-
{
|
|
54
|
-
:'first_name' => :'String',
|
|
55
|
-
:'last_name' => :'String',
|
|
56
|
-
:'date_of_birth' => :'Date',
|
|
57
|
-
:'personal_identification_code' => :'String'
|
|
58
|
-
}
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
# List of attributes with nullable: true
|
|
62
|
-
def self.openapi_nullable
|
|
63
|
-
Set.new([
|
|
64
|
-
:'first_name',
|
|
65
|
-
:'last_name',
|
|
66
|
-
:'date_of_birth',
|
|
67
|
-
:'personal_identification_code'
|
|
68
|
-
])
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
# Returns attribute type mapping
|
|
72
|
-
def self.acceptable_openapi_types
|
|
73
|
-
openapi_types
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
# Returns the nullable attributes
|
|
77
|
-
def self.acceptable_openapi_nullable
|
|
78
|
-
openapi_nullable
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
# Initializes the object
|
|
82
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
|
-
def initialize(attributes = {})
|
|
84
|
-
if (!attributes.is_a?(Hash))
|
|
85
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::FinlandIdCardProviderOutput` initialize method"
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
89
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
90
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
91
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
92
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::FinlandIdCardProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
93
|
-
end
|
|
94
|
-
h[k.to_sym] = v
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if attributes.key?(:'first_name')
|
|
98
|
-
self.first_name = attributes[:'first_name']
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
if attributes.key?(:'last_name')
|
|
102
|
-
self.last_name = attributes[:'last_name']
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
if attributes.key?(:'date_of_birth')
|
|
106
|
-
self.date_of_birth = attributes[:'date_of_birth']
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
if attributes.key?(:'personal_identification_code')
|
|
110
|
-
self.personal_identification_code = attributes[:'personal_identification_code']
|
|
111
|
-
end
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
115
|
-
# @return Array for valid properties with the reasons
|
|
116
|
-
def list_invalid_properties
|
|
117
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
118
|
-
invalid_properties = Array.new
|
|
119
|
-
invalid_properties
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
# Check to see if the all the properties in the model are valid
|
|
123
|
-
# @return true if the model is valid
|
|
124
|
-
def valid?
|
|
125
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
126
|
-
true
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
# Checks equality by comparing each attribute.
|
|
130
|
-
# @param [Object] Object to be compared
|
|
131
|
-
def ==(o)
|
|
132
|
-
return true if self.equal?(o)
|
|
133
|
-
self.class == o.class &&
|
|
134
|
-
first_name == o.first_name &&
|
|
135
|
-
last_name == o.last_name &&
|
|
136
|
-
date_of_birth == o.date_of_birth &&
|
|
137
|
-
personal_identification_code == o.personal_identification_code
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
# @see the `==` method
|
|
141
|
-
# @param [Object] Object to be compared
|
|
142
|
-
def eql?(o)
|
|
143
|
-
self == o
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
# Calculates hash code according to all attributes.
|
|
147
|
-
# @return [Integer] Hash code
|
|
148
|
-
def hash
|
|
149
|
-
[first_name, last_name, date_of_birth, personal_identification_code].hash
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
# Builds the object from hash
|
|
153
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
154
|
-
# @return [Object] Returns the model itself
|
|
155
|
-
def self.build_from_hash(attributes)
|
|
156
|
-
return nil unless attributes.is_a?(Hash)
|
|
157
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
158
|
-
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
159
|
-
map = acceptable_attribute_map
|
|
160
|
-
transformed_hash = {}
|
|
161
|
-
acceptable_openapi_types.each_pair do |key, type|
|
|
162
|
-
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
163
|
-
transformed_hash["#{key}"] = nil
|
|
164
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
165
|
-
# check to ensure the input is an array given that the attribute
|
|
166
|
-
# is documented as an array but the input is not
|
|
167
|
-
if attributes[map[key]].is_a?(Array)
|
|
168
|
-
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
169
|
-
end
|
|
170
|
-
elsif !attributes[map[key]].nil?
|
|
171
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
172
|
-
end
|
|
173
|
-
end
|
|
174
|
-
new(transformed_hash)
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
# Returns the object in the form of hash
|
|
178
|
-
# @return [Hash] Returns the object in the form of hash
|
|
179
|
-
def to_hash
|
|
180
|
-
hash = {}
|
|
181
|
-
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
182
|
-
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
183
|
-
value = self.send(attr)
|
|
184
|
-
if value.nil?
|
|
185
|
-
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
186
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
hash[param] = _to_hash(value)
|
|
190
|
-
end
|
|
191
|
-
hash
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
end
|
|
@@ -1,196 +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 `a-freja-eid-login` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
-
class FrejaIndirectProviderOutput < ApiModelBase
|
|
19
|
-
# The first name of the verified individual
|
|
20
|
-
attr_accessor :first_name
|
|
21
|
-
|
|
22
|
-
# The last name of the verified individual
|
|
23
|
-
attr_accessor :last_name
|
|
24
|
-
|
|
25
|
-
# The value returned by Freja in the \"ssn\" field. The actual value of this field depends on the country of origin used to create the Freja credential. It is typically a Social Security Number, National Identification Number, or equivalent personal identifier.
|
|
26
|
-
attr_accessor :personal_number
|
|
27
|
-
|
|
28
|
-
# The 2-digit ISO country code of the country which issued the personal number.
|
|
29
|
-
attr_accessor :personal_number_country
|
|
30
|
-
|
|
31
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
|
-
def self.attribute_map
|
|
33
|
-
{
|
|
34
|
-
:'first_name' => :'firstName',
|
|
35
|
-
:'last_name' => :'lastName',
|
|
36
|
-
:'personal_number' => :'personalNumber',
|
|
37
|
-
:'personal_number_country' => :'personalNumberCountry'
|
|
38
|
-
}
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# Returns attribute mapping this model knows about
|
|
42
|
-
def self.acceptable_attribute_map
|
|
43
|
-
attribute_map
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
# Returns all the JSON keys this model knows about
|
|
47
|
-
def self.acceptable_attributes
|
|
48
|
-
acceptable_attribute_map.values
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
# Attribute type mapping.
|
|
52
|
-
def self.openapi_types
|
|
53
|
-
{
|
|
54
|
-
:'first_name' => :'String',
|
|
55
|
-
:'last_name' => :'String',
|
|
56
|
-
:'personal_number' => :'String',
|
|
57
|
-
:'personal_number_country' => :'String'
|
|
58
|
-
}
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
# List of attributes with nullable: true
|
|
62
|
-
def self.openapi_nullable
|
|
63
|
-
Set.new([
|
|
64
|
-
:'first_name',
|
|
65
|
-
:'last_name',
|
|
66
|
-
:'personal_number',
|
|
67
|
-
:'personal_number_country'
|
|
68
|
-
])
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
# Returns attribute type mapping
|
|
72
|
-
def self.acceptable_openapi_types
|
|
73
|
-
openapi_types
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
# Returns the nullable attributes
|
|
77
|
-
def self.acceptable_openapi_nullable
|
|
78
|
-
openapi_nullable
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
# Initializes the object
|
|
82
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
|
-
def initialize(attributes = {})
|
|
84
|
-
if (!attributes.is_a?(Hash))
|
|
85
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::FrejaIndirectProviderOutput` initialize method"
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
89
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
90
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
91
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
92
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::FrejaIndirectProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
93
|
-
end
|
|
94
|
-
h[k.to_sym] = v
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if attributes.key?(:'first_name')
|
|
98
|
-
self.first_name = attributes[:'first_name']
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
if attributes.key?(:'last_name')
|
|
102
|
-
self.last_name = attributes[:'last_name']
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
if attributes.key?(:'personal_number')
|
|
106
|
-
self.personal_number = attributes[:'personal_number']
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
if attributes.key?(:'personal_number_country')
|
|
110
|
-
self.personal_number_country = attributes[:'personal_number_country']
|
|
111
|
-
end
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
115
|
-
# @return Array for valid properties with the reasons
|
|
116
|
-
def list_invalid_properties
|
|
117
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
118
|
-
invalid_properties = Array.new
|
|
119
|
-
invalid_properties
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
# Check to see if the all the properties in the model are valid
|
|
123
|
-
# @return true if the model is valid
|
|
124
|
-
def valid?
|
|
125
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
126
|
-
true
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
# Checks equality by comparing each attribute.
|
|
130
|
-
# @param [Object] Object to be compared
|
|
131
|
-
def ==(o)
|
|
132
|
-
return true if self.equal?(o)
|
|
133
|
-
self.class == o.class &&
|
|
134
|
-
first_name == o.first_name &&
|
|
135
|
-
last_name == o.last_name &&
|
|
136
|
-
personal_number == o.personal_number &&
|
|
137
|
-
personal_number_country == o.personal_number_country
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
# @see the `==` method
|
|
141
|
-
# @param [Object] Object to be compared
|
|
142
|
-
def eql?(o)
|
|
143
|
-
self == o
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
# Calculates hash code according to all attributes.
|
|
147
|
-
# @return [Integer] Hash code
|
|
148
|
-
def hash
|
|
149
|
-
[first_name, last_name, personal_number, personal_number_country].hash
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
# Builds the object from hash
|
|
153
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
154
|
-
# @return [Object] Returns the model itself
|
|
155
|
-
def self.build_from_hash(attributes)
|
|
156
|
-
return nil unless attributes.is_a?(Hash)
|
|
157
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
158
|
-
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
159
|
-
map = acceptable_attribute_map
|
|
160
|
-
transformed_hash = {}
|
|
161
|
-
acceptable_openapi_types.each_pair do |key, type|
|
|
162
|
-
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
163
|
-
transformed_hash["#{key}"] = nil
|
|
164
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
165
|
-
# check to ensure the input is an array given that the attribute
|
|
166
|
-
# is documented as an array but the input is not
|
|
167
|
-
if attributes[map[key]].is_a?(Array)
|
|
168
|
-
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
169
|
-
end
|
|
170
|
-
elsif !attributes[map[key]].nil?
|
|
171
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
172
|
-
end
|
|
173
|
-
end
|
|
174
|
-
new(transformed_hash)
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
# Returns the object in the form of hash
|
|
178
|
-
# @return [Hash] Returns the object in the form of hash
|
|
179
|
-
def to_hash
|
|
180
|
-
hash = {}
|
|
181
|
-
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
182
|
-
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
183
|
-
value = self.send(attr)
|
|
184
|
-
if value.nil?
|
|
185
|
-
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
186
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
hash[param] = _to_hash(value)
|
|
190
|
-
end
|
|
191
|
-
hash
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
end
|