trinsic_api 3.1.0 → 3.2.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.
Files changed (215) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AppleWalletDigitalIdBirthDate.md +20 -0
  3. data/docs/AppleWalletDigitalIdCredential.md +54 -0
  4. data/docs/AppleWalletProviderOutput.md +2 -0
  5. data/docs/BrazilCnhFacialBiometryOutput.md +24 -0
  6. data/docs/BrazilCnhMatchFieldDateOnly.md +20 -0
  7. data/docs/BrazilCnhMatchFieldString.md +20 -0
  8. data/docs/BrazilCnhProviderOutput.md +48 -0
  9. data/docs/CreateDirectProviderSessionRequest.md +1 -1
  10. data/docs/CreateHostedProviderSessionRequest.md +1 -1
  11. data/docs/CzechBankIdAddress.md +36 -0
  12. data/docs/CzechBankIdCard.md +30 -0
  13. data/docs/CzechBankIdProviderOutput.md +78 -0
  14. data/docs/CzechBankIdTitle.md +20 -0
  15. data/docs/CzechBankIdVerification.md +22 -0
  16. data/docs/DiiaIssuerOutput.md +28 -0
  17. data/docs/DiiaProviderOutput.md +20 -0
  18. data/docs/DiiaSubjectOutput.md +26 -0
  19. data/docs/IdemiaPreviewProviderAddress.md +32 -0
  20. data/docs/IdemiaPreviewProviderOutput.md +76 -0
  21. data/docs/IndiaDigilockerAadhaarMatchDateOfBirthField.md +20 -0
  22. data/docs/IndiaDigilockerAadhaarMatchFullNameField.md +20 -0
  23. data/docs/IndiaDigilockerAadhaarMatchProviderOutput.md +20 -0
  24. data/docs/IndonesiaDukcapilMatchDateOfBirthField.md +20 -0
  25. data/docs/IndonesiaDukcapilMatchFullNameField.md +20 -0
  26. data/docs/IndonesiaDukcapilMatchNationalIdNumberField.md +20 -0
  27. data/docs/IndonesiaDukcapilMatchProviderOutput.md +38 -0
  28. data/docs/IndonesiaNikMatch.md +34 -0
  29. data/docs/IndonesiaNikMatchField.md +20 -0
  30. data/docs/InteracAddress.md +26 -0
  31. data/docs/InteracProviderOutput.md +34 -0
  32. data/docs/ItsmeAddress.md +28 -0
  33. data/docs/ItsmeProviderOutput.md +19 -1
  34. data/docs/KenyaNidMatch2DateOfBirthField.md +20 -0
  35. data/docs/KenyaNidMatch2FullNameField.md +20 -0
  36. data/docs/KenyaNidMatch2NationalIdNumberField.md +20 -0
  37. data/docs/KenyaNidMatch2ProviderOutput.md +24 -0
  38. data/docs/KenyaNidMatch2SexField.md +20 -0
  39. data/docs/LloydsSmartIdProviderOutput.md +2 -2
  40. data/docs/MexicoCurpProviderOutput.md +23 -1
  41. data/docs/NigeriaNinLookup2Input.md +1 -1
  42. data/docs/NigeriaNinLookup2ProviderOutput.md +2 -2
  43. data/docs/NigeriaNinMatch2DateOfBirthField.md +20 -0
  44. data/docs/NigeriaNinMatch2FullNameField.md +20 -0
  45. data/docs/NigeriaNinMatch2Input.md +1 -1
  46. data/docs/NigeriaNinMatch2NationalIdNumberField.md +20 -0
  47. data/docs/NigeriaNinMatch2PhoneNumberField.md +20 -0
  48. data/docs/NigeriaNinMatch2ProviderOutput.md +26 -0
  49. data/docs/NigeriaNinMatch2SexField.md +20 -0
  50. data/docs/PhilippinesPhilsysMatchProviderOutput.md +26 -0
  51. data/docs/PostOfficeEasyIdProviderOutput.md +2 -2
  52. data/docs/ProviderInput.md +0 -6
  53. data/docs/ProviderOutput.md +37 -3
  54. data/docs/SouthAfricaNidLookup2Input.md +1 -1
  55. data/docs/SouthAfricaNidLookup2ProviderOutput.md +36 -0
  56. data/docs/SouthAfricaNidMatch2DateOfBirthField.md +20 -0
  57. data/docs/SouthAfricaNidMatch2FullNameField.md +20 -0
  58. data/docs/SouthAfricaNidMatch2Input.md +2 -4
  59. data/docs/SouthAfricaNidMatch2NationalIdNumberField.md +20 -0
  60. data/docs/SouthAfricaNidMatch2ProviderOutput.md +26 -0
  61. data/docs/SouthAfricaNidMatch2SexField.md +20 -0
  62. data/docs/UAEPassProviderOutput.md +62 -0
  63. data/docs/UgandaNidMatch2DateOfBirthField.md +20 -0
  64. data/docs/UgandaNidMatch2Input.md +1 -1
  65. data/docs/UgandaNidMatch2NationalIdNumberField.md +20 -0
  66. data/docs/UgandaNidMatch2ProviderOutput.md +22 -0
  67. data/docs/UgandaNidMatch2SecondaryIdNumberField.md +20 -0
  68. data/docs/VerimiAddressOutput.md +28 -0
  69. data/docs/VerimiProviderOutput.md +68 -0
  70. data/docs/YotiDeeplinkProviderOutput.md +2 -2
  71. data/docs/YotiProviderOutput.md +2 -2
  72. data/docs/ZimbabweNidLookup2Input.md +1 -1
  73. data/docs/ZimbabweNidLookup2ProviderOutput.md +34 -0
  74. data/lib/trinsic_api/models/apple_wallet_digital_id_birth_date.rb +177 -0
  75. data/lib/trinsic_api/models/apple_wallet_digital_id_credential.rb +350 -0
  76. data/lib/trinsic_api/models/apple_wallet_provider_output.rb +12 -1
  77. data/lib/trinsic_api/models/brazil_cnh_facial_biometry_output.rb +198 -0
  78. data/lib/trinsic_api/models/{south_africa_nid_biometric2_input.rb → brazil_cnh_match_field_date_only.rb} +36 -33
  79. data/lib/trinsic_api/models/{nigeria_nin_biometric2_input.rb → brazil_cnh_match_field_string.rb} +20 -33
  80. data/lib/trinsic_api/models/brazil_cnh_provider_output.rb +315 -0
  81. data/lib/trinsic_api/models/create_direct_provider_session_request.rb +1 -1
  82. data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +1 -1
  83. data/lib/trinsic_api/models/czech_bank_id_address.rb +296 -0
  84. data/lib/trinsic_api/models/czech_bank_id_card.rb +279 -0
  85. data/lib/trinsic_api/models/czech_bank_id_provider_output.rb +504 -0
  86. data/lib/trinsic_api/models/czech_bank_id_title.rb +160 -0
  87. data/lib/trinsic_api/models/czech_bank_id_verification.rb +203 -0
  88. data/lib/trinsic_api/models/diia_issuer_output.rb +204 -0
  89. data/lib/trinsic_api/models/diia_provider_output.rb +193 -0
  90. data/lib/trinsic_api/models/diia_subject_output.rb +193 -0
  91. data/lib/trinsic_api/models/idemia_preview_provider_address.rb +226 -0
  92. data/lib/trinsic_api/models/idemia_preview_provider_output.rb +469 -0
  93. data/lib/trinsic_api/models/india_digilocker_aadhaar_match_date_of_birth_field.rb +192 -0
  94. data/lib/trinsic_api/models/india_digilocker_aadhaar_match_full_name_field.rb +192 -0
  95. data/lib/trinsic_api/models/india_digilocker_aadhaar_match_provider_output.rb +161 -0
  96. data/lib/trinsic_api/models/indonesia_dukcapil_match_date_of_birth_field.rb +192 -0
  97. data/lib/trinsic_api/models/indonesia_dukcapil_match_full_name_field.rb +192 -0
  98. data/lib/trinsic_api/models/indonesia_dukcapil_match_national_id_number_field.rb +192 -0
  99. data/lib/trinsic_api/models/indonesia_dukcapil_match_provider_output.rb +404 -0
  100. data/lib/trinsic_api/models/indonesia_nik_match.rb +238 -0
  101. data/lib/trinsic_api/models/indonesia_nik_match_field.rb +192 -0
  102. data/lib/trinsic_api/models/{kenya_nid_biometric2_input.rb → interac_address.rb} +50 -30
  103. data/lib/trinsic_api/models/interac_provider_output.rb +237 -0
  104. data/lib/trinsic_api/models/itsme_address.rb +204 -0
  105. data/lib/trinsic_api/models/itsme_provider_output.rb +104 -5
  106. data/lib/trinsic_api/models/kenya_nid_match2_date_of_birth_field.rb +192 -0
  107. data/lib/trinsic_api/models/kenya_nid_match2_full_name_field.rb +192 -0
  108. data/lib/trinsic_api/models/kenya_nid_match2_national_id_number_field.rb +192 -0
  109. data/lib/trinsic_api/models/kenya_nid_match2_provider_output.rb +215 -0
  110. data/lib/trinsic_api/models/kenya_nid_match2_sex_field.rb +192 -0
  111. data/lib/trinsic_api/models/lloyds_smart_id_provider_output.rb +8 -8
  112. data/lib/trinsic_api/models/mexico_curp_provider_output.rb +126 -5
  113. data/lib/trinsic_api/models/nigeria_nin_lookup2_input.rb +1 -1
  114. data/lib/trinsic_api/models/nigeria_nin_lookup2_provider_output.rb +1 -1
  115. data/lib/trinsic_api/models/nigeria_nin_match2_date_of_birth_field.rb +192 -0
  116. data/lib/trinsic_api/models/nigeria_nin_match2_full_name_field.rb +192 -0
  117. data/lib/trinsic_api/models/nigeria_nin_match2_input.rb +1 -1
  118. data/lib/trinsic_api/models/nigeria_nin_match2_national_id_number_field.rb +192 -0
  119. data/lib/trinsic_api/models/nigeria_nin_match2_phone_number_field.rb +192 -0
  120. data/lib/trinsic_api/models/nigeria_nin_match2_provider_output.rb +226 -0
  121. data/lib/trinsic_api/models/nigeria_nin_match2_sex_field.rb +192 -0
  122. data/lib/trinsic_api/models/philippines_philsys_match_provider_output.rb +226 -0
  123. data/lib/trinsic_api/models/post_office_easy_id_provider_output.rb +8 -8
  124. data/lib/trinsic_api/models/provider_input.rb +1 -34
  125. data/lib/trinsic_api/models/provider_output.rb +203 -16
  126. data/lib/trinsic_api/models/south_africa_nid_lookup2_input.rb +1 -1
  127. data/lib/trinsic_api/models/south_africa_nid_lookup2_provider_output.rb +377 -0
  128. data/lib/trinsic_api/models/south_africa_nid_match2_date_of_birth_field.rb +192 -0
  129. data/lib/trinsic_api/models/south_africa_nid_match2_full_name_field.rb +192 -0
  130. data/lib/trinsic_api/models/south_africa_nid_match2_input.rb +6 -17
  131. data/lib/trinsic_api/models/south_africa_nid_match2_national_id_number_field.rb +192 -0
  132. data/lib/trinsic_api/models/south_africa_nid_match2_provider_output.rb +226 -0
  133. data/lib/trinsic_api/models/south_africa_nid_match2_sex_field.rb +192 -0
  134. data/lib/trinsic_api/models/uae_pass_provider_output.rb +394 -0
  135. data/lib/trinsic_api/models/uganda_nid_match2_date_of_birth_field.rb +192 -0
  136. data/lib/trinsic_api/models/uganda_nid_match2_input.rb +1 -1
  137. data/lib/trinsic_api/models/uganda_nid_match2_national_id_number_field.rb +192 -0
  138. data/lib/trinsic_api/models/uganda_nid_match2_provider_output.rb +220 -0
  139. data/lib/trinsic_api/models/uganda_nid_match2_secondary_id_number_field.rb +192 -0
  140. data/lib/trinsic_api/models/verimi_address_output.rb +204 -0
  141. data/lib/trinsic_api/models/verimi_provider_output.rb +425 -0
  142. data/lib/trinsic_api/models/yoti_deeplink_provider_output.rb +8 -8
  143. data/lib/trinsic_api/models/yoti_provider_output.rb +8 -8
  144. data/lib/trinsic_api/models/zimbabwe_nid_lookup2_input.rb +1 -1
  145. data/lib/trinsic_api/models/zimbabwe_nid_lookup2_provider_output.rb +334 -0
  146. data/lib/trinsic_api/version.rb +1 -1
  147. data/lib/trinsic_api.rb +54 -3
  148. data/spec/models/apple_wallet_digital_id_birth_date_spec.rb +42 -0
  149. data/spec/models/apple_wallet_digital_id_credential_spec.rb +144 -0
  150. data/spec/models/apple_wallet_provider_output_spec.rb +6 -0
  151. data/spec/models/brazil_cnh_facial_biometry_output_spec.rb +54 -0
  152. data/spec/models/brazil_cnh_match_field_date_only_spec.rb +42 -0
  153. data/spec/models/brazil_cnh_match_field_string_spec.rb +42 -0
  154. data/spec/models/brazil_cnh_provider_output_spec.rb +126 -0
  155. data/spec/models/czech_bank_id_address_spec.rb +90 -0
  156. data/spec/models/czech_bank_id_card_spec.rb +72 -0
  157. data/spec/models/czech_bank_id_provider_output_spec.rb +216 -0
  158. data/spec/models/czech_bank_id_title_spec.rb +42 -0
  159. data/spec/models/{kenya_nid_biometric2_input_spec.rb → czech_bank_id_verification_spec.rb} +9 -9
  160. data/spec/models/diia_issuer_output_spec.rb +66 -0
  161. data/spec/models/diia_provider_output_spec.rb +42 -0
  162. data/spec/models/diia_subject_output_spec.rb +60 -0
  163. data/spec/models/idemia_preview_provider_address_spec.rb +78 -0
  164. data/spec/models/idemia_preview_provider_output_spec.rb +210 -0
  165. data/spec/models/india_digilocker_aadhaar_match_date_of_birth_field_spec.rb +42 -0
  166. data/spec/models/india_digilocker_aadhaar_match_full_name_field_spec.rb +42 -0
  167. data/spec/models/india_digilocker_aadhaar_match_provider_output_spec.rb +42 -0
  168. data/spec/models/indonesia_dukcapil_match_date_of_birth_field_spec.rb +42 -0
  169. data/spec/models/indonesia_dukcapil_match_full_name_field_spec.rb +42 -0
  170. data/spec/models/indonesia_dukcapil_match_national_id_number_field_spec.rb +42 -0
  171. data/spec/models/indonesia_dukcapil_match_provider_output_spec.rb +96 -0
  172. data/spec/models/indonesia_nik_match_field_spec.rb +42 -0
  173. data/spec/models/indonesia_nik_match_spec.rb +84 -0
  174. data/spec/models/interac_address_spec.rb +60 -0
  175. data/spec/models/interac_provider_output_spec.rb +84 -0
  176. data/spec/models/itsme_address_spec.rb +66 -0
  177. data/spec/models/itsme_provider_output_spec.rb +54 -0
  178. data/spec/models/kenya_nid_match2_date_of_birth_field_spec.rb +42 -0
  179. data/spec/models/kenya_nid_match2_full_name_field_spec.rb +42 -0
  180. data/spec/models/kenya_nid_match2_national_id_number_field_spec.rb +42 -0
  181. data/spec/models/kenya_nid_match2_provider_output_spec.rb +54 -0
  182. data/spec/models/kenya_nid_match2_sex_field_spec.rb +42 -0
  183. data/spec/models/lloyds_smart_id_provider_output_spec.rb +1 -1
  184. data/spec/models/mexico_curp_provider_output_spec.rb +66 -0
  185. data/spec/models/{nigeria_nin_biometric2_input_spec.rb → nigeria_nin_match2_date_of_birth_field_spec.rb} +8 -14
  186. data/spec/models/nigeria_nin_match2_full_name_field_spec.rb +42 -0
  187. data/spec/models/nigeria_nin_match2_national_id_number_field_spec.rb +42 -0
  188. data/spec/models/nigeria_nin_match2_phone_number_field_spec.rb +42 -0
  189. data/spec/models/nigeria_nin_match2_provider_output_spec.rb +60 -0
  190. data/spec/models/nigeria_nin_match2_sex_field_spec.rb +42 -0
  191. data/spec/models/philippines_philsys_match_provider_output_spec.rb +60 -0
  192. data/spec/models/post_office_easy_id_provider_output_spec.rb +1 -1
  193. data/spec/models/provider_input_spec.rb +0 -18
  194. data/spec/models/provider_output_spec.rb +108 -6
  195. data/spec/models/south_africa_nid_lookup2_provider_output_spec.rb +90 -0
  196. data/spec/models/south_africa_nid_match2_date_of_birth_field_spec.rb +42 -0
  197. data/spec/models/south_africa_nid_match2_full_name_field_spec.rb +42 -0
  198. data/spec/models/south_africa_nid_match2_input_spec.rb +0 -6
  199. data/spec/models/south_africa_nid_match2_national_id_number_field_spec.rb +42 -0
  200. data/spec/models/south_africa_nid_match2_provider_output_spec.rb +60 -0
  201. data/spec/models/south_africa_nid_match2_sex_field_spec.rb +42 -0
  202. data/spec/models/uae_pass_provider_output_spec.rb +168 -0
  203. data/spec/models/uganda_nid_match2_date_of_birth_field_spec.rb +42 -0
  204. data/spec/models/uganda_nid_match2_national_id_number_field_spec.rb +42 -0
  205. data/spec/models/{south_africa_nid_biometric2_input_spec.rb → uganda_nid_match2_provider_output_spec.rb} +9 -9
  206. data/spec/models/uganda_nid_match2_secondary_id_number_field_spec.rb +42 -0
  207. data/spec/models/verimi_address_output_spec.rb +66 -0
  208. data/spec/models/verimi_provider_output_spec.rb +186 -0
  209. data/spec/models/yoti_deeplink_provider_output_spec.rb +1 -1
  210. data/spec/models/yoti_provider_output_spec.rb +1 -1
  211. data/spec/models/zimbabwe_nid_lookup2_provider_output_spec.rb +84 -0
  212. metadata +408 -204
  213. data/docs/KenyaNidBiometric2Input.md +0 -22
  214. data/docs/NigeriaNinBiometric2Input.md +0 -22
  215. data/docs/SouthAfricaNidBiometric2Input.md +0 -22
