CashReceiptClient

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

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

Constructors

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

Functions

Link copied to clipboard
@JvmName(name = "cancelCashReceiptByPaymentIdSuspend")
suspend fun cancelCashReceiptByPaymentId(paymentId: String): CancelCashReceiptResponse

현금 영수증 취소

Link copied to clipboard
open override fun close()
Link copied to clipboard
@JvmName(name = "getCashReceiptByPaymentIdSuspend")
suspend fun getCashReceiptByPaymentId(paymentId: String): CashReceipt

현금 영수증 단건 조회

Link copied to clipboard
@JvmName(name = "issueCashReceiptSuspend")
suspend fun issueCashReceipt(paymentId: String, channelKey: String, type: CashReceiptType, orderName: String, currency: Currency, amount: PaymentAmountInput, productType: PaymentProductType? = null, customer: IssueCashReceiptCustomerInput, paidAt: Instant? = null, businessRegistrationNumber: String? = null, paymentMethod: IssueCashReceiptPaymentMethodType? = null): IssueCashReceiptResponse

현금 영수증 수동 발급