Fix bug in official Gocardless API definition
The official Gocardless API definition indicates that transactions are directly output to an array. Instead, they are wrapped in a transactions key. This made the code fail to retrieve transactions, because they could not be correctly serialized. This is now fixed in the API definition, and the API code is also regenerated. Signed-off-by: Jacob Kiers <code@kiers.eu>
This commit is contained in:
@@ -103,7 +103,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## retrieve_account_transactions
|
||||
|
||||
> models::BankTransaction retrieve_account_transactions(id, date_from, date_to)
|
||||
> models::BankTransactions retrieve_account_transactions(id, date_from, date_to)
|
||||
|
||||
|
||||
Access account transactions. Transactions will be returned in Berlin Group PSD2 format.
|
||||
@@ -119,7 +119,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::BankTransaction**](BankTransaction.md)
|
||||
[**models::BankTransactions**](BankTransactions.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
11
gocardless-bankaccount-data-api/docs/BankTransactions.md
Normal file
11
gocardless-bankaccount-data-api/docs/BankTransactions.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# BankTransactions
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**transactions** | Option<[**models::BankTransaction**](BankTransaction.md)> | BankTransaction | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
Reference in New Issue
Block a user