final class WebhookTransaction implements Webhook (View source)

Transaction.* 이벤트의 검증된 웹훅을 타입이 지정된 객체로 나타냅니다.

Constants

KNOWN_TYPES

Known transaction event types per PortOne V2 documentation.

Methods

__construct(string $type, DateTimeImmutable $timestamp, WebhookTransactionData $data)

WebhookTransaction 객체를 초기화합니다.

fromArray(array $body)

배열 형식의 API 응답 데이터로 WebhookTransaction 객체를 생성합니다.

Details

__construct(string $type, DateTimeImmutable $timestamp, WebhookTransactionData $data)

WebhookTransaction 객체를 초기화합니다.

Parameters

string $type
DateTimeImmutable $timestamp
WebhookTransactionData $data

static WebhookTransaction fromArray(array $body)

배열 형식의 API 응답 데이터로 WebhookTransaction 객체를 생성합니다.

Parameters

array $body

Return Value

WebhookTransaction

변환된 객체입니다.