Resource¶
-
class
altapay.Resource(version=None, header=None, body=None, api=None)¶ Base class that maps an AltaPay response into a Python like representation.
-
classmethod
create_from_response(response)¶ Instantiate a new
altapay.Resourceobject from a response.Parameters: response – a response of type dict. The response most conform to the AltaPay response format, which means it must carry four keys called@version,APIResponse,HeaderandBody.Return type: a new version object of type altapay.Resource.
-
classmethod