final class B2bTaxInvoice extends OperationResponse (View source)

PortOne V2 API의 세금계산서를 나타내는 모델입니다.

Methods

__construct(string $id, string $status, string $taxationType, string $documentModificationType, bool|null $isDelayed, string $issuanceType, string|null $bulkTaxInvoiceId, string|null $serialNumber, int|null $bookVolume, int|null $bookIssue, string $writeDate, string $issuanceDueDate, string $purposeType, int $totalSupplyAmount, int $totalTaxAmount, int $totalAmount, int|null $cashAmount, int|null $checkAmount, int|null $creditAmount, int|null $noteAmount, array $remarks, string|null $supplierDocumentKey, array $supplier, string|null $recipientDocumentKey, array $recipient, bool|null $sendSms, array|null $modification, array $items, array $additionalContacts, string|null $memo, string|null $draftedAt, string|null $requestedAt, string|null $issuedAt, string|null $statusUpdatedAt, string|null $ntsSentAt, string|null $ntsApprovalNumber, string|null $ntsResult, string|null $ntsResultCode, string|null $ntsResultReceivedAt, string|null $deletedAt)

B2bTaxInvoice 객체를 초기화합니다.

fromArray(array $data)

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

static array
requireObject(array $data, string $field, string $response)

지정한 필드가 객체 배열인지 확인하고 반환합니다.

static array|null
optionalObject(array $data, string $field, string $response)

지정한 필드가 없거나 null이면 null을 반환하고, 값이 있으면 객체 배열인지 확인해 반환합니다.

static array
requireObjectList(array $data, string $field, string $response)

지정한 필드가 객체 배열의 목록인지 확인하고 반환합니다.

static array|null
optionalObjectList(array $data, string $field, string $response)

지정한 필드가 없거나 null이면 null을 반환하고, 값이 있으면 객체 배열 목록인지 확인해 반환합니다.

static array|null
optionalNonNullableObject(array $data, string $field, string $response)

지정한 필드가 없으면 null을 반환하고, 값이 있으면 객체 배열인지 확인해 반환합니다.

static array|null
optionalNonNullableObjectList(array $data, string $field, string $response)

지정한 필드가 없으면 null을 반환하고, 값이 있으면 객체 배열 목록인지 확인해 반환합니다.

static array
mapObjectList(array $items, callable $factory)

객체 배열 목록의 각 항목에 변환 함수를 적용합니다.

static array
requireStringList(array $data, string $field, string $response)

지정한 필드가 문자열 목록인지 확인하고 반환합니다.

static string|null
optionalString(array $data, string $field, string $response)

지정한 필드가 없거나 null이면 null을 반환하고, 값이 있으면 문자열인지 확인해 반환합니다.

static string|null
optionalNonNullableString(array $data, string $field, string $response)

지정한 필드가 없으면 null을 반환하고, 값이 있으면 문자열인지 확인해 반환합니다.

static int|null
optionalNonNullableInt(array $data, string $field, string $response)

지정한 필드가 없으면 null을 반환하고, 값이 있으면 정수인지 확인해 반환합니다.

static bool|null
optionalNonNullableBool(array $data, string $field, string $response)

지정한 필드가 없으면 null을 반환하고, 값이 있으면 불리언인지 확인해 반환합니다.

static string
requireString(array $data, string $field, string $response)

지정한 필드가 문자열인지 확인하고 반환합니다.

static bool
requireBool(array $data, string $field, string $response)

지정한 필드가 불리언인지 확인하고 반환합니다.

static int
requireInt(array $data, string $field, string $response)

지정한 필드가 정수인지 확인하고 반환합니다.

static array
requireIntList(array $data, string $field, string $response)

지정한 필드가 정수 목록인지 확인하고 반환합니다.

Details

__construct(string $id, string $status, string $taxationType, string $documentModificationType, bool|null $isDelayed, string $issuanceType, string|null $bulkTaxInvoiceId, string|null $serialNumber, int|null $bookVolume, int|null $bookIssue, string $writeDate, string $issuanceDueDate, string $purposeType, int $totalSupplyAmount, int $totalTaxAmount, int $totalAmount, int|null $cashAmount, int|null $checkAmount, int|null $creditAmount, int|null $noteAmount, array $remarks, string|null $supplierDocumentKey, array $supplier, string|null $recipientDocumentKey, array $recipient, bool|null $sendSms, array|null $modification, array $items, array $additionalContacts, string|null $memo, string|null $draftedAt, string|null $requestedAt, string|null $issuedAt, string|null $statusUpdatedAt, string|null $ntsSentAt, string|null $ntsApprovalNumber, string|null $ntsResult, string|null $ntsResultCode, string|null $ntsResultReceivedAt, string|null $deletedAt)

