Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
4e79cd2
Changes generated by 954c0afb4d49281568105513c90f0d12ded6fcd2
gocardless-ci-robot[bot] Jun 15, 2026
d18d575
Changes generated by f6b23429e1db4af5f6d559a8933d94ab86835e19
gocardless-ci-robot[bot] Jun 16, 2026
604c3dc
Changes generated by c1a246cf193597d4a75b4787fe464fa9d5cbf101
gocardless-ci-robot[bot] Jun 16, 2026
5b39a60
Changes generated by e013f9636cf85e8b930aa03c9fef525b8ab9702a
gocardless-ci-robot[bot] Jun 17, 2026
d1572e9
Changes generated by c044284e48f384dcbdd21dd9e6c286469afb5d55
gocardless-ci-robot[bot] Jun 18, 2026
b92247e
Changes generated by 893a370c1e1fa2eb153215ac032eb19dbcae5641
gocardless-ci-robot[bot] Jun 22, 2026
86fd7f2
Changes generated by 06d9e2b0f0d8f492f0524a746b2450f91606e9c9
gocardless-ci-robot[bot] Jun 23, 2026
5e88b20
Changes generated by 4a3dbd08ce76970c2141ebcf5ee47aa595ac7d58
gocardless-ci-robot[bot] Jun 24, 2026
5ed6f38
Changes generated by d97c5f53b394eaa852733dc030b77590b491794c
gocardless-ci-robot[bot] Jun 26, 2026
f3543dc
Changes generated by 9472ef74550235eb4a7850c7fd27f4a2a0f6aef5
gocardless-ci-robot[bot] Jun 29, 2026
e42a5ef
Changes generated by c8b2b85ecec13373a17e4667caacd41aab5d2c62
gocardless-ci-robot[bot] Jul 3, 2026
acd5fa3
Changes generated by 5bc32e9481786eea9c3d32e230fdacc4a3d47f50
gocardless-ci-robot[bot] Jul 7, 2026
dcd6887
Changes generated by 0e52fa170fb1e7a538fd16be889f703d99a3870e
gocardless-ci-robot[bot] Jul 14, 2026
74d5131
Changes generated by b609bedea0be4bf7586a9c9d68bb073776b2cb54
gocardless-ci-robot[bot] Jul 15, 2026
110760c
Changes generated by a82d24b22f7daac241ff35eac6587c56b1965292
gocardless-ci-robot[bot] Jul 16, 2026
f0e9500
Changes generated by 9ff3d4ad98f94450fa72e803addb16fd6aff5658
gocardless-ci-robot[bot] Jul 17, 2026
107966a
Changes generated by 60c9c8347683e91d547ef7ed703e285c4e86c9f6
gocardless-ci-robot[bot] Jul 20, 2026
115004b
Changes generated by 0447966dbc7deb4a368eb115ca363fe1cfcfbd16
gocardless-ci-robot[bot] Jul 21, 2026
15c82b1
Changes generated by d044d660596f0b07477534a07153e6117105c550
gocardless-ci-robot[bot] Jul 21, 2026
154fe85
Changes generated by 9d9ff143689ee009c9124b148c0c3d597e5060c2
gocardless-ci-robot[bot] Jul 21, 2026
7b3264c
Changes generated by d04d13533e73443cc9fbdd517d1bb1af7ef7dca0
gocardless-ci-robot[bot] Jul 21, 2026
a0958bd
Changes generated by cbdb1176040df91bbf75b91b2ce6017da8735321
gocardless-ci-robot[bot] Jul 22, 2026
7165392
Changes generated by 4efc71f5d8725e38b85138803842d0987be6b2b9
gocardless-ci-robot[bot] Jul 22, 2026
4c72d58
Changes generated by cab4c6d4f4714865da64e55cc2cfce31ce27171a
gocardless-ci-robot[bot] Jul 23, 2026
d794209
Changes generated by 1899be18c1848fbb0a1893d952c7c9c310a36863
gocardless-ci-robot[bot] Jul 23, 2026
8326838
Changes generated by 5a2c05b58435dcab60bfeb60fa968abd21f238ea
gocardless-ci-robot[bot] Jul 23, 2026
c0fa7a4
Changes generated by c3b47f8fc53f52bc440af0710b9a37d85fda8e2c
gocardless-ci-robot[bot] Jul 23, 2026
7bd95a2
Changes generated by d0706728ca36e9450aee3ad33da6f1ee52d118bb
gocardless-ci-robot[bot] Jul 23, 2026
5b36dbe
Changes generated by fd283046d9270578572fb7d19e5863f682a14138
gocardless-ci-robot[bot] Jul 23, 2026
91b8c3c
Changes generated by ec8db205e44def5843c145af7fe132edd66f9bcc
gocardless-ci-robot[bot] Jul 23, 2026
15d8317
Changes generated by d85c316b72a38bb46906b88b7574824f2195bafe
gocardless-ci-robot[bot] Jul 23, 2026
05d0572
Changes generated by dedbbc7f88bf7026f0f91bcfa80de14367f1246b
gocardless-ci-robot[bot] Jul 24, 2026
c9a961b
Changes generated by f3b869ed6a61a3305c2e172de8fcc754ee5ed69b
gocardless-ci-robot[bot] Jul 24, 2026
c0b5550
Changes generated by 900b4196505df0c745b66f73625357edbd72b3ba
gocardless-ci-robot[bot] Jul 24, 2026
fa80792
Changes generated by a99ddd10e09fa210b1e27f28893d4bd2406dce57
gocardless-ci-robot[bot] Jul 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
191 changes: 96 additions & 95 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,24 +106,24 @@
},
"dependencies": {
"got": "^11.8.6",
"uuid": "^14.0.0",
"qs": "^6.14.0"
"uuid": "^14.0.1",
"qs": "^6.15.3"
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/node": "^18.15.10",
"@types/node": "^22.14.1",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
"eslint": "^8.37.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^30.1.3",
"nock": "^13.3.0",
"prettier": "^2.8.7",
"eslint-plugin-prettier": "^4.2.5",
"jest": "^30.4.2",
"nock": "^13.5.6",
"prettier": "^2.8.8",
"prettier-eslint": "^15.0.1",
"prettier-eslint-cli": "^7.1.0",
"ts-jest": "29.4.1",
"typescript": "^5.0.2"
"ts-jest": "29.4.12",
"typescript": "^5.9.3"
},
"files": [
"esm/",
Expand Down
2 changes: 1 addition & 1 deletion src/codeSamples/customer_notificationsCodeSamples.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('CustomerNotifications Code Samples', () => {

try {
/* eslint-disable @typescript-eslint/no-unused-vars */
const customerNotification = await client.customerNotifications.handle('PCN123');
const customerNotification = await client.customerNotifications.handle('EV1D18JEXAMPLE');
/* eslint-enable @typescript-eslint/no-unused-vars */
} finally {
console.log = originalLog;
Expand Down
3 changes: 2 additions & 1 deletion src/services/balanceService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ interface BalanceListRequest {

before?: string;

// ID of a [creditor](#core-endpoints-creditors).
// ID of a creditor
// (https://developer.gocardless.com/api-reference/#core-endpoints-creditors).

creditor: string;

Expand Down
4 changes: 2 additions & 2 deletions src/services/bankAccountHolderVerificationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ interface BankAccountHolderVerificationCreateRequest {
links: Types.BankAccountHolderVerificationCreateRequestLinks;

// Type of the verification that has been performed
// eg. [Confirmation of
// Payee](https://www.wearepay.uk/what-we-do/overlay-services/confirmation-of-payee/)
// eg. Confirmation of Payee
// (https://www.wearepay.uk/what-we-do/overlay-services/confirmation-of-payee/)

type: `${Types.BankAccountHolderVerificationType}`;
}
Expand Down
12 changes: 7 additions & 5 deletions src/services/bankAuthorisationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ interface BankAuthorisationCreateRequest {
//
// Please note: bank authorisations can still fail despite an `outcome=success`
// on the `redirect_uri`. It is therefore recommended to wait for the relevant
// bank authorisation event, such as
// [`BANK_AUTHORISATION_AUTHORISED`](#billing-request-bankauthorisationauthorised),
// [`BANK_AUTHORISATION_DENIED`](#billing-request-bankauthorisationdenied), or
// [`BANK_AUTHORISATION_FAILED`](#billing-request-bankauthorisationfailed) in
// order to show the correct outcome to the user.
// bank authorisation event, such as `BANK_AUTHORISATION_AUTHORISED`
// (https://developer.gocardless.com/api-reference/#billing-request-bankauthorisationauthorised),
// `BANK_AUTHORISATION_DENIED`
// (https://developer.gocardless.com/api-reference/#billing-request-bankauthorisationdenied),
// or `BANK_AUTHORISATION_FAILED`
// (https://developer.gocardless.com/api-reference/#billing-request-bankauthorisationfailed)
// in order to show the correct outcome to the user.
//
// The BillingRequestFlow ID will also be appended to the `redirect_uri` as
// query parameter `id=BRF123`.
Expand Down
24 changes: 14 additions & 10 deletions src/services/bankDetailsLookupService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,33 @@ interface BankDetailsLookupCreateRequest {

account_holder_name?: string;

// Bank account number - see [local details](#appendix-local-bank-details) for
// more information. Alternatively you can provide an `iban`.
// Bank account number - see local details
// (https://developer.gocardless.com/api-reference/#appendix-local-bank-details)
// for more information. Alternatively you can provide an `iban`.

account_number?: string;

// Bank code - see [local details](#appendix-local-bank-details) for more
// information. Alternatively you can provide an `iban`.
// Bank code - see local details
// (https://developer.gocardless.com/api-reference/#appendix-local-bank-details)
// for more information. Alternatively you can provide an `iban`.

bank_code?: string;

// Branch code - see [local details](#appendix-local-bank-details) for more
// information. Alternatively you can provide an `iban`.
// Branch code - see local details
// (https://developer.gocardless.com/api-reference/#appendix-local-bank-details)
// for more information. Alternatively you can provide an `iban`.

branch_code?: string;

// [ISO
// 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
// ISO 3166-1
// (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
// alpha-2 code. Must be provided if specifying local details.

country_code?: string;

// International Bank Account Number. Alternatively you can provide [local
// details](#appendix-local-bank-details).
// International Bank Account Number. Alternatively you can provide local
// details
// (https://developer.gocardless.com/api-reference/#appendix-local-bank-details).

iban?: string;
}
Expand Down
6 changes: 2 additions & 4 deletions src/services/billingRequestFlowService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ interface BillingRequestFlowCreateRequest {

exit_uri?: string;

// Sets the default language of the Billing Request Flow and the customer. [ISO
// 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) code.
// Sets the default language of the Billing Request Flow and the customer. ISO
// 639-1 (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) code.

language?: string;

Expand All @@ -38,7 +38,6 @@ interface BillingRequestFlowCreateRequest {
//
// You can only lock bank account if these have already been completed as a part
// of the billing request.
//

lock_bank_account?: boolean;

Expand All @@ -55,7 +54,6 @@ interface BillingRequestFlowCreateRequest {
//
// You can only lock customer details if these have already been completed as a
// part of the billing request.
//

lock_customer_details?: boolean;

Expand Down
93 changes: 50 additions & 43 deletions src/services/billingRequestService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ interface BillingRequestCreateRequest {
// direct debit.
// Should not be set if GoCardless payment intelligence feature is used.
//
// See [Billing Requests: Retain customers with
// Fallbacks](https://developer.gocardless.com/billing-requests/retain-customers-with-fallbacks/)
// See Billing Requests: Retain customers with Fallbacks
// (https://developer.gocardless.com/billing-requests/retain-customers-with-fallbacks/)
// for more information.

fallback_enabled?: boolean;
Expand Down Expand Up @@ -44,9 +44,9 @@ interface BillingRequestCreateRequest {
// Specifies the underlying purpose of the payment. Defines the specific reason
// or type of service/goods the payment relates to, improving straight-through
// processing and compliance.
// See [VRP Commercial Payment Purpose
// Codes](https://developer.gocardless.com/vrp-commercial-payment-purpose-codes/)
// for the complete list of valid codes.
// See VRP Commercial Payment Purpose Codes
// (https://developer.gocardless.com/vrp-commercial-payment-purpose-codes/) for
// the complete list of valid codes.

payment_purpose_code?: string;

Expand All @@ -56,9 +56,9 @@ interface BillingRequestCreateRequest {
// Specifies the high-level purpose/category of a mandate and/or payment using a
// set of pre-defined categories. Provides context on the nature and reason for
// the payment to facilitate processing and compliance.
// See [Billing Request Purpose
// Codes](https://developer.gocardless.com/billing-request-purpose-codes/) for
// the complete list of valid codes.
// See Billing Request Purpose Codes
// (https://developer.gocardless.com/billing-request-purpose-codes/) for the
// complete list of valid codes.

purpose_code?: `${Types.BillingRequestPurposeCode}`;

Expand All @@ -78,54 +78,63 @@ interface BillingRequestCollectBankAccountRequest {
// Name of the account holder, as known by the bank. The full name provided when
// the customer is created is stored and is available via the API, but is
// transliterated, upcased, and truncated to 18 characters in bank submissions.
// This field is required unless the request includes a [customer bank account
// token](#javascript-flow-customer-bank-account-tokens).
// This field is required unless the request includes a customer bank account
// token
// (https://developer.gocardless.com/api-reference/#javascript-flow-customer-bank-account-tokens).

account_holder_name?: string;

// Bank account number - see [local details](#appendix-local-bank-details) for
// more information. Alternatively you can provide an `iban`.
// Bank account number - see local details
// (https://developer.gocardless.com/api-reference/#appendix-local-bank-details)
// for more information. Alternatively you can provide an `iban`.

account_number?: string;

// Account number suffix (only for bank accounts denominated in NZD) - see
// [local details](#local-bank-details-new-zealand) for more information.
// Account number suffix (only for bank accounts denominated in NZD) - see local
// details
// (https://developer.gocardless.com/api-reference/#local-bank-details-new-zealand)
// for more information.

account_number_suffix?: string;

// Bank account type. Required for USD-denominated bank accounts. Must not be
// provided for bank accounts in other currencies. See [local
// details](#local-bank-details-united-states) for more information.
// provided for bank accounts in other currencies. See local details
// (https://developer.gocardless.com/api-reference/#local-bank-details-united-states)
// for more information.

account_type?: `${Types.BillingRequestAccountType}`;

// Bank code - see [local details](#appendix-local-bank-details) for more
// information. Alternatively you can provide an `iban`.
// Bank code - see local details
// (https://developer.gocardless.com/api-reference/#appendix-local-bank-details)
// for more information. Alternatively you can provide an `iban`.

bank_code?: string;

// Branch code - see [local details](#appendix-local-bank-details) for more
// information. Alternatively you can provide an `iban`.
// Branch code - see local details
// (https://developer.gocardless.com/api-reference/#appendix-local-bank-details)
// for more information. Alternatively you can provide an `iban`.

branch_code?: string;

// [ISO 3166-1 alpha-2
// code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements).
// ISO 3166-1 alpha-2 code
// (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements).
// Defaults to the country code of the `iban` if supplied, otherwise is
// required.

country_code?: string;

// [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency
// code. Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are
// ISO 4217 (https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
// Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are
// supported.

currency?: string;

// International Bank Account Number. Alternatively you can provide [local
// details](#appendix-local-bank-details). IBANs are not accepted for Swedish
// bank accounts denominated in SEK - you must supply [local
// details](#local-bank-details-sweden).
// International Bank Account Number. Alternatively you can provide local
// details
// (https://developer.gocardless.com/api-reference/#appendix-local-bank-details).
// IBANs are not accepted for Swedish bank accounts denominated in SEK - you
// must supply local details
// (https://developer.gocardless.com/api-reference/#local-bank-details-sweden).

iban?: string;

Expand Down Expand Up @@ -182,8 +191,9 @@ interface BillingRequestListRequest {
// The creation date of this BillingRequest.
created_at?: Types.CreatedAtFilter;

// ID of a [customer](#core-endpoints-customers). If specified, this endpoint
// will return all requests for the given customer.
// ID of a customer
// (https://developer.gocardless.com/api-reference/#core-endpoints-customers).
// If specified, this endpoint will return all requests for the given customer.

customer?: string;

Expand All @@ -192,15 +202,12 @@ interface BillingRequestListRequest {
limit?: string;

// One of:
// <ul>
// <li>`pending`: the billing request is pending and can be used</li>
// <li>`ready_to_fulfil`: the billing request is ready to fulfil</li>
// <li>`fulfilling`: the billing request is currently undergoing fulfilment</li>
// <li>`fulfilled`: the billing request has been fulfilled and a payment
// created</li>
// <li>`cancelled`: the billing request has been cancelled and cannot be
// used</li>
// </ul>
//
// - `pending`: the billing request is pending and can be used
// - `ready_to_fulfil`: the billing request is ready to fulfil
// - `fulfilling`: the billing request is currently undergoing fulfilment
// - `fulfilled`: the billing request has been fulfilled and a payment created
// - `cancelled`: the billing request has been cancelled and cannot be used

status?: `${Types.BillingRequestStatus}`;
}
Expand All @@ -216,8 +223,8 @@ interface BillingRequestNotifyRequest {
}

interface BillingRequestChooseCurrencyRequest {
// [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency
// code. Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are
// ISO 4217 (https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
// Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are
// supported.

currency: string;
Expand All @@ -229,8 +236,8 @@ interface BillingRequestChooseCurrencyRequest {
}

interface BillingRequestSelectInstitutionRequest {
// [ISO
// 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
// ISO 3166-1
// (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
// alpha-2 code. The country code of the institution. If nothing is provided,
// institutions with the country code 'GB' are returned by default.

Expand Down
Loading
Loading