final class CounterpartyClient extends AbstractClient (View source)

B2B 거래처 API 작업을 제공합니다.

Properties

protected RequestExecutor $executor from  AbstractClient

Methods

__construct(string $apiSecret, RequestExecutor|null $executor = null)

PortOne API Secret과 선택적으로 전달된 공용 요청 실행기로 클라이언트를 초기화합니다.

array
__debugInfo()

인증 정보가 디버그 출력에 노출되지 않도록 빈 정보를 반환합니다.

array
__serialize()

인증 정보가 직렬화되어 노출되지 않도록 직렬화를 거부합니다.

void
__unserialize(array $data)

인증 정보가 포함된 객체의 역직렬화를 거부합니다.

createExecutor(string $apiSecret)

No description

object
callOperation(string $operation, string $method, string $path, array $parameters, string $responseClass, bool $requestBody)

No description

callOperationAsync(string $operation, string $method, string $path, array $parameters, string $responseClass, bool $requestBody)

No description

object
callOperationWithQueryAndBody(string $operation, string $method, string $path, array $query, array $body, string $responseClass)

No description

callOperationWithQueryAndBodyAsync(string $operation, string $method, string $path, array $query, array $body, string $responseClass)

No description

object
callOperationWithQueryRequestBody(string $operation, string $method, string $path, array $query, array $body, string $responseClass)

No description

callOperationWithQueryRequestBodyAsync(string $operation, string $method, string $path, array $query, array $body, string $responseClass)

No description

string
callStringOperation(string $operation, string $method, string $path, array $options = [])

No description

callStringOperationAsync(string $operation, string $method, string $path, array $options = [])

No description

string
callStringOperationWithQueryRequestBody(string $operation, string $method, string $path, array $query, array $body)

No description

callStringOperationWithQueryRequestBodyAsync(string $operation, string $method, string $path, array $query, array $body)

No description

void
callUnitOperation(string $operation, string $method, string $path, array $options = [])

No description

callUnitOperationAsync(string $operation, string $method, string $path, array $options = [])

No description

void
callUnitOperationWithQueryAndBody(string $operation, string $method, string $path, array $query, array $body)

No description

callUnitOperationWithQueryAndBodyAsync(string $operation, string $method, string $path, array $query, array $body)

No description

void
callUnitOperationWithQuery(string $operation, string $method, string $path, array $query)

No description

callUnitOperationWithQueryAsync(string $operation, string $method, string $path, array $query)

No description

createB2bCounterparty(bool|null $test = null, string|null $counterpartyId = null, array|null $counterparty = null, array|null $options = null)

거래처 생성 기능입니다.

createB2bCounterpartyAsync(bool|null $test = null, string|null $counterpartyId = null, array|null $counterparty = null, array|null $options = null)

거래처 생성 기능입니다.

deleteB2bCounterparty(string|null $counterpartyId = null, bool|null $test = null)

거래처 삭제 기능입니다.

deleteB2bCounterpartyAsync(string|null $counterpartyId = null, bool|null $test = null)

거래처 삭제 기능입니다.

getB2bCounterparties(bool|null $test = null, array|null $page = null, array|null $filter = null)

거래처 검색 기능입니다.

getB2bCounterpartiesAsync(bool|null $test = null, array|null $page = null, array|null $filter = null)

거래처 검색 기능입니다.

getB2bCounterparty(string|null $counterpartyId = null, bool|null $test = null)

거래처 조회 기능입니다.

getB2bCounterpartyAsync(string|null $counterpartyId = null, bool|null $test = null)

거래처 조회 기능입니다.

getB2bCounterpartyCertificate(string|null $brn = null, bool|null $test = null)

인증서 조회 기능입니다.

getB2bCounterpartyCertificateAsync(string|null $brn = null, bool|null $test = null)

인증서 조회 기능입니다.

getB2bCounterpartyCertificateRegistrationUrl(string|null $brn = null, bool|null $test = null)

사업자 인증서 등록 URL 조회 기능입니다.

getB2bCounterpartyCertificateRegistrationUrlAsync(string|null $brn = null, bool|null $test = null)

사업자 인증서 등록 URL 조회 기능입니다.

updateB2bCounterparty(string|null $counterpartyId = null, bool|null $test = null, array|null $counterparty = null, array|null $options = null)

거래처 정보 수정 기능입니다.

updateB2bCounterpartyAsync(string|null $counterpartyId = null, bool|null $test = null, array|null $counterparty = null, array|null $options = null)

거래처 정보 수정 기능입니다.

validateB2bCounterpartyCertificate(string|null $brn = null, bool|null $test = null)

사업자 인증서 유효성 검증 기능입니다.

validateB2bCounterpartyCertificateAsync(string|null $brn = null, bool|null $test = null)

사업자 인증서 유효성 검증 기능입니다.

Details

__construct(string $apiSecret, RequestExecutor|null $executor = null)

PortOne API Secret과 선택적으로 전달된 공용 요청 실행기로 클라이언트를 초기화합니다.