B2bTaxInvoice 객체를 초기화합니다.

Parameters

string $id
string $status
string $taxationType
string $documentModificationType
bool|null $isDelayed
string $issuanceType
string|null $bulkTaxInvoiceId
string|null $serialNumber
int|null $bookVolume
int|null $bookIssue
string $writeDate
string $issuanceDueDate
string $purposeType
int $totalSupplyAmount
int $totalTaxAmount
int $totalAmount
int|null $cashAmount
int|null $checkAmount
int|null $creditAmount
int|null $noteAmount
array $remarks
string|null $supplierDocumentKey
array $supplier
string|null $recipientDocumentKey
array $recipient
bool|null $sendSms
array|null $modification
array $items
array $additionalContacts
string|null $memo
string|null $draftedAt
string|null $requestedAt
string|null $issuedAt
string|null $statusUpdatedAt
string|null $ntsSentAt
string|null $ntsApprovalNumber
string|null $ntsResult
string|null $ntsResultCode
string|null $ntsResultReceivedAt
string|null $deletedAt

static OperationResponse fromArray(array $data)

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

Parameters

array $data

Return Value

OperationResponse

변환된 객체입니다.

static array requireObject(array $data, string $field, string $response)

지정한 필드가 객체 배열인지 확인하고 반환합니다.

Parameters

array $data
string $field
string $response

Return Value

array

static array|null optionalObject(array $data, string $field, string $response)

지정한 필드가 없거나 null이면 null을 반환하고, 값이 있으면 객체 배열인지 확인해 반환합니다.

Parameters

array $data
string $field
string $response

Return Value

array|null

static array requireObjectList(array $data, string $field, string $response)

지정한 필드가 객체 배열의 목록인지 확인하고 반환합니다.

Parameters

array $data
string $field
string $response

Return Value

array

static array|null optionalObjectList(array $data, string $field, string $response)

지정한 필드가 없거나 null이면 null을 반환하고, 값이 있으면 객체 배열 목록인지 확인해 반환합니다.

Parameters

array $data
string $field
string $response

Return Value

array|null

static array|null optionalNonNullableObject(array $data, string $field, string $response)

지정한 필드가 없으면 null을 반환하고, 값이 있으면 객체 배열인지 확인해 반환합니다.

Parameters

array $data
string $field
string $response

Return Value

array|null

static array|null optionalNonNullableObjectList(array $data, string $field, string $response)

지정한 필드가 없으면 null을 반환하고, 값이 있으면 객체 배열 목록인지 확인해 반환합니다.

Parameters

array $data
string $field
string $response

Return Value

array|null

static array mapObjectList(array $items, callable $factory)

객체 배열 목록의 각 항목에 변환 함수를 적용합니다.

Parameters

array $items
callable $factory

Return Value

array

static array requireStringList(array $data, string $field, string $response)

지정한 필드가 문자열 목록인지 확인하고 반환합니다.

Parameters

array $data
string $field
string $response

Return Value

array

static string|null optionalString(array $data, string $field, string $response)

지정한 필드가 없거나 null이면 null을 반환하고, 값이 있으면 문자열인지 확인해 반환합니다.

Parameters

array $data
string $field
string $response

Return Value

string|null

static string|null optionalNonNullableString(array $data, string $field, string $response)

지정한 필드가 없으면 null을 반환하고, 값이 있으면 문자열인지 확인해 반환합니다.

Parameters

array $data
string $field
string $response

Return Value

string|null

static int|null optionalNonNullableInt(array $data, string $field, string $response)

지정한 필드가 없으면 null을 반환하고, 값이 있으면 정수인지 확인해 반환합니다.

Parameters

array $data
string $field
string $response

Return Value

int|null

static bool|null optionalNonNullableBool(array $data, string $field, string $response)

지정한 필드가 없으면 null을 반환하고, 값이 있으면 불리언인지 확인해 반환합니다.

Parameters

array $data
string $field
string $response

Return Value

bool|null

static string requireString(array $data, string $field, string $response)

지정한 필드가 문자열인지 확인하고 반환합니다.

Parameters

array $data
string $field
string $response

Return Value

string

static bool requireBool(array $data, string $field, string $response)

지정한 필드가 불리언인지 확인하고 반환합니다.

Parameters

array $data
string $field
string $response

Return Value

bool

static int requireInt(array $data, string $field, string $response)

지정한 필드가 정수인지 확인하고 반환합니다.

Parameters

array $data
string $field
string $response

Return Value

int

static array requireIntList(array $data, string $field, string $response)

지정한 필드가 정수 목록인지 확인하고 반환합니다.

Parameters

array $data
string $field
string $response

Return Value

array