From c9ebe4765984fe768075625bf7488cdd3d0f9e77 Mon Sep 17 00:00:00 2001 From: Robot Date: Tue, 24 Sep 2024 11:17:27 +0000 Subject: [PATCH] Changes generated by 53f8eff567aba63ac7a0b9fbd6aa7466e6e53cbe --- README.md | 4 ++-- 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 +++--- go.mod | 2 +- 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 | 6 +++--- testdata/creditors.json | 8 ++++---- testdata/customer_notifications.json | 2 +- testdata/customers.json | 2 +- testdata/events.json | 4 ++-- testdata/exports.json | 2 +- testdata/institutions.json | 2 +- testdata/mandate_import_entries.json | 2 +- testdata/mandates.json | 12 ++++++------ testdata/payer_authorisations.json | 6 +++--- testdata/payments.json | 2 +- testdata/payouts.json | 2 +- testdata/refunds.json | 2 +- testdata/scheme_identifiers.json | 6 +++--- testdata/subscriptions.json | 8 ++++---- 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 ++++---- 60 files changed, 199 insertions(+), 199 deletions(-) diff --git a/README.md b/README.md index df28f312..9212f2bb 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ go mod tidy Then, reference gocardless-pro-go in a Go program with `import`: ``` go import ( - gocardless "github.com/gocardless/gocardless-pro-go/v4" + gocardless "github.com/gocardless/gocardless-pro-go/v3" ) ``` @@ -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@v4.0.0 +go get -u github.com/gocardless/gocardless-pro-go@v3.7.0 ``` ## Initializing the client diff --git a/VERSION b/VERSION index 0c89fc92..240bba90 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.0.0 \ No newline at end of file +3.7.0 \ No newline at end of file diff --git a/bank_authorisation_service.go b/bank_authorisation_service.go index 3939dcb9..39d92eec 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 257bc7bd..8c18c646 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 63c601f4..a0b71f34 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 d8e47cbf..3fb9f747 100644 --- a/billing_request_service.go +++ b/billing_request_service.go @@ -323,7 +323,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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -455,7 +455,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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -586,7 +586,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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -688,7 +688,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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -788,7 +788,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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -888,7 +888,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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -1001,7 +1001,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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -1110,7 +1110,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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -1202,7 +1202,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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { @@ -1305,7 +1305,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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -1404,7 +1404,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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -1510,7 +1510,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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey) @@ -1610,7 +1610,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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 fdb90db1..9d259886 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 078243d9..3af11cb0 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 4cfcf6c9..e574835a 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 3d119370..a54229c9 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 2d352c94..916afa9b 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 5d2f3e4f..336cd8ba 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 0340b0d9..83dde087 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 268c342c..f4f1a8f1 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 f06eb152..39bf328f 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/export_service.go b/export_service.go index 88e660c3..b8fc1418 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/go.mod b/go.mod index 8af009db..adc220c2 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/gocardless/gocardless-pro-go/v4 +module github.com/gocardless/gocardless-pro-go/v3 go 1.20 diff --git a/instalment_schedule_service.go b/instalment_schedule_service.go index ebab3feb..21b72577 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 2fb26d93..ff7aa3b8 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/logo_service.go b/logo_service.go index 4cbe0caa..15cf43ae 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 a7be4d21..3c01e2f5 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 b45c3904..0e5f9abc 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 89489b9b..fdb0ded0 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 4334ad69..575b1b0c 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 b02dbef8..844eb56b 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 e1c4488e..51b268e0 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 85c8597e..511cd007 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 7ae2c66b..7eec2482 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 54de04a0..ff7bb44b 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/payout_service.go b/payout_service.go index 4d1bf157..ae11402b 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 2602b8b1..92e799d2 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 70ca3e77..bf9f5c8b 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 306de3d8..28e967d4 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 57bf49c1..1aeca724 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/subscription_service.go b/subscription_service.go index e95943c8..2729645d 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 fa33edc3..a42a44f5 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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 143850ac..2bb7c217 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-09-24T11:14:06.915Z","expires_at":"2024-09-24T11:14:06.915Z","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-24T11:15:21.562Z","expires_at":"2024-09-24T11:15:21.562Z","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-09-24T11:14:06.915Z","expires_at":"2024-09-24T11:14:06.915Z","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-24T11:15:21.562Z","expires_at":"2024-09-24T11:15:21.562Z","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 668f6e35..7985a216 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-09-24T11:14:06.918Z","customer_details_captured":false,"exit_uri":"https://my-website.com/abc/callback","expires_at":"2024-09-24T11:14:06.918Z","id":"BRF123","language":"en","links":{"billing_request":"BRQ123"},"lock_bank_account":true,"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":false,"created_at":"2024-09-24T11:15:21.567Z","customer_details_captured":false,"exit_uri":"https://my-website.com/abc/callback","expires_at":"2024-09-24T11:15:21.567Z","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":true}} }, "initialise": { - "body": {"billing_request_flows":{"authorisation_url":"https://monzo.com/abc-123-things","auto_fulfil":false,"created_at":"2024-09-24T11:14:06.918Z","customer_details_captured":false,"exit_uri":"https://my-website.com/abc/callback","expires_at":"2024-09-24T11:14:06.918Z","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":true}} + "body": {"billing_request_flows":{"authorisation_url":"https://monzo.com/abc-123-things","auto_fulfil":true,"created_at":"2024-09-24T11:15:21.567Z","customer_details_captured":true,"exit_uri":"https://my-website.com/abc/callback","expires_at":"2024-09-24T11:15:21.567Z","id":"BRF123","language":"en","links":{"billing_request":"BRQ123"},"lock_bank_account":false,"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 eea3b696..286b09f7 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 8047","incomplete_fields":{"customer":["example customer 6258"],"customer_billing_detail":["example customer_billing_detail 1528"]}},"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 1445","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 1211","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 4425","constraints":{"end_date":"example end_date 5089","max_amount_per_payment":4728,"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 1318"},"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 9947"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"retail","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 4059"},"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 1847"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1528"],"bank_authorisation":{"adapter":"example adapter 6258","authorisation_type":"example authorisation_type 8047"},"collect_customer_details":{"default_country_code":"example default_country_code 9106","incomplete_fields":{"customer":["example customer 495"],"customer_billing_detail":["example customer_billing_detail 5466"]}},"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 1211","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 1445","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 4728","constraints":{"end_date":"example end_date 456","max_amount_per_payment":3300,"periodic_limits":[{"alignment":"creation_date","max_payments":8162,"max_total_amount":8511,"period":"flexible"}],"start_date":"example start_date 2540"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 4425"},"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 1847"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"retail","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","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} }, "collect_customer_details": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1737"],"bank_authorisation":{"adapter":"example adapter 631","authorisation_type":"example authorisation_type 1485"},"collect_customer_details":{"default_country_code":"example default_country_code 6831","incomplete_fields":{"customer":["example customer 5429"],"customer_billing_detail":["example customer_billing_detail 5356"]}},"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 2790","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 3015","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 563","constraints":{"end_date":"example end_date 1353","max_amount_per_payment":1957,"periodic_limits":[{"alignment":"calendar","max_payments":4078,"max_total_amount":4147,"period":"year"}],"start_date":"example start_date 6159"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 5194"},"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 5026"},"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 7387"},"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 408"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1957"],"bank_authorisation":{"adapter":"example adapter 3721","authorisation_type":"example authorisation_type 7189"},"collect_customer_details":{"default_country_code":"example default_country_code 4324","incomplete_fields":{"customer":["example customer 6159"],"customer_billing_detail":["example customer_billing_detail 1353"]}},"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 7387","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 408","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 4078","constraints":{"end_date":"example end_date 2433","max_amount_per_payment":4147,"periodic_limits":[{"alignment":"calendar","max_payments":3090,"max_total_amount":6413,"period":"week"}],"start_date":"example start_date 563"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 1737"},"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 5429"},"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 3015"},"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 2790"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} }, "collect_bank_account": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 7463"],"bank_authorisation":{"adapter":"example adapter 6420","authorisation_type":"example authorisation_type 7996"},"collect_customer_details":{"default_country_code":"example default_country_code 5447","incomplete_fields":{"customer":["example customer 1577"],"customer_billing_detail":["example customer_billing_detail 5094"]}},"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 9718","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 9002","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 2888","constraints":{"end_date":"example end_date 2605","max_amount_per_payment":156,"periodic_limits":[{"alignment":"creation_date","max_payments":9355,"max_total_amount":9703,"period":"year"}],"start_date":"example start_date 8510"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 8705"},"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 5746"},"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 7202"},"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 5561"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 9718"],"bank_authorisation":{"adapter":"example adapter 5447","authorisation_type":"example authorisation_type 5094"},"collect_customer_details":{"default_country_code":"example default_country_code 1577","incomplete_fields":{"customer":["example customer 7463"],"customer_billing_detail":["example customer_billing_detail 7996"]}},"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 5746","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 4783","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 7202","constraints":{"end_date":"example end_date 9703","max_amount_per_payment":9355,"periodic_limits":[{"alignment":"creation_date","max_payments":8510,"max_total_amount":2451,"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":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 4376"},"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 8705"},"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 3000"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} }, "confirm_payer_details": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 2546"],"bank_authorisation":{"adapter":"example adapter 552","authorisation_type":"example authorisation_type 9843"},"collect_customer_details":{"default_country_code":"example default_country_code 9107","incomplete_fields":{"customer":["example customer 6503"],"customer_billing_detail":["example customer_billing_detail 7940"]}},"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 9757","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 1515","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 2002","constraints":{"end_date":"example end_date 1137","max_amount_per_payment":3133,"periodic_limits":[{"alignment":"creation_date","max_payments":3033,"max_total_amount":59,"period":"week"}],"start_date":"example start_date 953"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 8623"},"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 1351"},"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 1598"},"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 2205"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 9107"],"bank_authorisation":{"adapter":"example adapter 3891","authorisation_type":"example authorisation_type 2002"},"collect_customer_details":{"default_country_code":"example default_country_code 2546","incomplete_fields":{"customer":["example customer 8878"],"customer_billing_detail":["example customer_billing_detail 9336"]}},"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 59","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 3033","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 1515","constraints":{"end_date":"example end_date 7425","max_amount_per_payment":1351,"periodic_limits":[{"alignment":"calendar","max_payments":6503,"max_total_amount":2205,"period":"year"}],"start_date":"example start_date 1598"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 3687"},"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 953"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"other","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 3133"},"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 1137"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} }, "fulfil": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 7175"],"bank_authorisation":{"adapter":"example adapter 8981","authorisation_type":"example authorisation_type 6052"},"collect_customer_details":{"default_country_code":"example default_country_code 9819","incomplete_fields":{"customer":["example customer 493"],"customer_billing_detail":["example customer_billing_detail 3086"]}},"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 3410","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 5285","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 5384","constraints":{"end_date":"example end_date 9267","max_amount_per_payment":6137,"periodic_limits":[{"alignment":"calendar","max_payments":7726,"max_total_amount":5894,"period":"week"}],"start_date":"example start_date 1297"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 8582"},"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 1270"},"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 3098"},"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 3632"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 6052"],"bank_authorisation":{"adapter":"example adapter 9819","authorisation_type":"example authorisation_type 8981"},"collect_customer_details":{"default_country_code":"example default_country_code 3086","incomplete_fields":{"customer":["example customer 1270"],"customer_billing_detail":["example customer_billing_detail 493"]}},"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 8591","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","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 2066","constraints":{"end_date":"example end_date 6137","max_amount_per_payment":9271,"periodic_limits":[{"alignment":"calendar","max_payments":3981,"max_total_amount":5802,"period":"week"}],"start_date":"example start_date 9267"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 8582"},"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 3410"},"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 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","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} }, "cancel": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 4885"],"bank_authorisation":{"adapter":"example adapter 1387","authorisation_type":"example authorisation_type 5710"},"collect_customer_details":{"default_country_code":"example default_country_code 2818","incomplete_fields":{"customer":["example customer 3749"],"customer_billing_detail":["example customer_billing_detail 1528"]}},"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 2305","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 364","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 7839","constraints":{"end_date":"example end_date 5786","max_amount_per_payment":7051,"periodic_limits":[{"alignment":"calendar","max_payments":8844,"max_total_amount":7351,"period":"day"}],"start_date":"example start_date 540"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 3616"},"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 4801"},"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 7903"},"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 4384"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 90"],"bank_authorisation":{"adapter":"example adapter 364","authorisation_type":"example authorisation_type 8844"},"collect_customer_details":{"default_country_code":"example default_country_code 4801","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 7351","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 3640","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 1532","constraints":{"end_date":"example end_date 5710","max_amount_per_payment":1387,"periodic_limits":[{"alignment":"calendar","max_payments":1528,"max_total_amount":3749,"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":"always"},"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 8076"},"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","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} }, "list": { - "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","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 3231","constraints":{"end_date":"example end_date 8154","max_amount_per_payment":7822,"periodic_limits":[{"alignment":"creation_date","max_payments":4208,"max_total_amount":7342,"period":"year"}],"start_date":"example start_date 7578"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 3767"},"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","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}},{"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","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 1359","constraints":{"end_date":"example end_date 3430","max_amount_per_payment":4904,"periodic_limits":[{"alignment":"creation_date","max_payments":4657,"max_total_amount":3162,"period":"week"}],"start_date":"example start_date 3039"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 783"},"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 870"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}],"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 3231","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 3767","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 8154","constraints":{"end_date":"example end_date 3710","max_amount_per_payment":1223,"periodic_limits":[{"alignment":"calendar","max_payments":7743,"max_total_amount":4208,"period":"month"}],"start_date":"example start_date 1166"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 440"},"metadata":{},"payer_requested_dual_signature":true,"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 1602"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}},{"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","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 4904","constraints":{"end_date":"example end_date 3430","max_amount_per_payment":9513,"periodic_limits":[{"alignment":"calendar","max_payments":783,"max_total_amount":6720,"period":"flexible"}],"start_date":"example start_date 3039"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 4657"},"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":"managed","links":{"payment":"example payment 870"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}],"meta":{"cursors":{"after":"example after 4162","before":"example before 565"},"limit":50}} }, "get": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 6756"],"bank_authorisation":{"adapter":"example adapter 5695","authorisation_type":"example authorisation_type 8666"},"collect_customer_details":{"default_country_code":"example default_country_code 6829","incomplete_fields":{"customer":["example customer 7920"],"customer_billing_detail":["example customer_billing_detail 2048"]}},"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 9456","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 6200","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 7577","constraints":{"end_date":"example end_date 292","max_amount_per_payment":1888,"periodic_limits":[{"alignment":"creation_date","max_payments":6611,"max_total_amount":8318,"period":"year"}],"start_date":"example start_date 3447"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 1162"},"metadata":{},"payer_requested_dual_signature":true,"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 3756"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"other","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 6629"},"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 1092"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 6829"],"bank_authorisation":{"adapter":"example adapter 7920","authorisation_type":"example authorisation_type 2048"},"collect_customer_details":{"default_country_code":"example default_country_code 6756","incomplete_fields":{"customer":["example customer 5695"],"customer_billing_detail":["example customer_billing_detail 8666"]}},"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 6629","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 1092","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 3447","constraints":{"end_date":"example end_date 3756","max_amount_per_payment":292,"periodic_limits":[{"alignment":"creation_date","max_payments":6611,"max_total_amount":1888,"period":"year"}],"start_date":"example start_date 8318"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 7807"},"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":"managed","links":{"payment":"example payment 7886"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"other","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 9456"},"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 6200"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} }, "notify": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1464"],"bank_authorisation":{"adapter":"example adapter 1079","authorisation_type":"example authorisation_type 2954"},"collect_customer_details":{"default_country_code":"example default_country_code 2060","incomplete_fields":{"customer":["example customer 9551"],"customer_billing_detail":["example customer_billing_detail 1181"]}},"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 8675","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 2181","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 60","constraints":{"end_date":"example end_date 8470","max_amount_per_payment":8996,"periodic_limits":[{"alignment":"calendar","max_payments":2520,"max_total_amount":2632,"period":"week"}],"start_date":"example start_date 1393"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 1661"},"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 6157"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"retail","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 417"},"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 8795"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 9386"],"bank_authorisation":{"adapter":"example adapter 8795","authorisation_type":"example authorisation_type 417"},"collect_customer_details":{"default_country_code":"example default_country_code 1393","incomplete_fields":{"customer":["example customer 8996"],"customer_billing_detail":["example customer_billing_detail 8470"]}},"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 8675","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","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 1464","constraints":{"end_date":"example end_date 2520","max_amount_per_payment":260,"periodic_limits":[{"alignment":"calendar","max_payments":1661,"max_total_amount":7029,"period":"month"}],"start_date":"example start_date 2632"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 1079"},"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 1853"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"retail","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 1181"},"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 9551"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} }, "fallback": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 574"],"bank_authorisation":{"adapter":"example adapter 421","authorisation_type":"example authorisation_type 2390"},"collect_customer_details":{"default_country_code":"example default_country_code 2869","incomplete_fields":{"customer":["example customer 8070"],"customer_billing_detail":["example customer_billing_detail 6336"]}},"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 6443","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 235","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"paper","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 6685"},"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 600"},"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 5561"},"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 1533"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1040"],"bank_authorisation":{"adapter":"example adapter 1509","authorisation_type":"example authorisation_type 6685"},"collect_customer_details":{"default_country_code":"example default_country_code 1215","incomplete_fields":{"customer":["example customer 1719"],"customer_billing_detail":["example customer_billing_detail 5014"]}},"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 1533","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 5561","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 5740","constraints":{"end_date":"example end_date 9284","max_amount_per_payment":3173,"periodic_limits":[{"alignment":"creation_date","max_payments":6443,"max_total_amount":235,"period":"day"}],"start_date":"example start_date 574"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 6336"},"metadata":{},"payer_requested_dual_signature":true,"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 4637"},"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 600"},"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 9516"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} }, "choose_currency": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 6592"],"bank_authorisation":{"adapter":"example adapter 3479","authorisation_type":"example authorisation_type 8682"},"collect_customer_details":{"default_country_code":"example default_country_code 129","incomplete_fields":{"customer":["example customer 8721"],"customer_billing_detail":["example customer_billing_detail 4231"]}},"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 4511","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 855","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 2395","constraints":{"end_date":"example end_date 1606","max_amount_per_payment":9648,"periodic_limits":[{"alignment":"calendar","max_payments":7420,"max_total_amount":3352,"period":"week"}],"start_date":"example start_date 6117"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 7293"},"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 5265"},"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 3472"},"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 3338"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1544"],"bank_authorisation":{"adapter":"example adapter 2395","authorisation_type":"example authorisation_type 2174"},"collect_customer_details":{"default_country_code":"example default_country_code 1237","incomplete_fields":{"customer":["example customer 3524"],"customer_billing_detail":["example customer_billing_detail 7293"]}},"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 3338","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 3472","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 8622","constraints":{"end_date":"example end_date 129","max_amount_per_payment":4231,"periodic_limits":[{"alignment":"creation_date","max_payments":8682,"max_total_amount":5265,"period":"week"}],"start_date":"example start_date 6592"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 6117"},"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 5343"},"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 9648"},"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 1606"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} }, "select_institution": { - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 7587"],"bank_authorisation":{"adapter":"example adapter 9723","authorisation_type":"example authorisation_type 6724"},"collect_customer_details":{"default_country_code":"example default_country_code 1657","incomplete_fields":{"customer":["example customer 3374"],"customer_billing_detail":["example customer_billing_detail 6039"]}},"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 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","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 9859","constraints":{"end_date":"example end_date 9867","max_amount_per_payment":8408,"periodic_limits":[{"alignment":"calendar","max_payments":3653,"max_total_amount":5528,"period":"year"}],"start_date":"example start_date 8284"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 1874"},"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 4467"},"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 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","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1657"],"bank_authorisation":{"adapter":"example adapter 3546","authorisation_type":"example authorisation_type 259"},"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":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 6039","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 3374","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123","subscription_request":"SBR123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 7008","constraints":{"end_date":"example end_date 8284","max_amount_per_payment":2375,"periodic_limits":[{"alignment":"calendar","max_payments":6537,"max_total_amount":106,"period":"flexible"}],"start_date":"example start_date 6774"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 6114"},"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 5166"},"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 9867"},"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 8408"],"swedish_identity_number":"556564-5404"}},"status":"pending","subscription_request":{"amount":1000,"app_fee":100,"count":5,"currency":"EUR","day_of_month":28,"interval":1,"interval_unit":"monthly","metadata":{},"month":"january","name":"12 month subscription","payment_reference":"GOLDPLAN","start_date":"2014-10-21"}}} } } \ No newline at end of file diff --git a/testdata/blocks.json b/testdata/blocks.json index 39f83dc7..d109be3e 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 8240","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 7653","reason_type":"example reason_type 2120","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"},{"active":true,"block_type":"example block_type 9081","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 7276","reason_type":"example reason_type 4405","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}],"meta":{"cursors":{"after":"example after 7871","before":"example before 8345"},"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 7276","before":"example before 4405"},"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"}} }, "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 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}} + "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 fef86657..78c581a8 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 442","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 2884","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 442","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 2884","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 9023","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 3162","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 9158","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 9253","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 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 9023","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 9673","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 3162","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 9158","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 9253","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 496","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 5527","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 9731","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 3740","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 2677","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 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 2332","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 5402","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}} } } \ No newline at end of file diff --git a/testdata/customer_notifications.json b/testdata/customer_notifications.json index 82f9449f..ad3f3615 100644 --- a/testdata/customer_notifications.json +++ b/testdata/customer_notifications.json @@ -1,5 +1,5 @@ { "handle": { - "body": {"customer_notifications":{"action_taken":"example action_taken 4806","action_taken_at":"2024-09-24T11:14:06.924Z","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"}} + "body": {"customer_notifications":{"action_taken":"example action_taken 4806","action_taken_at":"2024-09-24T11:15:21.572Z","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/customers.json b/testdata/customers.json index e68863ee..b620137b 100644 --- a/testdata/customers.json +++ b/testdata/customers.json @@ -3,7 +3,7 @@ "body": {"customers":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999","postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"}} }, "list": { - "body": {"customers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999","postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999","postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"}],"meta":{"cursors":{"after":"example after 4187","before":"example before 1462"},"limit":50}} + "body": {"customers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999","postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999","postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"}],"meta":{"cursors":{"after":"example after 1462","before":"example before 4187"},"limit":50}} }, "get": { "body": {"customers":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999","postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"}} diff --git a/testdata/events.json b/testdata/events.json index 1904bcd2..93d864e0 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-09-24T11:14:06.925Z","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-09-24T11:14:06.925Z","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-24T11:15:21.572Z","id":"PCN123","mandatory":false,"type":"example type 2044"}],"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-24T11:15:21.572Z","id":"PCN123","mandatory":true,"type":"example type 7759"}],"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 4024","before":"example before 8999"},"limit":50}} }, "get": { - "body": {"events":{"action":"cancelled","created_at":"2014-01-01T12:00:00.000Z","customer_notifications":[{"deadline":"2024-09-24T11:14:06.925Z","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-24T11:15:21.573Z","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/exports.json b/testdata/exports.json index 742292b4..b1eab265 100644 --- a/testdata/exports.json +++ b/testdata/exports.json @@ -3,6 +3,6 @@ "body": {"exports":{"created_at":"2014-01-01T12:00:00.000Z","currency":"GBP","download_url":"example download_url 8853","export_type":"payments_index","id":"EX123"}} }, "list": { - "body": {"exports":[{"created_at":"2014-01-01T12:00:00.000Z","currency":"GBP","export_type":"payments_index","id":"EX123"},{"created_at":"2014-01-01T12:00:00.000Z","currency":"GBP","export_type":"payments_index","id":"EX123"}],"meta":{"cursors":{"after":"example after 7774","before":"example before 8475"},"limit":50}} + "body": {"exports":[{"created_at":"2014-01-01T12:00:00.000Z","currency":"GBP","export_type":"payments_index","id":"EX123"},{"created_at":"2014-01-01T12:00:00.000Z","currency":"GBP","export_type":"payments_index","id":"EX123"}],"meta":{"cursors":{"after":"example after 8475","before":"example before 7774"},"limit":50}} } } \ No newline at end of file diff --git a/testdata/institutions.json b/testdata/institutions.json index 0411cddf..e4391b66 100644 --- a/testdata/institutions.json +++ b/testdata/institutions.json @@ -3,6 +3,6 @@ "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 8339","before":"example before 1581"},"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 1581","before":"example before 8339"},"limit":50}} } } \ No newline at end of file diff --git a/testdata/mandate_import_entries.json b/testdata/mandate_import_entries.json index 85c5efab..24e8668a 100644 --- a/testdata/mandate_import_entries.json +++ b/testdata/mandate_import_entries.json @@ -3,6 +3,6 @@ "body": {"mandate_import_entries":{"created_at":"2014-01-01T12:00:00.000Z","links":{"customer":"CU123","customer_bank_account":"BA123","mandate":"MD123","mandate_import":"IM0000AAAAAAA"},"record_identifier":"bank-file.xml/line-1"}} }, "list": { - "body": {"mandate_import_entries":[{"created_at":"2014-01-01T12:00:00.000Z","links":{"customer":"CU123","customer_bank_account":"BA123","mandate":"MD123","mandate_import":"IM0000AAAAAAA"},"record_identifier":"bank-file.xml/line-1"},{"created_at":"2014-01-01T12:00:00.000Z","links":{"customer":"CU123","customer_bank_account":"BA123","mandate":"MD123","mandate_import":"IM0000AAAAAAA"},"record_identifier":"bank-file.xml/line-1"}],"meta":{"cursors":{"after":"example after 7063","before":"example before 6244"},"limit":50}} + "body": {"mandate_import_entries":[{"created_at":"2014-01-01T12:00:00.000Z","links":{"customer":"CU123","customer_bank_account":"BA123","mandate":"MD123","mandate_import":"IM0000AAAAAAA"},"record_identifier":"bank-file.xml/line-1"},{"created_at":"2014-01-01T12:00:00.000Z","links":{"customer":"CU123","customer_bank_account":"BA123","mandate":"MD123","mandate_import":"IM0000AAAAAAA"},"record_identifier":"bank-file.xml/line-1"}],"meta":{"cursors":{"after":"example after 6244","before":"example before 7063"},"limit":50}} } } \ No newline at end of file diff --git a/testdata/mandates.json b/testdata/mandates.json index db37be4f..ac556244 100644 --- a/testdata/mandates.json +++ b/testdata/mandates.json @@ -1,20 +1,20 @@ { "create": { - "body": {"mandates":{"authorisation_source":"telephone","consent_parameters":{"end_date":"example end_date 1695","max_amount_per_payment":3131,"periods":[{"max_amount_per_period":5629,"max_payments_per_period":7051,"period":"day"}],"start_date":"example start_date 4203"},"consent_type":"example consent_type 7092","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 1695","max_amount_per_payment":3131,"periods":[{"max_amount_per_period":7051,"max_payments_per_period":6985,"period":"flexible"}],"start_date":"example start_date 4203"},"consent_type":"example consent_type 5275","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 9759","max_amount_per_payment":7807,"periods":[{"max_amount_per_period":1406,"max_payments_per_period":3780,"period":"day"}],"start_date":"example start_date 3017"},"consent_type":"example consent_type 1262","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 3544","max_amount_per_payment":1723,"periods":[{"max_amount_per_period":894,"max_payments_per_period":3922,"period":"year"}],"start_date":"example start_date 2474"},"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 1406","max_amount_per_payment":3017,"periods":[{"max_amount_per_period":9759,"max_payments_per_period":7807,"period":"day"}],"start_date":"example start_date 2205"},"consent_type":"example consent_type 973","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 8033","max_amount_per_payment":2474,"periods":[{"max_amount_per_period":1723,"max_payments_per_period":894,"period":"flexible"}],"start_date":"example start_date 3922"},"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 5395","before":"example before 9914"},"limit":50}} }, "get": { - "body": {"mandates":{"authorisation_source":"web","consent_parameters":{"end_date":"example end_date 7650","max_amount_per_payment":909,"periods":[{"max_amount_per_period":671,"max_payments_per_period":9277,"period":"day"}],"start_date":"example start_date 7208"},"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"}} + "body": {"mandates":{"authorisation_source":"telephone","consent_parameters":{"end_date":"example end_date 8198","max_amount_per_payment":2734,"periods":[{"max_amount_per_period":5645,"max_payments_per_period":671,"period":"month"}],"start_date":"example start_date 7208"},"consent_type":"example consent_type 909","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"}} }, "update": { - "body": {"mandates":{"authorisation_source":"telephone","consent_parameters":{"end_date":"example end_date 4721","max_amount_per_payment":7587,"periods":[{"max_amount_per_period":9326,"max_payments_per_period":10,"period":"week"}],"start_date":"example start_date 1267"},"consent_type":"example consent_type 9301","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":"telephone","consent_parameters":{"end_date":"example end_date 4721","max_amount_per_payment":7587,"periods":[{"max_amount_per_period":10,"max_payments_per_period":3921,"period":"week"}],"start_date":"example start_date 3354"},"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"}} }, "cancel": { - "body": {"mandates":{"authorisation_source":"web","consent_parameters":{"end_date":"example end_date 5596","max_amount_per_payment":3920,"periods":[{"max_amount_per_period":4401,"max_payments_per_period":8140,"period":"flexible"}],"start_date":"example start_date 3973"},"consent_type":"example consent_type 9466","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":"telephone","consent_parameters":{"end_date":"example end_date 9466","max_amount_per_payment":8374,"periods":[{"max_amount_per_period":4401,"max_payments_per_period":8140,"period":"year"}],"start_date":"example start_date 5596"},"consent_type":"example consent_type 3920","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":"telephone","consent_parameters":{"end_date":"example end_date 7913","max_amount_per_payment":5214,"periods":[{"max_amount_per_period":325,"max_payments_per_period":1446,"period":"flexible"}],"start_date":"example start_date 6872"},"consent_type":"example consent_type 75","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 75","max_amount_per_payment":6110,"periods":[{"max_amount_per_period":5214,"max_payments_per_period":6872,"period":"year"}],"start_date":"example start_date 9959"},"consent_type":"example consent_type 325","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/payer_authorisations.json b/testdata/payer_authorisations.json index 5e064250..b1afb47f 100644 --- a/testdata/payer_authorisations.json +++ b/testdata/payer_authorisations.json @@ -6,12 +6,12 @@ "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 9200","message":"example message 3114","request_pointer":"example request_pointer 8730"}],"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 3176","message":"example message 1300","request_pointer":"example request_pointer 8051"}],"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 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"}} + "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 5642","message":"example message 2239","request_pointer":"example request_pointer 541"}],"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 c93a4c16..ded96e71 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":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"},{"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 9750","before":"example before 701"},"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":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"},{"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"}]} }, "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"}} diff --git a/testdata/payouts.json b/testdata/payouts.json index 6f10ba92..e961fba4 100644 --- a/testdata/payouts.json +++ b/testdata/payouts.json @@ -1,6 +1,6 @@ { "list": { - "body": {"meta":{"cursors":{"after":"example after 9555","before":"example before 9277"},"limit":50},"payouts":[{"amount":1000,"arrival_date":"2014-01-01","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","deducted_fees":20,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PO123","links":{"creditor":"CR123","creditor_bank_account":"BA123"},"metadata":{"salesforce_id":"ABCD1234"},"payout_type":"merchant","reference":"ref-1","status":"pending","tax_currency":"EUR"},{"amount":1000,"arrival_date":"2014-01-01","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","deducted_fees":20,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PO123","links":{"creditor":"CR123","creditor_bank_account":"BA123"},"metadata":{"salesforce_id":"ABCD1234"},"payout_type":"merchant","reference":"ref-1","status":"pending","tax_currency":"EUR"}]} + "body": {"meta":{"cursors":{"after":"example after 9277","before":"example before 9555"},"limit":50},"payouts":[{"amount":1000,"arrival_date":"2014-01-01","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","deducted_fees":20,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PO123","links":{"creditor":"CR123","creditor_bank_account":"BA123"},"metadata":{"salesforce_id":"ABCD1234"},"payout_type":"merchant","reference":"ref-1","status":"pending","tax_currency":"EUR"},{"amount":1000,"arrival_date":"2014-01-01","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","deducted_fees":20,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PO123","links":{"creditor":"CR123","creditor_bank_account":"BA123"},"metadata":{"salesforce_id":"ABCD1234"},"payout_type":"merchant","reference":"ref-1","status":"pending","tax_currency":"EUR"}]} }, "get": { "body": {"payouts":{"amount":1000,"arrival_date":"2014-01-01","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","deducted_fees":20,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PO123","links":{"creditor":"CR123","creditor_bank_account":"BA123"},"metadata":{"salesforce_id":"ABCD1234"},"payout_type":"merchant","reference":"ref-1","status":"pending","tax_currency":"EUR"}} diff --git a/testdata/refunds.json b/testdata/refunds.json index d99359ee..6f710e0a 100644 --- a/testdata/refunds.json +++ b/testdata/refunds.json @@ -3,7 +3,7 @@ "body": {"refunds":{"amount":150,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"RF123","links":{"mandate":"MD123","payment":"PM123"},"metadata":{},"reference":"WINEBOX001","status":"submitted"}} }, "list": { - "body": {"meta":{"cursors":{"after":"example after 3875","before":"example before 3333"},"limit":50},"refunds":[{"amount":150,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"RF123","links":{"mandate":"MD123","payment":"PM123"},"metadata":{},"reference":"WINEBOX001","status":"submitted"},{"amount":150,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"RF123","links":{"mandate":"MD123","payment":"PM123"},"metadata":{},"reference":"WINEBOX001","status":"submitted"}]} + "body": {"meta":{"cursors":{"after":"example after 3333","before":"example before 3875"},"limit":50},"refunds":[{"amount":150,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"RF123","links":{"mandate":"MD123","payment":"PM123"},"metadata":{},"reference":"WINEBOX001","status":"submitted"},{"amount":150,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"RF123","links":{"mandate":"MD123","payment":"PM123"},"metadata":{},"reference":"WINEBOX001","status":"submitted"}]} }, "get": { "body": {"refunds":{"amount":150,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"RF123","links":{"mandate":"MD123","payment":"PM123"},"metadata":{},"reference":"WINEBOX001","status":"submitted"}} diff --git a/testdata/scheme_identifiers.json b/testdata/scheme_identifiers.json index 934b41c2..5dc4ae39 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 7627","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 3740","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 3740","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 7627","region":"Greater London","scheme":"bacs","status":"pending"}} }, "list": { - "body": {"meta":{"cursors":{"after":"example after 4647","before":"example before 9969"},"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 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 4534","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 1552","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"}]} }, "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 728fa6fd..176992ce 100644 --- a/testdata/subscriptions.json +++ b/testdata/subscriptions.json @@ -3,21 +3,21 @@ "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 7764","before":"example before 2442"},"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":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"}]}} }, "update": { "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"}]}} }, "cancel": { - "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"}]}} + "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"}]}} } } \ No newline at end of file diff --git a/testdata/verification_details.json b/testdata/verification_details.json index ed294b3a..dd888e2a 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 6591","before":"example before 1898"},"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"}]} + "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 5540","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 1315"}],"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 37cb0360..88d0d73a 100644 --- a/testdata/webhooks.json +++ b/testdata/webhooks.json @@ -1,11 +1,11 @@ { "list": { - "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 9695","request_headers":{},"response_body":"example response_body 3401","response_body_truncated":true,"response_code":6516,"response_headers":{},"response_headers_content_truncated":false,"response_headers_count_truncated":false,"successful":true,"url":"https://example.com/webhooks"},{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":false,"request_body":"example request_body 3414","request_headers":{},"response_body":"example response_body 1590","response_body_truncated":false,"response_code":4740,"response_headers":{},"response_headers_content_truncated":true,"response_headers_count_truncated":true,"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":true,"request_body":"example request_body 6516","request_headers":{},"response_body":"example response_body 3755","response_body_truncated":true,"response_code":3401,"response_headers":{},"response_headers_content_truncated":false,"response_headers_count_truncated":false,"successful":false,"url":"https://example.com/webhooks"},{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":true,"request_body":"example request_body 8098","request_headers":{},"response_body":"example response_body 4740","response_body_truncated":false,"response_code":1590,"response_headers":{},"response_headers_content_truncated":false,"response_headers_count_truncated":true,"successful":false,"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 8268","request_headers":{},"response_body":"example response_body 4476","response_body_truncated":true,"response_code":2243,"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":true,"request_body":"example request_body 8268","request_headers":{},"response_body":"example response_body 2762","response_body_truncated":true,"response_code":4476,"response_headers":{},"response_headers_content_truncated":true,"response_headers_count_truncated":false,"successful":false,"url":"https://example.com/webhooks"}} }, "retry": { - "body": {"webhooks":{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":false,"request_body":"example request_body 4870","request_headers":{},"response_body":"example response_body 2713","response_body_truncated":true,"response_code":7251,"response_headers":{},"response_headers_content_truncated":false,"response_headers_count_truncated":false,"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 4870","request_headers":{},"response_body":"example response_body 7251","response_body_truncated":true,"response_code":8937,"response_headers":{},"response_headers_content_truncated":true,"response_headers_count_truncated":false,"successful":true,"url":"https://example.com/webhooks"}} } } \ No newline at end of file diff --git a/transferred_mandate_service.go b/transferred_mandate_service.go index 2ac6667d..4a0b2e27 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/useragent.go b/useragent.go index 913b1926..ae248cfd 100644 --- a/useragent.go +++ b/useragent.go @@ -7,7 +7,7 @@ import ( const ( // client library version - clientLibVersion = "4.0.0" + clientLibVersion = "3.7.0" ) var userAgent string diff --git a/verification_detail_service.go b/verification_detail_service.go index f36f6add..97d1f1ff 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) for key, value := range o.headers { diff --git a/webhook_service.go b/webhook_service.go index 0f56d93f..12b43091 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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.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", "4.0.0") + req.Header.Set("GoCardless-Client-Version", "3.7.0") req.Header.Set("User-Agent", userAgent) req.Header.Set("Content-Type", "application/json") req.Header.Set("Idempotency-Key", o.idempotencyKey)