Charge
- class fabman.charge.Charge(requester: Requester, attributes: dict)
Charge object handles management of charges in fabman
Initialize the Object. Stores the requester method to interact with the API for further calls
- Parameters:
requester (
Requester) – TheRequesterobject to make requests withattributes (dict) – The attributes to initialize this object with
- delete(**kwargs) Response
Deletes the charge. WARNING: THIS CANNOT BE UNDONE.
- Calls:
“DELETE /charges/{id}” <https://fabman.io/api/v1/documentation#/charges/deleteChargesId>
- Returns:
Response from the API with status code 204 (No Content) if successful
- Rlist:
requests.Response
- update(**kwargs) None
Update the charge object on the server. Updates all information in place with returned data from the server.
- Calls:
“PUT /charges/{id}” <https://fabman.io/api/v1/documentation#/charges/putChargesId>
- Returns:
None
- Rlist:
None