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,193 @@
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 DiiaSubjectOutput < ApiModelBase
18
+ # Full name.
19
+ attr_accessor :common_name
20
+
21
+ # Country code in ISO 3166-1 alpha-2 format.
22
+ attr_accessor :country
23
+
24
+ # The SERIALNUMBER attribute from the certificate Subject Distinguished Name. This is not the X.509 certificate serial number field. For Ukrainian natural person certificates this commonly uses the ETSI natural person semantics identifier format \"{identifier-type}{country-code}-{identifier}\". Components: - identifier-type (3 chars): TIN (Tax Identification Number) for RNOKPP. - country-code (2 chars): ISO 3166-1 alpha-2 country code, typically UA. - identifier: RNOKPP, the Ukrainian individual taxpayer registration number.
25
+ attr_accessor :serial_number
26
+
27
+ # Given name.
28
+ attr_accessor :given_name
29
+
30
+ # Surname.
31
+ attr_accessor :surname
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ def self.attribute_map
35
+ {
36
+ :'common_name' => :'commonName',
37
+ :'country' => :'country',
38
+ :'serial_number' => :'serialNumber',
39
+ :'given_name' => :'givenName',
40
+ :'surname' => :'surname'
41
+ }
42
+ end
43
+
44
+ # Returns attribute mapping this model knows about
45
+ def self.acceptable_attribute_map
46
+ attribute_map
47
+ end
48
+
49
+ # Returns all the JSON keys this model knows about
50
+ def self.acceptable_attributes
51
+ acceptable_attribute_map.values
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.openapi_types
56
+ {
57
+ :'common_name' => :'String',
58
+ :'country' => :'String',
59
+ :'serial_number' => :'String',
60
+ :'given_name' => :'String',
61
+ :'surname' => :'String'
62
+ }
63
+ end
64
+
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ :'common_name',
69
+ :'country',
70
+ :'serial_number',
71
+ :'given_name',
72
+ :'surname'
73
+ ])
74
+ end
75
+
76
+ # Initializes the object
77
+ # @param [Hash] attributes Model attributes in the form of hash
78
+ def initialize(attributes = {})
79
+ if (!attributes.is_a?(Hash))
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::DiiaSubjectOutput` initialize method"
81
+ end
82
+
83
+ # check to see if the attribute exists and convert string to symbol for hash key
84
+ acceptable_attribute_map = self.class.acceptable_attribute_map
85
+ attributes = attributes.each_with_object({}) { |(k, v), h|
86
+ if (!acceptable_attribute_map.key?(k.to_sym))
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::DiiaSubjectOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
88
+ end
89
+ h[k.to_sym] = v
90
+ }
91
+
92
+ if attributes.key?(:'common_name')
93
+ self.common_name = attributes[:'common_name']
94
+ end
95
+
96
+ if attributes.key?(:'country')
97
+ self.country = attributes[:'country']
98
+ end
99
+
100
+ if attributes.key?(:'serial_number')
101
+ self.serial_number = attributes[:'serial_number']
102
+ end
103
+
104
+ if attributes.key?(:'given_name')
105
+ self.given_name = attributes[:'given_name']
106
+ end
107
+
108
+ if attributes.key?(:'surname')
109
+ self.surname = attributes[:'surname']
110
+ end
111
+ end
112
+
113
+ # Show invalid properties with the reasons. Usually used together with valid?
114
+ # @return Array for valid properties with the reasons
115
+ def list_invalid_properties
116
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
117
+ invalid_properties = Array.new
118
+ invalid_properties
119
+ end
120
+
121
+ # Check to see if the all the properties in the model are valid
122
+ # @return true if the model is valid
123
+ def valid?
124
+ warn '[DEPRECATED] the `valid?` method is obsolete'
125
+ true
126
+ end
127
+
128
+ # Checks equality by comparing each attribute.
129
+ # @param [Object] Object to be compared
130
+ def ==(o)
131
+ return true if self.equal?(o)
132
+ self.class == o.class &&
133
+ common_name == o.common_name &&
134
+ country == o.country &&
135
+ serial_number == o.serial_number &&
136
+ given_name == o.given_name &&
137
+ surname == o.surname
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
+ [common_name, country, serial_number, given_name, surname].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
+ transformed_hash = {}
159
+ openapi_types.each_pair do |key, type|
160
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
161
+ transformed_hash["#{key}"] = nil
162
+ elsif type =~ /\AArray<(.*)>/i
163
+ # check to ensure the input is an array given that the attribute
164
+ # is documented as an array but the input is not
165
+ if attributes[attribute_map[key]].is_a?(Array)
166
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
167
+ end
168
+ elsif !attributes[attribute_map[key]].nil?
169
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
170
+ end
171
+ end
172
+ new(transformed_hash)
173
+ end
174
+
175
+ # Returns the object in the form of hash
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_hash
178
+ hash = {}
179
+ self.class.attribute_map.each_pair do |attr, param|
180
+ value = self.send(attr)
181
+ if value.nil?
182
+ is_nullable = self.class.openapi_nullable.include?(attr)
183
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
184
+ end
185
+
186
+ hash[param] = _to_hash(value)
187
+ end
188
+ hash
189
+ end
190
+
191
+ end
192
+
193
+ end
@@ -0,0 +1,226 @@
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 IdemiaPreviewProviderAddress < ApiModelBase
18
+ # The formatted address.
19
+ attr_accessor :formatted
20
+
21
+ # The street address.
22
+ attr_accessor :street_address
23
+
24
+ # The city or locality.
25
+ attr_accessor :locality
26
+
27
+ # The state, province, region, or other subdivision.
28
+ attr_accessor :region
29
+
30
+ # The postal code.
31
+ attr_accessor :postal_code
32
+
33
+ # The country.
34
+ attr_accessor :country
35
+
36
+ # The room number.
37
+ attr_accessor :room_number
38
+
39
+ # The post office box.
40
+ attr_accessor :post_office_box
41
+
42
+ # Attribute mapping from ruby-style variable name to JSON key.
43
+ def self.attribute_map
44
+ {
45
+ :'formatted' => :'formatted',
46
+ :'street_address' => :'streetAddress',
47
+ :'locality' => :'locality',
48
+ :'region' => :'region',
49
+ :'postal_code' => :'postalCode',
50
+ :'country' => :'country',
51
+ :'room_number' => :'roomNumber',
52
+ :'post_office_box' => :'postOfficeBox'
53
+ }
54
+ end
55
+
56
+ # Returns attribute mapping this model knows about
57
+ def self.acceptable_attribute_map
58
+ attribute_map
59
+ end
60
+
61
+ # Returns all the JSON keys this model knows about
62
+ def self.acceptable_attributes
63
+ acceptable_attribute_map.values
64
+ end
65
+
66
+ # Attribute type mapping.
67
+ def self.openapi_types
68
+ {
69
+ :'formatted' => :'String',
70
+ :'street_address' => :'String',
71
+ :'locality' => :'String',
72
+ :'region' => :'String',
73
+ :'postal_code' => :'String',
74
+ :'country' => :'String',
75
+ :'room_number' => :'String',
76
+ :'post_office_box' => :'String'
77
+ }
78
+ end
79
+
80
+ # List of attributes with nullable: true
81
+ def self.openapi_nullable
82
+ Set.new([
83
+ :'formatted',
84
+ :'street_address',
85
+ :'locality',
86
+ :'region',
87
+ :'postal_code',
88
+ :'country',
89
+ :'room_number',
90
+ :'post_office_box'
91
+ ])
92
+ end
93
+
94
+ # Initializes the object
95
+ # @param [Hash] attributes Model attributes in the form of hash
96
+ def initialize(attributes = {})
97
+ if (!attributes.is_a?(Hash))
98
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::IdemiaPreviewProviderAddress` initialize method"
99
+ end
100
+
101
+ # check to see if the attribute exists and convert string to symbol for hash key
102
+ acceptable_attribute_map = self.class.acceptable_attribute_map
103
+ attributes = attributes.each_with_object({}) { |(k, v), h|
104
+ if (!acceptable_attribute_map.key?(k.to_sym))
105
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::IdemiaPreviewProviderAddress`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
106
+ end
107
+ h[k.to_sym] = v
108
+ }
109
+
110
+ if attributes.key?(:'formatted')
111
+ self.formatted = attributes[:'formatted']
112
+ end
113
+
114
+ if attributes.key?(:'street_address')
115
+ self.street_address = attributes[:'street_address']
116
+ end
117
+
118
+ if attributes.key?(:'locality')
119
+ self.locality = attributes[:'locality']
120
+ end
121
+
122
+ if attributes.key?(:'region')
123
+ self.region = attributes[:'region']
124
+ end
125
+
126
+ if attributes.key?(:'postal_code')
127
+ self.postal_code = attributes[:'postal_code']
128
+ end
129
+
130
+ if attributes.key?(:'country')
131
+ self.country = attributes[:'country']
132
+ end
133
+
134
+ if attributes.key?(:'room_number')
135
+ self.room_number = attributes[:'room_number']
136
+ end
137
+
138
+ if attributes.key?(:'post_office_box')
139
+ self.post_office_box = attributes[:'post_office_box']
140
+ end
141
+ end
142
+
143
+ # Show invalid properties with the reasons. Usually used together with valid?
144
+ # @return Array for valid properties with the reasons
145
+ def list_invalid_properties
146
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
147
+ invalid_properties = Array.new
148
+ invalid_properties
149
+ end
150
+
151
+ # Check to see if the all the properties in the model are valid
152
+ # @return true if the model is valid
153
+ def valid?
154
+ warn '[DEPRECATED] the `valid?` method is obsolete'
155
+ true
156
+ end
157
+
158
+ # Checks equality by comparing each attribute.
159
+ # @param [Object] Object to be compared
160
+ def ==(o)
161
+ return true if self.equal?(o)
162
+ self.class == o.class &&
163
+ formatted == o.formatted &&
164
+ street_address == o.street_address &&
165
+ locality == o.locality &&
166
+ region == o.region &&
167
+ postal_code == o.postal_code &&
168
+ country == o.country &&
169
+ room_number == o.room_number &&
170
+ post_office_box == o.post_office_box
171
+ end
172
+
173
+ # @see the `==` method
174
+ # @param [Object] Object to be compared
175
+ def eql?(o)
176
+ self == o
177
+ end
178
+
179
+ # Calculates hash code according to all attributes.
180
+ # @return [Integer] Hash code
181
+ def hash
182
+ [formatted, street_address, locality, region, postal_code, country, room_number, post_office_box].hash
183
+ end
184
+
185
+ # Builds the object from hash
186
+ # @param [Hash] attributes Model attributes in the form of hash
187
+ # @return [Object] Returns the model itself
188
+ def self.build_from_hash(attributes)
189
+ return nil unless attributes.is_a?(Hash)
190
+ attributes = attributes.transform_keys(&:to_sym)
191
+ transformed_hash = {}
192
+ openapi_types.each_pair do |key, type|
193
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
194
+ transformed_hash["#{key}"] = nil
195
+ elsif type =~ /\AArray<(.*)>/i
196
+ # check to ensure the input is an array given that the attribute
197
+ # is documented as an array but the input is not
198
+ if attributes[attribute_map[key]].is_a?(Array)
199
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
200
+ end
201
+ elsif !attributes[attribute_map[key]].nil?
202
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
203
+ end
204
+ end
205
+ new(transformed_hash)
206
+ end
207
+
208
+ # Returns the object in the form of hash
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_hash
211
+ hash = {}
212
+ self.class.attribute_map.each_pair do |attr, param|
213
+ value = self.send(attr)
214
+ if value.nil?
215
+ is_nullable = self.class.openapi_nullable.include?(attr)
216
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
217
+ end
218
+
219
+ hash[param] = _to_hash(value)
220
+ end
221
+ hash
222
+ end
223
+
224
+ end
225
+
226
+ end