@@ -0,0 +1,296 @@
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.21.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrinsicApi
17
+ class CzechBankIdAddress < ApiModelBase
18
+ # The address type. Possible values are: - PERMANENT_RESIDENCE - SECONDARY_RESIDENCE - UNKNOWN
19
+ attr_accessor :type
20
+
21
+ # The street name. This is usually present, but unused for small villages.
22
+ attr_accessor :street
23
+
24
+ # The address land registry number. This is usually present, but unused for small houses.
25
+ attr_accessor :building_apartment
26
+
27
+ # The additional address house number. This is usually present, but unused for small villages.
28
+ attr_accessor :street_number
29
+
30
+ # The house evidence number. This is rarely used in suburbs. An evidence number is used for addresses that are residential, temporary or non-residential buildings, e.g. cabins, garages etc.
31
+ attr_accessor :evidence_number
32
+
33
+ # The city name.
34
+ attr_accessor :city
35
+
36
+ # The city area name. This is usually present.
37
+ attr_accessor :city_area
38
+
39
+ # The zip of the address.
40
+ attr_accessor :zipcode
41
+
42
+ # The country code in ISO 3166-1 alpha-2 format.
43
+ attr_accessor :country
44
+
45
+ # The address identifier in the Czech RUIAN address register. RUIAN is the Czech Register of Territorial Identification, Addresses, and Real Estate. This value identifies the address record in that register and can be used to reconcile the address against Czech government address data.
46
+ attr_accessor :ruian_reference
47
+
48
+ # Attribute mapping from ruby-style variable name to JSON key.
49
+ def self.attribute_map
50
+ {
51
+ :'type' => :'type',
52
+ :'street' => :'street',
53
+ :'building_apartment' => :'buildingApartment',
54
+ :'street_number' => :'streetNumber',
55
+ :'evidence_number' => :'evidenceNumber',
56
+ :'city' => :'city',
57
+ :'city_area' => :'cityArea',
58
+ :'zipcode' => :'zipcode',
59
+ :'country' => :'country',
60
+ :'ruian_reference' => :'ruianReference'
61
+ }
62
+ end
63
+
64
+ # Returns attribute mapping this model knows about
65
+ def self.acceptable_attribute_map
66
+ attribute_map
67
+ end
68
+
69
+ # Returns all the JSON keys this model knows about
70
+ def self.acceptable_attributes
71
+ acceptable_attribute_map.values
72
+ end
73
+
74
+ # Attribute type mapping.
75
+ def self.openapi_types
76
+ {
77
+ :'type' => :'String',
78
+ :'street' => :'String',
79
+ :'building_apartment' => :'String',
80
+ :'street_number' => :'String',
81
+ :'evidence_number' => :'String',
82
+ :'city' => :'String',
83
+ :'city_area' => :'String',
84
+ :'zipcode' => :'String',
85
+ :'country' => :'String',
86
+ :'ruian_reference' => :'String'
87
+ }
88
+ end
89
+
90
+ # List of attributes with nullable: true
91
+ def self.openapi_nullable
92
+ Set.new([
93
+ :'type',
94
+ :'street',
95
+ :'building_apartment',
96
+ :'street_number',
97
+ :'evidence_number',
98
+ :'city_area',
99
+ :'ruian_reference'
100
+ ])
101
+ end
102
+
103
+ # Initializes the object
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ def initialize(attributes = {})
106
+ if (!attributes.is_a?(Hash))
107
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::CzechBankIdAddress` initialize method"
108
+ end
109
+
110
+ # check to see if the attribute exists and convert string to symbol for hash key
111
+ acceptable_attribute_map = self.class.acceptable_attribute_map
112
+ attributes = attributes.each_with_object({}) { |(k, v), h|
113
+ if (!acceptable_attribute_map.key?(k.to_sym))
114
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CzechBankIdAddress`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
115
+ end
116
+ h[k.to_sym] = v
117
+ }
118
+
119
+ if attributes.key?(:'type')
120
+ self.type = attributes[:'type']
121
+ end
122
+
123
+ if attributes.key?(:'street')
124
+ self.street = attributes[:'street']
125
+ end
126
+
127
+ if attributes.key?(:'building_apartment')
128
+ self.building_apartment = attributes[:'building_apartment']
129
+ end
130
+
131
+ if attributes.key?(:'street_number')
132
+ self.street_number = attributes[:'street_number']
133
+ end
134
+
135
+ if attributes.key?(:'evidence_number')
136
+ self.evidence_number = attributes[:'evidence_number']
137
+ end
138
+
139
+ if attributes.key?(:'city')
140
+ self.city = attributes[:'city']
141
+ else
142
+ self.city = nil
143
+ end
144
+
145
+ if attributes.key?(:'city_area')
146
+ self.city_area = attributes[:'city_area']
147
+ end
148
+
149
+ if attributes.key?(:'zipcode')
150
+ self.zipcode = attributes[:'zipcode']
151
+ else
152
+ self.zipcode = nil
153
+ end
154
+
155
+ if attributes.key?(:'country')
156
+ self.country = attributes[:'country']
157
+ else
158
+ self.country = nil
159
+ end
160
+
161
+ if attributes.key?(:'ruian_reference')
162
+ self.ruian_reference = attributes[:'ruian_reference']
163
+ end
164
+ end
165
+
166
+ # Show invalid properties with the reasons. Usually used together with valid?
167
+ # @return Array for valid properties with the reasons
168
+ def list_invalid_properties
169
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
170
+ invalid_properties = Array.new
171
+ if @city.nil?
172
+ invalid_properties.push('invalid value for "city", city cannot be nil.')
173
+ end
174
+
175
+ if @zipcode.nil?
176
+ invalid_properties.push('invalid value for "zipcode", zipcode cannot be nil.')
177
+ end
178
+
179
+ if @country.nil?
180
+ invalid_properties.push('invalid value for "country", country cannot be nil.')
181
+ end
182
+
183
+ invalid_properties
184
+ end
185
+
186
+ # Check to see if the all the properties in the model are valid
187
+ # @return true if the model is valid
188
+ def valid?
189
+ warn '[DEPRECATED] the `valid?` method is obsolete'
190
+ return false if @city.nil?
191
+ return false if @zipcode.nil?
192
+ return false if @country.nil?
193
+ true
194
+ end
195
+
196
+ # Custom attribute writer method with validation
197
+ # @param [Object] city Value to be assigned
198
+ def city=(city)
199
+ if city.nil?
200
+ fail ArgumentError, 'city cannot be nil'
201
+ end
202
+
203
+ @city = city
204
+ end
205
+
206
+ # Custom attribute writer method with validation
207
+ # @param [Object] zipcode Value to be assigned
208
+ def zipcode=(zipcode)
209
+ if zipcode.nil?
210
+ fail ArgumentError, 'zipcode cannot be nil'
211
+ end
212
+
213
+ @zipcode = zipcode
214
+ end
215
+
216
+ # Custom attribute writer method with validation
217
+ # @param [Object] country Value to be assigned
218
+ def country=(country)
219
+ if country.nil?
220
+ fail ArgumentError, 'country cannot be nil'
221
+ end
222
+
223
+ @country = country
224
+ end
225
+
226
+ # Checks equality by comparing each attribute.
227
+ # @param [Object] Object to be compared
228
+ def ==(o)
229
+ return true if self.equal?(o)
230
+ self.class == o.class &&
231
+ type == o.type &&
232
+ street == o.street &&
233
+ building_apartment == o.building_apartment &&
234
+ street_number == o.street_number &&
235
+ evidence_number == o.evidence_number &&
236
+ city == o.city &&
237
+ city_area == o.city_area &&
238
+ zipcode == o.zipcode &&
239
+ country == o.country &&
240
+ ruian_reference == o.ruian_reference
241
+ end
242
+
243
+ # @see the `==` method
244
+ # @param [Object] Object to be compared
245
+ def eql?(o)
246
+ self == o
247
+ end
248
+
249
+ # Calculates hash code according to all attributes.
250
+ # @return [Integer] Hash code
251
+ def hash
252
+ [type, street, building_apartment, street_number, evidence_number, city, city_area, zipcode, country, ruian_reference].hash
253
+ end
254
+
255
+ # Builds the object from hash
256
+ # @param [Hash] attributes Model attributes in the form of hash
257
+ # @return [Object] Returns the model itself
258
+ def self.build_from_hash(attributes)
259
+ return nil unless attributes.is_a?(Hash)
260
+ attributes = attributes.transform_keys(&:to_sym)
261
+ transformed_hash = {}
262
+ openapi_types.each_pair do |key, type|
263
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
264
+ transformed_hash["#{key}"] = nil
265
+ elsif type =~ /\AArray<(.*)>/i
266
+ # check to ensure the input is an array given that the attribute
267
+ # is documented as an array but the input is not
268
+ if attributes[attribute_map[key]].is_a?(Array)
269
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
270
+ end
271
+ elsif !attributes[attribute_map[key]].nil?
272
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
273
+ end
274
+ end
275
+ new(transformed_hash)
276
+ end
277
+
278
+ # Returns the object in the form of hash
279
+ # @return [Hash] Returns the object in the form of hash
280
+ def to_hash
281
+ hash = {}
282
+ self.class.attribute_map.each_pair do |attr, param|
283
+ value = self.send(attr)
284
+ if value.nil?
285
+ is_nullable = self.class.openapi_nullable.include?(attr)
286
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
287
+ end
288
+
289
+ hash[param] = _to_hash(value)
290
+ end
291
+ hash
292
+ end
293
+
294
+ end
295
+
296
+ end
@@ -0,0 +1,279 @@
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.21.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrinsicApi
17
+ class CzechBankIdCard < ApiModelBase
18
+ # The identity document type code. Possible values are: - ID - Identity card - P - Passport - DL - Driving license - IR - Residence permit - VS - Visa permit label - PS - Residential label - IX - Book with residence permit - IE - Form with temporary residence - OP - Identity card – without machine readable zone - CA - Passport of the Czech Republic resident – without machine readable zone - UNKNOWN - Unknown id card type
19
+ attr_accessor :type
20
+
21
+ # The localized identity document type description.
22
+ attr_accessor :description
23
+
24
+ # The country for which the identity document is valid.
25
+ attr_accessor :country
26
+
27
+ # The identity document number.
28
+ attr_accessor :number
29
+
30
+ # The identity document expiration date.
31
+ attr_accessor :valid_to
32
+
33
+ # The office that issued the identity document.
34
+ attr_accessor :issuer
35
+
36
+ # The identity document issue date.
37
+ attr_accessor :issue_date
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ def self.attribute_map
41
+ {
42
+ :'type' => :'type',
43
+ :'description' => :'description',
44
+ :'country' => :'country',
45
+ :'number' => :'number',
46
+ :'valid_to' => :'validTo',
47
+ :'issuer' => :'issuer',
48
+ :'issue_date' => :'issueDate'
49
+ }
50
+ end
51
+
52
+ # Returns attribute mapping this model knows about
53
+ def self.acceptable_attribute_map
54
+ attribute_map
55
+ end
56
+
57
+ # Returns all the JSON keys this model knows about
58
+ def self.acceptable_attributes
59
+ acceptable_attribute_map.values
60
+ end
61
+
62
+ # Attribute type mapping.
63
+ def self.openapi_types
64
+ {
65
+ :'type' => :'String',
66
+ :'description' => :'String',
67
+ :'country' => :'String',
68
+ :'number' => :'String',
69
+ :'valid_to' => :'Date',
70
+ :'issuer' => :'String',
71
+ :'issue_date' => :'Date'
72
+ }
73
+ end
74
+
75
+ # List of attributes with nullable: true
76
+ def self.openapi_nullable
77
+ Set.new([
78
+ :'description',
79
+ :'issuer',
80
+ :'issue_date'
81
+ ])
82
+ end
83
+
84
+ # Initializes the object
85
+ # @param [Hash] attributes Model attributes in the form of hash
86
+ def initialize(attributes = {})
87
+ if (!attributes.is_a?(Hash))
88
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::CzechBankIdCard` initialize method"
89
+ end
90
+
91
+ # check to see if the attribute exists and convert string to symbol for hash key
92
+ acceptable_attribute_map = self.class.acceptable_attribute_map
93
+ attributes = attributes.each_with_object({}) { |(k, v), h|
94
+ if (!acceptable_attribute_map.key?(k.to_sym))
95
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CzechBankIdCard`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
96
+ end
97
+ h[k.to_sym] = v
98
+ }
99
+
100
+ if attributes.key?(:'type')
101
+ self.type = attributes[:'type']
102
+ else
103
+ self.type = nil
104
+ end
105
+
106
+ if attributes.key?(:'description')
107
+ self.description = attributes[:'description']
108
+ end
109
+
110
+ if attributes.key?(:'country')
111
+ self.country = attributes[:'country']
112
+ else
113
+ self.country = nil
114
+ end
115
+
116
+ if attributes.key?(:'number')
117
+ self.number = attributes[:'number']
118
+ else
119
+ self.number = nil
120
+ end
121
+
122
+ if attributes.key?(:'valid_to')
123
+ self.valid_to = attributes[:'valid_to']
124
+ else
125
+ self.valid_to = nil
126
+ end
127
+
128
+ if attributes.key?(:'issuer')
129
+ self.issuer = attributes[:'issuer']
130
+ end
131
+
132
+ if attributes.key?(:'issue_date')
133
+ self.issue_date = attributes[:'issue_date']
134
+ end
135
+ end
136
+
137
+ # Show invalid properties with the reasons. Usually used together with valid?
138
+ # @return Array for valid properties with the reasons
139
+ def list_invalid_properties
140
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
141
+ invalid_properties = Array.new
142
+ if @type.nil?
143
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
144
+ end
145
+
146
+ if @country.nil?
147
+ invalid_properties.push('invalid value for "country", country cannot be nil.')
148
+ end
149
+
150
+ if @number.nil?
151
+ invalid_properties.push('invalid value for "number", number cannot be nil.')
152
+ end
153
+
154
+ if @valid_to.nil?
155
+ invalid_properties.push('invalid value for "valid_to", valid_to cannot be nil.')
156
+ end
157
+
158
+ invalid_properties
159
+ end
160
+
161
+ # Check to see if the all the properties in the model are valid
162
+ # @return true if the model is valid
163
+ def valid?
164
+ warn '[DEPRECATED] the `valid?` method is obsolete'
165
+ return false if @type.nil?
166
+ return false if @country.nil?
167
+ return false if @number.nil?
168
+ return false if @valid_to.nil?
169
+ true
170
+ end
171
+
172
+ # Custom attribute writer method with validation
173
+ # @param [Object] type Value to be assigned
174
+ def type=(type)
175
+ if type.nil?
176
+ fail ArgumentError, 'type cannot be nil'
177
+ end
178
+
179
+ @type = type
180
+ end
181
+
182
+ # Custom attribute writer method with validation
183
+ # @param [Object] country Value to be assigned
184
+ def country=(country)
185
+ if country.nil?
186
+ fail ArgumentError, 'country cannot be nil'
187
+ end
188
+
189
+ @country = country
190
+ end
191
+
192
+ # Custom attribute writer method with validation
193
+ # @param [Object] number Value to be assigned
194
+ def number=(number)
195
+ if number.nil?
196
+ fail ArgumentError, 'number cannot be nil'
197
+ end
198
+
199
+ @number = number
200
+ end
201
+
202
+ # Custom attribute writer method with validation
203
+ # @param [Object] valid_to Value to be assigned
204
+ def valid_to=(valid_to)
205
+ if valid_to.nil?
206
+ fail ArgumentError, 'valid_to cannot be nil'
207
+ end
208
+
209
+ @valid_to = valid_to
210
+ end
211
+
212
+ # Checks equality by comparing each attribute.
213
+ # @param [Object] Object to be compared
214
+ def ==(o)
215
+ return true if self.equal?(o)
216
+ self.class == o.class &&
217
+ type == o.type &&
218
+ description == o.description &&
219
+ country == o.country &&
220
+ number == o.number &&
221
+ valid_to == o.valid_to &&
222
+ issuer == o.issuer &&
223
+ issue_date == o.issue_date
224
+ end
225
+
226
+ # @see the `==` method
227
+ # @param [Object] Object to be compared
228
+ def eql?(o)
229
+ self == o
230
+ end
231
+
232
+ # Calculates hash code according to all attributes.
233
+ # @return [Integer] Hash code
234
+ def hash
235
+ [type, description, country, number, valid_to, issuer, issue_date].hash
236
+ end
237
+
238
+ # Builds the object from hash
239
+ # @param [Hash] attributes Model attributes in the form of hash
240
+ # @return [Object] Returns the model itself
241
+ def self.build_from_hash(attributes)
242
+ return nil unless attributes.is_a?(Hash)
243
+ attributes = attributes.transform_keys(&:to_sym)
244
+ transformed_hash = {}
245
+ openapi_types.each_pair do |key, type|
246
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
247
+ transformed_hash["#{key}"] = nil
248
+ elsif type =~ /\AArray<(.*)>/i
249
+ # check to ensure the input is an array given that the attribute
250
+ # is documented as an array but the input is not
251
+ if attributes[attribute_map[key]].is_a?(Array)
252
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
253
+ end
254
+ elsif !attributes[attribute_map[key]].nil?
255
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
256
+ end
257
+ end
258
+ new(transformed_hash)
259
+ end
260
+
261
+ # Returns the object in the form of hash
262
+ # @return [Hash] Returns the object in the form of hash
263
+ def to_hash
264
+ hash = {}
265
+ self.class.attribute_map.each_pair do |attr, param|
266
+ value = self.send(attr)
267
+ if value.nil?
268
+ is_nullable = self.class.openapi_nullable.include?(attr)
269
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
270
+ end
271
+
272
+ hash[param] = _to_hash(value)
273
+ end
274
+ hash
275
+ end
276
+
277
+ end
278
+
279
+ end