Payment
- class fabman.payment.Payment(requester: Requester, attributes: dict)
Defines the Payment object for interacting with payments on the Fabman API
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 a payment. WARNING: This is irreversible.
- Calls:
“DELETE /payments/{id}” <https://fabman.io/api/v1/documentation#/payments/deletePaymentsId>
- Returns:
response information of call
- Return type:
requests.Response
- request_payment(**kwargs) PaymentRequest
Requests a payment from the customer.
- Calls:
“POST /payments/{id}/request-payment” <https://fabman.io/api/v1/documentation#/payments/postPaymentsIdRequestpayment>
- Returns:
response information of the call
- Return type:
PaymentRequest
- update(**kwargs) None
Updates a payment. Attributes are modified in place using updated information from the API.
- Calls:
“PUT /payments/{id}” <https://fabman.io/api/v1/documentation#/payments/putPaymentsId>
- Returns:
None – attributes are updated in place
- Return type:
None