diff --git a/.api-sync/spec-snapshot.json b/.api-sync/spec-snapshot.json index 16329ef..c495d8d 100644 --- a/.api-sync/spec-snapshot.json +++ b/.api-sync/spec-snapshot.json @@ -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": { @@ -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", @@ -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": { @@ -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", @@ -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": { @@ -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", @@ -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": { @@ -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", @@ -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": { @@ -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", @@ -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": { @@ -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", diff --git a/src/BlindPay.php b/src/BlindPay.php index 16f58ed..17c1b38 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 = '3.4.0'; + private const VERSION = '3.4.1'; private Client $httpClient; diff --git a/src/Types/PayinTrackingPayment.php b/src/Types/PayinTrackingPayment.php index 03743da..29b5c49 100644 --- a/src/Types/PayinTrackingPayment.php +++ b/src/Types/PayinTrackingPayment.php @@ -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); @@ -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 ); @@ -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, ]; } }