Parameters

string $apiSecret

PortOne V2 API 요청 인증에 사용하는 API Secret입니다.

RequestExecutor|null $executor

부모 클라이언트와 공유하는 요청 실행기입니다.

array __debugInfo()

인증 정보가 디버그 출력에 노출되지 않도록 빈 정보를 반환합니다.

Return Value

array

array __serialize()

인증 정보가 직렬화되어 노출되지 않도록 직렬화를 거부합니다.

Return Value

array

void __unserialize(array $data)

인증 정보가 포함된 객체의 역직렬화를 거부합니다.

Parameters

array $data

Return Value

void

protected RequestExecutor createExecutor(string $apiSecret)

No description

Parameters

string $apiSecret

Return Value

RequestExecutor

protected object callOperation(string $operation, string $method, string $path, array $parameters, string $responseClass, bool $requestBody)

No description

Parameters

string $operation
string $method
string $path
array $parameters
string $responseClass
bool $requestBody

Return Value

object

protected Future callOperationAsync(string $operation, string $method, string $path, array $parameters, string $responseClass, bool $requestBody)

No description

Parameters

string $operation
string $method
string $path
array $parameters
string $responseClass
bool $requestBody

Return Value

Future

protected object callOperationWithQueryAndBody(string $operation, string $method, string $path, array $query, array $body, string $responseClass)

No description

Parameters

string $operation
string $method
string $path
array $query
array $body
string $responseClass

Return Value

object

protected Future callOperationWithQueryAndBodyAsync(string $operation, string $method, string $path, array $query, array $body, string $responseClass)

No description

Parameters

string $operation
string $method
string $path
array $query
array $body
string $responseClass

Return Value

Future

protected object callOperationWithQueryRequestBody(string $operation, string $method, string $path, array $query, array $body, string $responseClass)

No description

Parameters

string $operation
string $method
string $path
array $query
array $body
string $responseClass

Return Value

object

protected Future callOperationWithQueryRequestBodyAsync(string $operation, string $method, string $path, array $query, array $body, string $responseClass)

No description

Parameters

string $operation
string $method
string $path
array $query
array $body
string $responseClass

Return Value

Future

protected string callStringOperation(string $operation, string $method, string $path, array $options = [])

No description

Parameters

string $operation
string $method
string $path
array $options

Return Value

string

protected Future callStringOperationAsync(string $operation, string $method, string $path, array $options = [])

No description

Parameters

string $operation
string $method
string $path
array $options

Return Value

Future

protected string callStringOperationWithQueryRequestBody(string $operation, string $method, string $path, array $query, array $body)

No description

Parameters

string $operation
string $method
string $path
array $query
array $body

Return Value

string

protected Future callStringOperationWithQueryRequestBodyAsync(string $operation, string $method, string $path, array $query, array $body)

No description

Parameters

string $operation
string $method
string $path
array $query
array $body

Return Value

Future

protected void callUnitOperation(string $operation, string $method, string $path, array $options = [])

No description

Parameters

string $operation
string $method
string $path
array $options

Return Value

void

protected Future callUnitOperationAsync(string $operation, string $method, string $path, array $options = [])

No description

Parameters

string $operation
string $method
string $path
array $options

Return Value

Future

protected void callUnitOperationWithQueryAndBody(string $operation, string $method, string $path, array $query, array $body)

No description

Parameters

string $operation
string $method
string $path
array $query
array $body

Return Value

void

protected Future callUnitOperationWithQueryAndBodyAsync(string $operation, string $method, string $path, array $query, array $body)

No description

Parameters

string $operation
string $method
string $path
array $query
array $body

Return Value

Future

protected void callUnitOperationWithQuery(string $operation, string $method, string $path, array $query)

No description

Parameters

string $operation
string $method
string $path
array $query

Return Value

void

protected Future callUnitOperationWithQueryAsync(string $operation, string $method, string $path, array $query)

No description

Parameters

string $operation
string $method
string $path
array $query

Return Value

Future

CreateB2bCounterpartyResponse createB2bCounterparty(bool|null $test = null, string|null $counterpartyId = null, array|null $counterparty = null, array|null $options = null)

거래처 생성 기능입니다.

거래처를 생성합니다.

Parameters

bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

string|null $counterpartyId

거래처 아이디: 입력하지 않으면 임의의 ID가 채번됩니다.

array|null $counterparty

거래처 입력 정보

array|null $options

거래처 생성 옵션

Return Value

CreateB2bCounterpartyResponse

Future createB2bCounterpartyAsync(bool|null $test = null, string|null $counterpartyId = null, array|null $counterparty = null, array|null $options = null)

거래처 생성 기능입니다.

거래처를 생성합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.

Parameters

bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

string|null $counterpartyId

거래처 아이디: 입력하지 않으면 임의의 ID가 채번됩니다.

array|null $counterparty

거래처 입력 정보

array|null $options

거래처 생성 옵션

Return Value

Future

