ExFattureincloud.IssuedDocuments (ExFattureincloud v0.1.0)

Copy Markdown View Source

Operations in the Fatture in Cloud IssuedDocuments resource.

Summary

Functions

Removes the attachment of the specified document.

Retrieves the information useful while creating a new document.

Schedules the sending of a document by email.

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

Functions

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

Creates a new document.

Sends POST /c/{company_id}/issued_documents (createIssuedDocument).

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

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

Delete Bin Issued Document

Sends DELETE /c/{company_id}/bin/issued_documents/{document_id} (DeleteBinIssuedDocument).

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

Deletes the specified document.

Sends DELETE /c/{company_id}/issued_documents/{document_id} (deleteIssuedDocument).

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

Removes the attachment of the specified document.

Sends DELETE /c/{company_id}/issued_documents/{document_id}/attachment (deleteIssuedDocumentAttachment).

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

Get bin issued documents detail

Sends GET /c/{company_id}/bin/issued_documents/{document_id} (GetBinIssuedDocument).

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

Gets the pre-compiled email details.

Sends GET /c/{company_id}/issued_documents/{document_id}/email (getEmailData).

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

Returns the totals for a specified document.

Sends POST /c/{company_id}/issued_documents/{document_id}/totals (getExistingIssuedDocumentTotals).

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

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

Gets the specified document.

Sends GET /c/{company_id}/issued_documents/{document_id} (getIssuedDocument).

Query options

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

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

Retrieves the information useful while creating a new document.

Sends GET /c/{company_id}/issued_documents/info (getIssuedDocumentPreCreateInfo).

Query options

  • :type (string, required, one of "invoice", "quote", "proforma", "receipt", "delivery_note", "credit_note", "order", "work_report", "supplier_order", "self_own_invoice", "self_supplier_invoice")

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

Returns the totals for a new document.

Sends POST /c/{company_id}/issued_documents/totals (getNewIssuedDocumentTotals).

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

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

Joins issued documents.

Sends GET /c/{company_id}/issued_documents/join (joinIssuedDocuments).

Query options

  • :ids (string, required)
  • :group (integer, one of 0, 1)
  • :type (string, one of "delivery_notes", "orders", "quotes", "work_reports")

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

Get bin issued documents list

Sends GET /c/{company_id}/bin/issued_documents (ListBinIssuedDocuments).

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

Lists the issued documents.

Sends GET /c/{company_id}/issued_documents (listIssuedDocuments).

Query options

  • :type (string, required, one of "invoice", "quote", "proforma", "receipt", "delivery_note", "credit_note", "order", "work_report", "supplier_order", "self_own_invoice", "self_supplier_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)
  • :inclusive (integer, one of 0, 1)

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

Modifies the specified document.

Sends PUT /c/{company_id}/issued_documents/{document_id} (modifyIssuedDocument).

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

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

Recover Issued Document From The Bin

Sends POST /c/{company_id}/bin/issued_documents/{document_id}/recover (RecoverBinIssuedDocument).

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

Schedules the sending of a document by email.

Sends POST /c/{company_id}/issued_documents/{document_id}/email (scheduleEmail).

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

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

Transforms the document.

Sends GET /c/{company_id}/issued_documents/transform (transformIssuedDocument).

Query options

  • :original_document_id (integer, required)
  • :new_type (string, required)
  • :type (string)
  • :e_invoice (integer, one of 0, 1)
  • :transform_keep_copy (integer, one of 0, 1)

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

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

Sends POST /c/{company_id}/issued_documents/attachment (uploadIssuedDocumentAttachment).

Pass a list of Req multipart fields as the body.