- Fixed
list
andall
methods for certain collections wherein the Ordway API results are nested under the collection name. As an example API response,{"usages": [], "total": 0}
would've previously been[]
.
-
Added support for updating following entities:
- Products
- Customers
- Plans
- Coupons
- Subscriptions
- Orders
- Webhooks
- BillingSchedules
- RevenueRules
- Invoices
- Payments
- PaymentRuns
- Credits
-
Bug fixes
- Passing no
sort
argument toListAPIMixin.all
toListAPIMixin.list
caused an Ordway API error. - Entities added in 0.2.0 were not instantiated on the
ordway.Client
, rendering them unusable.
- Passing no
- Added support for staging enviornment by passing
staging=True
toordway.client.OrdwayClient
- Added new entities:
- JournalEntries
- PaymentRuns
- Statements
- Coupons
- Orders
- Usages
- BillingRuns
- RevenueSchedules
- BillingSchedules
- RevenueRules
- ChartOfAccounts
- Bug fixes
- Pass page size from
ListAPIMixin.all
toListAPIMixin.list
- Unnecessary
GeneratorExit
exception
- Pass page size from
- Set Accept header to application/json by default for
ordway.client.OrdwayClient
's session - Attached a custom
requests.adapters.HTTPAdapter
to handle retries and HTTP timeouts - Functionality for using a context manager with
ordway.client.OrdwayClient
added