From 584d2dc35404919e5476ed7700fbb2c35b18f304 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 15 Jun 2026 17:23:15 +0000 Subject: [PATCH] feat: sync SDK with API changes --- src/BlindPay.php | 2 +- src/Resources/Payins/Payins.php | 7 +++++-- src/Resources/Payouts/Payouts.php | 10 ++++++++-- src/Types/AipriseDocumentType.php | 16 ++++++++++++++++ src/Types/ApprovalRate.php | 12 ++++++++++++ src/Types/ManualExecutionStatus.php | 10 ++++++++++ src/Types/WebhookEvent.php | 1 + 7 files changed, 53 insertions(+), 5 deletions(-) create mode 100644 src/Types/AipriseDocumentType.php create mode 100644 src/Types/ApprovalRate.php create mode 100644 src/Types/ManualExecutionStatus.php diff --git a/src/BlindPay.php b/src/BlindPay.php index 4db8919..a40283a 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.3.0'; + private const VERSION = '2.4.0'; private Client $httpClient; diff --git a/src/Resources/Payins/Payins.php b/src/Resources/Payins/Payins.php index 61cc48a..bd5d4a1 100644 --- a/src/Resources/Payins/Payins.php +++ b/src/Resources/Payins/Payins.php @@ -6,6 +6,7 @@ use BlindPay\SDK\Internal\ApiClientInterface; use BlindPay\SDK\Types\BlindPayApiResponse; +use BlindPay\SDK\Types\ManualExecutionStatus; use BlindPay\SDK\Types\Network; use BlindPay\SDK\Types\PaginationMetadata; use BlindPay\SDK\Types\PaginationParams; @@ -230,7 +231,8 @@ public function __construct( public ?string $pseFullName = null, public ?string $psePaymentLink = null, public ?string $pseTaxId = null, - public ?string $partnerFeeId = null + public ?string $partnerFeeId = null, + public ?ManualExecutionStatus $manualExecutionStatus = null ) {} public static function fromArray(array $data): self @@ -275,7 +277,8 @@ public static function fromArray(array $data): self pseFullName: $data['pse_full_name'] ?? null, psePaymentLink: $data['pse_payment_link'] ?? null, pseTaxId: $data['pse_tax_id'] ?? null, - partnerFeeId: $data['partner_fee_id'] ?? null + partnerFeeId: $data['partner_fee_id'] ?? null, + manualExecutionStatus: isset($data['manual_execution_status']) ? ManualExecutionStatus::from($data['manual_execution_status']) : null ); } } diff --git a/src/Resources/Payouts/Payouts.php b/src/Resources/Payouts/Payouts.php index 3d3b864..6fa9812 100644 --- a/src/Resources/Payouts/Payouts.php +++ b/src/Resources/Payouts/Payouts.php @@ -107,7 +107,10 @@ public function __construct( public ?string $partnerFeeId = null, public ?string $tedBankCode = null, public ?string $tedBranchCode = null, - public ?string $tedCpfCnpj = null + public ?string $tedCpfCnpj = null, + public ?float $billingFeeAmount = null, + public ?string $cpnPaymentId = null, + public ?string $senderLegalName = null ) {} public static function fromArray(array $data): self @@ -179,7 +182,10 @@ public static function fromArray(array $data): self partnerFeeId: $data['partner_fee_id'] ?? null, tedBankCode: $data['ted_bank_code'] ?? null, tedBranchCode: $data['ted_branch_code'] ?? null, - tedCpfCnpj: $data['ted_cpf_cnpj'] ?? null + tedCpfCnpj: $data['ted_cpf_cnpj'] ?? null, + billingFeeAmount: isset($data['billing_fee_amount']) ? (float) $data['billing_fee_amount'] : null, + cpnPaymentId: $data['cpn_payment_id'] ?? null, + senderLegalName: $data['sender_legal_name'] ?? null ); } } diff --git a/src/Types/AipriseDocumentType.php b/src/Types/AipriseDocumentType.php new file mode 100644 index 0000000..47aabd5 --- /dev/null +++ b/src/Types/AipriseDocumentType.php @@ -0,0 +1,16 @@ +