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/BankAccountType.php b/src/Types/BankAccountType.php index 54199ed..6e0f18e 100644 --- a/src/Types/BankAccountType.php +++ b/src/Types/BankAccountType.php @@ -8,4 +8,5 @@ enum BankAccountType: string { case CHECKING = 'checking'; case SAVINGS = 'savings'; + case TED = 'ted'; } diff --git a/src/Types/PaymentMethod.php b/src/Types/PaymentMethod.php index b666883..a37b38b 100644 --- a/src/Types/PaymentMethod.php +++ b/src/Types/PaymentMethod.php @@ -13,4 +13,6 @@ enum PaymentMethod: string case TRANSFERS = 'transfers'; case PSE = 'pse'; case INTERNATIONAL_SWIFT = 'international_swift'; + case RTP = 'rtp'; + case TED = 'ted'; } diff --git a/src/Types/ReceiverStatus.php b/src/Types/ReceiverStatus.php index bd24677..c159d25 100644 --- a/src/Types/ReceiverStatus.php +++ b/src/Types/ReceiverStatus.php @@ -11,4 +11,6 @@ enum ReceiverStatus: string case REJECTED = 'rejected'; case DEPRECATED = 'deprecated'; case PENDING_REVIEW = 'pending_review'; + case AWAITING_CONTRACT = 'awaiting_contract'; + case COMPLIANCE_REQUEST = 'compliance_request'; }