trinsic_api 3.3.0.pre.alpha3 → 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 +2 -1
- data/lib/trinsic_api/api_model_base.rb +2 -0
- 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,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 SouthAfricaNidMatch2FullNameField < ApiModelBase
|
|
18
|
-
# The full name string submitted for this check (as provided in the match input).
|
|
19
|
-
attr_accessor :input_value
|
|
20
|
-
|
|
21
|
-
# The outcome of comparing the submitted full name to the issuer record. Possible values: - Exact Match - Partial Match - Transposed - No Match - 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::SouthAfricaNidMatch2FullNameField` 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::SouthAfricaNidMatch2FullNameField`. 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,239 +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 SouthAfricaNidMatch2Input < ApiModelBase
|
|
18
|
-
# The South African National Identity Number (13 digits). Issued for life by the Department of Home Affairs (DHA) and stored in the HANIS (Home Affairs National Identification System) database. The same number is mandatory for banking, employment, taxation, and voting, and is printed on both the legacy green ID book and the Smart ID Card (rolled out from 2013 onward). Format: - YYMMDD G(4) C A Z - YYMMDD is the date of birth - G(4) is the gender code (below 5000 female, 5000 or above male) - C is the citizenship indicator (0 citizen, 1 permanent resident) - A is reserved (it had a politically sensitive meaning in the past, but is currently semantically meaningless) - Z is a Luhn check digit
|
|
19
|
-
attr_accessor :id_number
|
|
20
|
-
|
|
21
|
-
# The user's first name as it appears in their National ID
|
|
22
|
-
attr_accessor :given_name
|
|
23
|
-
|
|
24
|
-
# The user's last name as it appears in their National ID
|
|
25
|
-
attr_accessor :family_name
|
|
26
|
-
|
|
27
|
-
# The user's middle name as it appears in their National ID (optional)
|
|
28
|
-
attr_accessor :middle_name
|
|
29
|
-
|
|
30
|
-
# The user's date of birth, in `YYYY-MM-DD` format
|
|
31
|
-
attr_accessor :date_of_birth
|
|
32
|
-
|
|
33
|
-
# The user's sex as it appears in their National ID
|
|
34
|
-
attr_accessor :sex
|
|
35
|
-
|
|
36
|
-
class EnumAttributeValidator
|
|
37
|
-
attr_reader :datatype
|
|
38
|
-
attr_reader :allowable_values
|
|
39
|
-
|
|
40
|
-
def initialize(datatype, allowable_values)
|
|
41
|
-
@allowable_values = allowable_values.map do |value|
|
|
42
|
-
case datatype.to_s
|
|
43
|
-
when /Integer/i
|
|
44
|
-
value.to_i
|
|
45
|
-
when /Float/i
|
|
46
|
-
value.to_f
|
|
47
|
-
else
|
|
48
|
-
value
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
def valid?(value)
|
|
54
|
-
!value || allowable_values.include?(value)
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
59
|
-
def self.attribute_map
|
|
60
|
-
{
|
|
61
|
-
:'id_number' => :'idNumber',
|
|
62
|
-
:'given_name' => :'givenName',
|
|
63
|
-
:'family_name' => :'familyName',
|
|
64
|
-
:'middle_name' => :'middleName',
|
|
65
|
-
:'date_of_birth' => :'dateOfBirth',
|
|
66
|
-
:'sex' => :'sex'
|
|
67
|
-
}
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
# Returns attribute mapping this model knows about
|
|
71
|
-
def self.acceptable_attribute_map
|
|
72
|
-
attribute_map
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
# Returns all the JSON keys this model knows about
|
|
76
|
-
def self.acceptable_attributes
|
|
77
|
-
acceptable_attribute_map.values
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
# Attribute type mapping.
|
|
81
|
-
def self.openapi_types
|
|
82
|
-
{
|
|
83
|
-
:'id_number' => :'String',
|
|
84
|
-
:'given_name' => :'String',
|
|
85
|
-
:'family_name' => :'String',
|
|
86
|
-
:'middle_name' => :'String',
|
|
87
|
-
:'date_of_birth' => :'Date',
|
|
88
|
-
:'sex' => :'SouthAfricaNidMatch2InputSex'
|
|
89
|
-
}
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
# List of attributes with nullable: true
|
|
93
|
-
def self.openapi_nullable
|
|
94
|
-
Set.new([
|
|
95
|
-
:'id_number',
|
|
96
|
-
:'given_name',
|
|
97
|
-
:'family_name',
|
|
98
|
-
:'middle_name',
|
|
99
|
-
:'date_of_birth',
|
|
100
|
-
:'sex'
|
|
101
|
-
])
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
# Returns attribute type mapping
|
|
105
|
-
def self.acceptable_openapi_types
|
|
106
|
-
openapi_types
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
# Returns the nullable attributes
|
|
110
|
-
def self.acceptable_openapi_nullable
|
|
111
|
-
openapi_nullable
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
# Initializes the object
|
|
115
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
116
|
-
def initialize(attributes = {})
|
|
117
|
-
if (!attributes.is_a?(Hash))
|
|
118
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::SouthAfricaNidMatch2Input` initialize method"
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
122
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
123
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
124
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
125
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::SouthAfricaNidMatch2Input`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
126
|
-
end
|
|
127
|
-
h[k.to_sym] = v
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
if attributes.key?(:'id_number')
|
|
131
|
-
self.id_number = attributes[:'id_number']
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
if attributes.key?(:'given_name')
|
|
135
|
-
self.given_name = attributes[:'given_name']
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
if attributes.key?(:'family_name')
|
|
139
|
-
self.family_name = attributes[:'family_name']
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
if attributes.key?(:'middle_name')
|
|
143
|
-
self.middle_name = attributes[:'middle_name']
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
if attributes.key?(:'date_of_birth')
|
|
147
|
-
self.date_of_birth = attributes[:'date_of_birth']
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
if attributes.key?(:'sex')
|
|
151
|
-
self.sex = attributes[:'sex']
|
|
152
|
-
end
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
156
|
-
# @return Array for valid properties with the reasons
|
|
157
|
-
def list_invalid_properties
|
|
158
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
159
|
-
invalid_properties = Array.new
|
|
160
|
-
invalid_properties
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
# Check to see if the all the properties in the model are valid
|
|
164
|
-
# @return true if the model is valid
|
|
165
|
-
def valid?
|
|
166
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
167
|
-
true
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
# Checks equality by comparing each attribute.
|
|
171
|
-
# @param [Object] Object to be compared
|
|
172
|
-
def ==(o)
|
|
173
|
-
return true if self.equal?(o)
|
|
174
|
-
self.class == o.class &&
|
|
175
|
-
id_number == o.id_number &&
|
|
176
|
-
given_name == o.given_name &&
|
|
177
|
-
family_name == o.family_name &&
|
|
178
|
-
middle_name == o.middle_name &&
|
|
179
|
-
date_of_birth == o.date_of_birth &&
|
|
180
|
-
sex == o.sex
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
# @see the `==` method
|
|
184
|
-
# @param [Object] Object to be compared
|
|
185
|
-
def eql?(o)
|
|
186
|
-
self == o
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
# Calculates hash code according to all attributes.
|
|
190
|
-
# @return [Integer] Hash code
|
|
191
|
-
def hash
|
|
192
|
-
[id_number, given_name, family_name, middle_name, date_of_birth, sex].hash
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
# Builds the object from hash
|
|
196
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
197
|
-
# @return [Object] Returns the model itself
|
|
198
|
-
def self.build_from_hash(attributes)
|
|
199
|
-
return nil unless attributes.is_a?(Hash)
|
|
200
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
201
|
-
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
202
|
-
map = acceptable_attribute_map
|
|
203
|
-
transformed_hash = {}
|
|
204
|
-
acceptable_openapi_types.each_pair do |key, type|
|
|
205
|
-
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
206
|
-
transformed_hash["#{key}"] = nil
|
|
207
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
208
|
-
# check to ensure the input is an array given that the attribute
|
|
209
|
-
# is documented as an array but the input is not
|
|
210
|
-
if attributes[map[key]].is_a?(Array)
|
|
211
|
-
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
212
|
-
end
|
|
213
|
-
elsif !attributes[map[key]].nil?
|
|
214
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
215
|
-
end
|
|
216
|
-
end
|
|
217
|
-
new(transformed_hash)
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
# Returns the object in the form of hash
|
|
221
|
-
# @return [Hash] Returns the object in the form of hash
|
|
222
|
-
def to_hash
|
|
223
|
-
hash = {}
|
|
224
|
-
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
225
|
-
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
226
|
-
value = self.send(attr)
|
|
227
|
-
if value.nil?
|
|
228
|
-
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
229
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
hash[param] = _to_hash(value)
|
|
233
|
-
end
|
|
234
|
-
hash
|
|
235
|
-
end
|
|
236
|
-
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
end
|
|
@@ -1,41 +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 SouthAfricaNidMatch2InputSex
|
|
18
|
-
MALE = "Male".freeze
|
|
19
|
-
FEMALE = "Female".freeze
|
|
20
|
-
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
21
|
-
|
|
22
|
-
def self.all_vars
|
|
23
|
-
@all_vars ||= [MALE, FEMALE, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
# Builds the enum from string
|
|
27
|
-
# @param [String] The enum value in the form of the string
|
|
28
|
-
# @return [String] The enum value
|
|
29
|
-
def self.build_from_hash(value)
|
|
30
|
-
new.build_from_hash(value)
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# Builds the enum from string
|
|
34
|
-
# @param [String] The enum value in the form of the string
|
|
35
|
-
# @return [String] The enum value
|
|
36
|
-
def build_from_hash(value)
|
|
37
|
-
return value if SouthAfricaNidMatch2InputSex.all_vars.include?(value)
|
|
38
|
-
UNKNOWN_DEFAULT_OPEN_API
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
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 SouthAfricaNidMatch2NationalIdNumberField < ApiModelBase
|
|
18
|
-
# The South African National Identity Number (13 digits) is issued for life by the Department of Home Affairs (DHA) and stored in the Home Affairs National Identification System (HANIS) database. The same number is mandatory for banking, employment, taxation, and voting, and is printed on both the legacy green ID book and the Smart ID Card (rolled out from 2013 onward). Format: - YYMMDD G(4) C A Z - YYMMDD is the date of birth - G(4) is the gender code (below 5000 female, 5000 or above male) - C is the citizenship indicator (0 citizen, 1 permanent resident) - A is reserved (it had a politically sensitive meaning in the past, but is currently semantically meaningless) - Z is a Luhn check digit
|
|
19
|
-
attr_accessor :input_value
|
|
20
|
-
|
|
21
|
-
# The outcome of verifying the national ID number. Possible values: - Verified - Not Verified - Not Done - Issuer Unavailable - 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::SouthAfricaNidMatch2NationalIdNumberField` 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::SouthAfricaNidMatch2NationalIdNumberField`. 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
|