Invoice

class fabman.invoice.Invoice(requester: Requester, attributes: dict)

Simple Class to handle Invoices

Initialize the Object. Stores the requester method to interact with the API for further calls

Parameters:
  • requester (Requester) – The Requester object to make requests with

  • attributes (dict) – The attributes to initialize this object with

cancel() Response

Cancels an invoice. Takes no arguments.

Calls:

“POST /invoices/{id}/cancel” <https://fabman.io/api/v1/documentation#/invoices/postInvoicesIdCancel>

Returns:

An empty dict if successful.

Type:

dict

details(**kwargs) InvoiceDetails

Returns details about the invoice. Takes no arguments.

Calls:

“GET /invoices/{id}/details” <https://fabman.io/api/v1/documentation>

Returns:

A dict containing details about the invoice.

Return type:

dict

update(**kwargs) None

Updates the invoice. Attributes are updated in place with new information provided by the API

Calls:

“PUT /invoices/{id}” <https://fabman.io/api/v1/documentation#/invoices/putInvoicesId>

Returns:

None – updates attributes of the current object

Return type:

None

class fabman.invoice.InvoiceDetails(requester: Requester, attributes: dict)

Simple Class to handle Invoice Details

Initialize the Object. Stores the requester method to interact with the API for further calls

Parameters:
  • requester (Requester) – The Requester object to make requests with

  • attributes (dict) – The attributes to initialize this object with