Skip to content

Commit 276d203

Browse files
committed
remove attachment event type
1 parent 9bf4dba commit 276d203

3 files changed

Lines changed: 0 additions & 26 deletions

File tree

src/EventType.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ public static function logs(): self
4747
return self::getInstance('log');
4848
}
4949

50-
public static function attachment(): self
51-
{
52-
return self::getInstance('attachment');
53-
}
54-
5550
/**
5651
* List of all cases on the enum.
5752
*
@@ -64,7 +59,6 @@ public static function cases(): array
6459
self::transaction(),
6560
self::checkIn(),
6661
self::logs(),
67-
self::attachment(),
6862
];
6963
}
7064

src/Serializer/EnvelopItems/AttachmentItem.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,6 @@ public static function toAttachmentItem(Attachment $attachment): ?string
2828
return \sprintf("%s\n%s", JSON::encode($header), $data);
2929
}
3030

31-
/**
32-
* Returns the total size of all attachments in bytes.
33-
*
34-
* @param Attachment[] $attachments
35-
*/
36-
public static function totalAttachmentSize(array $attachments): int
37-
{
38-
$sum = 0;
39-
foreach ($attachments as $attachment) {
40-
$sum += $attachment->getSize();
41-
}
42-
43-
return $sum;
44-
}
45-
4631
public static function toEnvelopeItem(Event $event): ?string
4732
{
4833
$result = [];

src/Serializer/PayloadSerializer.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424
*/
2525
final class PayloadSerializer implements PayloadSerializerInterface
2626
{
27-
/**
28-
* Attachments have a limit of 100MB before compression.
29-
*/
30-
private const MAX_ATTACHMENT_SIZE = 100000000;
31-
3227
/**
3328
* @var Options The SDK client options
3429
*/

0 commit comments

Comments
 (0)