Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Add support for order reservations
Browse files Browse the repository at this point in the history
Change-Id: Ia5756e92557ba40d0d4350e2e54c9846765bd124
  • Loading branch information
Canain committed Aug 16, 2019
1 parent 9f8c250 commit 3528268
Showing 1 changed file with 70 additions and 1 deletion.
71 changes: 70 additions & 1 deletion src/service/actionssdk/api/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ export type GoogleActionsOrdersV3VerticalsPurchasePurchaseOrderExtensionStatus =
export type GoogleActionsOrdersV3VerticalsPurchasePurchaseOrderExtensionType = 'PURCHASE_TYPE_UNSPECIFIED' | 'RETAIL' | 'FOOD' | 'GROCERY'


export type GoogleActionsOrdersV3VerticalsReservationReservationItemExtensionStatus = 'RESERVATION_STATUS_UNSPECIFIED' | 'PENDING' | 'CONFIRMED' | 'CANCELLED' | 'FULFILLED' | 'CHANGE_REQUESTED' | 'REJECTED'


export type GoogleActionsOrdersV3VerticalsReservationReservationItemExtensionType = 'RESERVATION_TYPE_UNSPECIFIED' | 'RESTAURANT' | 'HAIRDRESSER'


export type GoogleActionsOrdersV3VerticalsTicketEventCharacterType = 'TYPE_UNKNOWN' | 'ACTOR' | 'PERFORMER' | 'DIRECTOR' | 'ORGANIZER'


Expand Down Expand Up @@ -267,6 +273,10 @@ export interface GoogleActionsOrdersV3LineItem {
* Example: User X made restaurant reservation under name of user Y.
*/
recipients?: GoogleActionsOrdersV3UserInfo[]
/**
* Reservation orders like restaurant, haircut etc.
*/
reservation?: GoogleActionsOrdersV3VerticalsReservationReservationItemExtension
/**
* Deprecated. Use vertical level status instead. For example, for purchases,
* use PurchaseOrderExtension.status.
Expand All @@ -279,7 +289,8 @@ export interface GoogleActionsOrdersV3LineItem {
* Every vertical should include its own fulfillment details.
* Must be either one of the following values:
* google.actions.orders.v3.verticals.purchase.PurchaseItemExtension
* [] google.actions.orders.v3.verticals.ticket.TicketItemExtension
* google.actions.orders.v3.verticals.reservation.ReservationItemExtension
* google.actions.orders.v3.verticals.ticket.TicketItemExtension
*/
vertical?: ApiClientObjectMap<any>
}
Expand Down Expand Up @@ -881,6 +892,64 @@ export interface GoogleActionsOrdersV3VerticalsPurchasePurchaseReturnsInfo {
policyUrl?: string
}

export interface GoogleActionsOrdersV3VerticalsReservationReservationItemExtension {
/**
* Confirmation code for this reservation.
*/
confirmationCode?: string
/**
* Any extra fields exchanged between merchant and google.
*/
extension?: ApiClientObjectMap<any>
/**
* Location of the service/event.
*/
location?: GoogleActionsV2Location
/**
* The number of people.
*/
partySize?: number
/**
* Time when the service/event is scheduled to occur.
* Can be a time range, a date, or an exact date time.
*/
reservationTime?: GoogleActionsOrdersV3Time
/**
* Staff facilitators who will be servicing the reservation.
* Ex. The hairstylist.
*/
staffFacilitators?: GoogleActionsOrdersV3VerticalsReservationStaffFacilitator[]
/**
* Required: Reservation status.
*/
status?: GoogleActionsOrdersV3VerticalsReservationReservationItemExtensionStatus
/**
* Type of reservation.
* May be unset if none of the type options is applicable.
*/
type?: GoogleActionsOrdersV3VerticalsReservationReservationItemExtensionType
/**
* Time range that is acceptable to the user.
*/
userAcceptableTimeRange?: GoogleActionsOrdersV3Time
/**
* Required: User visible label/string for the status.
* Max allowed length is 50 chars.
*/
userVisibleStatusLabel?: string
}

export interface GoogleActionsOrdersV3VerticalsReservationStaffFacilitator {
/**
* Performer's images.
*/
image?: GoogleActionsV2UiElementsImage
/**
* The staff facilitator's name. Ex. \"John Smith\"
*/
name?: string
}

export interface GoogleActionsOrdersV3VerticalsTicketEventCharacter {
/**
* Character's images.
Expand Down

0 comments on commit 3528268

Please sign in to comment.