Funding¶
-
class
altapay.
Funding
(version=None, header=None, body=None, api=None)¶ Bases:
altapay.resource.Resource
A funding file that can be either viewed or downloaded.
-
content
()¶ The funding file content as bytes.
-
download
(save_to)¶ Download the CSV funding file.
Parameters: save_to – the path to save the funding file to. The filename will match the name of the file at AltaPay, and will have the extension .csv attached. Return type: a string with the complete filepath to the CSV funding file
-
FundingList¶
-
class
altapay.
FundingList
(api)¶ A list of funding files to paginate through.
-
fundings
¶ altapay.Funding
objects on the current page of funding files.
-
next_page
()¶ Loads the next page of funding files.
- Raises:
altapay.exceptions.ResourceNotFoundError
: if the next page is not available, typically meaning you have scrolled past the available pages.
-
number_of_pages
¶ Returns the total amount of pages with fundings. Each page can hold 100 fundings.
-