Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion src/BlindPay.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
27 changes: 24 additions & 3 deletions src/Resources/BankAccounts/BankAccounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
);
}
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
}
Expand Down
6 changes: 4 additions & 2 deletions src/Resources/Fees/Fees.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
);
}
}
Expand Down
6 changes: 4 additions & 2 deletions src/Resources/Payins/Payins.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
);
}
}
Expand Down
12 changes: 10 additions & 2 deletions src/Resources/Payouts/Payouts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/Types/BankAccountType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ enum BankAccountType: string
{
case CHECKING = 'checking';
case SAVINGS = 'savings';
case TED = 'ted';
}
2 changes: 2 additions & 0 deletions src/Types/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ enum PaymentMethod: string
case TRANSFERS = 'transfers';
case PSE = 'pse';
case INTERNATIONAL_SWIFT = 'international_swift';
case RTP = 'rtp';
case TED = 'ted';
}
2 changes: 2 additions & 0 deletions src/Types/ReceiverStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Loading