late-sdk 0.0.561 → 0.0.562

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17ac91116594e8f9f73b90cad7362fd627cf357b604b6f218a43181c2267c954
4
- data.tar.gz: 6ce272bbe5578fe33da52599162b1c3c0c6456d403fc719d3685e27003a02028
3
+ metadata.gz: 9237073662107b02c4d1da51955963400ecd21cd0d4a4d416a6f8ef613db6b1b
4
+ data.tar.gz: cf0a7f2ac53f0f70e9c0d4d53be04a457d48cd8e78753742ff9ddfbc5451ceab
5
5
  SHA512:
6
- metadata.gz: b6808329cd872d87c101fff77704ab5c44cc59f32d06897c150b4e1132e62622fa6e7305a3e07b188ce60ac4bce8247e2edb0f309b7e98a892214eaff1eb819b
7
- data.tar.gz: 646b27deacd31fd466383f0475a143bc673324cb22bdeaba58bcbc21a65198d49626363cce610e4dee65c5d5abd21629770dfd61a34d741e681871a2e902ff5d
6
+ metadata.gz: 16e6de5ddd7a37f5ddfcb79d335262c996743fdf1d8d8265952a1ac78d9fff25328414b9c6c9149f2170b6acf06686bcc2a153bb2dfbdc12ef480ad90dd3a8ee
7
+ data.tar.gz: 54c325cd8559561db299fb311578bc41fd330a5a5f32c7dee9f4f6012c4c4f29caef07db08192f0952d900a3f7848808a6c63eab9bebcdcd204cf4cb509500e2
data/README.md CHANGED
@@ -375,6 +375,7 @@ Class | Method | HTTP request | Description
375
375
  *Zernio::PhoneNumbersApi* | [**release_phone_number**](docs/PhoneNumbersApi.md#release_phone_number) | **DELETE** /v1/phone-numbers/{id} | Release phone number
376
376
  *Zernio::PhoneNumbersApi* | [**remediate_phone_number**](docs/PhoneNumbersApi.md#remediate_phone_number) | **POST** /v1/phone-numbers/{id}/remediate | Resubmit a declined number
377
377
  *Zernio::PhoneNumbersApi* | [**reply_to_phone_number_reviewer**](docs/PhoneNumbersApi.md#reply_to_phone_number_reviewer) | **POST** /v1/phone-numbers/{id}/remediate/reply | Reply to the regulatory reviewer
378
+ *Zernio::PhoneNumbersApi* | [**respond_to_phone_number_reviewer**](docs/PhoneNumbersApi.md#respond_to_phone_number_reviewer) | **POST** /v1/phone-numbers/{id}/remediate/respond | Respond to the regulatory reviewer (message + corrections)
378
379
  *Zernio::PhoneNumbersApi* | [**review_phone_number_kyc_packet**](docs/PhoneNumbersApi.md#review_phone_number_kyc_packet) | **POST** /v1/phone-numbers/kyc/review-packet | Pre-review a KYC packet
379
380
  *Zernio::PhoneNumbersApi* | [**search_available_phone_numbers**](docs/PhoneNumbersApi.md#search_available_phone_numbers) | **GET** /v1/phone-numbers/available | Search available numbers
380
381
  *Zernio::PhoneNumbersApi* | [**submit_phone_number_kyc**](docs/PhoneNumbersApi.md#submit_phone_number_kyc) | **POST** /v1/phone-numbers/kyc | Submit KYC
@@ -1601,6 +1602,9 @@ Class | Method | HTTP request | Description
1601
1602
  - [Zernio::ResendSmsRegistrationOtp200Response](docs/ResendSmsRegistrationOtp200Response.md)
1602
1603
  - [Zernio::ReserveRfPrediction201Response](docs/ReserveRfPrediction201Response.md)
1603
1604
  - [Zernio::ReserveRfPredictionRequest](docs/ReserveRfPredictionRequest.md)
1605
+ - [Zernio::RespondToPhoneNumberReviewer200Response](docs/RespondToPhoneNumberReviewer200Response.md)
1606
+ - [Zernio::RespondToPhoneNumberReviewerRequest](docs/RespondToPhoneNumberReviewerRequest.md)
1607
+ - [Zernio::RespondToPhoneNumberReviewerRequestDocumentsInner](docs/RespondToPhoneNumberReviewerRequestDocumentsInner.md)
1604
1608
  - [Zernio::RestoreWorkflowVersion200Response](docs/RestoreWorkflowVersion200Response.md)
1605
1609
  - [Zernio::RestoreWorkflowVersion200ResponseWorkflow](docs/RestoreWorkflowVersion200ResponseWorkflow.md)
1606
1610
  - [Zernio::RetweetPost200Response](docs/RetweetPost200Response.md)
@@ -21,6 +21,7 @@ All URIs are relative to *https://zernio.com/api*
21
21
  | [**release_phone_number**](PhoneNumbersApi.md#release_phone_number) | **DELETE** /v1/phone-numbers/{id} | Release phone number |
22
22
  | [**remediate_phone_number**](PhoneNumbersApi.md#remediate_phone_number) | **POST** /v1/phone-numbers/{id}/remediate | Resubmit a declined number |
23
23
  | [**reply_to_phone_number_reviewer**](PhoneNumbersApi.md#reply_to_phone_number_reviewer) | **POST** /v1/phone-numbers/{id}/remediate/reply | Reply to the regulatory reviewer |
24
+ | [**respond_to_phone_number_reviewer**](PhoneNumbersApi.md#respond_to_phone_number_reviewer) | **POST** /v1/phone-numbers/{id}/remediate/respond | Respond to the regulatory reviewer (message + corrections) |
24
25
  | [**review_phone_number_kyc_packet**](PhoneNumbersApi.md#review_phone_number_kyc_packet) | **POST** /v1/phone-numbers/kyc/review-packet | Pre-review a KYC packet |
25
26
  | [**search_available_phone_numbers**](PhoneNumbersApi.md#search_available_phone_numbers) | **GET** /v1/phone-numbers/available | Search available numbers |
26
27
  | [**submit_phone_number_kyc**](PhoneNumbersApi.md#submit_phone_number_kyc) | **POST** /v1/phone-numbers/kyc | Submit KYC |
@@ -1217,6 +1218,77 @@ end
1217
1218
  - **Accept**: application/json
1218
1219
 
1219
1220
 
1221
+ ## respond_to_phone_number_reviewer
1222
+
1223
+ > <RespondToPhoneNumberReviewer200Response> respond_to_phone_number_reviewer(id, respond_to_phone_number_reviewer_request)
1224
+
1225
+ Respond to the regulatory reviewer (message + corrections)
1226
+
1227
+ Send a single response to the reviewer on a number awaiting remediation: a free-text message and/or corrected requirement documents, in one call. If corrections are present they are PATCHed onto the requirement group and re-submitted (the number goes back to \"in review\"); if a message or file attachments are present they are posted to the reviewer's comment thread. When both are present, your message is the thread comment and the resubmit drives the state change. At least one of message, corrections, or attachments is required. `documents` correct requirement slots; `attachments` are loose files (their links are added to your message).
1228
+
1229
+ ### Examples
1230
+
1231
+ ```ruby
1232
+ require 'time'
1233
+ require 'zernio-sdk'
1234
+ # setup authorization
1235
+ Zernio.configure do |config|
1236
+ # Configure Bearer authorization (JWT): bearerAuth
1237
+ config.access_token = 'YOUR_BEARER_TOKEN'
1238
+ end
1239
+
1240
+ api_instance = Zernio::PhoneNumbersApi.new
1241
+ id = 'id_example' # String |
1242
+ respond_to_phone_number_reviewer_request = Zernio::RespondToPhoneNumberReviewerRequest.new # RespondToPhoneNumberReviewerRequest |
1243
+
1244
+ begin
1245
+ # Respond to the regulatory reviewer (message + corrections)
1246
+ result = api_instance.respond_to_phone_number_reviewer(id, respond_to_phone_number_reviewer_request)
1247
+ p result
1248
+ rescue Zernio::ApiError => e
1249
+ puts "Error when calling PhoneNumbersApi->respond_to_phone_number_reviewer: #{e}"
1250
+ end
1251
+ ```
1252
+
1253
+ #### Using the respond_to_phone_number_reviewer_with_http_info variant
1254
+
1255
+ This returns an Array which contains the response data, status code and headers.
1256
+
1257
+ > <Array(<RespondToPhoneNumberReviewer200Response>, Integer, Hash)> respond_to_phone_number_reviewer_with_http_info(id, respond_to_phone_number_reviewer_request)
1258
+
1259
+ ```ruby
1260
+ begin
1261
+ # Respond to the regulatory reviewer (message + corrections)
1262
+ data, status_code, headers = api_instance.respond_to_phone_number_reviewer_with_http_info(id, respond_to_phone_number_reviewer_request)
1263
+ p status_code # => 2xx
1264
+ p headers # => { ... }
1265
+ p data # => <RespondToPhoneNumberReviewer200Response>
1266
+ rescue Zernio::ApiError => e
1267
+ puts "Error when calling PhoneNumbersApi->respond_to_phone_number_reviewer_with_http_info: #{e}"
1268
+ end
1269
+ ```
1270
+
1271
+ ### Parameters
1272
+
1273
+ | Name | Type | Description | Notes |
1274
+ | ---- | ---- | ----------- | ----- |
1275
+ | **id** | **String** | | |
1276
+ | **respond_to_phone_number_reviewer_request** | [**RespondToPhoneNumberReviewerRequest**](RespondToPhoneNumberReviewerRequest.md) | | |
1277
+
1278
+ ### Return type
1279
+
1280
+ [**RespondToPhoneNumberReviewer200Response**](RespondToPhoneNumberReviewer200Response.md)
1281
+
1282
+ ### Authorization
1283
+
1284
+ [bearerAuth](../README.md#bearerAuth)
1285
+
1286
+ ### HTTP request headers
1287
+
1288
+ - **Content-Type**: application/json
1289
+ - **Accept**: application/json
1290
+
1291
+
1220
1292
  ## review_phone_number_kyc_packet
1221
1293
 
1222
1294
  > <ReviewPhoneNumberKycPacket200Response> review_phone_number_kyc_packet(review_phone_number_kyc_packet_request)
@@ -0,0 +1,24 @@
1
+ # Zernio::RespondToPhoneNumberReviewer200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **String** | &#x60;resubmitted&#x60; when corrections were submitted, &#x60;replied&#x60; when it was message-only. | [optional] |
8
+ | **posted** | **Boolean** | Whether a message/attachments were posted to the reviewer. | [optional] |
9
+ | **phone_number** | [**RemediatePhoneNumber200ResponsePhoneNumber**](RemediatePhoneNumber200ResponsePhoneNumber.md) | | [optional] |
10
+ | **siblings_resubmitted** | **Integer** | Other numbers on the same registration the correction fanned out to. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'zernio-sdk'
16
+
17
+ instance = Zernio::RespondToPhoneNumberReviewer200Response.new(
18
+ status: null,
19
+ posted: null,
20
+ phone_number: null,
21
+ siblings_resubmitted: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,26 @@
1
+ # Zernio::RespondToPhoneNumberReviewerRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message** | **String** | Your message to the reviewer. | [optional] |
8
+ | **documents** | [**Array&lt;RespondToPhoneNumberReviewerRequestDocumentsInner&gt;**](RespondToPhoneNumberReviewerRequestDocumentsInner.md) | Corrected requirement documents, each keyed to its requirement. | [optional] |
9
+ | **address** | **Object** | A corrected address record, keyed to its requirement. | [optional] |
10
+ | **entity_type** | **String** | | [optional] |
11
+ | **attachments** | [**Array&lt;ReplyToPhoneNumberReviewerRequestAttachmentsInner&gt;**](ReplyToPhoneNumberReviewerRequestAttachmentsInner.md) | Loose files (PDF/JPG/PNG/WEBP, max 10 MB each) whose links are added to your message. | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'zernio-sdk'
17
+
18
+ instance = Zernio::RespondToPhoneNumberReviewerRequest.new(
19
+ message: null,
20
+ documents: null,
21
+ address: null,
22
+ entity_type: null,
23
+ attachments: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,24 @@
1
+ # Zernio::RespondToPhoneNumberReviewerRequestDocumentsInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **requirement_id** | **String** | | |
8
+ | **filename** | **String** | | [optional] |
9
+ | **base64** | **String** | Base64-encoded file bytes (or supply documentId instead). | [optional] |
10
+ | **document_id** | **String** | Id of a document already uploaded out-of-band. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'zernio-sdk'
16
+
17
+ instance = Zernio::RespondToPhoneNumberReviewerRequestDocumentsInner.new(
18
+ requirement_id: null,
19
+ filename: null,
20
+ base64: null,
21
+ document_id: null
22
+ )
23
+ ```
24
+
@@ -1156,6 +1156,80 @@ module Zernio
1156
1156
  return data, status_code, headers
1157
1157
  end
1158
1158
 
1159
+ # Respond to the regulatory reviewer (message + corrections)
1160
+ # Send a single response to the reviewer on a number awaiting remediation: a free-text message and/or corrected requirement documents, in one call. If corrections are present they are PATCHed onto the requirement group and re-submitted (the number goes back to \"in review\"); if a message or file attachments are present they are posted to the reviewer's comment thread. When both are present, your message is the thread comment and the resubmit drives the state change. At least one of message, corrections, or attachments is required. `documents` correct requirement slots; `attachments` are loose files (their links are added to your message).
1161
+ # @param id [String]
1162
+ # @param respond_to_phone_number_reviewer_request [RespondToPhoneNumberReviewerRequest]
1163
+ # @param [Hash] opts the optional parameters
1164
+ # @return [RespondToPhoneNumberReviewer200Response]
1165
+ def respond_to_phone_number_reviewer(id, respond_to_phone_number_reviewer_request, opts = {})
1166
+ data, _status_code, _headers = respond_to_phone_number_reviewer_with_http_info(id, respond_to_phone_number_reviewer_request, opts)
1167
+ data
1168
+ end
1169
+
1170
+ # Respond to the regulatory reviewer (message + corrections)
1171
+ # Send a single response to the reviewer on a number awaiting remediation: a free-text message and/or corrected requirement documents, in one call. If corrections are present they are PATCHed onto the requirement group and re-submitted (the number goes back to \&quot;in review\&quot;); if a message or file attachments are present they are posted to the reviewer&#39;s comment thread. When both are present, your message is the thread comment and the resubmit drives the state change. At least one of message, corrections, or attachments is required. &#x60;documents&#x60; correct requirement slots; &#x60;attachments&#x60; are loose files (their links are added to your message).
1172
+ # @param id [String]
1173
+ # @param respond_to_phone_number_reviewer_request [RespondToPhoneNumberReviewerRequest]
1174
+ # @param [Hash] opts the optional parameters
1175
+ # @return [Array<(RespondToPhoneNumberReviewer200Response, Integer, Hash)>] RespondToPhoneNumberReviewer200Response data, response status code and response headers
1176
+ def respond_to_phone_number_reviewer_with_http_info(id, respond_to_phone_number_reviewer_request, opts = {})
1177
+ if @api_client.config.debugging
1178
+ @api_client.config.logger.debug 'Calling API: PhoneNumbersApi.respond_to_phone_number_reviewer ...'
1179
+ end
1180
+ # verify the required parameter 'id' is set
1181
+ if @api_client.config.client_side_validation && id.nil?
1182
+ fail ArgumentError, "Missing the required parameter 'id' when calling PhoneNumbersApi.respond_to_phone_number_reviewer"
1183
+ end
1184
+ # verify the required parameter 'respond_to_phone_number_reviewer_request' is set
1185
+ if @api_client.config.client_side_validation && respond_to_phone_number_reviewer_request.nil?
1186
+ fail ArgumentError, "Missing the required parameter 'respond_to_phone_number_reviewer_request' when calling PhoneNumbersApi.respond_to_phone_number_reviewer"
1187
+ end
1188
+ # resource path
1189
+ local_var_path = '/v1/phone-numbers/{id}/remediate/respond'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1190
+
1191
+ # query parameters
1192
+ query_params = opts[:query_params] || {}
1193
+
1194
+ # header parameters
1195
+ header_params = opts[:header_params] || {}
1196
+ # HTTP header 'Accept' (if needed)
1197
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1198
+ # HTTP header 'Content-Type'
1199
+ content_type = @api_client.select_header_content_type(['application/json'])
1200
+ if !content_type.nil?
1201
+ header_params['Content-Type'] = content_type
1202
+ end
1203
+
1204
+ # form parameters
1205
+ form_params = opts[:form_params] || {}
1206
+
1207
+ # http body (model)
1208
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(respond_to_phone_number_reviewer_request)
1209
+
1210
+ # return_type
1211
+ return_type = opts[:debug_return_type] || 'RespondToPhoneNumberReviewer200Response'
1212
+
1213
+ # auth_names
1214
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1215
+
1216
+ new_options = opts.merge(
1217
+ :operation => :"PhoneNumbersApi.respond_to_phone_number_reviewer",
1218
+ :header_params => header_params,
1219
+ :query_params => query_params,
1220
+ :form_params => form_params,
1221
+ :body => post_body,
1222
+ :auth_names => auth_names,
1223
+ :return_type => return_type
1224
+ )
1225
+
1226
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1227
+ if @api_client.config.debugging
1228
+ @api_client.config.logger.debug "API called: PhoneNumbersApi#respond_to_phone_number_reviewer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1229
+ end
1230
+ return data, status_code, headers
1231
+ end
1232
+
1159
1233
  # Pre-review a KYC packet
1160
1234
  # Advisory dry-run of a regulated-KYC packet before submitting: reviews the exact documents the regulator will see (referenced by the ids from POST /v1/phone-numbers/kyc/upload-document) against the declared values and address, and returns plain-language advisories for likely decline reasons (wrong document type, mismatched address, one-sided ID scans). Non-blocking: advisories are warnings, submitting anyway is always allowed, and any review failure degrades to an empty list.
1161
1235
  # @param review_phone_number_kyc_packet_request [ReviewPhoneNumberKycPacketRequest]
@@ -0,0 +1,211 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5
+
6
+ The version of the OpenAPI document: 1.0.4
7
+ Contact: support@zernio.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Zernio
17
+ class RespondToPhoneNumberReviewer200Response < ApiModelBase
18
+ # `resubmitted` when corrections were submitted, `replied` when it was message-only.
19
+ attr_accessor :status
20
+
21
+ # Whether a message/attachments were posted to the reviewer.
22
+ attr_accessor :posted
23
+
24
+ attr_accessor :phone_number
25
+
26
+ # Other numbers on the same registration the correction fanned out to.
27
+ attr_accessor :siblings_resubmitted
28
+
29
+ class EnumAttributeValidator
30
+ attr_reader :datatype
31
+ attr_reader :allowable_values
32
+
33
+ def initialize(datatype, allowable_values)
34
+ @allowable_values = allowable_values.map do |value|
35
+ case datatype.to_s
36
+ when /Integer/i
37
+ value.to_i
38
+ when /Float/i
39
+ value.to_f
40
+ else
41
+ value
42
+ end
43
+ end
44
+ end
45
+
46
+ def valid?(value)
47
+ !value || allowable_values.include?(value)
48
+ end
49
+ end
50
+
51
+ # Attribute mapping from ruby-style variable name to JSON key.
52
+ def self.attribute_map
53
+ {
54
+ :'status' => :'status',
55
+ :'posted' => :'posted',
56
+ :'phone_number' => :'phoneNumber',
57
+ :'siblings_resubmitted' => :'siblingsResubmitted'
58
+ }
59
+ end
60
+
61
+ # Returns attribute mapping this model knows about
62
+ def self.acceptable_attribute_map
63
+ attribute_map
64
+ end
65
+
66
+ # Returns all the JSON keys this model knows about
67
+ def self.acceptable_attributes
68
+ acceptable_attribute_map.values
69
+ end
70
+
71
+ # Attribute type mapping.
72
+ def self.openapi_types
73
+ {
74
+ :'status' => :'String',
75
+ :'posted' => :'Boolean',
76
+ :'phone_number' => :'RemediatePhoneNumber200ResponsePhoneNumber',
77
+ :'siblings_resubmitted' => :'Integer'
78
+ }
79
+ end
80
+
81
+ # List of attributes with nullable: true
82
+ def self.openapi_nullable
83
+ Set.new([
84
+ ])
85
+ end
86
+
87
+ # Initializes the object
88
+ # @param [Hash] attributes Model attributes in the form of hash
89
+ def initialize(attributes = {})
90
+ if (!attributes.is_a?(Hash))
91
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::RespondToPhoneNumberReviewer200Response` initialize method"
92
+ end
93
+
94
+ # check to see if the attribute exists and convert string to symbol for hash key
95
+ acceptable_attribute_map = self.class.acceptable_attribute_map
96
+ attributes = attributes.each_with_object({}) { |(k, v), h|
97
+ if (!acceptable_attribute_map.key?(k.to_sym))
98
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::RespondToPhoneNumberReviewer200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
99
+ end
100
+ h[k.to_sym] = v
101
+ }
102
+
103
+ if attributes.key?(:'status')
104
+ self.status = attributes[:'status']
105
+ end
106
+
107
+ if attributes.key?(:'posted')
108
+ self.posted = attributes[:'posted']
109
+ end
110
+
111
+ if attributes.key?(:'phone_number')
112
+ self.phone_number = attributes[:'phone_number']
113
+ end
114
+
115
+ if attributes.key?(:'siblings_resubmitted')
116
+ self.siblings_resubmitted = attributes[:'siblings_resubmitted']
117
+ end
118
+ end
119
+
120
+ # Show invalid properties with the reasons. Usually used together with valid?
121
+ # @return Array for valid properties with the reasons
122
+ def list_invalid_properties
123
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
124
+ invalid_properties = Array.new
125
+ invalid_properties
126
+ end
127
+
128
+ # Check to see if the all the properties in the model are valid
129
+ # @return true if the model is valid
130
+ def valid?
131
+ warn '[DEPRECATED] the `valid?` method is obsolete'
132
+ status_validator = EnumAttributeValidator.new('String', ["resubmitted", "replied"])
133
+ return false unless status_validator.valid?(@status)
134
+ true
135
+ end
136
+
137
+ # Custom attribute writer method checking allowed values (enum).
138
+ # @param [Object] status Object to be assigned
139
+ def status=(status)
140
+ validator = EnumAttributeValidator.new('String', ["resubmitted", "replied"])
141
+ unless validator.valid?(status)
142
+ fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
143
+ end
144
+ @status = status
145
+ end
146
+
147
+ # Checks equality by comparing each attribute.
148
+ # @param [Object] Object to be compared
149
+ def ==(o)
150
+ return true if self.equal?(o)
151
+ self.class == o.class &&
152
+ status == o.status &&
153
+ posted == o.posted &&
154
+ phone_number == o.phone_number &&
155
+ siblings_resubmitted == o.siblings_resubmitted
156
+ end
157
+
158
+ # @see the `==` method
159
+ # @param [Object] Object to be compared
160
+ def eql?(o)
161
+ self == o
162
+ end
163
+
164
+ # Calculates hash code according to all attributes.
165
+ # @return [Integer] Hash code
166
+ def hash
167
+ [status, posted, phone_number, siblings_resubmitted].hash
168
+ end
169
+
170
+ # Builds the object from hash
171
+ # @param [Hash] attributes Model attributes in the form of hash
172
+ # @return [Object] Returns the model itself
173
+ def self.build_from_hash(attributes)
174
+ return nil unless attributes.is_a?(Hash)
175
+ attributes = attributes.transform_keys(&:to_sym)
176
+ transformed_hash = {}
177
+ openapi_types.each_pair do |key, type|
178
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
179
+ transformed_hash["#{key}"] = nil
180
+ elsif type =~ /\AArray<(.*)>/i
181
+ # check to ensure the input is an array given that the attribute
182
+ # is documented as an array but the input is not
183
+ if attributes[attribute_map[key]].is_a?(Array)
184
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
185
+ end
186
+ elsif !attributes[attribute_map[key]].nil?
187
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
188
+ end
189
+ end
190
+ new(transformed_hash)
191
+ end
192
+
193
+ # Returns the object in the form of hash
194
+ # @return [Hash] Returns the object in the form of hash
195
+ def to_hash
196
+ hash = {}
197
+ self.class.attribute_map.each_pair do |attr, param|
198
+ value = self.send(attr)
199
+ if value.nil?
200
+ is_nullable = self.class.openapi_nullable.include?(attr)
201
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
202
+ end
203
+
204
+ hash[param] = _to_hash(value)
205
+ end
206
+ hash
207
+ end
208
+
209
+ end
210
+
211
+ end