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
144 changes: 138 additions & 6 deletions .api-sync/spec-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -3393,7 +3393,7 @@
"string",
"null"
],
"description": "Risk source that sent this payin to manual review",
"description": "Primary risk source that sent this payin to manual review",
"example": "seon_review"
},
"review_context": {
Expand All @@ -3404,6 +3404,28 @@
"additionalProperties": {},
"description": "Structured risk context for manual review"
},
"review_sources": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Every risk source that flagged this payin on the pending review",
"example": [
"seon_review",
"new_instance"
]
},
"review_contexts": {
"type": [
"object",
"null"
],
"additionalProperties": {},
"description": "Structured risk context per flagging source"
},
"approved_risk_sources": {
"type": [
"array",
Expand Down Expand Up @@ -4082,7 +4104,7 @@
"string",
"null"
],
"description": "Risk source that sent this payin to manual review",
"description": "Primary risk source that sent this payin to manual review",
"example": "seon_review"
},
"review_context": {
Expand All @@ -4093,6 +4115,28 @@
"additionalProperties": {},
"description": "Structured risk context for manual review"
},
"review_sources": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Every risk source that flagged this payin on the pending review",
"example": [
"seon_review",
"new_instance"
]
},
"review_contexts": {
"type": [
"object",
"null"
],
"additionalProperties": {},
"description": "Structured risk context per flagging source"
},
"approved_risk_sources": {
"type": [
"array",
Expand Down Expand Up @@ -5039,7 +5083,7 @@
"string",
"null"
],
"description": "Risk source that sent this payin to manual review",
"description": "Primary risk source that sent this payin to manual review",
"example": "seon_review"
},
"review_context": {
Expand All @@ -5050,6 +5094,28 @@
"additionalProperties": {},
"description": "Structured risk context for manual review"
},
"review_sources": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Every risk source that flagged this payin on the pending review",
"example": [
"seon_review",
"new_instance"
]
},
"review_contexts": {
"type": [
"object",
"null"
],
"additionalProperties": {},
"description": "Structured risk context per flagging source"
},
"approved_risk_sources": {
"type": [
"array",
Expand Down Expand Up @@ -5728,7 +5794,7 @@
"string",
"null"
],
"description": "Risk source that sent this payin to manual review",
"description": "Primary risk source that sent this payin to manual review",
"example": "seon_review"
},
"review_context": {
Expand All @@ -5739,6 +5805,28 @@
"additionalProperties": {},
"description": "Structured risk context for manual review"
},
"review_sources": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Every risk source that flagged this payin on the pending review",
"example": [
"seon_review",
"new_instance"
]
},
"review_contexts": {
"type": [
"object",
"null"
],
"additionalProperties": {},
"description": "Structured risk context per flagging source"
},
"approved_risk_sources": {
"type": [
"array",
Expand Down Expand Up @@ -17148,7 +17236,7 @@
"string",
"null"
],
"description": "Risk source that sent this payin to manual review",
"description": "Primary risk source that sent this payin to manual review",
"example": "seon_review"
},
"review_context": {
Expand All @@ -17159,6 +17247,28 @@
"additionalProperties": {},
"description": "Structured risk context for manual review"
},
"review_sources": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Every risk source that flagged this payin on the pending review",
"example": [
"seon_review",
"new_instance"
]
},
"review_contexts": {
"type": [
"object",
"null"
],
"additionalProperties": {},
"description": "Structured risk context per flagging source"
},
"approved_risk_sources": {
"type": [
"array",
Expand Down Expand Up @@ -17878,7 +17988,7 @@
"string",
"null"
],
"description": "Risk source that sent this payin to manual review",
"description": "Primary risk source that sent this payin to manual review",
"example": "seon_review"
},
"review_context": {
Expand All @@ -17889,6 +17999,28 @@
"additionalProperties": {},
"description": "Structured risk context for manual review"
},
"review_sources": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Every risk source that flagged this payin on the pending review",
"example": [
"seon_review",
"new_instance"
]
},
"review_contexts": {
"type": [
"object",
"null"
],
"additionalProperties": {},
"description": "Structured risk context per flagging source"
},
"approved_risk_sources": {
"type": [
"array",
Expand Down
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 = '3.4.0';
private const VERSION = '3.4.1';

private Client $httpClient;

Expand Down
8 changes: 7 additions & 1 deletion src/Types/PayinTrackingPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
public function __construct(
string $step,
public ?string $providerName = null,
public ?array $reviewContexts = null,
public ?array $reviewSources = null,
?DateTimeImmutable $completedAt = null
) {
parent::__construct($step, $completedAt);
Expand All @@ -21,7 +23,9 @@ public static function fromArray(array $data): self
return new self(
step: $data['step'],
providerName: $data['provider_name'] ?? null,
completedAt: isset($data['completed_at'])
completedAt: isset($data['completed_at']),
reviewContexts: $data['review_contexts'] ?? null,
reviewSources: $data['review_sources'] ?? null
? new DateTimeImmutable($data['completed_at'])
: null
);
Expand All @@ -33,6 +37,8 @@ public function toArray(): array
'step' => $this->step,
'provider_name' => $this->providerName,
'completed_at' => $this->completedAt?->format('c'),
'review_contexts' => $this->reviewContexts,
'review_sources' => $this->reviewSources,
];
}
}
Loading