PriceType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
FIXED_RATE_DEFAULT |
价格为固定金额。如果未设置该字段,将使用默认值。 示例:预订餐位的押金为 50 元;瑜伽课的违约金为 20 元 |
PER_PERSON |
指定的价格为每人的费用,总费用则是根据“资源”中指定的人数进行计算的,计算方法为 priceMicros * partySize。PER_PERSON 价格必须与可用资源中的人数一同显示。如果未显示,则假设人数为 1。 示例:博物馆门票每张 10 元 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\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 |"]]