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:
2024-10-04 20:34:27 +02:00
parent f0b8df90b9
commit 80849a9eef
8 changed files with 71 additions and 11 deletions

View File

@@ -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

View 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)