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.3.0';
private const VERSION = '2.4.0';

private Client $httpClient;

Expand Down
7 changes: 5 additions & 2 deletions src/Resources/Payins/Payins.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
);
}
}
Expand Down
10 changes: 8 additions & 2 deletions src/Resources/Payouts/Payouts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
);
}
}
Expand Down
16 changes: 16 additions & 0 deletions src/Types/AipriseDocumentType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace BlindPay\SDK\Types;

enum AipriseDocumentType: string
{
case ADDRESS_PROOF_DOCUMENT = 'ADDRESS_PROOF_DOCUMENT';
case BANK_STATEMENT_DOCUMENT = 'BANK_STATEMENT_DOCUMENT';
case OTHER = 'OTHER';
case SOURCE_OF_FUNDS_DOCUMENT = 'SOURCE_OF_FUNDS_DOCUMENT';
case TAX_CERTIFICATE = 'TAX_CERTIFICATE';
case USER_SELFIE = 'USER_SELFIE';
case VISA_DOCUMENT = 'VISA_DOCUMENT';
}
12 changes: 12 additions & 0 deletions src/Types/ApprovalRate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

namespace BlindPay\SDK\Types;

enum ApprovalRate: string
{
case HIGH = 'high';
case LOW = 'low';
case MEDIUM = 'medium';
}
10 changes: 10 additions & 0 deletions src/Types/ManualExecutionStatus.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

declare(strict_types=1);

namespace BlindPay\SDK\Types;

enum ManualExecutionStatus: string
{
case FAILED = 'failed';
}
1 change: 1 addition & 0 deletions src/Types/WebhookEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ enum WebhookEvent: string
case TRANSFER_COMPLETE = 'transfer.complete';
case WALLET_NEW = 'wallet.new';
case WALLET_INBOUND = 'wallet.inbound';
case RECEIVER_DELETE = 'receiver.delete';
}
Loading