TaxInvoiceClient

class TaxInvoiceClient(apiSecret: String, apiBase: String = "https://api.portone.io", storeId: String? = null) : Closeable

API Secret을 사용해 포트원 API 클라이언트를 생성합니다.

Parameters

apiSecret

포트원 API Secret입니다.

apiBase

포트원 REST API 주소입니다. 기본값은 "https://api.portone.io"입니다.

storeId

하위 상점에 대해 기능을 사용할 때 필요한 하위 상점의 ID입니다.

Constructors

Link copied to clipboard
constructor(apiSecret: String, apiBase: String = "https://api.portone.io", storeId: String? = null)

Functions

Link copied to clipboard
@JvmName(name = "attachB2bTaxInvoiceFileSuspend")
suspend fun attachB2bTaxInvoiceFile(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null, fileId: String)

세금계산서 파일 첨부

Link copied to clipboard
@JvmName(name = "cancelB2bTaxInvoiceIssuanceSuspend")
suspend fun cancelB2bTaxInvoiceIssuance(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null, memo: String? = null): CancelB2bTaxInvoiceIssuanceResponse

세금계산서 취소 (공급자에 의한 취소)

Link copied to clipboard
@JvmName(name = "cancelB2bTaxInvoiceRequestSuspend")
suspend fun cancelB2bTaxInvoiceRequest(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null, memo: String? = null): CancelB2bTaxInvoiceRequestResponse

세금계산서 역발행 요청 취소 (공급받는자에 의한 취소)

Link copied to clipboard
open override fun close()
Link copied to clipboard
@JvmName(name = "createB2bFileUploadUrlSuspend")
suspend fun createB2bFileUploadUrl(test: Boolean? = null, fileName: String): CreateB2bFileUploadUrlPayload

파일 업로드 URL 생성

Link copied to clipboard
@JvmName(name = "deleteB2bTaxInvoiceSuspend")
suspend fun deleteB2bTaxInvoice(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null): DeleteB2bTaxInvoiceResponse

세금계산서 삭제

Link copied to clipboard
@JvmName(name = "deleteB2bTaxInvoiceAttachmentSuspend")
suspend fun deleteB2bTaxInvoiceAttachment(taxInvoiceKey: String, attachmentId: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null)

세금계산서 첨부파일 삭제

Link copied to clipboard
@JvmName(name = "downloadB2bTaxInvoicesSheetSuspend")
suspend fun downloadB2bTaxInvoicesSheet(filter: GetB2bTaxInvoicesBodyFilter? = null, fields: List<TaxInvoicesSheetField>? = null, test: Boolean? = null): String

세금계산서 엑셀 파일(csv) 다운로드

Link copied to clipboard
@JvmName(name = "draftB2bTaxInvoiceSuspend")
suspend fun draftB2bTaxInvoice(test: Boolean? = null, taxInvoice: B2bTaxInvoiceInput, modification: B2bTaxInvoiceModificationCreateBody? = null, memo: String? = null): DraftB2bTaxInvoiceResponse

세금계산서 임시 저장

Link copied to clipboard
@JvmName(name = "getB2bBulkTaxInvoiceSuspend")
suspend fun getB2bBulkTaxInvoice(bulkTaxInvoiceId: String, test: Boolean? = null): B2bBulkTaxInvoice

일괄 세금계산서 조회

Link copied to clipboard
@JvmName(name = "getB2bTaxInvoiceSuspend")
suspend fun getB2bTaxInvoice(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null): B2bTaxInvoice

세금 계산서 조회

Link copied to clipboard
@JvmName(name = "getB2bTaxInvoiceAttachmentsSuspend")
suspend fun getB2bTaxInvoiceAttachments(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null): GetB2bTaxInvoiceAttachmentsResponse

세금계산서 첨부파일 목록 조회

Link copied to clipboard
@JvmName(name = "getB2bTaxInvoicePdfDownloadUrlSuspend")
suspend fun getB2bTaxInvoicePdfDownloadUrl(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null): GetB2bTaxInvoicePdfDownloadUrlResponse

세금 계산서 PDF 다운로드 URL 조회

Link copied to clipboard
@JvmName(name = "getB2bTaxInvoicePopupUrlSuspend")
suspend fun getB2bTaxInvoicePopupUrl(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, includeMenu: Boolean? = null, test: Boolean? = null): GetB2bTaxInvoicePopupUrlResponse

세금 계산서 팝업 URL 조회

Link copied to clipboard
@JvmName(name = "getB2bTaxInvoicePrintUrlSuspend")
suspend fun getB2bTaxInvoicePrintUrl(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null): GetB2bTaxInvoicePrintUrlResponse

세금 계산서 프린트 URL 조회

Link copied to clipboard
@JvmName(name = "getB2bTaxInvoicesSuspend")
suspend fun getB2bTaxInvoices(test: Boolean? = null, pageNumber: Int? = null, pageSize: Int? = null, filter: GetB2bTaxInvoicesBodyFilter? = null): GetB2bTaxInvoicesResponse

세금 계산서 다건조회

Link copied to clipboard
@JvmName(name = "issueB2bTaxInvoiceSuspend")
suspend fun issueB2bTaxInvoice(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null, memo: String? = null, emailSubject: String? = null): IssueB2bTaxInvoiceResponse

세금계산서 발행 승인

Link copied to clipboard
@JvmName(name = "issueB2bTaxInvoiceImmediatelySuspend")
suspend fun issueB2bTaxInvoiceImmediately(test: Boolean? = null, taxInvoice: B2bTaxInvoiceInput, memo: String? = null, modification: B2bTaxInvoiceModificationCreateBody? = null): IssueB2bTaxInvoiceImmediatelyResponse

세금계산서 즉시 정발행

Link copied to clipboard
@JvmName(name = "refuseB2bTaxInvoiceRequestSuspend")
suspend fun refuseB2bTaxInvoiceRequest(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null, memo: String? = null): RefuseB2bTaxInvoiceRequestResponse

세금계산서 역발행 요청 거부

Link copied to clipboard
@JvmName(name = "requestB2bTaxInvoiceSuspend")
suspend fun requestB2bTaxInvoice(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null): RequestB2bTaxInvoiceResponse

세금계산서 역발행 요청

Link copied to clipboard
@JvmName(name = "requestB2bTaxInvoiceReverseIssuanceSuspend")
suspend fun requestB2bTaxInvoiceReverseIssuance(test: Boolean? = null, taxInvoice: B2bTaxInvoiceInput, memo: String? = null, modification: B2bTaxInvoiceModificationCreateBody? = null): RequestB2bTaxInvoiceReverseIssuanceResponse

세금계산서 역발행 즉시 요청

Link copied to clipboard
@JvmName(name = "sendToNtsB2bTaxInvoiceSuspend")
suspend fun sendToNtsB2bTaxInvoice(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null): SendToNtsB2bTaxInvoiceResponse

세금계산서 국세청 즉시 전송

Link copied to clipboard
@JvmName(name = "updateB2bTaxInvoiceDraftSuspend")
suspend fun updateB2bTaxInvoiceDraft(test: Boolean? = null, brn: String? = null, taxInvoiceKey: String, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, taxInvoice: B2bTaxInvoiceInput, memo: String? = null): UpdateB2bTaxInvoiceDraftResponse

세금계산서 임시저장 수정