PriceType
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이용 가능 여부로부터 총 가격이 결정되는 방식을 정의합니다.
열거형 |
FIXED_RATE_DEFAULT |
가격은 고정 금액입니다. 필드가 설정되지 않은 경우 기본값입니다. 예: 테이블 예약을 위한 50달러 입금, 요가 강좌의 예약 불이행 수수료 20달러 |
PER_PERSON |
지정된 가격은 1인당 가격이며, 가격은 리소스에서 priceMicros * partySize로 지정된 인원 수에 따라 계산됩니다. PER_PERSON 가격은 이용 가능 여부 리소스의 인원 수와 함께 제공되어야 합니다. 그렇지 않은 경우 인원 수가 사용됩니다. 예: 박물관 입장권당 10달러 |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eTotal price can be a fixed amount (\u003ccode\u003eFIXED_RATE_DEFAULT\u003c/code\u003e) or calculated per person (\u003ccode\u003ePER_PERSON\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePER_PERSON\u003c/code\u003e pricing multiplies the price by the party size, defaulting to one if not specified.\u003c/p\u003e\n"],["\u003cp\u003ePrices are represented in micros and examples include deposits, no-show fees, and per-person tickets.\u003c/p\u003e\n"]]],[],null,["# PriceType\n\nDefines how a total price is determined from an availability.\n\n| Enums ||\n|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `FIXED_RATE_DEFAULT` | The price is for a fixed amount. This is the default value if the field is not set. Examples: $50 deposit to reserve a table; $20 no show fee for a yoga class |\n| `PER_PERSON` | The price specified is per person, and the total price is calculated according to the party size specified in Resources as priceMicros \\* partySize. A PER_PERSON price must be accompanied by a party size in the availability resources. If it is not, a party size of one is used. Examples: $10 each for tickets to a museum |"]]