Class DocumentUploadParams
-
- All Implemented Interfaces:
-
com.dinari.api.core.Params
public final class DocumentUploadParams implements Params
Upload KYC-related documentation for partners that are provisioned to provide their own KYC data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDocumentUploadParams.BuilderA builder for DocumentUploadParams.
public final classDocumentUploadParams.BodyFile input for uploading a
KYCDocument.
-
Method Summary
Modifier and Type Method Description final StringentityId()final Optional<String>kycId()final KycDocumentTypedocumentType()Type of KYCDocumentto be uploaded.final InputStreamfile()File to be uploaded. final MultipartField<InputStream>_file()Returns the raw multipart value of file. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final DocumentUploadParams.BuildertoBuilder()final Map<String, MultipartField<?>>_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static DocumentUploadParams.Builderbuilder()Returns a mutable builder for constructing an instance of DocumentUploadParams. -
-
Method Detail
-
documentType
final KycDocumentType documentType()
Type of
KYCDocumentto be uploaded.
-
file
final InputStream file()
File to be uploaded. Must be a valid image or PDF file (jpg, jpeg, png, pdf) less than 10MB in size.
-
_file
final MultipartField<InputStream> _file()
Returns the raw multipart value of file.
Unlike file, this method doesn't throw if the multipart field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final DocumentUploadParams.Builder toBuilder()
-
_body
final Map<String, MultipartField<?>> _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static DocumentUploadParams.Builder builder()
Returns a mutable builder for constructing an instance of DocumentUploadParams.
The following fields are required:
.entityId() .documentType() .file()
-
-
-
-