Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PlaceActionLink

import type { PlaceActionLink } from "https://googleapis.deno.dev/v1/mybusinessplaceactions:v1.ts";

Represents a place action link and its attributes.

interface PlaceActionLink {
readonly createTime?: Date;
readonly isEditable?: boolean;
isPreferred?: boolean;
name?: string;
placeActionType?:
| "PLACE_ACTION_TYPE_UNSPECIFIED"
| "APPOINTMENT"
| "ONLINE_APPOINTMENT"
| "DINING_RESERVATION"
| "FOOD_ORDERING"
| "FOOD_DELIVERY"
| "FOOD_TAKEOUT"
| "SHOP_ONLINE";
readonly providerType?: "PROVIDER_TYPE_UNSPECIFIED" | "MERCHANT" | "AGGREGATOR_3P";
readonly updateTime?: Date;
uri?: string;
}

§Properties

§
readonly createTime?: Date
[src]

Output only. The time when the place action link was created.

§
readonly isEditable?: boolean
[src]

Output only. Indicates whether this link can be edited by the client.

§
isPreferred?: boolean
[src]

Optional. Whether this link is preferred by the merchant. Only one link can be marked as preferred per place action type at a location. If a future request marks a different link as preferred for the same place action type, then the current preferred link (if any exists) will lose its preference.

§
name?: string
[src]

Optional. The resource name, in the format locations/{location_id}/placeActionLinks/{place_action_link_id}. The name field will only be considered in UpdatePlaceActionLink and DeletePlaceActionLink requests for updating and deleting links respectively. However, it will be ignored in CreatePlaceActionLink request, where place_action_link_id will be assigned by the server on successful creation of a new link and returned as part of the response.

§
placeActionType?: "PLACE_ACTION_TYPE_UNSPECIFIED" | "APPOINTMENT" | "ONLINE_APPOINTMENT" | "DINING_RESERVATION" | "FOOD_ORDERING" | "FOOD_DELIVERY" | "FOOD_TAKEOUT" | "SHOP_ONLINE"
[src]

Required. The type of place action that can be performed using this link.

§
readonly providerType?: "PROVIDER_TYPE_UNSPECIFIED" | "MERCHANT" | "AGGREGATOR_3P"
[src]

Output only. Specifies the provider type.

§
readonly updateTime?: Date
[src]

Output only. The time when the place action link was last modified.

§
uri?: string
[src]

Required. The link uri. The same uri can be reused for different action types across different locations. However, only one place action link is allowed for each unique combination of (uri, place action type, location).