@portone/server-sdk
Version:
PortOne JavaScript SDK for server-side usage
103 lines (102 loc) • 3 kB
TypeScript
import type { ChannelGroupSummary } from "./../common/ChannelGroupSummary.js";
import type { Country } from "./../common/Country.js";
import type { Currency } from "./../common/Currency.js";
import type { Customer } from "./../common/Customer.js";
import type { PaymentAmount } from "./../payment/PaymentAmount.js";
import type { PaymentEscrow } from "./../payment/PaymentEscrow.js";
import type { PaymentFailure } from "./../payment/PaymentFailure.js";
import type { PaymentMethod } from "./../payment/PaymentMethod.js";
import type { PaymentProduct } from "./../common/PaymentProduct.js";
import type { PaymentWebhook } from "./../payment/PaymentWebhook.js";
import type { PortOneVersion } from "./../common/PortOneVersion.js";
import type { SelectedChannel } from "./../common/SelectedChannel.js";
/** 결제 실패 상태 건 */
export type FailedPaymentTransaction = {
/** 결제 시도 상태 */
status: "FAILED";
/**
* 결제 시도 아이디 (transactionId)
*
* V1 결제 건의 경우 imp_uid에 해당합니다.
*/
id: string;
/** 결제 건 아이디 */
paymentId: string;
/** 고객사 아이디 */
merchantId: string;
/** 상점 아이디 */
storeId: string;
/** 결제수단 정보 */
method?: PaymentMethod;
/** 결제 채널 */
channel?: SelectedChannel;
/** 결제 채널 그룹 정보 */
channelGroup?: ChannelGroupSummary;
/** 포트원 버전 */
version: PortOneVersion;
/**
* 결제 예약 건 아이디
*
* 결제 예약을 이용한 경우에만 존재
*/
scheduleId?: string;
/**
* 결제 시 사용된 빌링키
*
* 빌링키 결제인 경우에만 존재
*/
billingKey?: string;
/** 웹훅 발송 내역 */
webhooks?: PaymentWebhook[];
/**
* 결제 요청 시점
* (RFC 3339 date-time)
*/
requestedAt: string;
/**
* 업데이트 시점
* (RFC 3339 date-time)
*/
updatedAt: string;
/**
* 상태 업데이트 시점
* (RFC 3339 date-time)
*/
statusChangedAt: string;
/** 주문명 */
orderName: string;
/** 결제 금액 관련 세부 정보 */
amount: PaymentAmount;
/** 통화 */
currency: Currency;
/** 구매자 정보 */
customer: Customer;
/** 프로모션 아이디 */
promotionId?: string;
/** 문화비 지출 여부 */
isCulturalExpense?: boolean;
/**
* 에스크로 결제 정보
*
* 에스크로 결제인 경우 존재합니다.
*/
escrow?: PaymentEscrow;
/** 상품 정보 */
products?: PaymentProduct[];
/**
* 상품 갯수
* (int32)
*/
productCount?: number;
/** 사용자 지정 데이터 */
customData?: string;
/** 국가 코드 */
country?: Country;
/**
* 결제 실패 시점
* (RFC 3339 date-time)
*/
failedAt: string;
/** 결제 실패 정보 */
failure: PaymentFailure;
};