Skip to content

Commit

Permalink
🐛 fix typo in class name (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianMindee authored May 28, 2024
1 parent 9eedaef commit 77cd589
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/extras/guide/us_mail_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Fields which are specific to this product; they are not used in any other produc
### Sender Address Field
The address of the sender.

A `UsMailV2SenderAddres` implements the following attributes:
A `UsMailV2SenderAddress` implements the following attributes:

* **city** (`string`): The city of the sender's address.
* **complete** (`string`): The complete address of the sender.
Expand Down Expand Up @@ -118,7 +118,7 @@ foreach ($result->document->inference->prediction->recipientNames as $recipientN
```

## Sender Address
**senderAddress** ([UsMailV2SenderAddres](#sender-address-field)): The address of the sender.
**senderAddress** ([UsMailV2SenderAddress](#sender-address-field)): The address of the sender.

```php
echo $result->document->inference->prediction->senderAddress->value;
Expand Down
6 changes: 3 additions & 3 deletions src/Product/Us/UsMail/UsMailV2Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ class UsMailV2Document extends Prediction
*/
public array $recipientNames;
/**
* @var UsMailV2SenderAddres The address of the sender.
* @var UsMailV2SenderAddress The address of the sender.
*/
public UsMailV2SenderAddres $senderAddress;
public UsMailV2SenderAddress $senderAddress;
/**
* @var StringField The name of the sender.
*/
Expand Down Expand Up @@ -52,7 +52,7 @@ public function __construct(array $rawPrediction, ?int $pageId = null)
if (!isset($rawPrediction["sender_address"])) {
throw new MindeeUnsetException();
}
$this->senderAddress = new UsMailV2SenderAddres(
$this->senderAddress = new UsMailV2SenderAddress(
$rawPrediction["sender_address"],
$pageId
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* The address of the sender.
*/
class UsMailV2SenderAddres
class UsMailV2SenderAddress
{
use FieldPositionMixin;
use FieldConfidenceMixin;
Expand Down

0 comments on commit 77cd589

Please sign in to comment.