final class WebhookBillingKey implements Webhook (View source)

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

Constants

KNOWN_TYPES

Known billing key event types per PortOne V2 documentation.

Methods

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

WebhookBillingKey 객체를 초기화합니다.

fromArray(array $body)

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

Details

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

WebhookBillingKey 객체를 초기화합니다.

Parameters

string $type
DateTimeImmutable $timestamp
WebhookBillingKeyData $data

static WebhookBillingKey fromArray(array $body)

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

Parameters

array $body

Return Value

WebhookBillingKey

변환된 객체입니다.