Esto eliminará la página "FHO and Forward Integration"
. Por favor, asegúrate de que es lo que quieres.
Hosts
FHO API
Products(Interface)
ProductRequest(Message)
ProductsReply(Message)
PriceSchedulesRequest(Message)
PriceSchedulesReply(Message)
PriceChangeHistoriesRequest(Message)
PriceChangeHistoriesReply(Message)
FHO API can be called using gRPC client of any language. This document will use golang programming language to demonstrate the integration using golang gRPC client.
GetProducts |
---|
rpc GetProducts(ProductsRequest) returns (ProductsReply) |
Listens changes of products. |
GetPriceSchedules |
---|
rpc GetPriceSchedules(PriceSchedulesRequest) returns (PriceSchedulesReply) |
Listens changes of retail price schedules for the station. |
SavePriceChangeHistories |
---|
rpc SavePriceChangeHistories(PriceChangeHistoriesRequest) returns (PriceChangeHistoriesReply) |
Streams batches of retail price changes of the station. |
Fields | |
---|---|
token | string station token |
Fields | |
---|---|
products[] | Product list of products |
Represents a single product in a business
Fields | |
---|---|
id | string unique id of the product |
name | string name of the product |
color | string color of the product in hexadecimal color specified with #RRGGBB |
Fields | |
---|---|
token | string station token |
Fields | |
---|---|
schedules[] | Schedule list of schedules |
Represents a price schedule update
Fields | |
---|---|
id | string unique id of a schedule |
schedule_type | ScheduleType |
schedule_time | Timestamp time to apply price in UTC |
product_prices[] | ProductPrice product prices for the station |
Represents a single product price in a business
Fields | |
---|---|
id | string product id |
price | int64 product price |
The supported schedule type.
Enum | |
---|---|
SCHEDULE_TYPE_UNSPECIFIED | The schedule type is unspecified. Not a valid option. |
IMMEDIATE | The price update is immediate. |
AFTER_SHIFT_CHANGE | The price update is after shfit change. |
Fields | |
---|---|
token | string station token |
price_change_histories[] | PriceChangeHistory list of price change histories |
Fields | |
---|---|
status | Status grpc status |
Represents a price change history
Fields | |
---|---|
id | string unique id of a price change |
schedule_id | string original schedule id |
change_time | Timestamp price change time in UTC |
time_zone | int64 time zone in minutes, example (390 for Myanmar timezone, 480 for Singapore timezone) |
product_prices[] | ProductPrice changed product prices |
status | PriceChangeStatus price change status |
The supported price change status.
Enum | |
---|---|
SCHEDULE_TYPE_UNSPECIFIED | The schedule type is unspecified. Not a valid option. |
VOIDED | price change is voided. |
SUCCESSFUL | price change is successful. |
Esto eliminará la página "FHO and Forward Integration"
. Por favor, asegúrate de que es lo que quieres.