ExFattureincloud.ReceivedDocuments (ExFattureincloud v0.1.0)

Copy Markdown View Source

Operations in the Fatture in Cloud ReceivedDocuments resource.

Summary

Functions

Retrieves the information useful while creating a new document.

Uploads an attachment destined to a received document. The actual association between the document and the attachment must be implemented separately, using the returned token.

Functions

create_received_document(client, company_id, body, opts \\ [])

Creates a new document.

Sends POST /c/{company_id}/received_documents (createReceivedDocument).

Pass the JSON body with the provider's envelope. Use nil to omit it.

delete_bin_received_document(client, company_id, document_id, opts \\ [])

Delete Bin Received Document

Sends DELETE /c/{company_id}/bin/received_documents/{document_id} (DeleteBinReceivedDocument).

delete_received_document(client, company_id, document_id, opts \\ [])

Deletes the specified document.

Sends DELETE /c/{company_id}/received_documents/{document_id} (deleteReceivedDocument).

delete_received_document_attachment(client, company_id, document_id, opts \\ [])

Removes the attachment of the specified document.

Sends DELETE /c/{company_id}/received_documents/{document_id}/attachment (deleteReceivedDocumentAttachment).

get_bin_received_document(client, company_id, document_id, opts \\ [])

Get bin issued documents detail

Sends GET /c/{company_id}/bin/received_documents/{document_id} (GetBinReceivedDocument).

get_existing_received_document_totals(client, company_id, document_id, body, opts \\ [])

Returns the totals for the specified document.

Sends POST /c/{company_id}/received_documents/{document_id}/totals (getExistingReceivedDocumentTotals).

Pass the JSON body with the provider's envelope. Use nil to omit it.

get_new_received_document_totals(client, company_id, body, opts \\ [])

Returns the totals for a new document.

Sends POST /c/{company_id}/received_documents/totals (getNewReceivedDocumentTotals).

Pass the JSON body with the provider's envelope. Use nil to omit it.

get_pending_received_document(client, company_id, document_id, opts \\ [])

Gets the specified pending received document.

Sends GET /c/{company_id}/received_documents/pending/{document_id} (getPendingReceivedDocument).

Query options

  • :fields (string)
  • :fieldset (string, one of "basic", "detailed", "fic_view")

get_received_document(client, company_id, document_id, opts \\ [])

Gets the specified document.

Sends GET /c/{company_id}/received_documents/{document_id} (getReceivedDocument).

Query options

  • :fields (string)
  • :fieldset (string, one of "basic", "detailed", "fic_view")

get_received_document_pre_create_info(client, company_id, opts \\ [])

Retrieves the information useful while creating a new document.

Sends GET /c/{company_id}/received_documents/info (getReceivedDocumentPreCreateInfo).

Query options

  • :type (string, required, one of "expense", "passive_credit_note", "passive_delivery_note", "self_invoice")

list_bin_received_documents(client, company_id, opts \\ [])

Get bin Received documents list

Sends GET /c/{company_id}/bin/received_documents (ListBinReceivedDocuments).

list_pending_received_documents(client, company_id, opts \\ [])

Lists the pending received documents.

Sends GET /c/{company_id}/received_documents/pending (listPendingReceivedDocuments).

Query options

  • :type (string, required, one of "agyo", "mail", "browser")
  • :fields (string)
  • :fieldset (string, one of "basic", "detailed", "fic_view")
  • :sort (string)
  • :page (integer, minimum 1)
  • :per_page (integer, minimum 1, maximum 100)
  • :q (string)

list_received_documents(client, company_id, opts \\ [])

Lists the received documents.

Sends GET /c/{company_id}/received_documents (listReceivedDocuments).

Query options

  • :type (string, required, one of "expense", "passive_credit_note", "passive_delivery_note", "self_invoice")
  • :fields (string)
  • :fieldset (string, one of "basic", "detailed", "fic_view")
  • :sort (string)
  • :page (integer, minimum 1)
  • :per_page (integer, minimum 1, maximum 100)
  • :q (string)

modify_received_document(client, company_id, document_id, body, opts \\ [])

Modifies the specified document.

Sends PUT /c/{company_id}/received_documents/{document_id} (modifyReceivedDocument).

Pass the JSON body with the provider's envelope. Use nil to omit it.

recover_bin_received_document(client, company_id, document_id, opts \\ [])

Recover Received Document From The Bin

Sends POST /c/{company_id}/bin/received_documents/{document_id}/recover (RecoverBinReceivedDocument).

upload_received_document_attachment(client, company_id, body, opts \\ [])

Uploads an attachment destined to a received document. The actual association between the document and the attachment must be implemented separately, using the returned token.

Sends POST /c/{company_id}/received_documents/attachment (uploadReceivedDocumentAttachment).

Pass a list of Req multipart fields as the body.