Initial commit
This is definitely not functional yet. Signed-off-by: Jacob Kiers <code@kiers.eu>
This commit is contained in:
3
gocardless-bankaccount-data-api/.gitignore
vendored
Normal file
3
gocardless-bankaccount-data-api/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/target/
|
||||
**/*.rs.bk
|
||||
Cargo.lock
|
23
gocardless-bankaccount-data-api/.openapi-generator-ignore
Normal file
23
gocardless-bankaccount-data-api/.openapi-generator-ignore
Normal file
@@ -0,0 +1,23 @@
|
||||
# OpenAPI Generator Ignore
|
||||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
||||
|
||||
# Use this file to prevent files from being overwritten by the generator.
|
||||
# The patterns follow closely to .gitignore or .dockerignore.
|
||||
|
||||
# As an example, the C# client generator defines ApiClient.cs.
|
||||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
||||
#ApiClient.cs
|
||||
|
||||
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
||||
#foo/*/qux
|
||||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
||||
|
||||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
||||
#foo/**/qux
|
||||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
||||
|
||||
# You can also negate patterns with an exclamation (!).
|
||||
# For example, you can ignore all files in a docs folder with the file extension .md:
|
||||
#docs/*.md
|
||||
# Then explicitly reverse the ignore rule for a single file:
|
||||
#!docs/README.md
|
76
gocardless-bankaccount-data-api/.openapi-generator/FILES
Normal file
76
gocardless-bankaccount-data-api/.openapi-generator/FILES
Normal file
@@ -0,0 +1,76 @@
|
||||
.gitignore
|
||||
.openapi-generator-ignore
|
||||
.travis.yml
|
||||
Cargo.toml
|
||||
README.md
|
||||
docs/Account.md
|
||||
docs/AccountBalance.md
|
||||
docs/AccountDetail.md
|
||||
docs/AccountSchema.md
|
||||
docs/AccountsApi.md
|
||||
docs/AgreementsApi.md
|
||||
docs/BalanceAmountSchema.md
|
||||
docs/BalanceSchema.md
|
||||
docs/BankTransaction.md
|
||||
docs/CurrencyExchangeSchema.md
|
||||
docs/DetailSchema.md
|
||||
docs/EndUserAgreement.md
|
||||
docs/EndUserAgreementRequest.md
|
||||
docs/EnduserAcceptanceDetailsRequest.md
|
||||
docs/ErrorResponse.md
|
||||
docs/InstitutionsApi.md
|
||||
docs/Integration.md
|
||||
docs/IntegrationRetrieve.md
|
||||
docs/JwtObtainPairRequest.md
|
||||
docs/JwtRefreshRequest.md
|
||||
docs/OwnerAddressStructuredSchema.md
|
||||
docs/PaginatedEndUserAgreementList.md
|
||||
docs/PaginatedRequisitionList.md
|
||||
docs/Requisition.md
|
||||
docs/RequisitionRequest.md
|
||||
docs/RequisitionsApi.md
|
||||
docs/SpectacularJwtObtain.md
|
||||
docs/SpectacularJwtRefresh.md
|
||||
docs/SpectacularRequisition.md
|
||||
docs/StatusEnum.md
|
||||
docs/TokenApi.md
|
||||
docs/TransactionAmountSchema.md
|
||||
docs/TransactionSchema.md
|
||||
git_push.sh
|
||||
src/apis/accounts_api.rs
|
||||
src/apis/agreements_api.rs
|
||||
src/apis/configuration.rs
|
||||
src/apis/institutions_api.rs
|
||||
src/apis/mod.rs
|
||||
src/apis/requisitions_api.rs
|
||||
src/apis/token_api.rs
|
||||
src/lib.rs
|
||||
src/models/account.rs
|
||||
src/models/account_balance.rs
|
||||
src/models/account_detail.rs
|
||||
src/models/account_schema.rs
|
||||
src/models/balance_amount_schema.rs
|
||||
src/models/balance_schema.rs
|
||||
src/models/bank_transaction.rs
|
||||
src/models/currency_exchange_schema.rs
|
||||
src/models/detail_schema.rs
|
||||
src/models/end_user_agreement.rs
|
||||
src/models/end_user_agreement_request.rs
|
||||
src/models/enduser_acceptance_details_request.rs
|
||||
src/models/error_response.rs
|
||||
src/models/integration.rs
|
||||
src/models/integration_retrieve.rs
|
||||
src/models/jwt_obtain_pair_request.rs
|
||||
src/models/jwt_refresh_request.rs
|
||||
src/models/mod.rs
|
||||
src/models/owner_address_structured_schema.rs
|
||||
src/models/paginated_end_user_agreement_list.rs
|
||||
src/models/paginated_requisition_list.rs
|
||||
src/models/requisition.rs
|
||||
src/models/requisition_request.rs
|
||||
src/models/spectacular_jwt_obtain.rs
|
||||
src/models/spectacular_jwt_refresh.rs
|
||||
src/models/spectacular_requisition.rs
|
||||
src/models/status_enum.rs
|
||||
src/models/transaction_amount_schema.rs
|
||||
src/models/transaction_schema.rs
|
@@ -0,0 +1 @@
|
||||
7.9.0-SNAPSHOT
|
1
gocardless-bankaccount-data-api/.travis.yml
Normal file
1
gocardless-bankaccount-data-api/.travis.yml
Normal file
@@ -0,0 +1 @@
|
||||
language: rust
|
18
gocardless-bankaccount-data-api/Cargo.toml
Normal file
18
gocardless-bankaccount-data-api/Cargo.toml
Normal file
@@ -0,0 +1,18 @@
|
||||
[package]
|
||||
name = "gocardless-bankaccount-data-api"
|
||||
version = "2.0.0"
|
||||
authors = ["OpenAPI Generator team and contributors"]
|
||||
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
||||
# Override this license by providing a License Object in the OpenAPI.
|
||||
license = "Unlicense"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "^1.0", features = ["derive"] }
|
||||
serde_with = { version = "^3.8", default-features = false, features = ["base64", "std", "macros"] }
|
||||
serde_json = "^1.0"
|
||||
serde_repr = "^0.1"
|
||||
url = "^2.5"
|
||||
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||
reqwest = { version = "^0.12", features = ["json", "multipart"] }
|
||||
reqwest-middleware = { version = "^0.3", features = ["json", "multipart"] }
|
89
gocardless-bankaccount-data-api/README.md
Normal file
89
gocardless-bankaccount-data-api/README.md
Normal file
@@ -0,0 +1,89 @@
|
||||
# Rust API client for gocardless-bankaccount-data-api
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
|
||||
|
||||
## Overview
|
||||
|
||||
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.
|
||||
|
||||
- API version: 2.0 (v2)
|
||||
- Package version: 2.0.0
|
||||
- Generator version: 7.9.0-SNAPSHOT
|
||||
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`
|
||||
|
||||
## Installation
|
||||
|
||||
Put the package under your project folder in a directory named `gocardless-bankaccount-data-api` and add the following to `Cargo.toml` under `[dependencies]`:
|
||||
|
||||
```
|
||||
gocardless-bankaccount-data-api = { path = "./gocardless-bankaccount-data-api" }
|
||||
```
|
||||
|
||||
## Documentation for API Endpoints
|
||||
|
||||
All URIs are relative to *https://bankaccountdata.gocardless.com*
|
||||
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
*AccountsApi* | [**retrieve_account_balances**](docs/AccountsApi.md#retrieve_account_balances) | **GET** /api/v2/accounts/{id}/balances/ |
|
||||
*AccountsApi* | [**retrieve_account_details**](docs/AccountsApi.md#retrieve_account_details) | **GET** /api/v2/accounts/{id}/details/ |
|
||||
*AccountsApi* | [**retrieve_account_metadata**](docs/AccountsApi.md#retrieve_account_metadata) | **GET** /api/v2/accounts/{id}/ |
|
||||
*AccountsApi* | [**retrieve_account_transactions**](docs/AccountsApi.md#retrieve_account_transactions) | **GET** /api/v2/accounts/{id}/transactions/ |
|
||||
*AgreementsApi* | [**accept_eua**](docs/AgreementsApi.md#accept_eua) | **PUT** /api/v2/agreements/enduser/{id}/accept/ |
|
||||
*AgreementsApi* | [**create_eua**](docs/AgreementsApi.md#create_eua) | **POST** /api/v2/agreements/enduser/ |
|
||||
*AgreementsApi* | [**delete_eua_by_id**](docs/AgreementsApi.md#delete_eua_by_id) | **DELETE** /api/v2/agreements/enduser/{id}/ |
|
||||
*AgreementsApi* | [**retrieve_all_euas_for_an_end_user**](docs/AgreementsApi.md#retrieve_all_euas_for_an_end_user) | **GET** /api/v2/agreements/enduser/ |
|
||||
*AgreementsApi* | [**retrieve_eua_by_id**](docs/AgreementsApi.md#retrieve_eua_by_id) | **GET** /api/v2/agreements/enduser/{id}/ |
|
||||
*InstitutionsApi* | [**retrieve_all_supported_institutions_in_a_given_country**](docs/InstitutionsApi.md#retrieve_all_supported_institutions_in_a_given_country) | **GET** /api/v2/institutions/ |
|
||||
*InstitutionsApi* | [**retrieve_institution**](docs/InstitutionsApi.md#retrieve_institution) | **GET** /api/v2/institutions/{id}/ |
|
||||
*RequisitionsApi* | [**create_requisition**](docs/RequisitionsApi.md#create_requisition) | **POST** /api/v2/requisitions/ |
|
||||
*RequisitionsApi* | [**delete_requisition_by_id**](docs/RequisitionsApi.md#delete_requisition_by_id) | **DELETE** /api/v2/requisitions/{id}/ |
|
||||
*RequisitionsApi* | [**requisition_by_id**](docs/RequisitionsApi.md#requisition_by_id) | **GET** /api/v2/requisitions/{id}/ |
|
||||
*RequisitionsApi* | [**retrieve_all_requisitions**](docs/RequisitionsApi.md#retrieve_all_requisitions) | **GET** /api/v2/requisitions/ |
|
||||
*TokenApi* | [**get_a_new_access_token**](docs/TokenApi.md#get_a_new_access_token) | **POST** /api/v2/token/refresh/ |
|
||||
*TokenApi* | [**obtain_new_access_slash_refresh_token_pair**](docs/TokenApi.md#obtain_new_access_slash_refresh_token_pair) | **POST** /api/v2/token/new/ |
|
||||
|
||||
|
||||
## Documentation For Models
|
||||
|
||||
- [Account](docs/Account.md)
|
||||
- [AccountBalance](docs/AccountBalance.md)
|
||||
- [AccountDetail](docs/AccountDetail.md)
|
||||
- [AccountSchema](docs/AccountSchema.md)
|
||||
- [BalanceAmountSchema](docs/BalanceAmountSchema.md)
|
||||
- [BalanceSchema](docs/BalanceSchema.md)
|
||||
- [BankTransaction](docs/BankTransaction.md)
|
||||
- [CurrencyExchangeSchema](docs/CurrencyExchangeSchema.md)
|
||||
- [DetailSchema](docs/DetailSchema.md)
|
||||
- [EndUserAgreement](docs/EndUserAgreement.md)
|
||||
- [EndUserAgreementRequest](docs/EndUserAgreementRequest.md)
|
||||
- [EnduserAcceptanceDetailsRequest](docs/EnduserAcceptanceDetailsRequest.md)
|
||||
- [ErrorResponse](docs/ErrorResponse.md)
|
||||
- [Integration](docs/Integration.md)
|
||||
- [IntegrationRetrieve](docs/IntegrationRetrieve.md)
|
||||
- [JwtObtainPairRequest](docs/JwtObtainPairRequest.md)
|
||||
- [JwtRefreshRequest](docs/JwtRefreshRequest.md)
|
||||
- [OwnerAddressStructuredSchema](docs/OwnerAddressStructuredSchema.md)
|
||||
- [PaginatedEndUserAgreementList](docs/PaginatedEndUserAgreementList.md)
|
||||
- [PaginatedRequisitionList](docs/PaginatedRequisitionList.md)
|
||||
- [Requisition](docs/Requisition.md)
|
||||
- [RequisitionRequest](docs/RequisitionRequest.md)
|
||||
- [SpectacularJwtObtain](docs/SpectacularJwtObtain.md)
|
||||
- [SpectacularJwtRefresh](docs/SpectacularJwtRefresh.md)
|
||||
- [SpectacularRequisition](docs/SpectacularRequisition.md)
|
||||
- [StatusEnum](docs/StatusEnum.md)
|
||||
- [TransactionAmountSchema](docs/TransactionAmountSchema.md)
|
||||
- [TransactionSchema](docs/TransactionSchema.md)
|
||||
|
||||
|
||||
To get access to the crate's generated documentation, use:
|
||||
|
||||
```
|
||||
cargo doc --open
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
|
||||
|
17
gocardless-bankaccount-data-api/docs/Account.md
Normal file
17
gocardless-bankaccount-data-api/docs/Account.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Account
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | The ID of this Account, used to refer to this account in other API calls. | [optional][readonly]
|
||||
**created** | Option<**String**> | The date & time at which the account object was created. | [optional][readonly]
|
||||
**last_accessed** | Option<**String**> | The date & time at which the account object was last accessed. | [optional][readonly]
|
||||
**iban** | Option<**String**> | The Account IBAN | [optional][readonly]
|
||||
**status** | Option<**String**> | The processing status of this account. | [optional][readonly]
|
||||
**institution_id** | Option<**String**> | The ASPSP associated with this account. | [optional][readonly]
|
||||
**owner_name** | Option<**String**> | The name of the account owner. | [optional][readonly]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
11
gocardless-bankaccount-data-api/docs/AccountBalance.md
Normal file
11
gocardless-bankaccount-data-api/docs/AccountBalance.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# AccountBalance
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**balances** | Option<[**Vec<models::BalanceSchema>**](BalanceSchema.md)> | | [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)
|
||||
|
||||
|
11
gocardless-bankaccount-data-api/docs/AccountDetail.md
Normal file
11
gocardless-bankaccount-data-api/docs/AccountDetail.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# AccountDetail
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**account** | [**models::DetailSchema**](DetailSchema.md) | account |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
16
gocardless-bankaccount-data-api/docs/AccountSchema.md
Normal file
16
gocardless-bankaccount-data-api/docs/AccountSchema.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# AccountSchema
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**iban** | Option<**String**> | iban | [optional]
|
||||
**bban** | Option<**String**> | bban | [optional]
|
||||
**pan** | Option<**String**> | pan | [optional]
|
||||
**masked_pan** | Option<**String**> | maskedPan | [optional]
|
||||
**msisdn** | Option<**String**> | msisdn | [optional]
|
||||
**currency** | Option<**String**> | currency | [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)
|
||||
|
||||
|
134
gocardless-bankaccount-data-api/docs/AccountsApi.md
Normal file
134
gocardless-bankaccount-data-api/docs/AccountsApi.md
Normal file
@@ -0,0 +1,134 @@
|
||||
# \AccountsApi
|
||||
|
||||
All URIs are relative to *https://bankaccountdata.gocardless.com*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**retrieve_account_balances**](AccountsApi.md#retrieve_account_balances) | **GET** /api/v2/accounts/{id}/balances/ |
|
||||
[**retrieve_account_details**](AccountsApi.md#retrieve_account_details) | **GET** /api/v2/accounts/{id}/details/ |
|
||||
[**retrieve_account_metadata**](AccountsApi.md#retrieve_account_metadata) | **GET** /api/v2/accounts/{id}/ |
|
||||
[**retrieve_account_transactions**](AccountsApi.md#retrieve_account_transactions) | **GET** /api/v2/accounts/{id}/transactions/ |
|
||||
|
||||
|
||||
|
||||
## retrieve_account_balances
|
||||
|
||||
> models::AccountBalance retrieve_account_balances(id)
|
||||
|
||||
|
||||
Access account balances. Balances will be returned in Berlin Group PSD2 format.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **String** | | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::AccountBalance**](AccountBalance.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## retrieve_account_details
|
||||
|
||||
> models::AccountDetail retrieve_account_details(id)
|
||||
|
||||
|
||||
Access account details. Account details will be returned in Berlin Group PSD2 format.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **String** | | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::AccountDetail**](AccountDetail.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## retrieve_account_metadata
|
||||
|
||||
> models::Account retrieve_account_metadata(id)
|
||||
|
||||
|
||||
Access account metadata. Information about the account record, such as the processing status and IBAN. Account status is recalculated based on the error count in the latest req.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **String** | | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::Account**](Account.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## retrieve_account_transactions
|
||||
|
||||
> models::BankTransaction retrieve_account_transactions(id, date_from, date_to)
|
||||
|
||||
|
||||
Access account transactions. Transactions will be returned in Berlin Group PSD2 format.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **String** | | [required] |
|
||||
**date_from** | Option<**String**> | | |
|
||||
**date_to** | Option<**String**> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::BankTransaction**](BankTransaction.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
165
gocardless-bankaccount-data-api/docs/AgreementsApi.md
Normal file
165
gocardless-bankaccount-data-api/docs/AgreementsApi.md
Normal file
@@ -0,0 +1,165 @@
|
||||
# \AgreementsApi
|
||||
|
||||
All URIs are relative to *https://bankaccountdata.gocardless.com*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**accept_eua**](AgreementsApi.md#accept_eua) | **PUT** /api/v2/agreements/enduser/{id}/accept/ |
|
||||
[**create_eua**](AgreementsApi.md#create_eua) | **POST** /api/v2/agreements/enduser/ |
|
||||
[**delete_eua_by_id**](AgreementsApi.md#delete_eua_by_id) | **DELETE** /api/v2/agreements/enduser/{id}/ |
|
||||
[**retrieve_all_euas_for_an_end_user**](AgreementsApi.md#retrieve_all_euas_for_an_end_user) | **GET** /api/v2/agreements/enduser/ |
|
||||
[**retrieve_eua_by_id**](AgreementsApi.md#retrieve_eua_by_id) | **GET** /api/v2/agreements/enduser/{id}/ |
|
||||
|
||||
|
||||
|
||||
## accept_eua
|
||||
|
||||
> models::EndUserAgreement accept_eua(id, enduser_acceptance_details_request)
|
||||
|
||||
|
||||
Accept an end-user agreement via the API
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **uuid::Uuid** | A UUID string identifying this end user agreement. | [required] |
|
||||
**enduser_acceptance_details_request** | [**EnduserAcceptanceDetailsRequest**](EnduserAcceptanceDetailsRequest.md) | | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::EndUserAgreement**](EndUserAgreement.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## create_eua
|
||||
|
||||
> models::EndUserAgreement create_eua(end_user_agreement_request)
|
||||
|
||||
|
||||
API endpoints related to end-user agreements.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**end_user_agreement_request** | [**EndUserAgreementRequest**](EndUserAgreementRequest.md) | | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::EndUserAgreement**](EndUserAgreement.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## delete_eua_by_id
|
||||
|
||||
> delete_eua_by_id(id)
|
||||
|
||||
|
||||
Delete an end user agreement
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **uuid::Uuid** | A UUID string identifying this end user agreement. | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## retrieve_all_euas_for_an_end_user
|
||||
|
||||
> models::PaginatedEndUserAgreementList retrieve_all_euas_for_an_end_user(limit, offset)
|
||||
|
||||
|
||||
API endpoints related to end-user agreements.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**limit** | Option<**i32**> | Number of results to return per page. | |[default to 100]
|
||||
**offset** | Option<**i32**> | The initial zero-based index from which to return the results. | |[default to 0]
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::PaginatedEndUserAgreementList**](PaginatedEndUserAgreementList.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## retrieve_eua_by_id
|
||||
|
||||
> models::EndUserAgreement retrieve_eua_by_id(id)
|
||||
|
||||
|
||||
Retrieve end user agreement by ID
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **uuid::Uuid** | A UUID string identifying this end user agreement. | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::EndUserAgreement**](EndUserAgreement.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
12
gocardless-bankaccount-data-api/docs/BalanceAmountSchema.md
Normal file
12
gocardless-bankaccount-data-api/docs/BalanceAmountSchema.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# BalanceAmountSchema
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**amount** | **String** | amount |
|
||||
**currency** | **String** | currency |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
16
gocardless-bankaccount-data-api/docs/BalanceSchema.md
Normal file
16
gocardless-bankaccount-data-api/docs/BalanceSchema.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# BalanceSchema
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**balance_amount** | [**models::BalanceAmountSchema**](BalanceAmountSchema.md) | balanceAmount |
|
||||
**balance_type** | **String** | balanceType |
|
||||
**credit_limit_included** | Option<**bool**> | creditLimitIncluded | [optional]
|
||||
**last_change_date_time** | Option<**String**> | lastChangeDateTime | [optional]
|
||||
**reference_date** | Option<**String**> | referenceDate | [optional]
|
||||
**last_committed_transaction** | Option<**String**> | lastCommittedTransaction | [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)
|
||||
|
||||
|
12
gocardless-bankaccount-data-api/docs/BankTransaction.md
Normal file
12
gocardless-bankaccount-data-api/docs/BankTransaction.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# BankTransaction
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**booked** | [**Vec<models::TransactionSchema>**](TransactionSchema.md) | |
|
||||
**pending** | Option<[**Vec<models::TransactionSchema>**](TransactionSchema.md)> | | [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)
|
||||
|
||||
|
@@ -0,0 +1,16 @@
|
||||
# CurrencyExchangeSchema
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**source_currency** | Option<**String**> | sourceCurrency | [optional]
|
||||
**exchange_rate** | Option<**String**> | exchangeRate | [optional]
|
||||
**unit_currency** | Option<**String**> | unitCurrency | [optional]
|
||||
**target_currency** | Option<**String**> | targetCurrency | [optional]
|
||||
**quotation_date** | Option<**String**> | quotationDate | [optional]
|
||||
**contract_identification** | Option<**String**> | contractIdentification | [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)
|
||||
|
||||
|
28
gocardless-bankaccount-data-api/docs/DetailSchema.md
Normal file
28
gocardless-bankaccount-data-api/docs/DetailSchema.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# DetailSchema
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**resource_id** | Option<**String**> | resourceId | [optional]
|
||||
**iban** | Option<**String**> | iban | [optional]
|
||||
**bban** | Option<**String**> | bban | [optional]
|
||||
**msisdn** | Option<**String**> | msisdn | [optional]
|
||||
**currency** | Option<**String**> | currency | [optional]
|
||||
**owner_name** | Option<**String**> | ownerName | [optional]
|
||||
**name** | Option<**String**> | name | [optional]
|
||||
**display_name** | Option<**String**> | displayName | [optional]
|
||||
**product** | Option<**String**> | product | [optional]
|
||||
**cash_account_type** | Option<**String**> | cashAccountType | [optional]
|
||||
**status** | Option<**String**> | status | [optional]
|
||||
**bic** | Option<**String**> | bic | [optional]
|
||||
**linked_accounts** | Option<**String**> | linkedAccounts | [optional]
|
||||
**masked_pan** | Option<**String**> | maskedPan | [optional]
|
||||
**usage** | Option<**String**> | usage | [optional]
|
||||
**details** | Option<**String**> | details | [optional]
|
||||
**owner_address_unstructured** | Option<**Vec<String>**> | ownerAddressUnstructured | [optional]
|
||||
**owner_address_structured** | Option<[**models::OwnerAddressStructuredSchema**](OwnerAddressStructuredSchema.md)> | ownerAddressStructured | [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)
|
||||
|
||||
|
17
gocardless-bankaccount-data-api/docs/EndUserAgreement.md
Normal file
17
gocardless-bankaccount-data-api/docs/EndUserAgreement.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# EndUserAgreement
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | The ID of this End User Agreement, used to refer to this end user agreement in other API calls. | [optional][readonly]
|
||||
**created** | Option<**String**> | The date & time at which the end user agreement was created. | [optional][readonly]
|
||||
**institution_id** | **String** | an Institution ID for this EUA |
|
||||
**max_historical_days** | Option<**i32**> | Maximum number of days of transaction data to retrieve. | [optional][default to 90]
|
||||
**access_valid_for_days** | Option<**i32**> | Number of days from acceptance that the access can be used. | [optional][default to 90]
|
||||
**access_scope** | Option<[**Vec<serde_json::Value>**](serde_json::Value.md)> | Array containing one or several values of ['balances', 'details', 'transactions'] | [optional][default to ["balances","details","transactions"]]
|
||||
**accepted** | Option<**String**> | The date & time at which the end user accepted the agreement. | [optional][readonly]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@@ -0,0 +1,14 @@
|
||||
# EndUserAgreementRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**institution_id** | **String** | an Institution ID for this EUA |
|
||||
**max_historical_days** | Option<**i32**> | Maximum number of days of transaction data to retrieve. | [optional][default to 90]
|
||||
**access_valid_for_days** | Option<**i32**> | Number of days from acceptance that the access can be used. | [optional][default to 90]
|
||||
**access_scope** | Option<[**Vec<serde_json::Value>**](serde_json::Value.md)> | Array containing one or several values of ['balances', 'details', 'transactions'] | [optional][default to ["balances","details","transactions"]]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@@ -0,0 +1,12 @@
|
||||
# EnduserAcceptanceDetailsRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**user_agent** | **String** | |
|
||||
**ip_address** | **String** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
14
gocardless-bankaccount-data-api/docs/ErrorResponse.md
Normal file
14
gocardless-bankaccount-data-api/docs/ErrorResponse.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# ErrorResponse
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**summary** | **String** | |
|
||||
**detail** | **String** | |
|
||||
**r#type** | Option<**String**> | | [optional]
|
||||
**status_code** | **i32** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
82
gocardless-bankaccount-data-api/docs/InstitutionsApi.md
Normal file
82
gocardless-bankaccount-data-api/docs/InstitutionsApi.md
Normal file
@@ -0,0 +1,82 @@
|
||||
# \InstitutionsApi
|
||||
|
||||
All URIs are relative to *https://bankaccountdata.gocardless.com*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**retrieve_all_supported_institutions_in_a_given_country**](InstitutionsApi.md#retrieve_all_supported_institutions_in_a_given_country) | **GET** /api/v2/institutions/ |
|
||||
[**retrieve_institution**](InstitutionsApi.md#retrieve_institution) | **GET** /api/v2/institutions/{id}/ |
|
||||
|
||||
|
||||
|
||||
## retrieve_all_supported_institutions_in_a_given_country
|
||||
|
||||
> Vec<models::Integration> retrieve_all_supported_institutions_in_a_given_country(access_scopes_supported, account_selection_supported, business_accounts_supported, card_accounts_supported, corporate_accounts_supported, country, payment_submission_supported, payments_enabled, pending_transactions_supported, private_accounts_supported, read_debtor_account_supported, read_refund_account_supported, ssn_verification_supported)
|
||||
|
||||
|
||||
List all available institutions
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**access_scopes_supported** | Option<**String**> | Boolean value, indicating if access scopes are supported | |
|
||||
**account_selection_supported** | Option<**String**> | Boolean value, indicating if account selection is supported | |
|
||||
**business_accounts_supported** | Option<**String**> | Boolean value, indicating if business accounts are supported | |
|
||||
**card_accounts_supported** | Option<**String**> | Boolean value, indicating if card accounts are supported | |
|
||||
**corporate_accounts_supported** | Option<**String**> | Boolean value, indicating if corporate accounts are supported | |
|
||||
**country** | Option<**String**> | ISO 3166 two-character country code | |
|
||||
**payment_submission_supported** | Option<**String**> | Boolean value, indicating if payment submission is supported | |
|
||||
**payments_enabled** | Option<**String**> | Boolean value, indicating if payments are supported | |
|
||||
**pending_transactions_supported** | Option<**String**> | Boolean value, indicating if pending transactions are supported | |
|
||||
**private_accounts_supported** | Option<**String**> | Boolean value, indicating if private accounts are supported | |
|
||||
**read_debtor_account_supported** | Option<**String**> | Boolean value, indicating if debtor account can be read before submitting payment | |
|
||||
**read_refund_account_supported** | Option<**String**> | Boolean value, indicating if read refund account is supported | |
|
||||
**ssn_verification_supported** | Option<**String**> | Boolean value, indicating if ssn verification is supported | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**Vec<models::Integration>**](Integration.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## retrieve_institution
|
||||
|
||||
> models::IntegrationRetrieve retrieve_institution(id)
|
||||
|
||||
|
||||
Get details about a specific Institution and its supported features
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **String** | | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::IntegrationRetrieve**](IntegrationRetrieve.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
16
gocardless-bankaccount-data-api/docs/Integration.md
Normal file
16
gocardless-bankaccount-data-api/docs/Integration.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Integration
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **String** | |
|
||||
**name** | **String** | |
|
||||
**bic** | Option<**String**> | | [optional]
|
||||
**transaction_total_days** | Option<**String**> | | [optional][default to 90]
|
||||
**countries** | **Vec<String>** | |
|
||||
**logo** | **String** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
19
gocardless-bankaccount-data-api/docs/IntegrationRetrieve.md
Normal file
19
gocardless-bankaccount-data-api/docs/IntegrationRetrieve.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# IntegrationRetrieve
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **String** | |
|
||||
**name** | **String** | |
|
||||
**bic** | Option<**String**> | | [optional]
|
||||
**transaction_total_days** | Option<**String**> | | [optional][default to 90]
|
||||
**countries** | **Vec<String>** | |
|
||||
**logo** | **String** | |
|
||||
**supported_payments** | [**std::collections::HashMap<String, serde_json::Value>**](serde_json::Value.md) | |
|
||||
**supported_features** | [**Vec<serde_json::Value>**](serde_json::Value.md) | |
|
||||
**identification_codes** | [**Vec<serde_json::Value>**](serde_json::Value.md) | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
12
gocardless-bankaccount-data-api/docs/JwtObtainPairRequest.md
Normal file
12
gocardless-bankaccount-data-api/docs/JwtObtainPairRequest.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# JwtObtainPairRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**secret_id** | **String** | Secret id from /user-secrets/ |
|
||||
**secret_key** | **String** | Secret key from /user-secrets/ |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
11
gocardless-bankaccount-data-api/docs/JwtRefreshRequest.md
Normal file
11
gocardless-bankaccount-data-api/docs/JwtRefreshRequest.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# JwtRefreshRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**refresh** | **String** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@@ -0,0 +1,15 @@
|
||||
# OwnerAddressStructuredSchema
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**street_name** | Option<**String**> | streetName | [optional]
|
||||
**building_number** | Option<**String**> | buildingNumber | [optional]
|
||||
**town_name** | Option<**String**> | townName | [optional]
|
||||
**post_code** | Option<**String**> | postCode | [optional]
|
||||
**country** | Option<**String**> | country | [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)
|
||||
|
||||
|
@@ -0,0 +1,14 @@
|
||||
# PaginatedEndUserAgreementList
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**count** | **i32** | |
|
||||
**next** | Option<**String**> | | [optional]
|
||||
**previous** | Option<**String**> | | [optional]
|
||||
**results** | [**Vec<models::EndUserAgreement>**](EndUserAgreement.md) | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@@ -0,0 +1,14 @@
|
||||
# PaginatedRequisitionList
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**count** | **i32** | |
|
||||
**next** | Option<**String**> | | [optional]
|
||||
**previous** | Option<**String**> | | [optional]
|
||||
**results** | [**Vec<models::Requisition>**](Requisition.md) | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
23
gocardless-bankaccount-data-api/docs/Requisition.md
Normal file
23
gocardless-bankaccount-data-api/docs/Requisition.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# Requisition
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional][readonly]
|
||||
**created** | Option<**String**> | The date & time at which the requisition was created. | [optional][readonly]
|
||||
**redirect** | Option<**String**> | redirect URL to your application after end-user authorization with ASPSP |
|
||||
**status** | Option<[**models::StatusEnum**](StatusEnum.md)> | status of this requisition | [optional][readonly]
|
||||
**institution_id** | **String** | an Institution ID for this Requisition |
|
||||
**agreement** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | EUA associated with this requisition | [optional]
|
||||
**reference** | Option<**String**> | additional ID to identify the end user | [optional]
|
||||
**accounts** | Option<[**Vec<uuid::Uuid>**](uuid::Uuid.md)> | array of account IDs retrieved within a scope of this requisition | [optional][readonly]
|
||||
**user_language** | Option<**String**> | A two-letter country code (ISO 639-1) | [optional]
|
||||
**link** | Option<**String**> | link to initiate authorization with Institution | [optional][readonly][default to https://ob.gocardless.com/psd2/start/3fa85f64-5717-4562-b3fc-2c963f66afa6/{$INSTITUTION_ID}]
|
||||
**ssn** | Option<**String**> | optional SSN field to verify ownership of the account | [optional]
|
||||
**account_selection** | Option<**bool**> | option to enable account selection view for the end user | [optional][default to false]
|
||||
**redirect_immediate** | Option<**bool**> | enable redirect back to the client after account list received | [optional][default to false]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
18
gocardless-bankaccount-data-api/docs/RequisitionRequest.md
Normal file
18
gocardless-bankaccount-data-api/docs/RequisitionRequest.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# RequisitionRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**redirect** | Option<**String**> | redirect URL to your application after end-user authorization with ASPSP |
|
||||
**institution_id** | **String** | an Institution ID for this Requisition |
|
||||
**agreement** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | EUA associated with this requisition | [optional]
|
||||
**reference** | Option<**String**> | additional ID to identify the end user | [optional]
|
||||
**user_language** | Option<**String**> | A two-letter country code (ISO 639-1) | [optional]
|
||||
**ssn** | Option<**String**> | optional SSN field to verify ownership of the account | [optional]
|
||||
**account_selection** | Option<**bool**> | option to enable account selection view for the end user | [optional][default to false]
|
||||
**redirect_immediate** | Option<**bool**> | enable redirect back to the client after account list received | [optional][default to false]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
133
gocardless-bankaccount-data-api/docs/RequisitionsApi.md
Normal file
133
gocardless-bankaccount-data-api/docs/RequisitionsApi.md
Normal file
@@ -0,0 +1,133 @@
|
||||
# \RequisitionsApi
|
||||
|
||||
All URIs are relative to *https://bankaccountdata.gocardless.com*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**create_requisition**](RequisitionsApi.md#create_requisition) | **POST** /api/v2/requisitions/ |
|
||||
[**delete_requisition_by_id**](RequisitionsApi.md#delete_requisition_by_id) | **DELETE** /api/v2/requisitions/{id}/ |
|
||||
[**requisition_by_id**](RequisitionsApi.md#requisition_by_id) | **GET** /api/v2/requisitions/{id}/ |
|
||||
[**retrieve_all_requisitions**](RequisitionsApi.md#retrieve_all_requisitions) | **GET** /api/v2/requisitions/ |
|
||||
|
||||
|
||||
|
||||
## create_requisition
|
||||
|
||||
> models::SpectacularRequisition create_requisition(requisition_request)
|
||||
|
||||
|
||||
Create a new requisition
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**requisition_request** | [**RequisitionRequest**](RequisitionRequest.md) | | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::SpectacularRequisition**](SpectacularRequisition.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## delete_requisition_by_id
|
||||
|
||||
> delete_requisition_by_id(id)
|
||||
|
||||
|
||||
Delete requisition and its end user agreement
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **uuid::Uuid** | A UUID string identifying this requisition. | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## requisition_by_id
|
||||
|
||||
> models::Requisition requisition_by_id(id)
|
||||
|
||||
|
||||
Retrieve a requisition by ID
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **uuid::Uuid** | A UUID string identifying this requisition. | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::Requisition**](Requisition.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## retrieve_all_requisitions
|
||||
|
||||
> models::PaginatedRequisitionList retrieve_all_requisitions(limit, offset)
|
||||
|
||||
|
||||
Retrieve all requisitions belonging to the company
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**limit** | Option<**i32**> | Number of results to return per page. | |[default to 100]
|
||||
**offset** | Option<**i32**> | The initial zero-based index from which to return the results. | |[default to 0]
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::PaginatedRequisitionList**](PaginatedRequisitionList.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
14
gocardless-bankaccount-data-api/docs/SpectacularJwtObtain.md
Normal file
14
gocardless-bankaccount-data-api/docs/SpectacularJwtObtain.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# SpectacularJwtObtain
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**access** | Option<**String**> | Your access token | [optional][readonly]
|
||||
**access_expires** | Option<**i32**> | Access token expires in seconds | [optional][readonly][default to 86400]
|
||||
**refresh** | Option<**String**> | Your refresh token | [optional][readonly]
|
||||
**refresh_expires** | Option<**i32**> | Refresh token expires in seconds | [optional][readonly][default to 2592000]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@@ -0,0 +1,12 @@
|
||||
# SpectacularJwtRefresh
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**access** | Option<**String**> | Your access token | [optional][readonly]
|
||||
**access_expires** | Option<**i32**> | Access token expires in seconds | [optional][readonly][default to 86400]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@@ -0,0 +1,23 @@
|
||||
# SpectacularRequisition
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional][readonly]
|
||||
**created** | Option<**String**> | The date & time at which the requisition was created. | [optional][readonly]
|
||||
**redirect** | Option<**String**> | redirect URL to your application after end-user authorization with ASPSP |
|
||||
**status** | Option<[**models::StatusEnum**](StatusEnum.md)> | status of this requisition | [optional][readonly]
|
||||
**institution_id** | **String** | an Institution ID for this Requisition |
|
||||
**agreement** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | EUA associated with this requisition | [optional]
|
||||
**reference** | Option<**String**> | additional ID to identify the end user | [optional]
|
||||
**accounts** | Option<[**Vec<serde_json::Value>**](serde_json::Value.md)> | array of account IDs retrieved within a scope of this requisition | [optional][readonly][default to []]
|
||||
**user_language** | Option<**String**> | A two-letter country code (ISO 639-1) | [optional]
|
||||
**link** | Option<**String**> | link to initiate authorization with Institution | [optional][readonly][default to https://ob.gocardless.com/psd2/start/3fa85f64-5717-4562-b3fc-2c963f66afa6/{$INSTITUTION_ID}]
|
||||
**ssn** | Option<**String**> | optional SSN field to verify ownership of the account | [optional]
|
||||
**account_selection** | Option<**bool**> | option to enable account selection view for the end user | [optional][default to false]
|
||||
**redirect_immediate** | Option<**bool**> | enable redirect back to the client after account list received | [optional][default to false]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
22
gocardless-bankaccount-data-api/docs/StatusEnum.md
Normal file
22
gocardless-bankaccount-data-api/docs/StatusEnum.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# StatusEnum
|
||||
|
||||
## Enum Variants
|
||||
|
||||
| Name | Value |
|
||||
|---- | -----|
|
||||
| Cr | CR |
|
||||
| Id | ID |
|
||||
| Ln | LN |
|
||||
| Rj | RJ |
|
||||
| Er | ER |
|
||||
| Su | SU |
|
||||
| Ex | EX |
|
||||
| Gc | GC |
|
||||
| Ua | UA |
|
||||
| Ga | GA |
|
||||
| Sa | SA |
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
70
gocardless-bankaccount-data-api/docs/TokenApi.md
Normal file
70
gocardless-bankaccount-data-api/docs/TokenApi.md
Normal file
@@ -0,0 +1,70 @@
|
||||
# \TokenApi
|
||||
|
||||
All URIs are relative to *https://bankaccountdata.gocardless.com*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**get_a_new_access_token**](TokenApi.md#get_a_new_access_token) | **POST** /api/v2/token/refresh/ |
|
||||
[**obtain_new_access_slash_refresh_token_pair**](TokenApi.md#obtain_new_access_slash_refresh_token_pair) | **POST** /api/v2/token/new/ |
|
||||
|
||||
|
||||
|
||||
## get_a_new_access_token
|
||||
|
||||
> models::SpectacularJwtRefresh get_a_new_access_token(jwt_refresh_request)
|
||||
|
||||
|
||||
Refresh access token
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**jwt_refresh_request** | [**JwtRefreshRequest**](JwtRefreshRequest.md) | | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::SpectacularJwtRefresh**](SpectacularJWTRefresh.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## obtain_new_access_slash_refresh_token_pair
|
||||
|
||||
> models::SpectacularJwtObtain obtain_new_access_slash_refresh_token_pair(jwt_obtain_pair_request)
|
||||
|
||||
|
||||
Obtain JWT pair
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**jwt_obtain_pair_request** | [**JwtObtainPairRequest**](JwtObtainPairRequest.md) | | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::SpectacularJwtObtain**](SpectacularJWTObtain.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[jwtAuth](../README.md#jwtAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
@@ -0,0 +1,12 @@
|
||||
# TransactionAmountSchema
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**amount** | **String** | amount |
|
||||
**currency** | **String** | currency |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
37
gocardless-bankaccount-data-api/docs/TransactionSchema.md
Normal file
37
gocardless-bankaccount-data-api/docs/TransactionSchema.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# TransactionSchema
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**transaction_id** | Option<**String**> | transactionId | [optional]
|
||||
**entry_reference** | Option<**String**> | entryReference | [optional]
|
||||
**end_to_end_id** | Option<**String**> | endToEndId | [optional]
|
||||
**mandate_id** | Option<**String**> | mandateId | [optional]
|
||||
**check_id** | Option<**String**> | checkId | [optional]
|
||||
**creditor_id** | Option<**String**> | creditorId | [optional]
|
||||
**booking_date** | Option<**String**> | bookingDate | [optional]
|
||||
**value_date** | Option<**String**> | valueDate | [optional]
|
||||
**booking_date_time** | Option<**String**> | bookingDateTime | [optional]
|
||||
**value_date_time** | Option<**String**> | valueDateTime | [optional]
|
||||
**transaction_amount** | [**models::TransactionAmountSchema**](TransactionAmountSchema.md) | transactionAmount |
|
||||
**currency_exchange** | Option<[**Vec<models::CurrencyExchangeSchema>**](CurrencyExchangeSchema.md)> | | [optional]
|
||||
**creditor_name** | Option<**String**> | creditorName | [optional]
|
||||
**creditor_account** | Option<[**models::AccountSchema**](AccountSchema.md)> | creditorAccount | [optional]
|
||||
**ultimate_creditor** | Option<**String**> | ultimateCreditor | [optional]
|
||||
**debtor_name** | Option<**String**> | debtorName | [optional]
|
||||
**debtor_account** | Option<[**models::AccountSchema**](AccountSchema.md)> | debtorAccount | [optional]
|
||||
**ultimate_debtor** | Option<**String**> | ultimateDebtor | [optional]
|
||||
**remittance_information_unstructured** | Option<**String**> | remittanceInformationUnstructured | [optional]
|
||||
**remittance_information_unstructured_array** | Option<**Vec<String>**> | remittanceInformationUnstructuredArray | [optional]
|
||||
**remittance_information_structured** | Option<**String**> | remittanceInformationStructured | [optional]
|
||||
**remittance_information_structured_array** | Option<**Vec<String>**> | remittanceInformationStructuredArray | [optional]
|
||||
**additional_information** | Option<**String**> | additionalInformation | [optional]
|
||||
**purpose_code** | Option<**String**> | purposeCode | [optional]
|
||||
**bank_transaction_code** | Option<**String**> | bankTransactionCode | [optional]
|
||||
**proprietary_bank_transaction_code** | Option<**String**> | proprietaryBankTransactionCode | [optional]
|
||||
**internal_transaction_id** | Option<**String**> | internalTransactionId | [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)
|
||||
|
||||
|
57
gocardless-bankaccount-data-api/git_push.sh
Normal file
57
gocardless-bankaccount-data-api/git_push.sh
Normal file
@@ -0,0 +1,57 @@
|
||||
#!/bin/sh
|
||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
||||
#
|
||||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
||||
|
||||
git_user_id=$1
|
||||
git_repo_id=$2
|
||||
release_note=$3
|
||||
git_host=$4
|
||||
|
||||
if [ "$git_host" = "" ]; then
|
||||
git_host="github.com"
|
||||
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
||||
fi
|
||||
|
||||
if [ "$git_user_id" = "" ]; then
|
||||
git_user_id="GIT_USER_ID"
|
||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||
fi
|
||||
|
||||
if [ "$git_repo_id" = "" ]; then
|
||||
git_repo_id="GIT_REPO_ID"
|
||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||
fi
|
||||
|
||||
if [ "$release_note" = "" ]; then
|
||||
release_note="Minor update"
|
||||
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
||||
fi
|
||||
|
||||
# Initialize the local directory as a Git repository
|
||||
git init
|
||||
|
||||
# Adds the files in the local repository and stages them for commit.
|
||||
git add .
|
||||
|
||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||
git commit -m "$release_note"
|
||||
|
||||
# Sets the new remote
|
||||
git_remote=$(git remote)
|
||||
if [ "$git_remote" = "" ]; then # git remote not defined
|
||||
|
||||
if [ "$GIT_TOKEN" = "" ]; then
|
||||
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
||||
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
||||
else
|
||||
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
git pull origin master
|
||||
|
||||
# Pushes (Forces) the changes in the local repository up to the remote repository
|
||||
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
||||
git push origin master 2>&1 | grep -v 'To https'
|
204
gocardless-bankaccount-data-api/src/apis/accounts_api.rs
Normal file
204
gocardless-bankaccount-data-api/src/apis/accounts_api.rs
Normal file
@@ -0,0 +1,204 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
use reqwest;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use crate::{apis::ResponseContent, models};
|
||||
use super::{Error, configuration};
|
||||
|
||||
|
||||
/// struct for typed errors of method [`retrieve_account_balances`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum RetrieveAccountBalancesError {
|
||||
Status404(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
Status400(models::ErrorResponse),
|
||||
Status500(models::ErrorResponse),
|
||||
Status409(models::ErrorResponse),
|
||||
Status503(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`retrieve_account_details`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum RetrieveAccountDetailsError {
|
||||
Status404(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
Status400(models::ErrorResponse),
|
||||
Status500(models::ErrorResponse),
|
||||
Status409(models::ErrorResponse),
|
||||
Status503(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`retrieve_account_metadata`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum RetrieveAccountMetadataError {
|
||||
Status404(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`retrieve_account_transactions`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum RetrieveAccountTransactionsError {
|
||||
Status404(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
Status400(models::ErrorResponse),
|
||||
Status500(models::ErrorResponse),
|
||||
Status409(models::ErrorResponse),
|
||||
Status503(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
|
||||
/// Access account balances. Balances will be returned in Berlin Group PSD2 format.
|
||||
pub async fn retrieve_account_balances(configuration: &configuration::Configuration, id: &str) -> Result<models::AccountBalance, Error<RetrieveAccountBalancesError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/accounts/{id}/balances/", local_var_configuration.base_path, id=crate::apis::urlencode(id));
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<RetrieveAccountBalancesError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Access account details. Account details will be returned in Berlin Group PSD2 format.
|
||||
pub async fn retrieve_account_details(configuration: &configuration::Configuration, id: &str) -> Result<models::AccountDetail, Error<RetrieveAccountDetailsError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/accounts/{id}/details/", local_var_configuration.base_path, id=crate::apis::urlencode(id));
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<RetrieveAccountDetailsError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Access account metadata. Information about the account record, such as the processing status and IBAN. Account status is recalculated based on the error count in the latest req.
|
||||
pub async fn retrieve_account_metadata(configuration: &configuration::Configuration, id: &str) -> Result<models::Account, Error<RetrieveAccountMetadataError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/accounts/{id}/", local_var_configuration.base_path, id=crate::apis::urlencode(id));
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<RetrieveAccountMetadataError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Access account transactions. Transactions will be returned in Berlin Group PSD2 format.
|
||||
pub async fn retrieve_account_transactions(configuration: &configuration::Configuration, id: &str, date_from: Option<String>, date_to: Option<String>) -> Result<models::BankTransaction, Error<RetrieveAccountTransactionsError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/accounts/{id}/transactions/", local_var_configuration.base_path, id=crate::apis::urlencode(id));
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_str) = date_from {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("date_from", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = date_to {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("date_to", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<RetrieveAccountTransactionsError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
241
gocardless-bankaccount-data-api/src/apis/agreements_api.rs
Normal file
241
gocardless-bankaccount-data-api/src/apis/agreements_api.rs
Normal file
@@ -0,0 +1,241 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
use reqwest;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use crate::{apis::ResponseContent, models};
|
||||
use super::{Error, configuration};
|
||||
|
||||
|
||||
/// struct for typed errors of method [`accept_eua`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum AcceptEuaError {
|
||||
Status405(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
Status400(models::ErrorResponse),
|
||||
Status404(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`create_eua`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum CreateEuaError {
|
||||
Status400(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
Status402(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`delete_eua_by_id`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum DeleteEuaByIdError {
|
||||
Status400(models::ErrorResponse),
|
||||
Status404(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`retrieve_all_euas_for_an_end_user`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum RetrieveAllEuasForAnEndUserError {
|
||||
Status404(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`retrieve_eua_by_id`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum RetrieveEuaByIdError {
|
||||
Status404(models::ErrorResponse),
|
||||
Status400(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
|
||||
/// Accept an end-user agreement via the API
|
||||
pub async fn accept_eua(configuration: &configuration::Configuration, id: &str, enduser_acceptance_details_request: models::EnduserAcceptanceDetailsRequest) -> Result<models::EndUserAgreement, Error<AcceptEuaError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/agreements/enduser/{id}/accept/", local_var_configuration.base_path, id=crate::apis::urlencode(id));
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
local_var_req_builder = local_var_req_builder.json(&enduser_acceptance_details_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<AcceptEuaError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// API endpoints related to end-user agreements.
|
||||
pub async fn create_eua(configuration: &configuration::Configuration, end_user_agreement_request: models::EndUserAgreementRequest) -> Result<models::EndUserAgreement, Error<CreateEuaError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/agreements/enduser/", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
local_var_req_builder = local_var_req_builder.json(&end_user_agreement_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<CreateEuaError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Delete an end user agreement
|
||||
pub async fn delete_eua_by_id(configuration: &configuration::Configuration, id: &str) -> Result<(), Error<DeleteEuaByIdError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/agreements/enduser/{id}/", local_var_configuration.base_path, id=crate::apis::urlencode(id));
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
Ok(())
|
||||
} else {
|
||||
let local_var_entity: Option<DeleteEuaByIdError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// API endpoints related to end-user agreements.
|
||||
pub async fn retrieve_all_euas_for_an_end_user(configuration: &configuration::Configuration, limit: Option<i32>, offset: Option<i32>) -> Result<models::PaginatedEndUserAgreementList, Error<RetrieveAllEuasForAnEndUserError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/agreements/enduser/", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_str) = limit {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("limit", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = offset {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("offset", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<RetrieveAllEuasForAnEndUserError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Retrieve end user agreement by ID
|
||||
pub async fn retrieve_eua_by_id(configuration: &configuration::Configuration, id: &str) -> Result<models::EndUserAgreement, Error<RetrieveEuaByIdError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/agreements/enduser/{id}/", local_var_configuration.base_path, id=crate::apis::urlencode(id));
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<RetrieveEuaByIdError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
53
gocardless-bankaccount-data-api/src/apis/configuration.rs
Normal file
53
gocardless-bankaccount-data-api/src/apis/configuration.rs
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Configuration {
|
||||
pub base_path: String,
|
||||
pub user_agent: Option<String>,
|
||||
pub client: reqwest_middleware::ClientWithMiddleware,
|
||||
pub basic_auth: Option<BasicAuth>,
|
||||
pub oauth_access_token: Option<String>,
|
||||
pub bearer_access_token: Option<String>,
|
||||
pub api_key: Option<ApiKey>,
|
||||
// TODO: take an oauth2 token source, similar to the go one
|
||||
}
|
||||
|
||||
pub type BasicAuth = (String, Option<String>);
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct ApiKey {
|
||||
pub prefix: Option<String>,
|
||||
pub key: String,
|
||||
}
|
||||
|
||||
|
||||
impl Configuration {
|
||||
pub fn new() -> Configuration {
|
||||
Configuration::default()
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Configuration {
|
||||
fn default() -> Self {
|
||||
Configuration {
|
||||
base_path: "https://bankaccountdata.gocardless.com".to_owned(),
|
||||
user_agent: Some("OpenAPI-Generator/2.0 (v2)/rust".to_owned()),
|
||||
client: reqwest_middleware::ClientBuilder::new(reqwest::Client::new()).build(),
|
||||
basic_auth: None,
|
||||
oauth_access_token: None,
|
||||
bearer_access_token: None,
|
||||
api_key: None,
|
||||
|
||||
}
|
||||
}
|
||||
}
|
142
gocardless-bankaccount-data-api/src/apis/institutions_api.rs
Normal file
142
gocardless-bankaccount-data-api/src/apis/institutions_api.rs
Normal file
@@ -0,0 +1,142 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
use reqwest;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use crate::{apis::ResponseContent, models};
|
||||
use super::{Error, configuration};
|
||||
|
||||
|
||||
/// struct for typed errors of method [`retrieve_all_supported_institutions_in_a_given_country`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum RetrieveAllSupportedInstitutionsInAGivenCountryError {
|
||||
Status400(models::ErrorResponse),
|
||||
Status404(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`retrieve_institution`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum RetrieveInstitutionError {
|
||||
Status404(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
|
||||
/// List all available institutions
|
||||
pub async fn retrieve_all_supported_institutions_in_a_given_country(configuration: &configuration::Configuration, access_scopes_supported: Option<&str>, account_selection_supported: Option<&str>, business_accounts_supported: Option<&str>, card_accounts_supported: Option<&str>, corporate_accounts_supported: Option<&str>, country: Option<&str>, payment_submission_supported: Option<&str>, payments_enabled: Option<&str>, pending_transactions_supported: Option<&str>, private_accounts_supported: Option<&str>, read_debtor_account_supported: Option<&str>, read_refund_account_supported: Option<&str>, ssn_verification_supported: Option<&str>) -> Result<Vec<models::Integration>, Error<RetrieveAllSupportedInstitutionsInAGivenCountryError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/institutions/", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_str) = access_scopes_supported {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("access_scopes_supported", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = account_selection_supported {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("account_selection_supported", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = business_accounts_supported {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("business_accounts_supported", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = card_accounts_supported {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("card_accounts_supported", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = corporate_accounts_supported {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("corporate_accounts_supported", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = country {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("country", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = payment_submission_supported {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("payment_submission_supported", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = payments_enabled {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("payments_enabled", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = pending_transactions_supported {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("pending_transactions_supported", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = private_accounts_supported {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("private_accounts_supported", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = read_debtor_account_supported {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("read_debtor_account_supported", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = read_refund_account_supported {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("read_refund_account_supported", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = ssn_verification_supported {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("ssn_verification_supported", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<RetrieveAllSupportedInstitutionsInAGivenCountryError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Get details about a specific Institution and its supported features
|
||||
pub async fn retrieve_institution(configuration: &configuration::Configuration, id: &str) -> Result<models::IntegrationRetrieve, Error<RetrieveInstitutionError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/institutions/{id}/", local_var_configuration.base_path, id=crate::apis::urlencode(id));
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<RetrieveInstitutionError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
108
gocardless-bankaccount-data-api/src/apis/mod.rs
Normal file
108
gocardless-bankaccount-data-api/src/apis/mod.rs
Normal file
@@ -0,0 +1,108 @@
|
||||
use std::error;
|
||||
use std::fmt;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct ResponseContent<T> {
|
||||
pub status: reqwest::StatusCode,
|
||||
pub content: String,
|
||||
pub entity: Option<T>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum Error<T> {
|
||||
Reqwest(reqwest::Error),
|
||||
ReqwestMiddleware(reqwest_middleware::Error),
|
||||
Serde(serde_json::Error),
|
||||
Io(std::io::Error),
|
||||
ResponseError(ResponseContent<T>),
|
||||
}
|
||||
|
||||
impl <T> fmt::Display for Error<T> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let (module, e) = match self {
|
||||
Error::Reqwest(e) => ("reqwest", e.to_string()),
|
||||
Error::ReqwestMiddleware(e) => ("reqwest-middleware", e.to_string()),
|
||||
Error::Serde(e) => ("serde", e.to_string()),
|
||||
Error::Io(e) => ("IO", e.to_string()),
|
||||
Error::ResponseError(e) => ("response", format!("status code {}", e.status)),
|
||||
};
|
||||
write!(f, "error in {}: {}", module, e)
|
||||
}
|
||||
}
|
||||
|
||||
impl <T: fmt::Debug> error::Error for Error<T> {
|
||||
fn source(&self) -> Option<&(dyn error::Error + 'static)> {
|
||||
Some(match self {
|
||||
Error::Reqwest(e) => e,
|
||||
Error::ReqwestMiddleware(e) => e,
|
||||
Error::Serde(e) => e,
|
||||
Error::Io(e) => e,
|
||||
Error::ResponseError(_) => return None,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl <T> From<reqwest::Error> for Error<T> {
|
||||
fn from(e: reqwest::Error) -> Self {
|
||||
Error::Reqwest(e)
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> From<reqwest_middleware::Error> for Error<T> {
|
||||
fn from(e: reqwest_middleware::Error) -> Self {
|
||||
Error::ReqwestMiddleware(e)
|
||||
}
|
||||
}
|
||||
|
||||
impl <T> From<serde_json::Error> for Error<T> {
|
||||
fn from(e: serde_json::Error) -> Self {
|
||||
Error::Serde(e)
|
||||
}
|
||||
}
|
||||
|
||||
impl <T> From<std::io::Error> for Error<T> {
|
||||
fn from(e: std::io::Error) -> Self {
|
||||
Error::Io(e)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn urlencode<T: AsRef<str>>(s: T) -> String {
|
||||
::url::form_urlencoded::byte_serialize(s.as_ref().as_bytes()).collect()
|
||||
}
|
||||
|
||||
pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String, String)> {
|
||||
if let serde_json::Value::Object(object) = value {
|
||||
let mut params = vec![];
|
||||
|
||||
for (key, value) in object {
|
||||
match value {
|
||||
serde_json::Value::Object(_) => params.append(&mut parse_deep_object(
|
||||
&format!("{}[{}]", prefix, key),
|
||||
value,
|
||||
)),
|
||||
serde_json::Value::Array(array) => {
|
||||
for (i, value) in array.iter().enumerate() {
|
||||
params.append(&mut parse_deep_object(
|
||||
&format!("{}[{}][{}]", prefix, key, i),
|
||||
value,
|
||||
));
|
||||
}
|
||||
},
|
||||
serde_json::Value::String(s) => params.push((format!("{}[{}]", prefix, key), s.clone())),
|
||||
_ => params.push((format!("{}[{}]", prefix, key), value.to_string())),
|
||||
}
|
||||
}
|
||||
|
||||
return params;
|
||||
}
|
||||
|
||||
unimplemented!("Only objects are supported with style=deepObject")
|
||||
}
|
||||
|
||||
pub mod accounts_api;
|
||||
pub mod agreements_api;
|
||||
pub mod institutions_api;
|
||||
pub mod requisitions_api;
|
||||
pub mod token_api;
|
||||
|
||||
pub mod configuration;
|
198
gocardless-bankaccount-data-api/src/apis/requisitions_api.rs
Normal file
198
gocardless-bankaccount-data-api/src/apis/requisitions_api.rs
Normal file
@@ -0,0 +1,198 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
use reqwest;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use crate::{apis::ResponseContent, models};
|
||||
use super::{Error, configuration};
|
||||
|
||||
|
||||
/// struct for typed errors of method [`create_requisition`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum CreateRequisitionError {
|
||||
Status400(models::ErrorResponse),
|
||||
Status404(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
Status402(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`delete_requisition_by_id`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum DeleteRequisitionByIdError {
|
||||
Status400(models::ErrorResponse),
|
||||
Status404(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`requisition_by_id`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum RequisitionByIdError {
|
||||
Status404(models::ErrorResponse),
|
||||
Status400(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`retrieve_all_requisitions`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum RetrieveAllRequisitionsError {
|
||||
Status404(models::ErrorResponse),
|
||||
Status400(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
|
||||
/// Create a new requisition
|
||||
pub async fn create_requisition(configuration: &configuration::Configuration, requisition_request: models::RequisitionRequest) -> Result<models::SpectacularRequisition, Error<CreateRequisitionError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/requisitions/", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
local_var_req_builder = local_var_req_builder.json(&requisition_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<CreateRequisitionError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Delete requisition and its end user agreement
|
||||
pub async fn delete_requisition_by_id(configuration: &configuration::Configuration, id: &str) -> Result<(), Error<DeleteRequisitionByIdError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/requisitions/{id}/", local_var_configuration.base_path, id=crate::apis::urlencode(id));
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
Ok(())
|
||||
} else {
|
||||
let local_var_entity: Option<DeleteRequisitionByIdError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Retrieve a requisition by ID
|
||||
pub async fn requisition_by_id(configuration: &configuration::Configuration, id: &str) -> Result<models::Requisition, Error<RequisitionByIdError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/requisitions/{id}/", local_var_configuration.base_path, id=crate::apis::urlencode(id));
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<RequisitionByIdError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Retrieve all requisitions belonging to the company
|
||||
pub async fn retrieve_all_requisitions(configuration: &configuration::Configuration, limit: Option<i32>, offset: Option<i32>) -> Result<models::PaginatedRequisitionList, Error<RetrieveAllRequisitionsError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/requisitions/", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_str) = limit {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("limit", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = offset {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("offset", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<RetrieveAllRequisitionsError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
102
gocardless-bankaccount-data-api/src/apis/token_api.rs
Normal file
102
gocardless-bankaccount-data-api/src/apis/token_api.rs
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
use reqwest;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use crate::{apis::ResponseContent, models};
|
||||
use super::{Error, configuration};
|
||||
|
||||
|
||||
/// struct for typed errors of method [`get_a_new_access_token`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum GetANewAccessTokenError {
|
||||
Status403(models::ErrorResponse),
|
||||
Status401(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`obtain_new_access_slash_refresh_token_pair`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ObtainNewAccessSlashRefreshTokenPairError {
|
||||
Status401(models::ErrorResponse),
|
||||
Status403(models::ErrorResponse),
|
||||
Status429(models::ErrorResponse),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
|
||||
/// Refresh access token
|
||||
pub async fn get_a_new_access_token(configuration: &configuration::Configuration, jwt_refresh_request: models::JwtRefreshRequest) -> Result<models::SpectacularJwtRefresh, Error<GetANewAccessTokenError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/token/refresh/", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
local_var_req_builder = local_var_req_builder.json(&jwt_refresh_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<GetANewAccessTokenError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Obtain JWT pair
|
||||
pub async fn obtain_new_access_slash_refresh_token_pair(configuration: &configuration::Configuration, jwt_obtain_pair_request: models::JwtObtainPairRequest) -> Result<models::SpectacularJwtObtain, Error<ObtainNewAccessSlashRefreshTokenPairError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/api/v2/token/new/", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
local_var_req_builder = local_var_req_builder.json(&jwt_obtain_pair_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<ObtainNewAccessSlashRefreshTokenPairError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
11
gocardless-bankaccount-data-api/src/lib.rs
Normal file
11
gocardless-bankaccount-data-api/src/lib.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
#![allow(unused_imports)]
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
|
||||
extern crate serde_repr;
|
||||
extern crate serde;
|
||||
extern crate serde_json;
|
||||
extern crate url;
|
||||
extern crate reqwest;
|
||||
|
||||
pub mod apis;
|
||||
pub mod models;
|
54
gocardless-bankaccount-data-api/src/models/account.rs
Normal file
54
gocardless-bankaccount-data-api/src/models/account.rs
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// Account : AccountSerializer.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Account {
|
||||
/// The ID of this Account, used to refer to this account in other API calls.
|
||||
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
||||
pub id: Option<uuid::Uuid>,
|
||||
/// The date & time at which the account object was created.
|
||||
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<String>,
|
||||
/// The date & time at which the account object was last accessed.
|
||||
#[serde(rename = "last_accessed", skip_serializing_if = "Option::is_none")]
|
||||
pub last_accessed: Option<String>,
|
||||
/// The Account IBAN
|
||||
#[serde(rename = "iban", skip_serializing_if = "Option::is_none")]
|
||||
pub iban: Option<String>,
|
||||
/// The processing status of this account.
|
||||
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
|
||||
pub status: Option<String>,
|
||||
/// The ASPSP associated with this account.
|
||||
#[serde(rename = "institution_id", skip_serializing_if = "Option::is_none")]
|
||||
pub institution_id: Option<String>,
|
||||
/// The name of the account owner.
|
||||
#[serde(rename = "owner_name", skip_serializing_if = "Option::is_none")]
|
||||
pub owner_name: Option<String>,
|
||||
}
|
||||
|
||||
impl Account {
|
||||
/// AccountSerializer.
|
||||
pub fn new() -> Account {
|
||||
Account {
|
||||
id: None,
|
||||
created: None,
|
||||
last_accessed: None,
|
||||
iban: None,
|
||||
status: None,
|
||||
institution_id: None,
|
||||
owner_name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// AccountBalance : AccountBalanceSerializer.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct AccountBalance {
|
||||
#[serde(rename = "balances", skip_serializing_if = "Option::is_none")]
|
||||
pub balances: Option<Vec<models::BalanceSchema>>,
|
||||
}
|
||||
|
||||
impl AccountBalance {
|
||||
/// AccountBalanceSerializer.
|
||||
pub fn new() -> AccountBalance {
|
||||
AccountBalance {
|
||||
balances: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
30
gocardless-bankaccount-data-api/src/models/account_detail.rs
Normal file
30
gocardless-bankaccount-data-api/src/models/account_detail.rs
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// AccountDetail : AccountDetailSerializer.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct AccountDetail {
|
||||
/// account
|
||||
#[serde(rename = "account")]
|
||||
pub account: models::DetailSchema,
|
||||
}
|
||||
|
||||
impl AccountDetail {
|
||||
/// AccountDetailSerializer.
|
||||
pub fn new(account: models::DetailSchema) -> AccountDetail {
|
||||
AccountDetail {
|
||||
account,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
50
gocardless-bankaccount-data-api/src/models/account_schema.rs
Normal file
50
gocardless-bankaccount-data-api/src/models/account_schema.rs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// AccountSchema : AccountSchema.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct AccountSchema {
|
||||
/// iban
|
||||
#[serde(rename = "iban", skip_serializing_if = "Option::is_none")]
|
||||
pub iban: Option<String>,
|
||||
/// bban
|
||||
#[serde(rename = "bban", skip_serializing_if = "Option::is_none")]
|
||||
pub bban: Option<String>,
|
||||
/// pan
|
||||
#[serde(rename = "pan", skip_serializing_if = "Option::is_none")]
|
||||
pub pan: Option<String>,
|
||||
/// maskedPan
|
||||
#[serde(rename = "maskedPan", skip_serializing_if = "Option::is_none")]
|
||||
pub masked_pan: Option<String>,
|
||||
/// msisdn
|
||||
#[serde(rename = "msisdn", skip_serializing_if = "Option::is_none")]
|
||||
pub msisdn: Option<String>,
|
||||
/// currency
|
||||
#[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
|
||||
pub currency: Option<String>,
|
||||
}
|
||||
|
||||
impl AccountSchema {
|
||||
/// AccountSchema.
|
||||
pub fn new() -> AccountSchema {
|
||||
AccountSchema {
|
||||
iban: None,
|
||||
bban: None,
|
||||
pan: None,
|
||||
masked_pan: None,
|
||||
msisdn: None,
|
||||
currency: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// BalanceAmountSchema : BalanceAmountSchema.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct BalanceAmountSchema {
|
||||
/// amount
|
||||
#[serde(rename = "amount")]
|
||||
pub amount: String,
|
||||
/// currency
|
||||
#[serde(rename = "currency")]
|
||||
pub currency: String,
|
||||
}
|
||||
|
||||
impl BalanceAmountSchema {
|
||||
/// BalanceAmountSchema.
|
||||
pub fn new(amount: String, currency: String) -> BalanceAmountSchema {
|
||||
BalanceAmountSchema {
|
||||
amount,
|
||||
currency,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
50
gocardless-bankaccount-data-api/src/models/balance_schema.rs
Normal file
50
gocardless-bankaccount-data-api/src/models/balance_schema.rs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// BalanceSchema : BalanceSchema.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct BalanceSchema {
|
||||
/// balanceAmount
|
||||
#[serde(rename = "balanceAmount")]
|
||||
pub balance_amount: models::BalanceAmountSchema,
|
||||
/// balanceType
|
||||
#[serde(rename = "balanceType")]
|
||||
pub balance_type: String,
|
||||
/// creditLimitIncluded
|
||||
#[serde(rename = "creditLimitIncluded", skip_serializing_if = "Option::is_none")]
|
||||
pub credit_limit_included: Option<bool>,
|
||||
/// lastChangeDateTime
|
||||
#[serde(rename = "lastChangeDateTime", skip_serializing_if = "Option::is_none")]
|
||||
pub last_change_date_time: Option<String>,
|
||||
/// referenceDate
|
||||
#[serde(rename = "referenceDate", skip_serializing_if = "Option::is_none")]
|
||||
pub reference_date: Option<String>,
|
||||
/// lastCommittedTransaction
|
||||
#[serde(rename = "lastCommittedTransaction", skip_serializing_if = "Option::is_none")]
|
||||
pub last_committed_transaction: Option<String>,
|
||||
}
|
||||
|
||||
impl BalanceSchema {
|
||||
/// BalanceSchema.
|
||||
pub fn new(balance_amount: models::BalanceAmountSchema, balance_type: String) -> BalanceSchema {
|
||||
BalanceSchema {
|
||||
balance_amount,
|
||||
balance_type,
|
||||
credit_limit_included: None,
|
||||
last_change_date_time: None,
|
||||
reference_date: None,
|
||||
last_committed_transaction: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// BankTransaction : BankTransactionSerializer.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct BankTransaction {
|
||||
#[serde(rename = "booked")]
|
||||
pub booked: Vec<models::TransactionSchema>,
|
||||
#[serde(rename = "pending", skip_serializing_if = "Option::is_none")]
|
||||
pub pending: Option<Vec<models::TransactionSchema>>,
|
||||
}
|
||||
|
||||
impl BankTransaction {
|
||||
/// BankTransactionSerializer.
|
||||
pub fn new(booked: Vec<models::TransactionSchema>) -> BankTransaction {
|
||||
BankTransaction {
|
||||
booked,
|
||||
pending: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// CurrencyExchangeSchema : CurrencyExchangeSchema.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct CurrencyExchangeSchema {
|
||||
/// sourceCurrency
|
||||
#[serde(rename = "sourceCurrency", skip_serializing_if = "Option::is_none")]
|
||||
pub source_currency: Option<String>,
|
||||
/// exchangeRate
|
||||
#[serde(rename = "exchangeRate", skip_serializing_if = "Option::is_none")]
|
||||
pub exchange_rate: Option<String>,
|
||||
/// unitCurrency
|
||||
#[serde(rename = "unitCurrency", skip_serializing_if = "Option::is_none")]
|
||||
pub unit_currency: Option<String>,
|
||||
/// targetCurrency
|
||||
#[serde(rename = "targetCurrency", skip_serializing_if = "Option::is_none")]
|
||||
pub target_currency: Option<String>,
|
||||
/// quotationDate
|
||||
#[serde(rename = "quotationDate", skip_serializing_if = "Option::is_none")]
|
||||
pub quotation_date: Option<String>,
|
||||
/// contractIdentification
|
||||
#[serde(rename = "contractIdentification", skip_serializing_if = "Option::is_none")]
|
||||
pub contract_identification: Option<String>,
|
||||
}
|
||||
|
||||
impl CurrencyExchangeSchema {
|
||||
/// CurrencyExchangeSchema.
|
||||
pub fn new() -> CurrencyExchangeSchema {
|
||||
CurrencyExchangeSchema {
|
||||
source_currency: None,
|
||||
exchange_rate: None,
|
||||
unit_currency: None,
|
||||
target_currency: None,
|
||||
quotation_date: None,
|
||||
contract_identification: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
98
gocardless-bankaccount-data-api/src/models/detail_schema.rs
Normal file
98
gocardless-bankaccount-data-api/src/models/detail_schema.rs
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// DetailSchema : DetailSchema.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct DetailSchema {
|
||||
/// resourceId
|
||||
#[serde(rename = "resourceId", skip_serializing_if = "Option::is_none")]
|
||||
pub resource_id: Option<String>,
|
||||
/// iban
|
||||
#[serde(rename = "iban", skip_serializing_if = "Option::is_none")]
|
||||
pub iban: Option<String>,
|
||||
/// bban
|
||||
#[serde(rename = "bban", skip_serializing_if = "Option::is_none")]
|
||||
pub bban: Option<String>,
|
||||
/// msisdn
|
||||
#[serde(rename = "msisdn", skip_serializing_if = "Option::is_none")]
|
||||
pub msisdn: Option<String>,
|
||||
/// currency
|
||||
#[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
|
||||
pub currency: Option<String>,
|
||||
/// ownerName
|
||||
#[serde(rename = "ownerName", skip_serializing_if = "Option::is_none")]
|
||||
pub owner_name: Option<String>,
|
||||
/// name
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
/// displayName
|
||||
#[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
|
||||
pub display_name: Option<String>,
|
||||
/// product
|
||||
#[serde(rename = "product", skip_serializing_if = "Option::is_none")]
|
||||
pub product: Option<String>,
|
||||
/// cashAccountType
|
||||
#[serde(rename = "cashAccountType", skip_serializing_if = "Option::is_none")]
|
||||
pub cash_account_type: Option<String>,
|
||||
/// status
|
||||
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
|
||||
pub status: Option<String>,
|
||||
/// bic
|
||||
#[serde(rename = "bic", skip_serializing_if = "Option::is_none")]
|
||||
pub bic: Option<String>,
|
||||
/// linkedAccounts
|
||||
#[serde(rename = "linkedAccounts", skip_serializing_if = "Option::is_none")]
|
||||
pub linked_accounts: Option<String>,
|
||||
/// maskedPan
|
||||
#[serde(rename = "maskedPan", skip_serializing_if = "Option::is_none")]
|
||||
pub masked_pan: Option<String>,
|
||||
/// usage
|
||||
#[serde(rename = "usage", skip_serializing_if = "Option::is_none")]
|
||||
pub usage: Option<String>,
|
||||
/// details
|
||||
#[serde(rename = "details", skip_serializing_if = "Option::is_none")]
|
||||
pub details: Option<String>,
|
||||
/// ownerAddressUnstructured
|
||||
#[serde(rename = "ownerAddressUnstructured", skip_serializing_if = "Option::is_none")]
|
||||
pub owner_address_unstructured: Option<Vec<String>>,
|
||||
/// ownerAddressStructured
|
||||
#[serde(rename = "ownerAddressStructured", skip_serializing_if = "Option::is_none")]
|
||||
pub owner_address_structured: Option<models::OwnerAddressStructuredSchema>,
|
||||
}
|
||||
|
||||
impl DetailSchema {
|
||||
/// DetailSchema.
|
||||
pub fn new() -> DetailSchema {
|
||||
DetailSchema {
|
||||
resource_id: None,
|
||||
iban: None,
|
||||
bban: None,
|
||||
msisdn: None,
|
||||
currency: None,
|
||||
owner_name: None,
|
||||
name: None,
|
||||
display_name: None,
|
||||
product: None,
|
||||
cash_account_type: None,
|
||||
status: None,
|
||||
bic: None,
|
||||
linked_accounts: None,
|
||||
masked_pan: None,
|
||||
usage: None,
|
||||
details: None,
|
||||
owner_address_unstructured: None,
|
||||
owner_address_structured: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// EndUserAgreement : Represents an end-user agreement.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct EndUserAgreement {
|
||||
/// The ID of this End User Agreement, used to refer to this end user agreement in other API calls.
|
||||
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
||||
pub id: Option<uuid::Uuid>,
|
||||
/// The date & time at which the end user agreement was created.
|
||||
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<String>,
|
||||
/// an Institution ID for this EUA
|
||||
#[serde(rename = "institution_id")]
|
||||
pub institution_id: String,
|
||||
/// Maximum number of days of transaction data to retrieve.
|
||||
#[serde(rename = "max_historical_days", skip_serializing_if = "Option::is_none")]
|
||||
pub max_historical_days: Option<i32>,
|
||||
/// Number of days from acceptance that the access can be used.
|
||||
#[serde(rename = "access_valid_for_days", skip_serializing_if = "Option::is_none")]
|
||||
pub access_valid_for_days: Option<i32>,
|
||||
/// Array containing one or several values of ['balances', 'details', 'transactions']
|
||||
#[serde(rename = "access_scope", skip_serializing_if = "Option::is_none")]
|
||||
pub access_scope: Option<Vec<serde_json::Value>>,
|
||||
/// The date & time at which the end user accepted the agreement.
|
||||
#[serde(rename = "accepted", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub accepted: Option<Option<String>>,
|
||||
}
|
||||
|
||||
impl EndUserAgreement {
|
||||
/// Represents an end-user agreement.
|
||||
pub fn new(institution_id: String) -> EndUserAgreement {
|
||||
EndUserAgreement {
|
||||
id: None,
|
||||
created: None,
|
||||
institution_id,
|
||||
max_historical_days: None,
|
||||
access_valid_for_days: None,
|
||||
access_scope: None,
|
||||
accepted: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// EndUserAgreementRequest : Represents an end-user agreement.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct EndUserAgreementRequest {
|
||||
/// an Institution ID for this EUA
|
||||
#[serde(rename = "institution_id")]
|
||||
pub institution_id: String,
|
||||
/// Maximum number of days of transaction data to retrieve.
|
||||
#[serde(rename = "max_historical_days", skip_serializing_if = "Option::is_none")]
|
||||
pub max_historical_days: Option<i32>,
|
||||
/// Number of days from acceptance that the access can be used.
|
||||
#[serde(rename = "access_valid_for_days", skip_serializing_if = "Option::is_none")]
|
||||
pub access_valid_for_days: Option<i32>,
|
||||
/// Array containing one or several values of ['balances', 'details', 'transactions']
|
||||
#[serde(rename = "access_scope", skip_serializing_if = "Option::is_none")]
|
||||
pub access_scope: Option<Vec<serde_json::Value>>,
|
||||
}
|
||||
|
||||
impl EndUserAgreementRequest {
|
||||
/// Represents an end-user agreement.
|
||||
pub fn new(institution_id: String) -> EndUserAgreementRequest {
|
||||
EndUserAgreementRequest {
|
||||
institution_id,
|
||||
max_historical_days: None,
|
||||
access_valid_for_days: None,
|
||||
access_scope: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// EnduserAcceptanceDetailsRequest : Represents end-user details.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct EnduserAcceptanceDetailsRequest {
|
||||
#[serde(rename = "user_agent")]
|
||||
pub user_agent: String,
|
||||
#[serde(rename = "ip_address")]
|
||||
pub ip_address: String,
|
||||
}
|
||||
|
||||
impl EnduserAcceptanceDetailsRequest {
|
||||
/// Represents end-user details.
|
||||
pub fn new(user_agent: String, ip_address: String) -> EnduserAcceptanceDetailsRequest {
|
||||
EnduserAcceptanceDetailsRequest {
|
||||
user_agent,
|
||||
ip_address,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
36
gocardless-bankaccount-data-api/src/models/error_response.rs
Normal file
36
gocardless-bankaccount-data-api/src/models/error_response.rs
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct ErrorResponse {
|
||||
#[serde(rename = "summary")]
|
||||
pub summary: String,
|
||||
#[serde(rename = "detail")]
|
||||
pub detail: String,
|
||||
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
|
||||
pub r#type: Option<String>,
|
||||
#[serde(rename = "status_code")]
|
||||
pub status_code: i32,
|
||||
}
|
||||
|
||||
impl ErrorResponse {
|
||||
pub fn new(summary: String, detail: String, status_code: i32) -> ErrorResponse {
|
||||
ErrorResponse {
|
||||
summary,
|
||||
detail,
|
||||
r#type: None,
|
||||
status_code,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
44
gocardless-bankaccount-data-api/src/models/integration.rs
Normal file
44
gocardless-bankaccount-data-api/src/models/integration.rs
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// Integration : Represents an Integration.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Integration {
|
||||
#[serde(rename = "id")]
|
||||
pub id: String,
|
||||
#[serde(rename = "name")]
|
||||
pub name: String,
|
||||
#[serde(rename = "bic", skip_serializing_if = "Option::is_none")]
|
||||
pub bic: Option<String>,
|
||||
#[serde(rename = "transaction_total_days", skip_serializing_if = "Option::is_none")]
|
||||
pub transaction_total_days: Option<String>,
|
||||
#[serde(rename = "countries")]
|
||||
pub countries: Vec<String>,
|
||||
#[serde(rename = "logo")]
|
||||
pub logo: String,
|
||||
}
|
||||
|
||||
impl Integration {
|
||||
/// Represents an Integration.
|
||||
pub fn new(id: String, name: String, countries: Vec<String>, logo: String) -> Integration {
|
||||
Integration {
|
||||
id,
|
||||
name,
|
||||
bic: None,
|
||||
transaction_total_days: None,
|
||||
countries,
|
||||
logo,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// IntegrationRetrieve : IntegrationSerializer for Retrieve endpoint.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct IntegrationRetrieve {
|
||||
#[serde(rename = "id")]
|
||||
pub id: String,
|
||||
#[serde(rename = "name")]
|
||||
pub name: String,
|
||||
#[serde(rename = "bic", skip_serializing_if = "Option::is_none")]
|
||||
pub bic: Option<String>,
|
||||
#[serde(rename = "transaction_total_days", skip_serializing_if = "Option::is_none")]
|
||||
pub transaction_total_days: Option<String>,
|
||||
#[serde(rename = "countries")]
|
||||
pub countries: Vec<String>,
|
||||
#[serde(rename = "logo")]
|
||||
pub logo: String,
|
||||
#[serde(rename = "supported_payments")]
|
||||
pub supported_payments: std::collections::HashMap<String, serde_json::Value>,
|
||||
#[serde(rename = "supported_features")]
|
||||
pub supported_features: Vec<serde_json::Value>,
|
||||
#[serde(rename = "identification_codes")]
|
||||
pub identification_codes: Vec<serde_json::Value>,
|
||||
}
|
||||
|
||||
impl IntegrationRetrieve {
|
||||
/// IntegrationSerializer for Retrieve endpoint.
|
||||
pub fn new(id: String, name: String, countries: Vec<String>, logo: String, supported_payments: std::collections::HashMap<String, serde_json::Value>, supported_features: Vec<serde_json::Value>, identification_codes: Vec<serde_json::Value>) -> IntegrationRetrieve {
|
||||
IntegrationRetrieve {
|
||||
id,
|
||||
name,
|
||||
bic: None,
|
||||
transaction_total_days: None,
|
||||
countries,
|
||||
logo,
|
||||
supported_payments,
|
||||
supported_features,
|
||||
identification_codes,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// JwtObtainPairRequest : Obtain JWT pair.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct JwtObtainPairRequest {
|
||||
/// Secret id from /user-secrets/
|
||||
#[serde(rename = "secret_id")]
|
||||
pub secret_id: String,
|
||||
/// Secret key from /user-secrets/
|
||||
#[serde(rename = "secret_key")]
|
||||
pub secret_key: String,
|
||||
}
|
||||
|
||||
impl JwtObtainPairRequest {
|
||||
/// Obtain JWT pair.
|
||||
pub fn new(secret_id: String, secret_key: String) -> JwtObtainPairRequest {
|
||||
JwtObtainPairRequest {
|
||||
secret_id,
|
||||
secret_key,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// JwtRefreshRequest : Refresh access token.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct JwtRefreshRequest {
|
||||
#[serde(rename = "refresh")]
|
||||
pub refresh: String,
|
||||
}
|
||||
|
||||
impl JwtRefreshRequest {
|
||||
/// Refresh access token.
|
||||
pub fn new(refresh: String) -> JwtRefreshRequest {
|
||||
JwtRefreshRequest {
|
||||
refresh,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
56
gocardless-bankaccount-data-api/src/models/mod.rs
Normal file
56
gocardless-bankaccount-data-api/src/models/mod.rs
Normal file
@@ -0,0 +1,56 @@
|
||||
pub mod account;
|
||||
pub use self::account::Account;
|
||||
pub mod account_balance;
|
||||
pub use self::account_balance::AccountBalance;
|
||||
pub mod account_detail;
|
||||
pub use self::account_detail::AccountDetail;
|
||||
pub mod account_schema;
|
||||
pub use self::account_schema::AccountSchema;
|
||||
pub mod balance_amount_schema;
|
||||
pub use self::balance_amount_schema::BalanceAmountSchema;
|
||||
pub mod balance_schema;
|
||||
pub use self::balance_schema::BalanceSchema;
|
||||
pub mod bank_transaction;
|
||||
pub use self::bank_transaction::BankTransaction;
|
||||
pub mod currency_exchange_schema;
|
||||
pub use self::currency_exchange_schema::CurrencyExchangeSchema;
|
||||
pub mod detail_schema;
|
||||
pub use self::detail_schema::DetailSchema;
|
||||
pub mod end_user_agreement;
|
||||
pub use self::end_user_agreement::EndUserAgreement;
|
||||
pub mod end_user_agreement_request;
|
||||
pub use self::end_user_agreement_request::EndUserAgreementRequest;
|
||||
pub mod enduser_acceptance_details_request;
|
||||
pub use self::enduser_acceptance_details_request::EnduserAcceptanceDetailsRequest;
|
||||
pub mod error_response;
|
||||
pub use self::error_response::ErrorResponse;
|
||||
pub mod integration;
|
||||
pub use self::integration::Integration;
|
||||
pub mod integration_retrieve;
|
||||
pub use self::integration_retrieve::IntegrationRetrieve;
|
||||
pub mod jwt_obtain_pair_request;
|
||||
pub use self::jwt_obtain_pair_request::JwtObtainPairRequest;
|
||||
pub mod jwt_refresh_request;
|
||||
pub use self::jwt_refresh_request::JwtRefreshRequest;
|
||||
pub mod owner_address_structured_schema;
|
||||
pub use self::owner_address_structured_schema::OwnerAddressStructuredSchema;
|
||||
pub mod paginated_end_user_agreement_list;
|
||||
pub use self::paginated_end_user_agreement_list::PaginatedEndUserAgreementList;
|
||||
pub mod paginated_requisition_list;
|
||||
pub use self::paginated_requisition_list::PaginatedRequisitionList;
|
||||
pub mod requisition;
|
||||
pub use self::requisition::Requisition;
|
||||
pub mod requisition_request;
|
||||
pub use self::requisition_request::RequisitionRequest;
|
||||
pub mod spectacular_jwt_obtain;
|
||||
pub use self::spectacular_jwt_obtain::SpectacularJwtObtain;
|
||||
pub mod spectacular_jwt_refresh;
|
||||
pub use self::spectacular_jwt_refresh::SpectacularJwtRefresh;
|
||||
pub mod spectacular_requisition;
|
||||
pub use self::spectacular_requisition::SpectacularRequisition;
|
||||
pub mod status_enum;
|
||||
pub use self::status_enum::StatusEnum;
|
||||
pub mod transaction_amount_schema;
|
||||
pub use self::transaction_amount_schema::TransactionAmountSchema;
|
||||
pub mod transaction_schema;
|
||||
pub use self::transaction_schema::TransactionSchema;
|
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// OwnerAddressStructuredSchema : OwnerAddressStructuredSchema.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct OwnerAddressStructuredSchema {
|
||||
/// streetName
|
||||
#[serde(rename = "streetName", skip_serializing_if = "Option::is_none")]
|
||||
pub street_name: Option<String>,
|
||||
/// buildingNumber
|
||||
#[serde(rename = "buildingNumber", skip_serializing_if = "Option::is_none")]
|
||||
pub building_number: Option<String>,
|
||||
/// townName
|
||||
#[serde(rename = "townName", skip_serializing_if = "Option::is_none")]
|
||||
pub town_name: Option<String>,
|
||||
/// postCode
|
||||
#[serde(rename = "postCode", skip_serializing_if = "Option::is_none")]
|
||||
pub post_code: Option<String>,
|
||||
/// country
|
||||
#[serde(rename = "country", skip_serializing_if = "Option::is_none")]
|
||||
pub country: Option<String>,
|
||||
}
|
||||
|
||||
impl OwnerAddressStructuredSchema {
|
||||
/// OwnerAddressStructuredSchema.
|
||||
pub fn new() -> OwnerAddressStructuredSchema {
|
||||
OwnerAddressStructuredSchema {
|
||||
street_name: None,
|
||||
building_number: None,
|
||||
town_name: None,
|
||||
post_code: None,
|
||||
country: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct PaginatedEndUserAgreementList {
|
||||
#[serde(rename = "count")]
|
||||
pub count: i32,
|
||||
#[serde(rename = "next", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub next: Option<Option<String>>,
|
||||
#[serde(rename = "previous", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub previous: Option<Option<String>>,
|
||||
#[serde(rename = "results")]
|
||||
pub results: Vec<models::EndUserAgreement>,
|
||||
}
|
||||
|
||||
impl PaginatedEndUserAgreementList {
|
||||
pub fn new(count: i32, results: Vec<models::EndUserAgreement>) -> PaginatedEndUserAgreementList {
|
||||
PaginatedEndUserAgreementList {
|
||||
count,
|
||||
next: None,
|
||||
previous: None,
|
||||
results,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct PaginatedRequisitionList {
|
||||
#[serde(rename = "count")]
|
||||
pub count: i32,
|
||||
#[serde(rename = "next", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub next: Option<Option<String>>,
|
||||
#[serde(rename = "previous", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub previous: Option<Option<String>>,
|
||||
#[serde(rename = "results")]
|
||||
pub results: Vec<models::Requisition>,
|
||||
}
|
||||
|
||||
impl PaginatedRequisitionList {
|
||||
pub fn new(count: i32, results: Vec<models::Requisition>) -> PaginatedRequisitionList {
|
||||
PaginatedRequisitionList {
|
||||
count,
|
||||
next: None,
|
||||
previous: None,
|
||||
results,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
77
gocardless-bankaccount-data-api/src/models/requisition.rs
Normal file
77
gocardless-bankaccount-data-api/src/models/requisition.rs
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// Requisition : RequisitionSerializer.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Requisition {
|
||||
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
||||
pub id: Option<uuid::Uuid>,
|
||||
/// The date & time at which the requisition was created.
|
||||
#[serde(rename = "created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<Option<String>>,
|
||||
/// redirect URL to your application after end-user authorization with ASPSP
|
||||
#[serde(rename = "redirect", deserialize_with = "Option::deserialize")]
|
||||
pub redirect: Option<String>,
|
||||
/// status of this requisition
|
||||
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
|
||||
pub status: Option<models::StatusEnum>,
|
||||
/// an Institution ID for this Requisition
|
||||
#[serde(rename = "institution_id")]
|
||||
pub institution_id: String,
|
||||
/// EUA associated with this requisition
|
||||
#[serde(rename = "agreement", skip_serializing_if = "Option::is_none")]
|
||||
pub agreement: Option<uuid::Uuid>,
|
||||
/// additional ID to identify the end user
|
||||
#[serde(rename = "reference", skip_serializing_if = "Option::is_none")]
|
||||
pub reference: Option<String>,
|
||||
/// array of account IDs retrieved within a scope of this requisition
|
||||
#[serde(rename = "accounts", skip_serializing_if = "Option::is_none")]
|
||||
pub accounts: Option<Vec<uuid::Uuid>>,
|
||||
/// A two-letter country code (ISO 639-1)
|
||||
#[serde(rename = "user_language", skip_serializing_if = "Option::is_none")]
|
||||
pub user_language: Option<String>,
|
||||
/// link to initiate authorization with Institution
|
||||
#[serde(rename = "link", skip_serializing_if = "Option::is_none")]
|
||||
pub link: Option<String>,
|
||||
/// optional SSN field to verify ownership of the account
|
||||
#[serde(rename = "ssn", skip_serializing_if = "Option::is_none")]
|
||||
pub ssn: Option<String>,
|
||||
/// option to enable account selection view for the end user
|
||||
#[serde(rename = "account_selection", skip_serializing_if = "Option::is_none")]
|
||||
pub account_selection: Option<bool>,
|
||||
/// enable redirect back to the client after account list received
|
||||
#[serde(rename = "redirect_immediate", skip_serializing_if = "Option::is_none")]
|
||||
pub redirect_immediate: Option<bool>,
|
||||
}
|
||||
|
||||
impl Requisition {
|
||||
/// RequisitionSerializer.
|
||||
pub fn new(redirect: Option<String>, institution_id: String) -> Requisition {
|
||||
Requisition {
|
||||
id: None,
|
||||
created: None,
|
||||
redirect,
|
||||
status: None,
|
||||
institution_id,
|
||||
agreement: None,
|
||||
reference: None,
|
||||
accounts: None,
|
||||
user_language: None,
|
||||
link: None,
|
||||
ssn: None,
|
||||
account_selection: None,
|
||||
redirect_immediate: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// RequisitionRequest : RequisitionSerializer.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct RequisitionRequest {
|
||||
/// redirect URL to your application after end-user authorization with ASPSP
|
||||
#[serde(rename = "redirect", deserialize_with = "Option::deserialize")]
|
||||
pub redirect: Option<String>,
|
||||
/// an Institution ID for this Requisition
|
||||
#[serde(rename = "institution_id")]
|
||||
pub institution_id: String,
|
||||
/// EUA associated with this requisition
|
||||
#[serde(rename = "agreement", skip_serializing_if = "Option::is_none")]
|
||||
pub agreement: Option<uuid::Uuid>,
|
||||
/// additional ID to identify the end user
|
||||
#[serde(rename = "reference", skip_serializing_if = "Option::is_none")]
|
||||
pub reference: Option<String>,
|
||||
/// A two-letter country code (ISO 639-1)
|
||||
#[serde(rename = "user_language", skip_serializing_if = "Option::is_none")]
|
||||
pub user_language: Option<String>,
|
||||
/// optional SSN field to verify ownership of the account
|
||||
#[serde(rename = "ssn", skip_serializing_if = "Option::is_none")]
|
||||
pub ssn: Option<String>,
|
||||
/// option to enable account selection view for the end user
|
||||
#[serde(rename = "account_selection", skip_serializing_if = "Option::is_none")]
|
||||
pub account_selection: Option<bool>,
|
||||
/// enable redirect back to the client after account list received
|
||||
#[serde(rename = "redirect_immediate", skip_serializing_if = "Option::is_none")]
|
||||
pub redirect_immediate: Option<bool>,
|
||||
}
|
||||
|
||||
impl RequisitionRequest {
|
||||
/// RequisitionSerializer.
|
||||
pub fn new(redirect: Option<String>, institution_id: String) -> RequisitionRequest {
|
||||
RequisitionRequest {
|
||||
redirect,
|
||||
institution_id,
|
||||
agreement: None,
|
||||
reference: None,
|
||||
user_language: None,
|
||||
ssn: None,
|
||||
account_selection: None,
|
||||
redirect_immediate: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// SpectacularJwtObtain : Obtain new JWT pair.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct SpectacularJwtObtain {
|
||||
/// Your access token
|
||||
#[serde(rename = "access", skip_serializing_if = "Option::is_none")]
|
||||
pub access: Option<String>,
|
||||
/// Access token expires in seconds
|
||||
#[serde(rename = "access_expires", skip_serializing_if = "Option::is_none")]
|
||||
pub access_expires: Option<i32>,
|
||||
/// Your refresh token
|
||||
#[serde(rename = "refresh", skip_serializing_if = "Option::is_none")]
|
||||
pub refresh: Option<String>,
|
||||
/// Refresh token expires in seconds
|
||||
#[serde(rename = "refresh_expires", skip_serializing_if = "Option::is_none")]
|
||||
pub refresh_expires: Option<i32>,
|
||||
}
|
||||
|
||||
impl SpectacularJwtObtain {
|
||||
/// Obtain new JWT pair.
|
||||
pub fn new() -> SpectacularJwtObtain {
|
||||
SpectacularJwtObtain {
|
||||
access: None,
|
||||
access_expires: None,
|
||||
refresh: None,
|
||||
refresh_expires: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// SpectacularJwtRefresh : Refresh Access token.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct SpectacularJwtRefresh {
|
||||
/// Your access token
|
||||
#[serde(rename = "access", skip_serializing_if = "Option::is_none")]
|
||||
pub access: Option<String>,
|
||||
/// Access token expires in seconds
|
||||
#[serde(rename = "access_expires", skip_serializing_if = "Option::is_none")]
|
||||
pub access_expires: Option<i32>,
|
||||
}
|
||||
|
||||
impl SpectacularJwtRefresh {
|
||||
/// Refresh Access token.
|
||||
pub fn new() -> SpectacularJwtRefresh {
|
||||
SpectacularJwtRefresh {
|
||||
access: None,
|
||||
access_expires: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// SpectacularRequisition : Create requisition.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct SpectacularRequisition {
|
||||
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
||||
pub id: Option<uuid::Uuid>,
|
||||
/// The date & time at which the requisition was created.
|
||||
#[serde(rename = "created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<Option<String>>,
|
||||
/// redirect URL to your application after end-user authorization with ASPSP
|
||||
#[serde(rename = "redirect", deserialize_with = "Option::deserialize")]
|
||||
pub redirect: Option<String>,
|
||||
/// status of this requisition
|
||||
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
|
||||
pub status: Option<models::StatusEnum>,
|
||||
/// an Institution ID for this Requisition
|
||||
#[serde(rename = "institution_id")]
|
||||
pub institution_id: String,
|
||||
/// EUA associated with this requisition
|
||||
#[serde(rename = "agreement", skip_serializing_if = "Option::is_none")]
|
||||
pub agreement: Option<uuid::Uuid>,
|
||||
/// additional ID to identify the end user
|
||||
#[serde(rename = "reference", skip_serializing_if = "Option::is_none")]
|
||||
pub reference: Option<String>,
|
||||
/// array of account IDs retrieved within a scope of this requisition
|
||||
#[serde(rename = "accounts", skip_serializing_if = "Option::is_none")]
|
||||
pub accounts: Option<Vec<serde_json::Value>>,
|
||||
/// A two-letter country code (ISO 639-1)
|
||||
#[serde(rename = "user_language", skip_serializing_if = "Option::is_none")]
|
||||
pub user_language: Option<String>,
|
||||
/// link to initiate authorization with Institution
|
||||
#[serde(rename = "link", skip_serializing_if = "Option::is_none")]
|
||||
pub link: Option<String>,
|
||||
/// optional SSN field to verify ownership of the account
|
||||
#[serde(rename = "ssn", skip_serializing_if = "Option::is_none")]
|
||||
pub ssn: Option<String>,
|
||||
/// option to enable account selection view for the end user
|
||||
#[serde(rename = "account_selection", skip_serializing_if = "Option::is_none")]
|
||||
pub account_selection: Option<bool>,
|
||||
/// enable redirect back to the client after account list received
|
||||
#[serde(rename = "redirect_immediate", skip_serializing_if = "Option::is_none")]
|
||||
pub redirect_immediate: Option<bool>,
|
||||
}
|
||||
|
||||
impl SpectacularRequisition {
|
||||
/// Create requisition.
|
||||
pub fn new(redirect: Option<String>, institution_id: String) -> SpectacularRequisition {
|
||||
SpectacularRequisition {
|
||||
id: None,
|
||||
created: None,
|
||||
redirect,
|
||||
status: None,
|
||||
institution_id,
|
||||
agreement: None,
|
||||
reference: None,
|
||||
accounts: None,
|
||||
user_language: None,
|
||||
link: None,
|
||||
ssn: None,
|
||||
account_selection: None,
|
||||
redirect_immediate: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
65
gocardless-bankaccount-data-api/src/models/status_enum.rs
Normal file
65
gocardless-bankaccount-data-api/src/models/status_enum.rs
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
///
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
||||
pub enum StatusEnum {
|
||||
#[serde(rename = "CR")]
|
||||
Cr,
|
||||
#[serde(rename = "ID")]
|
||||
Id,
|
||||
#[serde(rename = "LN")]
|
||||
Ln,
|
||||
#[serde(rename = "RJ")]
|
||||
Rj,
|
||||
#[serde(rename = "ER")]
|
||||
Er,
|
||||
#[serde(rename = "SU")]
|
||||
Su,
|
||||
#[serde(rename = "EX")]
|
||||
Ex,
|
||||
#[serde(rename = "GC")]
|
||||
Gc,
|
||||
#[serde(rename = "UA")]
|
||||
Ua,
|
||||
#[serde(rename = "GA")]
|
||||
Ga,
|
||||
#[serde(rename = "SA")]
|
||||
Sa,
|
||||
|
||||
}
|
||||
|
||||
impl std::fmt::Display for StatusEnum {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||
match self {
|
||||
Self::Cr => write!(f, "CR"),
|
||||
Self::Id => write!(f, "ID"),
|
||||
Self::Ln => write!(f, "LN"),
|
||||
Self::Rj => write!(f, "RJ"),
|
||||
Self::Er => write!(f, "ER"),
|
||||
Self::Su => write!(f, "SU"),
|
||||
Self::Ex => write!(f, "EX"),
|
||||
Self::Gc => write!(f, "GC"),
|
||||
Self::Ua => write!(f, "UA"),
|
||||
Self::Ga => write!(f, "GA"),
|
||||
Self::Sa => write!(f, "SA"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for StatusEnum {
|
||||
fn default() -> StatusEnum {
|
||||
Self::Cr
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// TransactionAmountSchema : TransactionAmountSchema.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct TransactionAmountSchema {
|
||||
/// amount
|
||||
#[serde(rename = "amount")]
|
||||
pub amount: String,
|
||||
/// currency
|
||||
#[serde(rename = "currency")]
|
||||
pub currency: String,
|
||||
}
|
||||
|
||||
impl TransactionAmountSchema {
|
||||
/// TransactionAmountSchema.
|
||||
pub fn new(amount: String, currency: String) -> TransactionAmountSchema {
|
||||
TransactionAmountSchema {
|
||||
amount,
|
||||
currency,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
133
gocardless-bankaccount-data-api/src/models/transaction_schema.rs
Normal file
133
gocardless-bankaccount-data-api/src/models/transaction_schema.rs
Normal file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* GoCardless Bank Account Data API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0 (v2)
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// TransactionSchema : TransactionSchema.
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct TransactionSchema {
|
||||
/// transactionId
|
||||
#[serde(rename = "transactionId", skip_serializing_if = "Option::is_none")]
|
||||
pub transaction_id: Option<String>,
|
||||
/// entryReference
|
||||
#[serde(rename = "entryReference", skip_serializing_if = "Option::is_none")]
|
||||
pub entry_reference: Option<String>,
|
||||
/// endToEndId
|
||||
#[serde(rename = "endToEndId", skip_serializing_if = "Option::is_none")]
|
||||
pub end_to_end_id: Option<String>,
|
||||
/// mandateId
|
||||
#[serde(rename = "mandateId", skip_serializing_if = "Option::is_none")]
|
||||
pub mandate_id: Option<String>,
|
||||
/// checkId
|
||||
#[serde(rename = "checkId", skip_serializing_if = "Option::is_none")]
|
||||
pub check_id: Option<String>,
|
||||
/// creditorId
|
||||
#[serde(rename = "creditorId", skip_serializing_if = "Option::is_none")]
|
||||
pub creditor_id: Option<String>,
|
||||
/// bookingDate
|
||||
#[serde(rename = "bookingDate", skip_serializing_if = "Option::is_none")]
|
||||
pub booking_date: Option<String>,
|
||||
/// valueDate
|
||||
#[serde(rename = "valueDate", skip_serializing_if = "Option::is_none")]
|
||||
pub value_date: Option<String>,
|
||||
/// bookingDateTime
|
||||
#[serde(rename = "bookingDateTime", skip_serializing_if = "Option::is_none")]
|
||||
pub booking_date_time: Option<String>,
|
||||
/// valueDateTime
|
||||
#[serde(rename = "valueDateTime", skip_serializing_if = "Option::is_none")]
|
||||
pub value_date_time: Option<String>,
|
||||
/// transactionAmount
|
||||
#[serde(rename = "transactionAmount")]
|
||||
pub transaction_amount: models::TransactionAmountSchema,
|
||||
#[serde(rename = "currencyExchange", skip_serializing_if = "Option::is_none")]
|
||||
pub currency_exchange: Option<Vec<models::CurrencyExchangeSchema>>,
|
||||
/// creditorName
|
||||
#[serde(rename = "creditorName", skip_serializing_if = "Option::is_none")]
|
||||
pub creditor_name: Option<String>,
|
||||
/// creditorAccount
|
||||
#[serde(rename = "creditorAccount", skip_serializing_if = "Option::is_none")]
|
||||
pub creditor_account: Option<models::AccountSchema>,
|
||||
/// ultimateCreditor
|
||||
#[serde(rename = "ultimateCreditor", skip_serializing_if = "Option::is_none")]
|
||||
pub ultimate_creditor: Option<String>,
|
||||
/// debtorName
|
||||
#[serde(rename = "debtorName", skip_serializing_if = "Option::is_none")]
|
||||
pub debtor_name: Option<String>,
|
||||
/// debtorAccount
|
||||
#[serde(rename = "debtorAccount", skip_serializing_if = "Option::is_none")]
|
||||
pub debtor_account: Option<models::AccountSchema>,
|
||||
/// ultimateDebtor
|
||||
#[serde(rename = "ultimateDebtor", skip_serializing_if = "Option::is_none")]
|
||||
pub ultimate_debtor: Option<String>,
|
||||
/// remittanceInformationUnstructured
|
||||
#[serde(rename = "remittanceInformationUnstructured", skip_serializing_if = "Option::is_none")]
|
||||
pub remittance_information_unstructured: Option<String>,
|
||||
/// remittanceInformationUnstructuredArray
|
||||
#[serde(rename = "remittanceInformationUnstructuredArray", skip_serializing_if = "Option::is_none")]
|
||||
pub remittance_information_unstructured_array: Option<Vec<String>>,
|
||||
/// remittanceInformationStructured
|
||||
#[serde(rename = "remittanceInformationStructured", skip_serializing_if = "Option::is_none")]
|
||||
pub remittance_information_structured: Option<String>,
|
||||
/// remittanceInformationStructuredArray
|
||||
#[serde(rename = "remittanceInformationStructuredArray", skip_serializing_if = "Option::is_none")]
|
||||
pub remittance_information_structured_array: Option<Vec<String>>,
|
||||
/// additionalInformation
|
||||
#[serde(rename = "additionalInformation", skip_serializing_if = "Option::is_none")]
|
||||
pub additional_information: Option<String>,
|
||||
/// purposeCode
|
||||
#[serde(rename = "purposeCode", skip_serializing_if = "Option::is_none")]
|
||||
pub purpose_code: Option<String>,
|
||||
/// bankTransactionCode
|
||||
#[serde(rename = "bankTransactionCode", skip_serializing_if = "Option::is_none")]
|
||||
pub bank_transaction_code: Option<String>,
|
||||
/// proprietaryBankTransactionCode
|
||||
#[serde(rename = "proprietaryBankTransactionCode", skip_serializing_if = "Option::is_none")]
|
||||
pub proprietary_bank_transaction_code: Option<String>,
|
||||
/// internalTransactionId
|
||||
#[serde(rename = "internalTransactionId", skip_serializing_if = "Option::is_none")]
|
||||
pub internal_transaction_id: Option<String>,
|
||||
}
|
||||
|
||||
impl TransactionSchema {
|
||||
/// TransactionSchema.
|
||||
pub fn new(transaction_amount: models::TransactionAmountSchema) -> TransactionSchema {
|
||||
TransactionSchema {
|
||||
transaction_id: None,
|
||||
entry_reference: None,
|
||||
end_to_end_id: None,
|
||||
mandate_id: None,
|
||||
check_id: None,
|
||||
creditor_id: None,
|
||||
booking_date: None,
|
||||
value_date: None,
|
||||
booking_date_time: None,
|
||||
value_date_time: None,
|
||||
transaction_amount,
|
||||
currency_exchange: None,
|
||||
creditor_name: None,
|
||||
creditor_account: None,
|
||||
ultimate_creditor: None,
|
||||
debtor_name: None,
|
||||
debtor_account: None,
|
||||
ultimate_debtor: None,
|
||||
remittance_information_unstructured: None,
|
||||
remittance_information_unstructured_array: None,
|
||||
remittance_information_structured: None,
|
||||
remittance_information_structured_array: None,
|
||||
additional_information: None,
|
||||
purpose_code: None,
|
||||
bank_transaction_code: None,
|
||||
proprietary_bank_transaction_code: None,
|
||||
internal_transaction_id: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user