상품상세 구매하기

상품 상세 페이지에서 노출되는 상품 구매하기 모듈입니다.

관련 API : 🔗 적립금 이력 조회 API
모듈명: product-purchase원본소스
상품 상세 구매하기

사용 가능 변수

변수명 타입 기본값 설명
unpurchasable boolean false 판매불가 여부
hasOnlyOneOption boolean false 옵션이 하나인 경우 true
totalPrice number 0 상품 총액
likeStatus LikeStatus - 상품 좋아요 상태
textOptionsByProduct TextOptionsByProduct - 상품별 텍스트 옵션
textOptionsMapByOption Map<TextOptionsMapByOption> - 옵션별 텍스트 옵션
(아래 타입 참조)
quantities Quantity[] [] 구매수량
selectorOptions SelectorOption[] [] OOOO
visibleCartButton boolean false 장바구니 사용가능여부

LikeStatus 타입

속성명 타입 기본값 설명
isLiked boolean false 좋아요 여부
count number 0 좋아요 수

Quantity 타입

속성명 타입 기본값 설명
main boolean false 대표 옵션 여부
disabled boolean false 옵션 비활성화 여부
forcedSoldOut boolean false 임시 품절 여부
images OOOO OOOO 옵션 이미지
saleType AVAILABLE | TEMPSOLDOUT | SOLD_OUT AVAILABLE 판매타입
customSaleType AVAILABLE | TEMPSOLDOUT | SOLD_OUT AVAILABLE 판매타입
value string - 옵션값
label string - 옵션명
depthKey string - 옵션 그룹의 유니크 값
disableLabel string - 옵션 비활성화 문구
displayLabel string - 옵션명
optionDepthKey string - 옵션의 유니크 값
optionManagementCd string - 옵션 판매자 관리 코드
count number 1 옵션 선택 수량
addPrice number 0 추가금액
buyPrice number 0 할인적용가
saleCnt number 0 판매수량
stockCnt number 0 재고수량
totalPrice number 0 할인적용가
reservationStockCnt number 0 예약재고수량
optionNo number - 옵션번호
children Quantity[] [] 자식 옵션 목록
rentalInfo RentalInfo[] [] 옵션 조회 API 응답 중 flatOptions > rentalInfo와 동일 (렌탈료 정보)
(아래 타입 참조)

SelectorOption 타입

속성명 타입 기본값 설명
depthKey string - 옵션 그룹의 유니크 값
option SelectedOption - -

TextOptionsMapByOption 타입

속성명 타입 기본값 설명
key string - 옵션 그룹의 유니크 값
value TextOptionValue[] [] OOOO

TextOptionsByProduct 타입

속성명 타입 기본값 설명
textOptionKey number - 텍스트 옵션 번호
textOption TextOption - 텍스트 옵션

RentalInfo 타입

속성명 타입 기본값 설명
rentalPeriod number 0 렌탈 기간
creditRating number 0 서비스 가능 최저 신용 등급
monthlyRentalAmount number 0 월 렌탈 금액

SelectedOption 타입

속성명 타입 기본값 설명
disabled boolean false 옵션 비활성화 여부
customSaleType AVAILABLE | TEMPSOLDOUT | SOLD_OUT AVAILABLE 판매타입
depthKey string - 옵션 그룹의 유니크 값
emptyOptionLabel string - 텍스트 옵션 입력 문구
selectedOptionDepthKey string - 선택한 옵션의 유니크 값
options Quantity[] [] 옵션
(아래 타입 참조)

TextOption 타입

속성명 타입 기본값 설명
required boolean false 필수여부
inputMatchingType OPTION | PRODUCT | AMOUNT OPTION 매칭타입
value string - 옵션 값
inputLabel string - 텍스트 옵션 입력 문구
inputNo number - 텍스트 옵션 번호
optionNo number - 옵션 번호
textOptionKey number - 텍스트 옵션 번호

TextOptionValue 타입

속성명 타입 기본값 설명
required boolean false 필수여부
byQuantity boolean false 수량별 입력 여부
inputMatchingType OPTION | PRODUCT | AMOUNT OPTION 매칭타입
inputLabel string - 텍스트 옵션 입력 문구
value string[] [] 옵션 값
inputNo number - 텍스트 옵션 번호
optionNo number - 옵션 번호
textOptionKey number - 텍스트 옵션 번호
커스텀 핸들바 더 알아보기
:query 속성 더 알아보기