From bf113176b9777e7e16eb35858d27307debe5b326 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 6 May 2026 01:51:11 +0000 Subject: [PATCH 1/2] feat: sync SDK with API changes --- src/BlindPay.php | 2 +- src/Resources/BankAccounts/BankAccounts.php | 27 ++++++++++++++++++--- src/Resources/Fees/Fees.php | 6 +++-- src/Resources/Payins/Payins.php | 6 +++-- src/Resources/Payouts/Payouts.php | 12 +++++++-- src/Types/ActorType.php | 11 +++++++++ src/Types/BankAccountType.php | 1 + src/Types/Currency.php | 2 -- src/Types/Decision.php | 11 +++++++++ src/Types/Operation.php | 12 +++++++++ src/Types/PaymentMethod.php | 2 ++ src/Types/ReceiverStatus.php | 2 ++ src/Types/ReceiverType.php | 11 +++++++++ src/Types/Status.php | 10 ++++++++ 14 files changed, 103 insertions(+), 12 deletions(-) create mode 100644 src/Types/ActorType.php create mode 100644 src/Types/Decision.php create mode 100644 src/Types/Operation.php create mode 100644 src/Types/ReceiverType.php create mode 100644 src/Types/Status.php diff --git a/src/BlindPay.php b/src/BlindPay.php index 8f47185..4db8919 100644 --- a/src/BlindPay.php +++ b/src/BlindPay.php @@ -39,7 +39,7 @@ class BlindPay implements ApiClientInterface { private const BASE_URL = 'https://api.blindpay.com/v1/'; - private const VERSION = '2.2.0'; + private const VERSION = '2.3.0'; private Client $httpClient; diff --git a/src/Resources/BankAccounts/BankAccounts.php b/src/Resources/BankAccounts/BankAccounts.php index a787257..2e821be 100644 --- a/src/Resources/BankAccounts/BankAccounts.php +++ b/src/Resources/BankAccounts/BankAccounts.php @@ -93,7 +93,10 @@ public function __construct( public ?Country $swiftIntermediaryBankCountry, public ?string $tronWalletHash, public ?array $offrampWallets, - public DateTimeImmutable $createdAt + public DateTimeImmutable $createdAt, + public ?string $tedBankCode = null, + public ?string $tedBranchCode = null, + public ?string $tedCpfCnpj = null ) {} public static function fromArray(array $data): self @@ -148,7 +151,10 @@ public static function fromArray(array $data): self swiftIntermediaryBankCountry: isset($data['swift_intermediary_bank_country']) ? Country::from($data['swift_intermediary_bank_country']) : null, tronWalletHash: $data['tron_wallet_hash'] ?? null, offrampWallets: $data['offramp_wallets'] ?? null, - createdAt: new DateTimeImmutable($data['created_at']) + createdAt: new DateTimeImmutable($data['created_at']), + tedBankCode: $data['ted_bank_code'] ?? null, + tedBranchCode: $data['ted_branch_code'] ?? null, + tedCpfCnpj: $data['ted_cpf_cnpj'] ?? null ); } } @@ -686,7 +692,10 @@ public function __construct( public ?string $businessIndustry = null, public ?string $phoneNumber = null, public ?string $taxId = null, - public ?string $dateOfBirth = null + public ?string $dateOfBirth = null, + public ?string $tedBankCode = null, + public ?string $tedBranchCode = null, + public ?string $tedCpfCnpj = null ) {} public function toArray(): array @@ -744,6 +753,18 @@ public function toArray(): array $data['date_of_birth'] = $this->dateOfBirth; } + if ($this->tedBankCode !== null) { + $data['ted_bank_code'] = $this->tedBankCode; + } + + if ($this->tedBranchCode !== null) { + $data['ted_branch_code'] = $this->tedBranchCode; + } + + if ($this->tedCpfCnpj !== null) { + $data['ted_cpf_cnpj'] = $this->tedCpfCnpj; + } + return $data; } } diff --git a/src/Resources/Fees/Fees.php b/src/Resources/Fees/Fees.php index b744c10..6ced86a 100644 --- a/src/Resources/Fees/Fees.php +++ b/src/Resources/Fees/Fees.php @@ -49,7 +49,8 @@ public function __construct( public ?FeeOptions $base, public ?FeeOptions $arbitrum, public ?FeeOptions $stellar, - public ?FeeOptions $solana + public ?FeeOptions $solana, + public ?FeeOptions $ted = null ) {} public static function fromArray(array $data): self @@ -70,7 +71,8 @@ public static function fromArray(array $data): self base: FeeOptions::fromArray($data['base'] ?? null), arbitrum: FeeOptions::fromArray($data['arbitrum'] ?? null), stellar: FeeOptions::fromArray($data['stellar'] ?? null), - solana: FeeOptions::fromArray($data['solana'] ?? null) + solana: FeeOptions::fromArray($data['solana'] ?? null), + ted: FeeOptions::fromArray($data['ted'] ?? null) ); } } diff --git a/src/Resources/Payins/Payins.php b/src/Resources/Payins/Payins.php index 20375a5..61cc48a 100644 --- a/src/Resources/Payins/Payins.php +++ b/src/Resources/Payins/Payins.php @@ -229,7 +229,8 @@ public function __construct( public ?string $pseDocumentType = null, public ?string $pseFullName = null, public ?string $psePaymentLink = null, - public ?string $pseTaxId = null + public ?string $pseTaxId = null, + public ?string $partnerFeeId = null ) {} public static function fromArray(array $data): self @@ -273,7 +274,8 @@ public static function fromArray(array $data): self pseDocumentType: $data['pse_document_type'] ?? null, pseFullName: $data['pse_full_name'] ?? null, psePaymentLink: $data['pse_payment_link'] ?? null, - pseTaxId: $data['pse_tax_id'] ?? null + pseTaxId: $data['pse_tax_id'] ?? null, + partnerFeeId: $data['partner_fee_id'] ?? null ); } } diff --git a/src/Resources/Payouts/Payouts.php b/src/Resources/Payouts/Payouts.php index 523985e..3d3b864 100644 --- a/src/Resources/Payouts/Payouts.php +++ b/src/Resources/Payouts/Payouts.php @@ -103,7 +103,11 @@ public function __construct( public ?string $swiftAccountNumberIban, public ?string $transfersAccount, public ?ArgentinaTransferType $transfersType, - public bool $hasVirtualAccount + public bool $hasVirtualAccount, + public ?string $partnerFeeId = null, + public ?string $tedBankCode = null, + public ?string $tedBranchCode = null, + public ?string $tedCpfCnpj = null ) {} public static function fromArray(array $data): self @@ -171,7 +175,11 @@ public static function fromArray(array $data): self swiftAccountNumberIban: $data['swift_account_number_iban'] ?? null, transfersAccount: $data['transfers_account'] ?? null, transfersType: isset($data['transfers_type']) ? ArgentinaTransferType::from($data['transfers_type']) : null, - hasVirtualAccount: $data['has_virtual_account'] + hasVirtualAccount: $data['has_virtual_account'], + partnerFeeId: $data['partner_fee_id'] ?? null, + tedBankCode: $data['ted_bank_code'] ?? null, + tedBranchCode: $data['ted_branch_code'] ?? null, + tedCpfCnpj: $data['ted_cpf_cnpj'] ?? null ); } } diff --git a/src/Types/ActorType.php b/src/Types/ActorType.php new file mode 100644 index 0000000..38ea7ed --- /dev/null +++ b/src/Types/ActorType.php @@ -0,0 +1,11 @@ + Date: Thu, 7 May 2026 06:50:24 -0300 Subject: [PATCH 2/2] fix: restore USDC/USDT in Currency, remove unused type files --- src/Types/ActorType.php | 11 ----------- src/Types/Currency.php | 2 ++ src/Types/Decision.php | 11 ----------- src/Types/Operation.php | 12 ------------ src/Types/ReceiverType.php | 11 ----------- src/Types/Status.php | 10 ---------- 6 files changed, 2 insertions(+), 55 deletions(-) delete mode 100644 src/Types/ActorType.php delete mode 100644 src/Types/Decision.php delete mode 100644 src/Types/Operation.php delete mode 100644 src/Types/ReceiverType.php delete mode 100644 src/Types/Status.php diff --git a/src/Types/ActorType.php b/src/Types/ActorType.php deleted file mode 100644 index 38ea7ed..0000000 --- a/src/Types/ActorType.php +++ /dev/null @@ -1,11 +0,0 @@ -