Skip to content

feat: add Customers resource, deprecate Receivers (v2.4.0) - #30

Merged
alvseven merged 6 commits into
mainfrom
alves/customers-resource
Jun 16, 2026
Merged

feat: add Customers resource, deprecate Receivers (v2.4.0)#30
alvseven merged 6 commits into
mainfrom
alves/customers-resource

Conversation

@alvseven

@alvseven alvseven commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@BernardoSM

BernardoSM commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

alvseven added 6 commits June 16, 2026 00:49
Mirrors blindpay-node v3.11.0:
- New Customers/ resource (parallel to Receivers/, targets /customers/* API paths)
- BankAccounts, VirtualAccounts, BlockchainWallets, OfframpWallets, CustodialWallets
  now hit /customers/{customer_id}/... and take customerId named arg
- BlindPay::$customers accessor added
- BlindPay::$receivers marked @deprecated

https://www.blindpay.com/changelog/2026-06-04-customers-rename
Folds the api-sync content into the customers-resource minor:
- New createSepa method (POSTs type=sepa to /customers/{customer_id}/bank-accounts)
- CreateSepaInput + CreateSepaResponse readonly types
- sepaBeneficiaryBic field on BankAccount, GetBankAccountResponse,
  CreateInternationalSwiftInput
- New Resources/Ownership/Ownership.php (instance ownership migration)
- ManualExecutionStatus type + field on Payin
- billingFeeAmount + cpnPaymentId fields on Payout
- receiver.delete WebhookEvent
- BlindPay::VERSION bumped 2.3.0 → 2.4.0
…bugs found via live QA

Three bugs caught by live QA against dev instance:
- ListBankAccountsResponse::fromArray expected {data: [...]} but the
  API returns a plain array (mirrors node SDK #56)
- IndividualWith*KYC $aipriseValidationKey typed as 'string' but the
  API returns null when absent — switched to ?string
- Rail enum was missing 'sepa' and 'ted' cases that the API returns

Test fixture for it_lists_bank_accounts updated to match real API
response shape (plain array, not data-wrapped).
@alvseven
alvseven force-pushed the alves/customers-resource branch from 6168188 to e57d72a Compare June 16, 2026 03:54
@alvseven
alvseven merged commit aefead9 into main Jun 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants