PaymentDetailsField
extends BaseField
in package
uses
FieldPositionMixin
Information on a single payment.
Table of Contents
Properties
- $accountNumber : string|null
- $boundingBox : Polygon|null
- $confidence : float
- $iban : string|null
- $pageId : int|mixed|null
- $polygon : Polygon
- $reconstructed : bool
- $routingNumber : string|null
- $swift : string|null
- $value : mixed|null
Methods
- __compare() : bool
- Compares with the value of another field.
- __construct() : mixed
- __toString() : string
- setConfidence() : void
- Sets the confidence score.
- setPosition() : void
- Sets the position of a field.
- getValue() : string|null
- Gets the value of any given key.
Properties
$accountNumber
public
string|null
$accountNumber
Account number.
$boundingBox
public
Polygon|null
$boundingBox
A right rectangle containing the word in the document.
$confidence
public
float
$confidence
The confidence score.
$iban
public
string|null
$iban
Account IBAN.
$pageId
public
int|mixed|null
$pageId
The document page on which the information was found.
$polygon
public
Polygon
$polygon
A polygon containing the word in the document.
$reconstructed
public
bool
$reconstructed
Whether the field was reconstructed from other fields.
$routingNumber
public
string|null
$routingNumber
Account routing number.
$swift
public
string|null
$swift
Bank's SWIFT code.
$value
public
mixed|null
$value
Raw field value.
Methods
__compare()
Compares with the value of another field.
public
__compare(BaseField $obj) : bool
Parameters
- $obj : BaseField
-
Field to compare.
Return values
bool__construct()
public
__construct(array<string|int, mixed> $rawPrediction[, int|null $pageId = null ][, bool $reconstructed = false ][, string $valueKey = 'iban' ][, string $accountNumberKey = 'account_number' ][, string $ibanKey = 'iban' ][, string $routingNumberKey = 'routing_number' ][, string $swiftKey = 'swift' ]) : mixed
Parameters
- $rawPrediction : array<string|int, mixed>
-
Raw prediction array.
- $pageId : int|null = null
-
Page number for multi pages document.
- $reconstructed : bool = false
-
Whether the field was reconstructed.
- $valueKey : string = 'iban'
-
Key to use for the value.
- $accountNumberKey : string = 'account_number'
-
Key to use for the account number.
- $ibanKey : string = 'iban'
-
Key to use for the IBAN.
- $routingNumberKey : string = 'routing_number'
-
Key to use for the routing number.
- $swiftKey : string = 'swift'
-
Key to use for the SWIFT code.
__toString()
public
__toString() : string
Return values
string —String representation.
setConfidence()
Sets the confidence score.
protected
setConfidence(array<string|int, mixed> $rawPrediction) : void
Parameters
- $rawPrediction : array<string|int, mixed>
-
Raw prediction array.
setPosition()
Sets the position of a field.
protected
setPosition(array<string|int, mixed> $rawPrediction) : void
Parameters
- $rawPrediction : array<string|int, mixed>
-
Raw prediction array.
getValue()
Gets the value of any given key.
private
getValue(array<string|int, mixed> $rawPrediction, string $key) : string|null
Parameters
- $rawPrediction : array<string|int, mixed>
-
Raw prediction array.
- $key : string
-
Key to get the value of.