DeleteB2bCounterpartyResponse deleteB2bCounterparty(string|null $counterpartyId = null, bool|null $test = null)

거래처 삭제 기능입니다.

거래처를 삭제합니다.

Parameters

string|null $counterpartyId

거래처 ID

bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

Return Value

DeleteB2bCounterpartyResponse

Future deleteB2bCounterpartyAsync(string|null $counterpartyId = null, bool|null $test = null)

거래처 삭제 기능입니다.

거래처를 삭제합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.

Parameters

string|null $counterpartyId

거래처 ID

bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

Return Value

Future

GetB2bCounterpartiesResponse getB2bCounterparties(bool|null $test = null, array|null $page = null, array|null $filter = null)

거래처 검색 기능입니다.

거래처를 검색합니다.

Parameters

bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

array|null $page

다건 조회 API 에 사용되는 페이지 입력 정보

array|null $filter

거래처 검색 필터

Return Value

GetB2bCounterpartiesResponse

Future getB2bCounterpartiesAsync(bool|null $test = null, array|null $page = null, array|null $filter = null)

거래처 검색 기능입니다.

거래처를 검색합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.

Parameters

bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

array|null $page

다건 조회 API 에 사용되는 페이지 입력 정보

array|null $filter

거래처 검색 필터

Return Value

Future

B2bCounterparty getB2bCounterparty(string|null $counterpartyId = null, bool|null $test = null)

거래처 조회 기능입니다.

거래처를 조회합니다.

Parameters

string|null $counterpartyId

거래처 ID

bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

Return Value

B2bCounterparty

Future getB2bCounterpartyAsync(string|null $counterpartyId = null, bool|null $test = null)

거래처 조회 기능입니다.

거래처를 조회합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.

Parameters

string|null $counterpartyId

거래처 ID

bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

Return Value

Future

B2bCertificate getB2bCounterpartyCertificate(string|null $brn = null, bool|null $test = null)

인증서 조회 기능입니다.

연동 사업자의 인증서를 조회합니다.

Parameters

string|null $brn 사업자등록번호
bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

Return Value

B2bCertificate

Future getB2bCounterpartyCertificateAsync(string|null $brn = null, bool|null $test = null)

인증서 조회 기능입니다.

연동 사업자의 인증서를 조회합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.

Parameters

string|null $brn 사업자등록번호
bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

Return Value

Future

GetB2bCounterpartyCertificateRegistrationUrlResponse getB2bCounterpartyCertificateRegistrationUrl(string|null $brn = null, bool|null $test = null)

사업자 인증서 등록 URL 조회 기능입니다.

연동 사업자의 인증서를 등록하기 위한 URL을 조회합니다.

Parameters

string|null $brn 사업자등록번호
bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

Return Value

GetB2bCounterpartyCertificateRegistrationUrlResponse

Future getB2bCounterpartyCertificateRegistrationUrlAsync(string|null $brn = null, bool|null $test = null)

사업자 인증서 등록 URL 조회 기능입니다.

연동 사업자의 인증서를 등록하기 위한 URL을 조회합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.

Parameters

string|null $brn 사업자등록번호
bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

Return Value

Future

UpdateB2bCounterpartyResponse updateB2bCounterparty(string|null $counterpartyId = null, bool|null $test = null, array|null $counterparty = null, array|null $options = null)

거래처 정보 수정 기능입니다.

거래처 정보를 수정합니다.

Parameters

string|null $counterpartyId

거래처 ID

bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

array|null $counterparty

거래처 입력 정보

array|null $options

거래처 생성 옵션: 사업자 정보 및 휴폐업 상태 조회 옵션입니다.

Return Value

UpdateB2bCounterpartyResponse

Future updateB2bCounterpartyAsync(string|null $counterpartyId = null, bool|null $test = null, array|null $counterparty = null, array|null $options = null)

거래처 정보 수정 기능입니다.

거래처 정보를 수정합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.

Parameters

string|null $counterpartyId

거래처 ID

bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

array|null $counterparty

거래처 입력 정보

array|null $options

거래처 생성 옵션: 사업자 정보 및 휴폐업 상태 조회 옵션입니다.

Return Value

Future

ValidateB2bCounterpartyCertificateResponse validateB2bCounterpartyCertificate(string|null $brn = null, bool|null $test = null)

사업자 인증서 유효성 검증 기능입니다.

연동 사업자가 등록한 인증서의 유효성을 검증합니다.

Parameters

string|null $brn 사업자등록번호
bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

Return Value

ValidateB2bCounterpartyCertificateResponse

Future validateB2bCounterpartyCertificateAsync(string|null $brn = null, bool|null $test = null)

사업자 인증서 유효성 검증 기능입니다.

연동 사업자가 등록한 인증서의 유효성을 검증합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.

Parameters

string|null $brn 사업자등록번호
bool|null $test

테스트 모드 여부: true 이면 테스트 모드로 실행되며, false 이거나 주어지지 않은 경우 테스트 모드를 사용하지 않습니다.

Return Value

Future