PriceType
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
กําหนดราคารวมจากความพร้อมจําหน่ายสินค้า
Enum |
FIXED_RATE_DEFAULT |
ราคานี้เป็นราคาคงที่ ค่าเริ่มต้นนี้ หากไม่ได้ตั้งค่าไว้ในช่องนี้ ตัวอย่าง: มัดจํา $50 เพื่อจองโต๊ะ และจ่ายเงิน $20 สําหรับคลาสโยคะ |
PER_PERSON |
ราคาที่ระบุคือต่อคน และราคารวมจะคํานวณตามขนาดบุคคลที่ระบุในทรัพยากรเป็น priceMicros * partySize ราคา PER_PERSON ต้องมีผู้เข้าร่วมในจํานวนห้องว่างในทรัพยากรห้องว่าง หากไม่รองรับ ระบบจะใช้จํานวนผู้เข้าร่วม 1 ที่นั่ง ตัวอย่าง: ใบละ $10 สําหรับตั๋วเข้าชมพิพิธภัณฑ์ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ 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 |"]]