REST Resource: accounts.priceViews
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:PriceView
价格视图。介绍了 3.0 版之前的 API 中的“价格”功能。
字段 |
name |
string
资源名称采用 accounts/{account_id}/priceViews/{partnerHotelId} 格式。
|
perItineraryPrices[] |
object (HotelPricePerItinerary )
每次行程的价格。
|
酒店价格/行程
JSON 表示法 |
{
"checkinDate": {
object (Date )
},
"lengthOfStayDays": integer,
"price": number,
"taxes": number,
"fees": number,
"currencyCode": string,
"updateTime": string
} |
字段 |
checkinDate |
object (Date )
入住日期。
|
lengthOfStayDays |
integer
行程的住宿晚数。
|
price |
number
此行程的酒店价格。
|
taxes |
number
此行程的税费。
|
fees |
number
此行程的费用。
|
currencyCode |
string
price 、taxes 和fees 的币种。
|
updateTime |
string (Timestamp format)
更新此酒店价格的时间戳。 时间戳采用 RFC3339 世界协调时间 (UTC)(即“祖鲁时”)格式,分辨率为纳秒级,最多包含九个小数位。示例:"2014-10-02T15:01:23Z" 和 "2014-10-02T15:01:23.045123456Z" 。
|
保留所有权利。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-08-23。
[null,null,["最后更新时间 (UTC):2022-08-23。"],[[["\u003cp\u003ePriceView resource shows hotel prices and is compatible with pre-v3.0 APIs.\u003c/p\u003e\n"],["\u003cp\u003eHotelPricePerItinerary object provides price details for a specific itinerary including check-in date, duration, price, taxes, fees, currency, and update timestamp.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve a detailed price view using the \u003ccode\u003eget\u003c/code\u003e method.\u003c/p\u003e\n"]]],[],null,["# REST Resource: accounts.priceViews\n\n- [Resource: PriceView](#PriceView)\n - [JSON representation](#PriceView.SCHEMA_REPRESENTATION)\n- [HotelPricePerItinerary](#HotelPricePerItinerary)\n - [JSON representation](#HotelPricePerItinerary.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: PriceView\n-------------------\n\nA price view. Covers the Prices functionality in pre-v3.0 API versions.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"perItineraryPrices\": [ { object (/hotels/hotel-prices/api-reference/rest/v3/accounts.priceViews#HotelPricePerItinerary) } ] } ``` |\n\n| Fields ||\n|------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Resource name in the format `accounts/{account_id}/priceViews/{partnerHotelId}`. |\n| `perItineraryPrices[]` | `object (`[HotelPricePerItinerary](/hotels/hotel-prices/api-reference/rest/v3/accounts.priceViews#HotelPricePerItinerary)`)` Price for each itinerary. |\n\nHotelPricePerItinerary\n----------------------\n\nHotel price for a given itinerary.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"checkinDate\": { object (/hotels/hotel-prices/api-reference/rest/v3/Date) }, \"lengthOfStayDays\": integer, \"price\": number, \"taxes\": number, \"fees\": number, \"currencyCode\": string, \"updateTime\": string } ``` |\n\n| Fields ||\n|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `checkinDate` | `object (`[Date](/hotels/hotel-prices/api-reference/rest/v3/Date)`)` Check-in date. |\n| `lengthOfStayDays` | `integer` Number of nights for the itinerary. |\n| `price` | `number` Hotel price for this itinerary. |\n| `taxes` | `number` Taxes for this itinerary. |\n| `fees` | `number` Fees for this itinerary. |\n| `currencyCode` | `string` Currency for `price`, `taxes`, and `fees`. |\n| `updateTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Update timestamp for this hotel price. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |\n\n| Methods ------- ||\n|-------------------------------------------------------------------------------|--------------------------------------------------|\n| ### [get](/hotels/hotel-prices/api-reference/rest/v3/accounts.priceViews/get) | Returns the requested price view in full detail. |"]]