From fe9998e08be9233a7d0707c358f5f695405067a4 Mon Sep 17 00:00:00 2001 From: Robot Date: Mon, 2 Sep 2024 16:17:05 +0000 Subject: [PATCH] Changes generated by 1e9efc19408c6e16f5ef87081de08e0251417efd --- README.md | 2 +- VERSION | 2 +- bank_authorisation_service.go | 4 ++-- bank_details_lookup_service.go | 2 +- billing_request_flow_service.go | 4 ++-- billing_request_service.go | 26 +++++++++++++------------- billing_request_template_service.go | 10 +++++----- block_service.go | 14 +++++++------- creditor_bank_account_service.go | 10 +++++----- creditor_service.go | 10 +++++----- currency_exchange_rate_service.go | 4 ++-- customer_bank_account_service.go | 12 ++++++------ customer_notification_service.go | 2 +- customer_service.go | 12 ++++++------ event_service.go | 6 +++--- export_service.go | 6 +++--- gc.go | 1 + instalment_schedule_service.go | 14 +++++++------- institution_service.go | 4 ++-- logo_service.go | 2 +- mandate_import_entry_service.go | 6 +++--- mandate_import_service.go | 8 ++++---- mandate_pdf_service.go | 2 +- mandate_service.go | 14 +++++++------- negative_balance_limit_service.go | 6 +++--- payer_authorisation_service.go | 10 +++++----- payer_theme_service.go | 2 +- payment_service.go | 14 +++++++------- payout_item_service.go | 4 ++-- payout_service.go | 8 ++++---- redirect_flow_service.go | 6 +++--- refund_service.go | 10 +++++----- scenario_simulator_service.go | 2 +- scheme_identifier_service.go | 8 ++++---- subscription_service.go | 16 ++++++++-------- tax_rate_service.go | 6 +++--- testdata/bank_authorisations.json | 4 ++-- testdata/billing_request_flows.json | 4 ++-- testdata/billing_requests.json | 24 ++++++++++++------------ testdata/blocks.json | 8 ++++---- testdata/creditors.json | 8 ++++---- testdata/currency_exchange_rates.json | 2 +- testdata/customer_notifications.json | 2 +- testdata/events.json | 4 ++-- testdata/instalment_schedules.json | 2 +- testdata/institutions.json | 2 +- testdata/mandates.json | 12 ++++++------ testdata/negative_balance_limits.json | 2 +- testdata/payer_authorisations.json | 10 +++++----- testdata/payments.json | 4 ++-- testdata/scheme_identifiers.json | 6 +++--- testdata/subscriptions.json | 4 ++-- testdata/tax_rates.json | 2 +- testdata/verification_details.json | 4 ++-- testdata/webhooks.json | 6 +++--- transferred_mandate_service.go | 2 +- useragent.go | 2 +- verification_detail_service.go | 6 +++--- webhook_service.go | 8 ++++---- 59 files changed, 199 insertions(+), 198 deletions(-) diff --git a/README.md b/README.md index f5aff0d..1df1c5b 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ toolchain will resolve and fetch the gocardless-pro-go module automatically. Alternatively, you can also explicitly `go get` the package into a project: ``` -go get -u github.com/gocardless/gocardless-pro-go@v3.11.0 +go get -u github.com/gocardless/gocardless-pro-go@v3.12.0 ``` ## Initializing the client diff --git a/VERSION b/VERSION index e0af123..87dbaa1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.11.0 \ No newline at end of file +3.12.0 \ No newline at end of file diff --git a/bank_authorisation_service.go b/bank_authorisation_service.go index 30f89cc..6c10a2e 100644 --- a/bank_authorisation_service.go +++ b/bank_authorisation_service.go @@ -97,7 +97,7 @@ func (s *BankAuthorisationServiceImpl) Create(ctx context.Context, p BankAuthori req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -179,7 +179,7 @@ func (s *BankAuthorisationServiceImpl) Get(ctx context.Context, identity string, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/bank_details_lookup_service.go b/bank_details_lookup_service.go index 27820ea..8d2931d 100644 --- a/bank_details_lookup_service.go +++ b/bank_details_lookup_service.go @@ -113,7 +113,7 @@ func (s *BankDetailsLookupServiceImpl) Create(ctx context.Context, p BankDetails req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/billing_request_flow_service.go b/billing_request_flow_service.go index be78a9b..73e9f9a 100644 --- a/billing_request_flow_service.go +++ b/billing_request_flow_service.go @@ -155,7 +155,7 @@ func (s *BillingRequestFlowServiceImpl) Create(ctx context.Context, p BillingReq req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -255,7 +255,7 @@ func (s *BillingRequestFlowServiceImpl) Initialise(ctx context.Context, identity req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/billing_request_service.go b/billing_request_service.go index 96dd3b8..c2b64b2 100644 --- a/billing_request_service.go +++ b/billing_request_service.go @@ -290,7 +290,7 @@ func (s *BillingRequestServiceImpl) Create(ctx context.Context, p BillingRequest req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -422,7 +422,7 @@ func (s *BillingRequestServiceImpl) CollectCustomerDetails(ctx context.Context, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -553,7 +553,7 @@ func (s *BillingRequestServiceImpl) CollectBankAccount(ctx context.Context, iden req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -655,7 +655,7 @@ func (s *BillingRequestServiceImpl) ConfirmPayerDetails(ctx context.Context, ide req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -755,7 +755,7 @@ func (s *BillingRequestServiceImpl) Fulfil(ctx context.Context, identity string, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -855,7 +855,7 @@ func (s *BillingRequestServiceImpl) Cancel(ctx context.Context, identity string, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -968,7 +968,7 @@ func (s *BillingRequestServiceImpl) List(ctx context.Context, p BillingRequestLi req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -1077,7 +1077,7 @@ func (c *BillingRequestListPagingIterator) Value(ctx context.Context) (*BillingR req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -1169,7 +1169,7 @@ func (s *BillingRequestServiceImpl) Get(ctx context.Context, identity string, op req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -1272,7 +1272,7 @@ func (s *BillingRequestServiceImpl) Notify(ctx context.Context, identity string, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -1371,7 +1371,7 @@ func (s *BillingRequestServiceImpl) Fallback(ctx context.Context, identity strin req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -1477,7 +1477,7 @@ func (s *BillingRequestServiceImpl) ChooseCurrency(ctx context.Context, identity req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -1577,7 +1577,7 @@ func (s *BillingRequestServiceImpl) SelectInstitution(ctx context.Context, ident req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/billing_request_template_service.go b/billing_request_template_service.go index ab5857d..b84c00c 100644 --- a/billing_request_template_service.go +++ b/billing_request_template_service.go @@ -109,7 +109,7 @@ func (s *BillingRequestTemplateServiceImpl) List(ctx context.Context, p BillingR req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -218,7 +218,7 @@ func (c *BillingRequestTemplateListPagingIterator) Value(ctx context.Context) (* req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -310,7 +310,7 @@ func (s *BillingRequestTemplateServiceImpl) Get(ctx context.Context, identity st req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -422,7 +422,7 @@ func (s *BillingRequestTemplateServiceImpl) Create(ctx context.Context, p Billin req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -534,7 +534,7 @@ func (s *BillingRequestTemplateServiceImpl) Update(ctx context.Context, identity req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/block_service.go b/block_service.go index 2e70035..a9cdb6c 100644 --- a/block_service.go +++ b/block_service.go @@ -95,7 +95,7 @@ func (s *BlockServiceImpl) Create(ctx context.Context, p BlockCreateParams, opts req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -177,7 +177,7 @@ func (s *BlockServiceImpl) Get(ctx context.Context, identity string, opts ...Req req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -290,7 +290,7 @@ func (s *BlockServiceImpl) List(ctx context.Context, p BlockListParams, opts ... req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -399,7 +399,7 @@ func (c *BlockListPagingIterator) Value(ctx context.Context) (*BlockListResult, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -494,7 +494,7 @@ func (s *BlockServiceImpl) Disable(ctx context.Context, identity string, opts .. req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -579,7 +579,7 @@ func (s *BlockServiceImpl) Enable(ctx context.Context, identity string, opts ... req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -700,7 +700,7 @@ func (s *BlockServiceImpl) BlockByRef(ctx context.Context, p BlockBlockByRefPara req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/creditor_bank_account_service.go b/creditor_bank_account_service.go index 7f63fa1..3a73f51 100644 --- a/creditor_bank_account_service.go +++ b/creditor_bank_account_service.go @@ -110,7 +110,7 @@ func (s *CreditorBankAccountServiceImpl) Create(ctx context.Context, p CreditorB req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -230,7 +230,7 @@ func (s *CreditorBankAccountServiceImpl) List(ctx context.Context, p CreditorBan req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -339,7 +339,7 @@ func (c *CreditorBankAccountListPagingIterator) Value(ctx context.Context) (*Cre req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -431,7 +431,7 @@ func (s *CreditorBankAccountServiceImpl) Get(ctx context.Context, identity strin req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -521,7 +521,7 @@ func (s *CreditorBankAccountServiceImpl) Disable(ctx context.Context, identity s req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/creditor_service.go b/creditor_service.go index 06b2d6b..260b96b 100644 --- a/creditor_service.go +++ b/creditor_service.go @@ -137,7 +137,7 @@ func (s *CreditorServiceImpl) Create(ctx context.Context, p CreditorCreateParams req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -255,7 +255,7 @@ func (s *CreditorServiceImpl) List(ctx context.Context, p CreditorListParams, op req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -364,7 +364,7 @@ func (c *CreditorListPagingIterator) Value(ctx context.Context) (*CreditorListRe req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -460,7 +460,7 @@ func (s *CreditorServiceImpl) Get(ctx context.Context, identity string, p Credit req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -578,7 +578,7 @@ func (s *CreditorServiceImpl) Update(ctx context.Context, identity string, p Cre req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/currency_exchange_rate_service.go b/currency_exchange_rate_service.go index 42783d1..d2c9d9f 100644 --- a/currency_exchange_rate_service.go +++ b/currency_exchange_rate_service.go @@ -95,7 +95,7 @@ func (s *CurrencyExchangeRateServiceImpl) List(ctx context.Context, p CurrencyEx req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -204,7 +204,7 @@ func (c *CurrencyExchangeRateListPagingIterator) Value(ctx context.Context) (*Cu req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/customer_bank_account_service.go b/customer_bank_account_service.go index 4bd3999..0d2b62f 100644 --- a/customer_bank_account_service.go +++ b/customer_bank_account_service.go @@ -123,7 +123,7 @@ func (s *CustomerBankAccountServiceImpl) Create(ctx context.Context, p CustomerB req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -243,7 +243,7 @@ func (s *CustomerBankAccountServiceImpl) List(ctx context.Context, p CustomerBan req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -352,7 +352,7 @@ func (c *CustomerBankAccountListPagingIterator) Value(ctx context.Context) (*Cus req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -444,7 +444,7 @@ func (s *CustomerBankAccountServiceImpl) Get(ctx context.Context, identity strin req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -542,7 +542,7 @@ func (s *CustomerBankAccountServiceImpl) Update(ctx context.Context, identity st req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -633,7 +633,7 @@ func (s *CustomerBankAccountServiceImpl) Disable(ctx context.Context, identity s req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/customer_notification_service.go b/customer_notification_service.go index 52891e2..b800278 100644 --- a/customer_notification_service.go +++ b/customer_notification_service.go @@ -97,7 +97,7 @@ func (s *CustomerNotificationServiceImpl) Handle(ctx context.Context, identity s req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/customer_service.go b/customer_service.go index cada900..dbfcc0e 100644 --- a/customer_service.go +++ b/customer_service.go @@ -114,7 +114,7 @@ func (s *CustomerServiceImpl) Create(ctx context.Context, p CustomerCreateParams req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -235,7 +235,7 @@ func (s *CustomerServiceImpl) List(ctx context.Context, p CustomerListParams, op req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -344,7 +344,7 @@ func (c *CustomerListPagingIterator) Value(ctx context.Context) (*CustomerListRe req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -436,7 +436,7 @@ func (s *CustomerServiceImpl) Get(ctx context.Context, identity string, opts ... req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -549,7 +549,7 @@ func (s *CustomerServiceImpl) Update(ctx context.Context, identity string, p Cus req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -654,7 +654,7 @@ func (s *CustomerServiceImpl) Remove(ctx context.Context, identity string, p Cus req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/event_service.go b/event_service.go index f1b97e7..973706b 100644 --- a/event_service.go +++ b/event_service.go @@ -167,7 +167,7 @@ func (s *EventServiceImpl) List(ctx context.Context, p EventListParams, opts ... req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -276,7 +276,7 @@ func (c *EventListPagingIterator) Value(ctx context.Context) (*EventListResult, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -368,7 +368,7 @@ func (s *EventServiceImpl) Get(ctx context.Context, identity string, opts ...Req req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/export_service.go b/export_service.go index 3a6e621..0c04432 100644 --- a/export_service.go +++ b/export_service.go @@ -67,7 +67,7 @@ func (s *ExportServiceImpl) Get(ctx context.Context, identity string, opts ...Re req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -174,7 +174,7 @@ func (s *ExportServiceImpl) List(ctx context.Context, p ExportListParams, opts . req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -283,7 +283,7 @@ func (c *ExportListPagingIterator) Value(ctx context.Context) (*ExportListResult req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/gc.go b/gc.go index d56236b..3ecd244 100644 --- a/gc.go +++ b/gc.go @@ -163,4 +163,5 @@ type ValidationError struct { type ErrorLinks struct { ConflictingResourceID string `json:"conflicting_resource_id"` + CustomerBankAccount string `json:"customer_bank_account"` } diff --git a/instalment_schedule_service.go b/instalment_schedule_service.go index 94dcc6e..6efb666 100644 --- a/instalment_schedule_service.go +++ b/instalment_schedule_service.go @@ -133,7 +133,7 @@ func (s *InstalmentScheduleServiceImpl) CreateWithDates(ctx context.Context, p I req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -265,7 +265,7 @@ func (s *InstalmentScheduleServiceImpl) CreateWithSchedule(ctx context.Context, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -386,7 +386,7 @@ func (s *InstalmentScheduleServiceImpl) List(ctx context.Context, p InstalmentSc req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -495,7 +495,7 @@ func (c *InstalmentScheduleListPagingIterator) Value(ctx context.Context) (*Inst req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -587,7 +587,7 @@ func (s *InstalmentScheduleServiceImpl) Get(ctx context.Context, identity string req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -684,7 +684,7 @@ func (s *InstalmentScheduleServiceImpl) Update(ctx context.Context, identity str req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -786,7 +786,7 @@ func (s *InstalmentScheduleServiceImpl) Cancel(ctx context.Context, identity str req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/institution_service.go b/institution_service.go index b5e610f..7cf8157 100644 --- a/institution_service.go +++ b/institution_service.go @@ -93,7 +93,7 @@ func (s *InstitutionServiceImpl) List(ctx context.Context, p InstitutionListPara req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -204,7 +204,7 @@ func (s *InstitutionServiceImpl) ListForBillingRequest(ctx context.Context, iden req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/logo_service.go b/logo_service.go index 95a35f9..7b9ef47 100644 --- a/logo_service.go +++ b/logo_service.go @@ -88,7 +88,7 @@ func (s *LogoServiceImpl) CreateForCreditor(ctx context.Context, p LogoCreateFor req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/mandate_import_entry_service.go b/mandate_import_entry_service.go index 4d05b0c..fd92b52 100644 --- a/mandate_import_entry_service.go +++ b/mandate_import_entry_service.go @@ -144,7 +144,7 @@ func (s *MandateImportEntryServiceImpl) Create(ctx context.Context, p MandateImp req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -261,7 +261,7 @@ func (s *MandateImportEntryServiceImpl) List(ctx context.Context, p MandateImpor req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -370,7 +370,7 @@ func (c *MandateImportEntryListPagingIterator) Value(ctx context.Context) (*Mand req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/mandate_import_service.go b/mandate_import_service.go index b5bc113..bb48e91 100644 --- a/mandate_import_service.go +++ b/mandate_import_service.go @@ -98,7 +98,7 @@ func (s *MandateImportServiceImpl) Create(ctx context.Context, p MandateImportCr req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -184,7 +184,7 @@ func (s *MandateImportServiceImpl) Get(ctx context.Context, identity string, p M req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -291,7 +291,7 @@ func (s *MandateImportServiceImpl) Submit(ctx context.Context, identity string, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -395,7 +395,7 @@ func (s *MandateImportServiceImpl) Cancel(ctx context.Context, identity string, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/mandate_pdf_service.go b/mandate_pdf_service.go index a907c29..f432de4 100644 --- a/mandate_pdf_service.go +++ b/mandate_pdf_service.go @@ -158,7 +158,7 @@ func (s *MandatePdfServiceImpl) Create(ctx context.Context, p MandatePdfCreatePa req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/mandate_service.go b/mandate_service.go index 228c0c6..31c95c9 100644 --- a/mandate_service.go +++ b/mandate_service.go @@ -127,7 +127,7 @@ func (s *MandateServiceImpl) Create(ctx context.Context, p MandateCreateParams, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -252,7 +252,7 @@ func (s *MandateServiceImpl) List(ctx context.Context, p MandateListParams, opts req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -361,7 +361,7 @@ func (c *MandateListPagingIterator) Value(ctx context.Context) (*MandateListResu req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -453,7 +453,7 @@ func (s *MandateServiceImpl) Get(ctx context.Context, identity string, opts ...R req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -550,7 +550,7 @@ func (s *MandateServiceImpl) Update(ctx context.Context, identity string, p Mand req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -654,7 +654,7 @@ func (s *MandateServiceImpl) Cancel(ctx context.Context, identity string, p Mand req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -764,7 +764,7 @@ func (s *MandateServiceImpl) Reinstate(ctx context.Context, identity string, p M req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/negative_balance_limit_service.go b/negative_balance_limit_service.go index 17777a4..4ba0e71 100644 --- a/negative_balance_limit_service.go +++ b/negative_balance_limit_service.go @@ -102,7 +102,7 @@ func (s *NegativeBalanceLimitServiceImpl) List(ctx context.Context, p NegativeBa req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -211,7 +211,7 @@ func (c *NegativeBalanceLimitListPagingIterator) Value(ctx context.Context) (*Ne req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -326,7 +326,7 @@ func (s *NegativeBalanceLimitServiceImpl) Create(ctx context.Context, p Negative req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/payer_authorisation_service.go b/payer_authorisation_service.go index c185f00..e55dd56 100644 --- a/payer_authorisation_service.go +++ b/payer_authorisation_service.go @@ -124,7 +124,7 @@ func (s *PayerAuthorisationServiceImpl) Get(ctx context.Context, identity string req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -266,7 +266,7 @@ func (s *PayerAuthorisationServiceImpl) Create(ctx context.Context, p PayerAutho req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -414,7 +414,7 @@ func (s *PayerAuthorisationServiceImpl) Update(ctx context.Context, identity str req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -502,7 +502,7 @@ func (s *PayerAuthorisationServiceImpl) Submit(ctx context.Context, identity str req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -601,7 +601,7 @@ func (s *PayerAuthorisationServiceImpl) Confirm(ctx context.Context, identity st req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/payer_theme_service.go b/payer_theme_service.go index f4f682e..23b947a 100644 --- a/payer_theme_service.go +++ b/payer_theme_service.go @@ -87,7 +87,7 @@ func (s *PayerThemeServiceImpl) CreateForCreditor(ctx context.Context, p PayerTh req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/payment_service.go b/payment_service.go index 60b7b02..3c811bf 100644 --- a/payment_service.go +++ b/payment_service.go @@ -129,7 +129,7 @@ func (s *PaymentServiceImpl) Create(ctx context.Context, p PaymentCreateParams, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -263,7 +263,7 @@ func (s *PaymentServiceImpl) List(ctx context.Context, p PaymentListParams, opts req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -372,7 +372,7 @@ func (c *PaymentListPagingIterator) Value(ctx context.Context) (*PaymentListResu req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -464,7 +464,7 @@ func (s *PaymentServiceImpl) Get(ctx context.Context, identity string, opts ...R req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -562,7 +562,7 @@ func (s *PaymentServiceImpl) Update(ctx context.Context, identity string, p Paym req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -666,7 +666,7 @@ func (s *PaymentServiceImpl) Cancel(ctx context.Context, identity string, p Paym req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -775,7 +775,7 @@ func (s *PaymentServiceImpl) Retry(ctx context.Context, identity string, p Payme req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/payout_item_service.go b/payout_item_service.go index e8a13c9..82dcf4e 100644 --- a/payout_item_service.go +++ b/payout_item_service.go @@ -114,7 +114,7 @@ func (s *PayoutItemServiceImpl) List(ctx context.Context, p PayoutItemListParams req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -223,7 +223,7 @@ func (c *PayoutItemListPagingIterator) Value(ctx context.Context) (*PayoutItemLi req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/payout_service.go b/payout_service.go index 3876dab..f18f74d 100644 --- a/payout_service.go +++ b/payout_service.go @@ -131,7 +131,7 @@ func (s *PayoutServiceImpl) List(ctx context.Context, p PayoutListParams, opts . req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -240,7 +240,7 @@ func (c *PayoutListPagingIterator) Value(ctx context.Context) (*PayoutListResult req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -334,7 +334,7 @@ func (s *PayoutServiceImpl) Get(ctx context.Context, identity string, opts ...Re req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -431,7 +431,7 @@ func (s *PayoutServiceImpl) Update(ctx context.Context, identity string, p Payou req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/redirect_flow_service.go b/redirect_flow_service.go index 149460f..101bc7f 100644 --- a/redirect_flow_service.go +++ b/redirect_flow_service.go @@ -131,7 +131,7 @@ func (s *RedirectFlowServiceImpl) Create(ctx context.Context, p RedirectFlowCrea req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -213,7 +213,7 @@ func (s *RedirectFlowServiceImpl) Get(ctx context.Context, identity string, opts req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -320,7 +320,7 @@ func (s *RedirectFlowServiceImpl) Complete(ctx context.Context, identity string, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/refund_service.go b/refund_service.go index 45f643a..eb1fa78 100644 --- a/refund_service.go +++ b/refund_service.go @@ -125,7 +125,7 @@ func (s *RefundServiceImpl) Create(ctx context.Context, p RefundCreateParams, op req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -246,7 +246,7 @@ func (s *RefundServiceImpl) List(ctx context.Context, p RefundListParams, opts . req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -355,7 +355,7 @@ func (c *RefundListPagingIterator) Value(ctx context.Context) (*RefundListResult req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -447,7 +447,7 @@ func (s *RefundServiceImpl) Get(ctx context.Context, identity string, opts ...Re req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -544,7 +544,7 @@ func (s *RefundServiceImpl) Update(ctx context.Context, identity string, p Refun req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/scenario_simulator_service.go b/scenario_simulator_service.go index f2e091b..314cfa9 100644 --- a/scenario_simulator_service.go +++ b/scenario_simulator_service.go @@ -82,7 +82,7 @@ func (s *ScenarioSimulatorServiceImpl) Run(ctx context.Context, identity string, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/scheme_identifier_service.go b/scheme_identifier_service.go index 429aba0..3abf3d3 100644 --- a/scheme_identifier_service.go +++ b/scheme_identifier_service.go @@ -145,7 +145,7 @@ func (s *SchemeIdentifierServiceImpl) Create(ctx context.Context, p SchemeIdenti req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -256,7 +256,7 @@ func (s *SchemeIdentifierServiceImpl) List(ctx context.Context, p SchemeIdentifi req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -365,7 +365,7 @@ func (c *SchemeIdentifierListPagingIterator) Value(ctx context.Context) (*Scheme req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -457,7 +457,7 @@ func (s *SchemeIdentifierServiceImpl) Get(ctx context.Context, identity string, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/subscription_service.go b/subscription_service.go index 57e7b4e..3ee0495 100644 --- a/subscription_service.go +++ b/subscription_service.go @@ -131,7 +131,7 @@ func (s *SubscriptionServiceImpl) Create(ctx context.Context, p SubscriptionCrea req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -253,7 +253,7 @@ func (s *SubscriptionServiceImpl) List(ctx context.Context, p SubscriptionListPa req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -362,7 +362,7 @@ func (c *SubscriptionListPagingIterator) Value(ctx context.Context) (*Subscripti req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -454,7 +454,7 @@ func (s *SubscriptionServiceImpl) Get(ctx context.Context, identity string, opts req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -579,7 +579,7 @@ func (s *SubscriptionServiceImpl) Update(ctx context.Context, identity string, p req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -718,7 +718,7 @@ func (s *SubscriptionServiceImpl) Pause(ctx context.Context, identity string, p req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -832,7 +832,7 @@ func (s *SubscriptionServiceImpl) Resume(ctx context.Context, identity string, p req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -936,7 +936,7 @@ func (s *SubscriptionServiceImpl) Cancel(ctx context.Context, identity string, p req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) diff --git a/tax_rate_service.go b/tax_rate_service.go index bfa47f7..58c6a33 100644 --- a/tax_rate_service.go +++ b/tax_rate_service.go @@ -97,7 +97,7 @@ func (s *TaxRateServiceImpl) List(ctx context.Context, p TaxRateListParams, opts req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -206,7 +206,7 @@ func (c *TaxRateListPagingIterator) Value(ctx context.Context) (*TaxRateListResu req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -298,7 +298,7 @@ func (s *TaxRateServiceImpl) Get(ctx context.Context, identity string, opts ...R req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/testdata/bank_authorisations.json b/testdata/bank_authorisations.json index 7a1df83..7888223 100644 --- a/testdata/bank_authorisations.json +++ b/testdata/bank_authorisations.json @@ -1,8 +1,8 @@ { "create": { - "body": {"bank_authorisations":{"authorisation_type":"example authorisation_type 8081","authorised_at":"2020-01-01T12:00:00.000Z","created_at":"2024-08-23T07:09:06.272Z","expires_at":"2024-08-23T07:09:06.272Z","id":"BAU123","last_visited_at":"2020-01-01T12:00:00.000Z","links":{"billing_request":"BRQ123","institution":"monzo"},"qr_code_url":"https://pay.gocardless.com/obauth/BAU123/qr_code","redirect_uri":"https://my-website.com/abc/callback","url":"https://pay.gocardless.com/obauth/BAU123"}} + "body": {"bank_authorisations":{"authorisation_type":"example authorisation_type 8081","authorised_at":"2020-01-01T12:00:00.000Z","created_at":"2024-09-02T16:14:50.132Z","expires_at":"2024-09-02T16:14:50.132Z","id":"BAU123","last_visited_at":"2020-01-01T12:00:00.000Z","links":{"billing_request":"BRQ123","institution":"monzo"},"qr_code_url":"https://pay.gocardless.com/obauth/BAU123/qr_code","redirect_uri":"https://my-website.com/abc/callback","url":"https://pay.gocardless.com/obauth/BAU123"}} }, "get": { - "body": {"bank_authorisations":{"authorisation_type":"example authorisation_type 7887","authorised_at":"2020-01-01T12:00:00.000Z","created_at":"2024-08-23T07:09:06.272Z","expires_at":"2024-08-23T07:09:06.272Z","id":"BAU123","last_visited_at":"2020-01-01T12:00:00.000Z","links":{"billing_request":"BRQ123","institution":"monzo"},"qr_code_url":"https://pay.gocardless.com/obauth/BAU123/qr_code","redirect_uri":"https://my-website.com/abc/callback","url":"https://pay.gocardless.com/obauth/BAU123"}} + "body": {"bank_authorisations":{"authorisation_type":"example authorisation_type 7887","authorised_at":"2020-01-01T12:00:00.000Z","created_at":"2024-09-02T16:14:50.132Z","expires_at":"2024-09-02T16:14:50.132Z","id":"BAU123","last_visited_at":"2020-01-01T12:00:00.000Z","links":{"billing_request":"BRQ123","institution":"monzo"},"qr_code_url":"https://pay.gocardless.com/obauth/BAU123/qr_code","redirect_uri":"https://my-website.com/abc/callback","url":"https://pay.gocardless.com/obauth/BAU123"}} } } \ No newline at end of file diff --git a/testdata/billing_request_flows.json b/testdata/billing_request_flows.json index 1eb1c17..c8fe6ac 100644 --- a/testdata/billing_request_flows.json +++ b/testdata/billing_request_flows.json @@ -1,8 +1,8 @@ { "create": { - "body": {"billing_request_flows":{"authorisation_url":"https://monzo.com/abc-123-things","auto_fulfil":true,"created_at":"2024-08-23T07:09:06.276Z","customer_details_captured":false,"exit_uri":"https://my-website.com/abc/callback","expires_at":"2024-08-23T07:09:06.276Z","id":"BRF123","language":"en","links":{"billing_request":"BRQ123"},"lock_bank_account":false,"lock_currency":true,"lock_customer_details":true,"prefilled_bank_account":{"account_type":"savings"},"prefilled_customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"redirect_uri":"https://my-website.com/abc/callback","session_token":"sesh_123","show_redirect_buttons":true,"show_success_redirect_button":false}} + "body": {"billing_request_flows":{"authorisation_url":"https://monzo.com/abc-123-things","auto_fulfil":true,"created_at":"2024-09-02T16:14:50.135Z","customer_details_captured":false,"exit_uri":"https://my-website.com/abc/callback","expires_at":"2024-09-02T16:14:50.135Z","id":"BRF123","language":"en","links":{"billing_request":"BRQ123"},"lock_bank_account":false,"lock_currency":true,"lock_customer_details":true,"prefilled_bank_account":{"account_type":"savings"},"prefilled_customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"redirect_uri":"https://my-website.com/abc/callback","session_token":"sesh_123","show_redirect_buttons":true,"show_success_redirect_button":false}} }, "initialise": { - "body": {"billing_request_flows":{"authorisation_url":"https://monzo.com/abc-123-things","auto_fulfil":false,"created_at":"2024-08-23T07:09:06.276Z","customer_details_captured":false,"exit_uri":"https://my-website.com/abc/callback","expires_at":"2024-08-23T07:09:06.276Z","id":"BRF123","language":"en","links":{"billing_request":"BRQ123"},"lock_bank_account":false,"lock_currency":false,"lock_customer_details":true,"prefilled_bank_account":{"account_type":"savings"},"prefilled_customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"redirect_uri":"https://my-website.com/abc/callback","session_token":"sesh_123","show_redirect_buttons":false,"show_success_redirect_button":true}} + "body": {"billing_request_flows":{"authorisation_url":"https://monzo.com/abc-123-things","auto_fulfil":true,"created_at":"2024-09-02T16:14:50.135Z","customer_details_captured":false,"exit_uri":"https://my-website.com/abc/callback","expires_at":"2024-09-02T16:14:50.135Z","id":"BRF123","language":"en","links":{"billing_request":"BRQ123"},"lock_bank_account":true,"lock_currency":false,"lock_customer_details":false,"prefilled_bank_account":{"account_type":"savings"},"prefilled_customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"redirect_uri":"https://my-website.com/abc/callback","session_token":"sesh_123","show_redirect_buttons":false,"show_success_redirect_button":false}} } } \ No newline at end of file diff --git a/testdata/billing_requests.json b/testdata/billing_requests.json index 1185f82..670a7d5 100644 --- a/testdata/billing_requests.json +++ b/testdata/billing_requests.json @@ -1,38 +1,38 @@ { "create": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 5466"],"bank_authorisation":{"adapter":"example adapter 495","authorisation_type":"example authorisation_type 9106"},"collect_customer_details":{"default_country_code":"example default_country_code 1528","incomplete_fields":{"customer":["example customer 8047"],"customer_billing_detail":["example customer_billing_detail 6258"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 1847","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 4059","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 1211","constraints":{"end_date":"example end_date 2540","max_amount_per_payment":456,"periodic_limits":[{"alignment":"calendar","max_payments":8511,"max_total_amount":694,"period":"day"}],"start_date":"example start_date 4425"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 3274"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"when_available"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 3237"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"gambling","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 8287"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 9947"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 495"],"bank_authorisation":{"adapter":"example adapter 3237","authorisation_type":"example authorisation_type 9106"},"collect_customer_details":{"default_country_code":"example default_country_code 5466","incomplete_fields":{"customer":["example customer 1528"],"customer_billing_detail":["example customer_billing_detail 6258"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 2888","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 8287","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 3274","constraints":{"end_date":"example end_date 5089","max_amount_per_payment":2540,"periodic_limits":[{"alignment":"creation_date","max_payments":694,"max_total_amount":3300,"period":"week"}],"start_date":"example start_date 8162"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 4425"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 4059"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"salary","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 9947"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 8047"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "collect_customer_details": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 4147"],"bank_authorisation":{"adapter":"example adapter 4078","authorisation_type":"example authorisation_type 4324"},"collect_customer_details":{"default_country_code":"example default_country_code 5194","incomplete_fields":{"customer":["example customer 563"],"customer_billing_detail":["example customer_billing_detail 2433"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 7189","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 2199","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 5026","constraints":{"end_date":"example end_date 5356","max_amount_per_payment":3015,"periodic_limits":[{"alignment":"creation_date","max_payments":7387,"max_total_amount":408,"period":"week"}],"start_date":"example start_date 5429"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 631"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 6159"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"tax","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 3721"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 1957"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 6159"],"bank_authorisation":{"adapter":"example adapter 7189","authorisation_type":"example authorisation_type 2199"},"collect_customer_details":{"default_country_code":"example default_country_code 1353","incomplete_fields":{"customer":["example customer 1957"],"customer_billing_detail":["example customer_billing_detail 3721"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 3015","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 2790","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 6831","constraints":{"end_date":"example end_date 3090","max_amount_per_payment":5194,"periodic_limits":[{"alignment":"creation_date","max_payments":631,"max_total_amount":1737,"period":"week"}],"start_date":"example start_date 6413"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 5356"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"minimum"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 2433"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"utility","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 4078"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 4147"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "collect_bank_account": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 5094"],"bank_authorisation":{"adapter":"example adapter 9718","authorisation_type":"example authorisation_type 5447"},"collect_customer_details":{"default_country_code":"example default_country_code 9002","incomplete_fields":{"customer":["example customer 1563"],"customer_billing_detail":["example customer_billing_detail 4376"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 6420","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 7996","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 5561","constraints":{"end_date":"example end_date 9703","max_amount_per_payment":9355,"periodic_limits":[{"alignment":"calendar","max_payments":2605,"max_total_amount":8510,"period":"week"}],"start_date":"example start_date 4538"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 9828"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"when_available"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 7463"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"gambling","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 4783"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 7202"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 9355"],"bank_authorisation":{"adapter":"example adapter 4538","authorisation_type":"example authorisation_type 9703"},"collect_customer_details":{"default_country_code":"example default_country_code 3000","incomplete_fields":{"customer":["example customer 8705"],"customer_billing_detail":["example customer_billing_detail 2888"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 156","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 2605","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 4783","constraints":{"end_date":"example end_date 5746","max_amount_per_payment":1563,"periodic_limits":[{"alignment":"calendar","max_payments":9002,"max_total_amount":4376,"period":"month"}],"start_date":"example start_date 5094"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 9828"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 7996"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"utility","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 8510"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 2451"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "confirm_payer_details": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 953"],"bank_authorisation":{"adapter":"example adapter 1137","authorisation_type":"example authorisation_type 3133"},"collect_customer_details":{"default_country_code":"example default_country_code 9241","incomplete_fields":{"customer":["example customer 3033"],"customer_billing_detail":["example customer_billing_detail 59"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 7425","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 1598","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 9336","constraints":{"end_date":"example end_date 9107","max_amount_per_payment":7940,"periodic_limits":[{"alignment":"creation_date","max_payments":9843,"max_total_amount":552,"period":"year"}],"start_date":"example start_date 2546"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 8643"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"when_available"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 9757"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"dependant_support","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 8010"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 3687"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 8010"],"bank_authorisation":{"adapter":"example adapter 9757","authorisation_type":"example authorisation_type 3687"},"collect_customer_details":{"default_country_code":"example default_country_code 7425","incomplete_fields":{"customer":["example customer 1515"],"customer_billing_detail":["example customer_billing_detail 1351"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 2205","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 1598","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 3033","constraints":{"end_date":"example end_date 8878","max_amount_per_payment":9336,"periodic_limits":[{"alignment":"calendar","max_payments":9107,"max_total_amount":2546,"period":"year"}],"start_date":"example start_date 2002"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 3891"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"always"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 1137"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"dependant_support","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 9241"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 3133"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "fulfil": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 2066"],"bank_authorisation":{"adapter":"example adapter 1270","authorisation_type":"example authorisation_type 493"},"collect_customer_details":{"default_country_code":"example default_country_code 2079","incomplete_fields":{"customer":["example customer 3981"],"customer_billing_detail":["example customer_billing_detail 5802"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 5894","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 9271","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 5285","constraints":{"end_date":"example end_date 6137","max_amount_per_payment":8553,"periodic_limits":[{"alignment":"creation_date","max_payments":1297,"max_total_amount":5384,"period":"month"}],"start_date":"example start_date 9267"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 3410"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"when_available"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 9819"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"dependant_support","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 6052"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 8981"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 8981"],"bank_authorisation":{"adapter":"example adapter 6052","authorisation_type":"example authorisation_type 7175"},"collect_customer_details":{"default_country_code":"example default_country_code 493","incomplete_fields":{"customer":["example customer 3086"],"customer_billing_detail":["example customer_billing_detail 9819"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 3098","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 8553","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 5802","constraints":{"end_date":"example end_date 1297","max_amount_per_payment":9267,"periodic_limits":[{"alignment":"calendar","max_payments":5894,"max_total_amount":9271,"period":"month"}],"start_date":"example start_date 5384"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 2066"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"always"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 3410"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"personal","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 3632"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 8590"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "cancel": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 8844"],"bank_authorisation":{"adapter":"example adapter 4801","authorisation_type":"example authorisation_type 90"},"collect_customer_details":{"default_country_code":"example default_country_code 364","incomplete_fields":{"customer":["example customer 2305"],"customer_billing_detail":["example customer_billing_detail 9183"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 3749","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 1387","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 4547","constraints":{"end_date":"example end_date 7051","max_amount_per_payment":8076,"periodic_limits":[{"alignment":"calendar","max_payments":1532,"max_total_amount":540,"period":"flexible"}],"start_date":"example start_date 5786"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 1224"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"minimum"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 4384"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"government","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 5710"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 4885"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 2305"],"bank_authorisation":{"adapter":"example adapter 8844","authorisation_type":"example authorisation_type 364"},"collect_customer_details":{"default_country_code":"example default_country_code 9183","incomplete_fields":{"customer":["example customer 4801"],"customer_billing_detail":["example customer_billing_detail 90"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 3640","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 8076","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 4547","constraints":{"end_date":"example end_date 5710","max_amount_per_payment":1387,"periodic_limits":[{"alignment":"calendar","max_payments":2818,"max_total_amount":1528,"period":"flexible"}],"start_date":"example start_date 7903"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 3612"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"minimum"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 7839"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"utility","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 5786"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 7051"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "list": { - "body": {"billing_requests":[{"created_at":"2015-01-01T12:00:00.000Z","id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 440","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 4535","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 1968","constraints":{"end_date":"example end_date 3767","max_amount_per_payment":3231,"periodic_limits":[{"alignment":"calendar","max_payments":8154,"max_total_amount":7578,"period":"year"}],"start_date":"example start_date 7342"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 2258"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"minimum"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 1166"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"status":"pending"},{"created_at":"2015-01-01T12:00:00.000Z","id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 8247","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 8010","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 4415","constraints":{"end_date":"example end_date 9371","max_amount_per_payment":3039,"periodic_limits":[{"alignment":"creation_date","max_payments":9700,"max_total_amount":9513,"period":"day"}],"start_date":"example start_date 6720"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 4657"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"when_available"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 870"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"status":"pending"}],"meta":{"cursors":{"after":"example after 4162","before":"example before 565"},"limit":50}} + "body": {"billing_requests":[{"created_at":"2015-01-01T12:00:00.000Z","id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 4535","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 440","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 3767","constraints":{"end_date":"example end_date 7743","max_amount_per_payment":7578,"periodic_limits":[{"alignment":"calendar","max_payments":8154,"max_total_amount":7342,"period":"year"}],"start_date":"example start_date 4208"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 1968"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"when_available"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 1166"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"status":"pending"},{"created_at":"2015-01-01T12:00:00.000Z","id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 8010","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 8247","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 9371","constraints":{"end_date":"example end_date 6720","max_amount_per_payment":783,"periodic_limits":[{"alignment":"calendar","max_payments":3039,"max_total_amount":9700,"period":"year"}],"start_date":"example start_date 1359"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 4904"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 2984"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"status":"pending"}],"meta":{"cursors":{"after":"example after 4162","before":"example before 565"},"limit":50}} }, "get": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 9456"],"bank_authorisation":{"adapter":"example adapter 6200","authorisation_type":"example authorisation_type 8666"},"collect_customer_details":{"default_country_code":"example default_country_code 2048","incomplete_fields":{"customer":["example customer 6756"],"customer_billing_detail":["example customer_billing_detail 5695"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 7577","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 8831","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 5399","constraints":{"end_date":"example end_date 1162","max_amount_per_payment":3447,"periodic_limits":[{"alignment":"creation_date","max_payments":1888,"max_total_amount":292,"period":"year"}],"start_date":"example start_date 9888"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 5320"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"minimum"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 1092"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"mortgage","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 2019"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 7807"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 7886"],"bank_authorisation":{"adapter":"example adapter 3447","authorisation_type":"example authorisation_type 292"},"collect_customer_details":{"default_country_code":"example default_country_code 5320","incomplete_fields":{"customer":["example customer 5399"],"customer_billing_detail":["example customer_billing_detail 1162"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 8318","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 3756","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 2048","constraints":{"end_date":"example end_date 5695","max_amount_per_payment":8666,"periodic_limits":[{"alignment":"calendar","max_payments":6629,"max_total_amount":9456,"period":"day"}],"start_date":"example start_date 8831"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 6756"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 2019"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"gambling","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 9888"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 9103"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "notify": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 260"],"bank_authorisation":{"adapter":"example adapter 2632","authorisation_type":"example authorisation_type 2520"},"collect_customer_details":{"default_country_code":"example default_country_code 8470","incomplete_fields":{"customer":["example customer 8996"],"customer_billing_detail":["example customer_billing_detail 9386"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 6157","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 8652","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 1181","constraints":{"end_date":"example end_date 2954","max_amount_per_payment":3922,"periodic_limits":[{"alignment":"calendar","max_payments":60,"max_total_amount":1661,"period":"flexible"}],"start_date":"example start_date 1079"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 9551"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"minimum"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 417"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"pension","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 1853"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 2181"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1079"],"bank_authorisation":{"adapter":"example adapter 2954","authorisation_type":"example authorisation_type 1464"},"collect_customer_details":{"default_country_code":"example default_country_code 2420","incomplete_fields":{"customer":["example customer 1661"],"customer_billing_detail":["example customer_billing_detail 60"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 260","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 2520","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 8675","constraints":{"end_date":"example end_date 1853","max_amount_per_payment":8795,"periodic_limits":[{"alignment":"creation_date","max_payments":417,"max_total_amount":8996,"period":"day"}],"start_date":"example start_date 2181"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 6157"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"minimum"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 2060"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"pension","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 1757"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 1181"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "fallback": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1533"],"bank_authorisation":{"adapter":"example adapter 7039","authorisation_type":"example authorisation_type 4637"},"collect_customer_details":{"default_country_code":"example default_country_code 5561","incomplete_fields":{"customer":["example customer 2804"],"customer_billing_detail":["example customer_billing_detail 6685"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 421","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 2390","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 1719","constraints":{"end_date":"example end_date 9284","max_amount_per_payment":3173,"periodic_limits":[{"alignment":"calendar","max_payments":8662,"max_total_amount":1040,"period":"flexible"}],"start_date":"example start_date 6000"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 1215"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 8070"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"government","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 2869"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 574"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 5740"],"bank_authorisation":{"adapter":"example adapter 1040","authorisation_type":"example authorisation_type 8662"},"collect_customer_details":{"default_country_code":"example default_country_code 6000","incomplete_fields":{"customer":["example customer 9284"],"customer_billing_detail":["example customer_billing_detail 3173"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 2869","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 574","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 5014","constraints":{"end_date":"example end_date 4637","max_amount_per_payment":1533,"periodic_limits":[{"alignment":"creation_date","max_payments":2804,"max_total_amount":5561,"period":"flexible"}],"start_date":"example start_date 1215"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 7039"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"minimum"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 6443"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"gambling","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 2390"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 421"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "choose_currency": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 5265"],"bank_authorisation":{"adapter":"example adapter 8682","authorisation_type":"example authorisation_type 3479"},"collect_customer_details":{"default_country_code":"example default_country_code 4231","incomplete_fields":{"customer":["example customer 6592"],"customer_billing_detail":["example customer_billing_detail 129"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 6117","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 8151","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 7420","constraints":{"end_date":"example end_date 2174","max_amount_per_payment":1237,"periodic_limits":[{"alignment":"calendar","max_payments":1606,"max_total_amount":7293,"period":"flexible"}],"start_date":"example start_date 2395"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 1544"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"minimum"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 855"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"personal","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 371"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 8622"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1237"],"bank_authorisation":{"adapter":"example adapter 2395","authorisation_type":"example authorisation_type 2174"},"collect_customer_details":{"default_country_code":"example default_country_code 3524","incomplete_fields":{"customer":["example customer 7293"],"customer_billing_detail":["example customer_billing_detail 1606"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 7420","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 8622","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 6117","constraints":{"end_date":"example end_date 129","max_amount_per_payment":4231,"periodic_limits":[{"alignment":"creation_date","max_payments":8721,"max_total_amount":5343,"period":"week"}],"start_date":"example start_date 6592"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 8151"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"always"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 3472"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"loan","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 3352"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 9648"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "select_institution": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1657"],"bank_authorisation":{"adapter":"example adapter 3374","authorisation_type":"example authorisation_type 6039"},"collect_customer_details":{"default_country_code":"example default_country_code 9723","incomplete_fields":{"customer":["example customer 6724"],"customer_billing_detail":["example customer_billing_detail 7587"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 259","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 3546","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 8284","constraints":{"end_date":"example end_date 5528","max_amount_per_payment":1053,"periodic_limits":[{"alignment":"calendar","max_payments":8408,"max_total_amount":9867,"period":"flexible"}],"start_date":"example start_date 7008"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 6774"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 2286"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"utility","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 4658"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 6114"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 259"],"bank_authorisation":{"adapter":"example adapter 7587","authorisation_type":"example authorisation_type 1657"},"collect_customer_details":{"default_country_code":"example default_country_code 3546","incomplete_fields":{"customer":["example customer 9723"],"customer_billing_detail":["example customer_billing_detail 6724"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 2286","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 4467","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 5166","constraints":{"end_date":"example end_date 7008","max_amount_per_payment":5528,"periodic_limits":[{"alignment":"calendar","max_payments":6774,"max_total_amount":3653,"period":"day"}],"start_date":"example start_date 8408"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 9867"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 6039"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"salary","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_account_token":"bat_f975ab3c-ecee-47a1-9590-5bb1d56fa113","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 6537"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 106"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} } } \ No newline at end of file diff --git a/testdata/blocks.json b/testdata/blocks.json index 82d8729..dcc87f4 100644 --- a/testdata/blocks.json +++ b/testdata/blocks.json @@ -6,15 +6,15 @@ "body": {"blocks":{"active":true,"block_type":"example block_type 6861","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 7418","reason_type":"example reason_type 8602","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}} }, "list": { - "body": {"blocks":[{"active":true,"block_type":"example block_type 8345","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 7653","reason_type":"example reason_type 7871","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"},{"active":true,"block_type":"example block_type 8240","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 9081","reason_type":"example reason_type 2120","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}],"meta":{"cursors":{"after":"example after 7276","before":"example before 4405"},"limit":50}} + "body": {"blocks":[{"active":true,"block_type":"example block_type 8345","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 7653","reason_type":"example reason_type 7871","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"},{"active":true,"block_type":"example block_type 8240","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 9081","reason_type":"example reason_type 2120","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}],"meta":{"cursors":{"after":"example after 4405","before":"example before 7276"},"limit":50}} }, "disable": { - "body": {"blocks":{"active":true,"block_type":"example block_type 1466","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 1509","reason_type":"example reason_type 556","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}} + "body": {"blocks":{"active":true,"block_type":"example block_type 1509","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 556","reason_type":"example reason_type 1466","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}} }, "enable": { - "body": {"blocks":{"active":true,"block_type":"example block_type 7695","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 4834","reason_type":"example reason_type 580","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}} + "body": {"blocks":{"active":true,"block_type":"example block_type 4834","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 580","reason_type":"example reason_type 7695","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}} }, "block_by_ref": { - "body": {"blocks":[{"active":true,"block_type":"example block_type 1478","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 4267","reason_type":"example reason_type 8477","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"},{"active":true,"block_type":"example block_type 4993","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 2175","reason_type":"example reason_type 3380","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}],"meta":{"cursors":{"after":"example after 2631","before":"example before 3808"},"limit":50}} + "body": {"blocks":[{"active":true,"block_type":"example block_type 8477","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 1478","reason_type":"example reason_type 4267","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"},{"active":true,"block_type":"example block_type 2175","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 3380","reason_type":"example reason_type 4993","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}],"meta":{"cursors":{"after":"example after 2631","before":"example before 3808"},"limit":50}} } } \ No newline at end of file diff --git a/testdata/creditors.json b/testdata/creditors.json index 425ffa6..e01e325 100644 --- a/testdata/creditors.json +++ b/testdata/creditors.json @@ -1,14 +1,14 @@ { "create": { - "body": {"creditors":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 8558","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 8265","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 2884","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 442","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}} + "body": {"creditors":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 8265","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 8558","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 2884","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 442","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}} }, "list": { - "body": {"creditors":[{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 6972","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 9673","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 3162","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 9023","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"},{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 9253","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 9158","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 5527","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 496","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}],"meta":{"cursors":{"after":"example after 5513","before":"example before 5048"},"limit":50}} + "body": {"creditors":[{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 9023","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 3162","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 6972","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 9673","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"},{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 9253","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 9158","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 5527","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 496","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}],"meta":{"cursors":{"after":"example after 5513","before":"example before 5048"},"limit":50}} }, "get": { - "body": {"creditors":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 3740","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 9731","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 1306","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 2574","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}} + "body": {"creditors":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 3740","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 9731","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 2574","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 1306","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}} }, "update": { - "body": {"creditors":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 5402","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 2677","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 2332","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 8531","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}} + "body": {"creditors":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 8531","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 5402","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 2677","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 2332","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}} } } \ No newline at end of file diff --git a/testdata/currency_exchange_rates.json b/testdata/currency_exchange_rates.json index 5ee31c9..2ba2571 100644 --- a/testdata/currency_exchange_rates.json +++ b/testdata/currency_exchange_rates.json @@ -1,5 +1,5 @@ { "list": { - "body": {"currency_exchange_rates":[{"rate":"1.1234567890","source":"GBP","target":"EUR","time":"2014-01-01T12:00:00Z"},{"rate":"1.1234567890","source":"GBP","target":"EUR","time":"2014-01-01T12:00:00Z"}],"meta":{"cursors":{"after":"example after 2686","before":"example before 4330"},"limit":50}} + "body": {"currency_exchange_rates":[{"rate":"1.1234567890","source":"GBP","target":"EUR","time":"2014-01-01T12:00:00Z"},{"rate":"1.1234567890","source":"GBP","target":"EUR","time":"2014-01-01T12:00:00Z"}],"meta":{"cursors":{"after":"example after 4330","before":"example before 2686"},"limit":50}} } } \ No newline at end of file diff --git a/testdata/customer_notifications.json b/testdata/customer_notifications.json index 4be5315..cd287a8 100644 --- a/testdata/customer_notifications.json +++ b/testdata/customer_notifications.json @@ -1,5 +1,5 @@ { "handle": { - "body": {"customer_notifications":{"action_taken":"example action_taken 6494","action_taken_at":"2024-08-23T07:09:06.281Z","action_taken_by":"example action_taken_by 4806","id":"PCN123","links":{"customer":"CU123","event":"EV123","mandate":"MD123","payment":"PM123","refund":"RF123","subscription":"SB123"},"type":"payment_created"}} + "body": {"customer_notifications":{"action_taken":"example action_taken 4806","action_taken_at":"2024-09-02T16:14:50.141Z","action_taken_by":"example action_taken_by 6494","id":"PCN123","links":{"customer":"CU123","event":"EV123","mandate":"MD123","payment":"PM123","refund":"RF123","subscription":"SB123"},"type":"payment_created"}} } } \ No newline at end of file diff --git a/testdata/events.json b/testdata/events.json index d5df49b..bae65a6 100644 --- a/testdata/events.json +++ b/testdata/events.json @@ -1,8 +1,8 @@ { "list": { - "body": {"events":[{"action":"cancelled","created_at":"2014-01-01T12:00:00.000Z","customer_notifications":[{"deadline":"2024-08-23T07:09:06.282Z","id":"PCN123","mandatory":true,"type":"example type 8999"}],"details":{"bank_account_id":"BA123","cause":"bank_account_disabled","currency":"GBP","description":"Customer's bank account closed","item_count":10,"not_retried_reason":"failure_filter_applied","origin":"bank","property":"fx_payout_currency","reason_code":"ADDACS-B","scheme":"bacs","will_attempt_retry":true},"id":"EV123","links":{"bank_authorisation":"BAU123","billing_request":"BRQ123","billing_request_flow":"BRF123","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","instalment_schedule":"IS123","mandate":"MD123","mandate_request_mandate":"MD123","new_customer_bank_account":"BA123","new_mandate":"MD123","organisation":"OR123","parent_event":"EV123","payer_authorisation":"PAU123","payment":"PM123","payment_request_payment":"PM123","payout":"PO123","previous_customer_bank_account":"BA123","refund":"RF123","scheme_identifier":"SU123","subscription":"SB123"},"metadata":{},"resource_metadata":{},"resource_type":"mandates"},{"action":"cancelled","created_at":"2014-01-01T12:00:00.000Z","customer_notifications":[{"deadline":"2024-08-23T07:09:06.283Z","id":"PCN123","mandatory":true,"type":"example type 1420"}],"details":{"bank_account_id":"BA123","cause":"bank_account_disabled","currency":"GBP","description":"Customer's bank account closed","item_count":10,"not_retried_reason":"failure_filter_applied","origin":"bank","property":"fx_payout_currency","reason_code":"ADDACS-B","scheme":"bacs","will_attempt_retry":true},"id":"EV123","links":{"bank_authorisation":"BAU123","billing_request":"BRQ123","billing_request_flow":"BRF123","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","instalment_schedule":"IS123","mandate":"MD123","mandate_request_mandate":"MD123","new_customer_bank_account":"BA123","new_mandate":"MD123","organisation":"OR123","parent_event":"EV123","payer_authorisation":"PAU123","payment":"PM123","payment_request_payment":"PM123","payout":"PO123","previous_customer_bank_account":"BA123","refund":"RF123","scheme_identifier":"SU123","subscription":"SB123"},"metadata":{},"resource_metadata":{},"resource_type":"mandates"}],"meta":{"cursors":{"after":"example after 4007","before":"example before 7759"},"limit":50}} + "body": {"events":[{"action":"cancelled","created_at":"2014-01-01T12:00:00.000Z","customer_notifications":[{"deadline":"2024-09-02T16:14:50.142Z","id":"PCN123","mandatory":true,"type":"example type 4024"}],"details":{"bank_account_id":"BA123","cause":"bank_account_disabled","currency":"GBP","description":"Customer's bank account closed","item_count":10,"not_retried_reason":"failure_filter_applied","origin":"bank","property":"fx_payout_currency","reason_code":"ADDACS-B","scheme":"bacs","will_attempt_retry":true},"id":"EV123","links":{"bank_authorisation":"BAU123","billing_request":"BRQ123","billing_request_flow":"BRF123","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","instalment_schedule":"IS123","mandate":"MD123","mandate_request_mandate":"MD123","new_customer_bank_account":"BA123","new_mandate":"MD123","organisation":"OR123","parent_event":"EV123","payer_authorisation":"PAU123","payment":"PM123","payment_request_payment":"PM123","payout":"PO123","previous_customer_bank_account":"BA123","refund":"RF123","scheme_identifier":"SU123","subscription":"SB123"},"metadata":{},"resource_metadata":{},"resource_type":"mandates"},{"action":"cancelled","created_at":"2014-01-01T12:00:00.000Z","customer_notifications":[{"deadline":"2024-09-02T16:14:50.142Z","id":"PCN123","mandatory":true,"type":"example type 1420"}],"details":{"bank_account_id":"BA123","cause":"bank_account_disabled","currency":"GBP","description":"Customer's bank account closed","item_count":10,"not_retried_reason":"failure_filter_applied","origin":"bank","property":"fx_payout_currency","reason_code":"ADDACS-B","scheme":"bacs","will_attempt_retry":true},"id":"EV123","links":{"bank_authorisation":"BAU123","billing_request":"BRQ123","billing_request_flow":"BRF123","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","instalment_schedule":"IS123","mandate":"MD123","mandate_request_mandate":"MD123","new_customer_bank_account":"BA123","new_mandate":"MD123","organisation":"OR123","parent_event":"EV123","payer_authorisation":"PAU123","payment":"PM123","payment_request_payment":"PM123","payout":"PO123","previous_customer_bank_account":"BA123","refund":"RF123","scheme_identifier":"SU123","subscription":"SB123"},"metadata":{},"resource_metadata":{},"resource_type":"mandates"}],"meta":{"cursors":{"after":"example after 4007","before":"example before 7759"},"limit":50}} }, "get": { - "body": {"events":{"action":"cancelled","created_at":"2014-01-01T12:00:00.000Z","customer_notifications":[{"deadline":"2024-08-23T07:09:06.283Z","id":"PCN123","mandatory":true,"type":"example type 7124"}],"details":{"bank_account_id":"BA123","cause":"bank_account_disabled","currency":"GBP","description":"Customer's bank account closed","item_count":10,"not_retried_reason":"failure_filter_applied","origin":"bank","property":"fx_payout_currency","reason_code":"ADDACS-B","scheme":"bacs","will_attempt_retry":true},"id":"EV123","links":{"bank_authorisation":"BAU123","billing_request":"BRQ123","billing_request_flow":"BRF123","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","instalment_schedule":"IS123","mandate":"MD123","mandate_request_mandate":"MD123","new_customer_bank_account":"BA123","new_mandate":"MD123","organisation":"OR123","parent_event":"EV123","payer_authorisation":"PAU123","payment":"PM123","payment_request_payment":"PM123","payout":"PO123","previous_customer_bank_account":"BA123","refund":"RF123","scheme_identifier":"SU123","subscription":"SB123"},"metadata":{},"resource_metadata":{},"resource_type":"mandates"}} + "body": {"events":{"action":"cancelled","created_at":"2014-01-01T12:00:00.000Z","customer_notifications":[{"deadline":"2024-09-02T16:14:50.142Z","id":"PCN123","mandatory":true,"type":"example type 7124"}],"details":{"bank_account_id":"BA123","cause":"bank_account_disabled","currency":"GBP","description":"Customer's bank account closed","item_count":10,"not_retried_reason":"failure_filter_applied","origin":"bank","property":"fx_payout_currency","reason_code":"ADDACS-B","scheme":"bacs","will_attempt_retry":true},"id":"EV123","links":{"bank_authorisation":"BAU123","billing_request":"BRQ123","billing_request_flow":"BRF123","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","instalment_schedule":"IS123","mandate":"MD123","mandate_request_mandate":"MD123","new_customer_bank_account":"BA123","new_mandate":"MD123","organisation":"OR123","parent_event":"EV123","payer_authorisation":"PAU123","payment":"PM123","payment_request_payment":"PM123","payout":"PO123","previous_customer_bank_account":"BA123","refund":"RF123","scheme_identifier":"SU123","subscription":"SB123"},"metadata":{},"resource_metadata":{},"resource_type":"mandates"}} } } \ No newline at end of file diff --git a/testdata/instalment_schedules.json b/testdata/instalment_schedules.json index 18abd1b..6ce4160 100644 --- a/testdata/instalment_schedules.json +++ b/testdata/instalment_schedules.json @@ -6,7 +6,7 @@ "body": {"instalment_schedules":{"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"IS123","links":{"customer":"CU123","mandate":"MD123","payments":["PM123","PM456"]},"metadata":{},"name":"Invoice 4404","payment_errors":{"0":[{"field":"charge_date","message":"must be on or after mandate's next_possible_customer_charge_date"}]},"status":"active","total_amount":1000}} }, "list": { - "body": {"instalment_schedules":[{"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"IS123","links":{"customer":"CU123","mandate":"MD123","payments":["PM123","PM456"]},"metadata":{},"name":"Invoice 4404","payment_errors":{"0":[{"field":"charge_date","message":"must be on or after mandate's next_possible_customer_charge_date"}]},"status":"active","total_amount":1000},{"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"IS123","links":{"customer":"CU123","mandate":"MD123","payments":["PM123","PM456"]},"metadata":{},"name":"Invoice 4404","payment_errors":{"0":[{"field":"charge_date","message":"must be on or after mandate's next_possible_customer_charge_date"}]},"status":"active","total_amount":1000}],"meta":{"cursors":{"after":"example after 5740","before":"example before 8089"},"limit":50}} + "body": {"instalment_schedules":[{"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"IS123","links":{"customer":"CU123","mandate":"MD123","payments":["PM123","PM456"]},"metadata":{},"name":"Invoice 4404","payment_errors":{"0":[{"field":"charge_date","message":"must be on or after mandate's next_possible_customer_charge_date"}]},"status":"active","total_amount":1000},{"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"IS123","links":{"customer":"CU123","mandate":"MD123","payments":["PM123","PM456"]},"metadata":{},"name":"Invoice 4404","payment_errors":{"0":[{"field":"charge_date","message":"must be on or after mandate's next_possible_customer_charge_date"}]},"status":"active","total_amount":1000}],"meta":{"cursors":{"after":"example after 8089","before":"example before 5740"},"limit":50}} }, "get": { "body": {"instalment_schedules":{"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"IS123","links":{"customer":"CU123","mandate":"MD123","payments":["PM123","PM456"]},"metadata":{},"name":"Invoice 4404","payment_errors":{"0":[{"field":"charge_date","message":"must be on or after mandate's next_possible_customer_charge_date"}]},"status":"active","total_amount":1000}} diff --git a/testdata/institutions.json b/testdata/institutions.json index ca57dc4..e4391b6 100644 --- a/testdata/institutions.json +++ b/testdata/institutions.json @@ -1,6 +1,6 @@ { "list": { - "body": {"institutions":[{"autocompletes_collect_bank_account":true,"country_code":"GB","icon_url":"https://gocardless/assets/icons/monzo","id":"monzo","logo_url":"https://gocardless/assets/logos/monzo","name":"VAT"},{"autocompletes_collect_bank_account":true,"country_code":"GB","icon_url":"https://gocardless/assets/icons/monzo","id":"monzo","logo_url":"https://gocardless/assets/logos/monzo","name":"VAT"}],"meta":{"cursors":{"after":"example after 5814","before":"example before 545"},"limit":50}} + "body": {"institutions":[{"autocompletes_collect_bank_account":true,"country_code":"GB","icon_url":"https://gocardless/assets/icons/monzo","id":"monzo","logo_url":"https://gocardless/assets/logos/monzo","name":"VAT"},{"autocompletes_collect_bank_account":true,"country_code":"GB","icon_url":"https://gocardless/assets/icons/monzo","id":"monzo","logo_url":"https://gocardless/assets/logos/monzo","name":"VAT"}],"meta":{"cursors":{"after":"example after 545","before":"example before 5814"},"limit":50}} }, "list_for_billing_request": { "body": {"institutions":[{"autocompletes_collect_bank_account":true,"country_code":"GB","icon_url":"https://gocardless/assets/icons/monzo","id":"monzo","logo_url":"https://gocardless/assets/logos/monzo","name":"VAT"},{"autocompletes_collect_bank_account":true,"country_code":"GB","icon_url":"https://gocardless/assets/icons/monzo","id":"monzo","logo_url":"https://gocardless/assets/logos/monzo","name":"VAT"}],"meta":{"cursors":{"after":"example after 1581","before":"example before 8339"},"limit":50}} diff --git a/testdata/mandates.json b/testdata/mandates.json index c31317d..5f0af12 100644 --- a/testdata/mandates.json +++ b/testdata/mandates.json @@ -1,20 +1,20 @@ { "create": { - "body": {"mandates":{"authorisation_source":"web","consent_parameters":{"end_date":"example end_date 5629","max_amount_per_payment":4203,"periods":[{"max_amount_per_period":7092,"max_payments_per_period":8372,"period":"day"}],"start_date":"example start_date 6985"},"consent_type":"example consent_type 3131","created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"direct","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} + "body": {"mandates":{"authorisation_source":"web","consent_parameters":{"end_date":"example end_date 1695","max_amount_per_payment":3131,"periods":[{"max_amount_per_period":6985,"max_payments_per_period":5629,"period":"week"}],"start_date":"example start_date 4203"},"consent_type":"example consent_type 8372","created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"managed","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} }, "list": { - "body": {"mandates":[{"authorisation_source":"web","consent_parameters":{"end_date":"example end_date 2205","max_amount_per_payment":973,"periods":[{"max_amount_per_period":3017,"max_payments_per_period":9759,"period":"month"}],"start_date":"example start_date 3780"},"consent_type":"example consent_type 1406","created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"managed","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"},{"authorisation_source":"paper","consent_parameters":{"end_date":"example end_date 2474","max_amount_per_payment":3544,"periods":[{"max_amount_per_period":894,"max_payments_per_period":3922,"period":"year"}],"start_date":"example start_date 8033"},"consent_type":"example consent_type 30","created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"managed","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}],"meta":{"cursors":{"after":"example after 9914","before":"example before 5395"},"limit":50}} + "body": {"mandates":[{"authorisation_source":"web","consent_parameters":{"end_date":"example end_date 2205","max_amount_per_payment":973,"periods":[{"max_amount_per_period":9759,"max_payments_per_period":7807,"period":"month"}],"start_date":"example start_date 3780"},"consent_type":"example consent_type 1406","created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"direct","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"},{"authorisation_source":"paper","consent_parameters":{"end_date":"example end_date 7574","max_amount_per_payment":8610,"periods":[{"max_amount_per_period":3922,"max_payments_per_period":1723,"period":"flexible"}],"start_date":"example start_date 8033"},"consent_type":"example consent_type 3544","created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"managed","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}],"meta":{"cursors":{"after":"example after 5395","before":"example before 9914"},"limit":50}} }, "get": { - "body": {"mandates":{"authorisation_source":"web","consent_parameters":{"end_date":"example end_date 671","max_amount_per_payment":2523,"periods":[{"max_amount_per_period":909,"max_payments_per_period":9277,"period":"day"}],"start_date":"example start_date 5645"},"consent_type":"example consent_type 7208","created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"managed","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} + "body": {"mandates":{"authorisation_source":"web","consent_parameters":{"end_date":"example end_date 909","max_amount_per_payment":9277,"periods":[{"max_amount_per_period":671,"max_payments_per_period":7208,"period":"day"}],"start_date":"example start_date 7650"},"consent_type":"example consent_type 2523","created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"managed","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} }, "update": { - "body": {"mandates":{"authorisation_source":"telephone","consent_parameters":{"end_date":"example end_date 3921","max_amount_per_payment":3354,"periods":[{"max_amount_per_period":9326,"max_payments_per_period":4721,"period":"month"}],"start_date":"example start_date 10"},"consent_type":"example consent_type 8879","created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"direct","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} + "body": {"mandates":{"authorisation_source":"telephone","consent_parameters":{"end_date":"example end_date 3354","max_amount_per_payment":4721,"periods":[{"max_amount_per_period":7587,"max_payments_per_period":9326,"period":"day"}],"start_date":"example start_date 3921"},"consent_type":"example consent_type 1267","created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"direct","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} }, "cancel": { - "body": {"mandates":{"authorisation_source":"paper","consent_parameters":{"end_date":"example end_date 5596","max_amount_per_payment":9466,"periods":[{"max_amount_per_period":4401,"max_payments_per_period":8140,"period":"flexible"}],"start_date":"example start_date 3973"},"consent_type":"example consent_type 9488","created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"direct","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} + "body": {"mandates":{"authorisation_source":"telephone","consent_parameters":{"end_date":"example end_date 8140","max_amount_per_payment":3973,"periods":[{"max_amount_per_period":8374,"max_payments_per_period":9488,"period":"day"}],"start_date":"example start_date 4401"},"consent_type":"example consent_type 5596","created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"direct","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} }, "reinstate": { - "body": {"mandates":{"authorisation_source":"web","consent_parameters":{"end_date":"example end_date 9921","max_amount_per_payment":7913,"periods":[{"max_amount_per_period":9959,"max_payments_per_period":325,"period":"flexible"}],"start_date":"example start_date 1446"},"consent_type":"example consent_type 6110","created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"managed","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} + "body": {"mandates":{"authorisation_source":"web","consent_parameters":{"end_date":"example end_date 9921","max_amount_per_payment":7913,"periods":[{"max_amount_per_period":9959,"max_payments_per_period":325,"period":"flexible"}],"start_date":"example start_date 1446"},"consent_type":"example consent_type 6872","created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"managed","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} } } \ No newline at end of file diff --git a/testdata/negative_balance_limits.json b/testdata/negative_balance_limits.json index 81279f4..6d0944e 100644 --- a/testdata/negative_balance_limits.json +++ b/testdata/negative_balance_limits.json @@ -1,6 +1,6 @@ { "list": { - "body": {"meta":{"cursors":{"after":"example after 6487","before":"example before 1436"},"limit":50},"negative_balance_limits":[{"balance_limit":10000,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"NBL123","links":{"creator_user":"US123","creditor":"CR123"}},{"balance_limit":10000,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"NBL123","links":{"creator_user":"US123","creditor":"CR123"}}]} + "body": {"meta":{"cursors":{"after":"example after 1436","before":"example before 6487"},"limit":50},"negative_balance_limits":[{"balance_limit":10000,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"NBL123","links":{"creator_user":"US123","creditor":"CR123"}},{"balance_limit":10000,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"NBL123","links":{"creator_user":"US123","creditor":"CR123"}}]} }, "create": { "body": {"negative_balance_limits":{"balance_limit":10000,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"NBL123","links":{"creator_user":"US123","creditor":"CR123"}}} diff --git a/testdata/payer_authorisations.json b/testdata/payer_authorisations.json index 58bb803..b8cedaa 100644 --- a/testdata/payer_authorisations.json +++ b/testdata/payer_authorisations.json @@ -1,17 +1,17 @@ { "get": { - "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 1488","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 1925","message":"example message 9026","request_pointer":"example request_pointer 8223"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} + "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 1488","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 9026","message":"example message 8223","request_pointer":"example request_pointer 1925"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} }, "create": { - "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 9219","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 3114","message":"example message 8730","request_pointer":"example request_pointer 9200"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} + "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 8730","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 9219","message":"example message 9200","request_pointer":"example request_pointer 3114"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} }, "update": { - "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 3176","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 1300","message":"example message 8051","request_pointer":"example request_pointer 9434"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} + "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 9434","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 1300","message":"example message 8051","request_pointer":"example request_pointer 3176"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} }, "submit": { - "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 8619","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 7045","message":"example message 5666","request_pointer":"example request_pointer 913"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} + "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 8619","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 5666","message":"example message 913","request_pointer":"example request_pointer 7045"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} }, "confirm": { - "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 7694","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 2239","message":"example message 541","request_pointer":"example request_pointer 5642"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} + "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 541","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 5642","message":"example message 2239","request_pointer":"example request_pointer 7694"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} } } \ No newline at end of file diff --git a/testdata/payments.json b/testdata/payments.json index 7143726..2dcdb46 100644 --- a/testdata/payments.json +++ b/testdata/payments.json @@ -3,7 +3,7 @@ "body": {"payments":{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":false,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":false,"status":"submitted"}} }, "list": { - "body": {"meta":{"cursors":{"after":"example after 4560","before":"example before 864"},"limit":50},"payments":[{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":true,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":false,"status":"submitted"},{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":false,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":false,"status":"submitted"}]} + "body": {"meta":{"cursors":{"after":"example after 864","before":"example before 4560"},"limit":50},"payments":[{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":true,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":false,"status":"submitted"},{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":false,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":false,"status":"submitted"}]} }, "get": { "body": {"payments":{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":false,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":false,"status":"submitted"}} @@ -12,7 +12,7 @@ "body": {"payments":{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":true,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":true,"status":"submitted"}} }, "cancel": { - "body": {"payments":{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":false,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":true,"status":"submitted"}} + "body": {"payments":{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":true,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":false,"status":"submitted"}} }, "retry": { "body": {"payments":{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":true,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":false,"status":"submitted"}} diff --git a/testdata/scheme_identifiers.json b/testdata/scheme_identifiers.json index 2e168a6..05d08f5 100644 --- a/testdata/scheme_identifiers.json +++ b/testdata/scheme_identifiers.json @@ -1,11 +1,11 @@ { "create": { - "body": {"scheme_identifiers":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 3740","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 7627","region":"Greater London","scheme":"bacs","status":"pending"}} + "body": {"scheme_identifiers":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 7627","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 3740","region":"Greater London","scheme":"bacs","status":"pending"}} }, "list": { - "body": {"meta":{"cursors":{"after":"example after 9969","before":"example before 4647"},"limit":50},"scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 1552","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 4534","region":"Greater London","scheme":"bacs","status":"pending"},{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 7037","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 3928","region":"Greater London","scheme":"bacs","status":"pending"}]} + "body": {"meta":{"cursors":{"after":"example after 1552","before":"example before 4534"},"limit":50},"scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 7037","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 3928","region":"Greater London","scheme":"bacs","status":"pending"},{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 9969","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 4647","region":"Greater London","scheme":"bacs","status":"pending"}]} }, "get": { - "body": {"scheme_identifiers":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 6346","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 712","region":"Greater London","scheme":"bacs","status":"pending"}} + "body": {"scheme_identifiers":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 712","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 6346","region":"Greater London","scheme":"bacs","status":"pending"}} } } \ No newline at end of file diff --git a/testdata/subscriptions.json b/testdata/subscriptions.json index d29540c..176992c 100644 --- a/testdata/subscriptions.json +++ b/testdata/subscriptions.json @@ -3,7 +3,7 @@ "body": {"subscriptions":{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":false,"payment_reference":"GOLDPLAN","retry_if_possible":false,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]}} }, "list": { - "body": {"meta":{"cursors":{"after":"example after 2442","before":"example before 7764"},"limit":50},"subscriptions":[{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":false,"payment_reference":"GOLDPLAN","retry_if_possible":false,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]},{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":false,"payment_reference":"GOLDPLAN","retry_if_possible":false,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]}]} + "body": {"meta":{"cursors":{"after":"example after 6314","before":"example before 9356"},"limit":50},"subscriptions":[{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":false,"payment_reference":"GOLDPLAN","retry_if_possible":false,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]},{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":true,"payment_reference":"GOLDPLAN","retry_if_possible":true,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]}]} }, "get": { "body": {"subscriptions":{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":true,"payment_reference":"GOLDPLAN","retry_if_possible":false,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]}} @@ -12,7 +12,7 @@ "body": {"subscriptions":{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":false,"payment_reference":"GOLDPLAN","retry_if_possible":false,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]}} }, "pause": { - "body": {"subscriptions":{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":false,"payment_reference":"GOLDPLAN","retry_if_possible":true,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]}} + "body": {"subscriptions":{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":true,"payment_reference":"GOLDPLAN","retry_if_possible":false,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]}} }, "resume": { "body": {"subscriptions":{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":false,"payment_reference":"GOLDPLAN","retry_if_possible":false,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]}} diff --git a/testdata/tax_rates.json b/testdata/tax_rates.json index 0594b65..b28f945 100644 --- a/testdata/tax_rates.json +++ b/testdata/tax_rates.json @@ -1,6 +1,6 @@ { "list": { - "body": {"meta":{"cursors":{"after":"example after 7328","before":"example before 1757"},"limit":50},"tax_rates":[{"end_date":"2014-01-01","id":"GB_VAT_1","jurisdiction":"GBP","percentage":"20.0","start_date":"2014-01-01","type":"VAT"},{"end_date":"2014-01-01","id":"GB_VAT_1","jurisdiction":"GBP","percentage":"20.0","start_date":"2014-01-01","type":"VAT"}]} + "body": {"meta":{"cursors":{"after":"example after 1757","before":"example before 7328"},"limit":50},"tax_rates":[{"end_date":"2014-01-01","id":"GB_VAT_1","jurisdiction":"GBP","percentage":"20.0","start_date":"2014-01-01","type":"VAT"},{"end_date":"2014-01-01","id":"GB_VAT_1","jurisdiction":"GBP","percentage":"20.0","start_date":"2014-01-01","type":"VAT"}]} }, "get": { "body": {"tax_rates":{"end_date":"2014-01-01","id":"GB_VAT_1","jurisdiction":"GBP","percentage":"20.0","start_date":"2014-01-01","type":"VAT"}} diff --git a/testdata/verification_details.json b/testdata/verification_details.json index ad31724..a248d73 100644 --- a/testdata/verification_details.json +++ b/testdata/verification_details.json @@ -1,8 +1,8 @@ { "create": { - "body": {"verification_details":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 1350","city":"London","company_number":"07495895","description":"Wine and cheese seller","directors":[{"city":"London","country_code":"GB","date_of_birth":"1986-02-19","family_name":"Jones","given_name":"Tom","postal_code":"EC1V 7LQ","street":"example street 4721"}],"links":{"creditor":"CR123"},"name":"Acme Limited","postal_code":"EC1V 7LQ"}} + "body": {"verification_details":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 4721","city":"London","company_number":"07495895","description":"Wine and cheese seller","directors":[{"city":"London","country_code":"GB","date_of_birth":"1986-02-19","family_name":"Jones","given_name":"Tom","postal_code":"EC1V 7LQ","street":"example street 1350"}],"links":{"creditor":"CR123"},"name":"Acme Limited","postal_code":"EC1V 7LQ"}} }, "list": { - "body": {"meta":{"cursors":{"after":"example after 5540","before":"example before 1315"},"limit":50},"verification_details":[{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 4492","city":"London","company_number":"07495895","description":"Wine and cheese seller","directors":[{"city":"London","country_code":"GB","date_of_birth":"1986-02-19","family_name":"Jones","given_name":"Tom","postal_code":"EC1V 7LQ","street":"example street 342"}],"links":{"creditor":"CR123"},"name":"Acme Limited","postal_code":"EC1V 7LQ"},{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 1898","city":"London","company_number":"07495895","description":"Wine and cheese seller","directors":[{"city":"London","country_code":"GB","date_of_birth":"1986-02-19","family_name":"Jones","given_name":"Tom","postal_code":"EC1V 7LQ","street":"example street 6591"}],"links":{"creditor":"CR123"},"name":"Acme Limited","postal_code":"EC1V 7LQ"}]} + "body": {"meta":{"cursors":{"after":"example after 1898","before":"example before 6591"},"limit":50},"verification_details":[{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 1315","city":"London","company_number":"07495895","description":"Wine and cheese seller","directors":[{"city":"London","country_code":"GB","date_of_birth":"1986-02-19","family_name":"Jones","given_name":"Tom","postal_code":"EC1V 7LQ","street":"example street 5540"}],"links":{"creditor":"CR123"},"name":"Acme Limited","postal_code":"EC1V 7LQ"},{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 4492","city":"London","company_number":"07495895","description":"Wine and cheese seller","directors":[{"city":"London","country_code":"GB","date_of_birth":"1986-02-19","family_name":"Jones","given_name":"Tom","postal_code":"EC1V 7LQ","street":"example street 342"}],"links":{"creditor":"CR123"},"name":"Acme Limited","postal_code":"EC1V 7LQ"}]} } } \ No newline at end of file diff --git a/testdata/webhooks.json b/testdata/webhooks.json index ea26c41..7582f1d 100644 --- a/testdata/webhooks.json +++ b/testdata/webhooks.json @@ -1,11 +1,11 @@ { "list": { - "body": {"meta":{"cursors":{"after":"example after 3401","before":"example before 5707"},"limit":50},"webhooks":[{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":false,"request_body":"example request_body 6516","request_headers":{},"response_body":"example response_body 3755","response_body_truncated":false,"response_code":6452,"response_headers":{},"response_headers_content_truncated":true,"response_headers_count_truncated":true,"successful":false,"url":"https://example.com/webhooks"},{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":false,"request_body":"example request_body 8098","request_headers":{},"response_body":"example response_body 1590","response_body_truncated":true,"response_code":3882,"response_headers":{},"response_headers_content_truncated":true,"response_headers_count_truncated":false,"successful":false,"url":"https://example.com/webhooks"}]} + "body": {"meta":{"cursors":{"after":"example after 7182","before":"example before 2370"},"limit":50},"webhooks":[{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":false,"request_body":"example request_body 5707","request_headers":{},"response_body":"example response_body 3755","response_body_truncated":true,"response_code":2283,"response_headers":{},"response_headers_content_truncated":true,"response_headers_count_truncated":false,"successful":false,"url":"https://example.com/webhooks"},{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":false,"request_body":"example request_body 8098","request_headers":{},"response_body":"example response_body 3414","response_body_truncated":false,"response_code":7694,"response_headers":{},"response_headers_content_truncated":false,"response_headers_count_truncated":true,"successful":true,"url":"https://example.com/webhooks"}]} }, "get": { - "body": {"webhooks":{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":true,"request_body":"example request_body 4476","request_headers":{},"response_body":"example response_body 2243","response_body_truncated":true,"response_code":4196,"response_headers":{},"response_headers_content_truncated":true,"response_headers_count_truncated":false,"successful":false,"url":"https://example.com/webhooks"}} + "body": {"webhooks":{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":false,"request_body":"example request_body 2243","request_headers":{},"response_body":"example response_body 8268","response_body_truncated":false,"response_code":8825,"response_headers":{},"response_headers_content_truncated":true,"response_headers_count_truncated":false,"successful":true,"url":"https://example.com/webhooks"}} }, "retry": { - "body": {"webhooks":{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":true,"request_body":"example request_body 4121","request_headers":{},"response_body":"example response_body 8937","response_body_truncated":true,"response_code":3709,"response_headers":{},"response_headers_content_truncated":false,"response_headers_count_truncated":true,"successful":true,"url":"https://example.com/webhooks"}} + "body": {"webhooks":{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":false,"request_body":"example request_body 8937","request_headers":{},"response_body":"example response_body 4121","response_body_truncated":true,"response_code":7251,"response_headers":{},"response_headers_content_truncated":true,"response_headers_count_truncated":true,"successful":false,"url":"https://example.com/webhooks"}} } } \ No newline at end of file diff --git a/transferred_mandate_service.go b/transferred_mandate_service.go index 6213a20..dbc927e 100644 --- a/transferred_mandate_service.go +++ b/transferred_mandate_service.go @@ -74,7 +74,7 @@ func (s *TransferredMandateServiceImpl) TransferredMandates(ctx context.Context, req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/useragent.go b/useragent.go index 8cdf930..ae70907 100644 --- a/useragent.go +++ b/useragent.go @@ -7,7 +7,7 @@ import ( const ( // client library version - clientLibVersion = "3.11.0" + clientLibVersion = "3.12.0" ) var userAgent string diff --git a/verification_detail_service.go b/verification_detail_service.go index b03b389..5dcfc96 100644 --- a/verification_detail_service.go +++ b/verification_detail_service.go @@ -125,7 +125,7 @@ func (s *VerificationDetailServiceImpl) Create(ctx context.Context, p Verificati req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -235,7 +235,7 @@ func (s *VerificationDetailServiceImpl) List(ctx context.Context, p Verification req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -344,7 +344,7 @@ func (c *VerificationDetailListPagingIterator) Value(ctx context.Context) (*Veri req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/webhook_service.go b/webhook_service.go index 156bb13..849509c 100644 --- a/webhook_service.go +++ b/webhook_service.go @@ -114,7 +114,7 @@ func (s *WebhookServiceImpl) List(ctx context.Context, p WebhookListParams, opts req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -223,7 +223,7 @@ func (c *WebhookListPagingIterator) Value(ctx context.Context) (*WebhookListResu req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -315,7 +315,7 @@ func (s *WebhookServiceImpl) Get(ctx context.Context, identity string, opts ...R req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -398,7 +398,7 @@ func (s *WebhookServiceImpl) Retry(ctx context.Context, identity string, opts .. req.Header.Set("Authorization", "Bearer "+s.config.Token()) req.Header.Set("GoCardless-Version", "2015-07-06") req.Header.Set("GoCardless-Client-Library", "gocardless-pro-go") - req.Header.Set("GoCardless-Client-Version", "3.11.0") + req.Header.Set("GoCardless-Client-Version", "3.12.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey)