pub struct DocumentsClient {
pub http_client: HttpClient,
}Fields§
§http_client: HttpClientImplementations§
Source§impl DocumentsClient
impl DocumentsClient
pub fn new(config: ClientConfig) -> Result<Self, ApiError>
Sourcepub async fn list_documents(
&self,
request: &ListDocumentsQueryRequest,
options: Option<RequestOptions>,
) -> Result<PaginatedResponseDocumentResponse, ApiError>
pub async fn list_documents( &self, request: &ListDocumentsQueryRequest, options: Option<RequestOptions>, ) -> Result<PaginatedResponseDocumentResponse, ApiError>
Retrieve all documents linked to a client.
§Arguments
order_by- Field to order the results by, e.g., ‘created_at:desc,updated_at:asc’q- Query string for filtering. Format: “field:operator:value;…”. Supported fields: id, client_id, loan_id, installment_id, waterfall_id, category, file_name, document_date, folder_path. Supported operators: is, in, not_in, contains, not_contains, like, not_like, ilike, not_ilike, gt, gte, lt, lte, starts_with, ends_with, is_null, is_not_null.options- Additional request options such as headers, timeout, etc.
§Returns
JSON response from the API
Sourcepub async fn upload_document(
&self,
request: &UploadDocumentRequest,
options: Option<RequestOptions>,
) -> Result<DocumentResponse, ApiError>
pub async fn upload_document( &self, request: &UploadDocumentRequest, options: Option<RequestOptions>, ) -> Result<DocumentResponse, ApiError>
Sourcepub async fn get_available_document_categories(
&self,
options: Option<RequestOptions>,
) -> Result<AvailableDocumentCategoriesResponse, ApiError>
pub async fn get_available_document_categories( &self, options: Option<RequestOptions>, ) -> Result<AvailableDocumentCategoriesResponse, ApiError>
Sourcepub async fn get_document_by_id(
&self,
document_id: &str,
options: Option<RequestOptions>,
) -> Result<DocumentResponse, ApiError>
pub async fn get_document_by_id( &self, document_id: &str, options: Option<RequestOptions>, ) -> Result<DocumentResponse, ApiError>
Sourcepub async fn delete_document(
&self,
document_id: &str,
options: Option<RequestOptions>,
) -> Result<(), ApiError>
pub async fn delete_document( &self, document_id: &str, options: Option<RequestOptions>, ) -> Result<(), ApiError>
Auto Trait Implementations§
impl !RefUnwindSafe for DocumentsClient
impl !UnwindSafe for DocumentsClient
impl Freeze for DocumentsClient
impl Send for DocumentsClient
impl Sync for DocumentsClient
impl Unpin for DocumentsClient
impl UnsafeUnpin for DocumentsClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more