PriceType
Stay organized with collections
Save and categorize content based on your preferences.
Defines how a total price is determined from an availability.
Enums |
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 |
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 |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-17 UTC.
[null,null,["Last updated 2024-10-17 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 |"]]