要求
SetMarketingPreferenceRequest
傳回值
SetMarketingPreferenceResponse
// Request to set the partner marketing preference for a user. message SetMarketingPreferenceRequest { // Personal information of the user setting a marketing preference (required) UserInformation user_information = 1; // Whether the specified user has consented to receive marketing (required) bool user_to_receive_marketing = 2; } // Response with the user's set marketing preference message SetMarketingPreferenceResponse { // Personal information of the user setting a marketing preference (required) UserInformation user_information = 1; // Whether the specified user has consented to receive marketing (required) bool user_to_receive_marketing = 2; }
// Personal information about the person taking action (e.g. making a // booking, an order, or creates a parking session). message UserInformation { // Unique ID of the user to the partner, chosen by Reserve with Google. // (required) string user_id = 1; // Given name of the user (maximum 40 characters) (required) string given_name = 2; // Family name of the user (maximum 40 characters) (required) string family_name = 3; // Address of the user (optional) PostalAddress address = 4; // Phone number of the user (required) // Consistent with the international definition in ITU-T E.123 recommendation. // However, local conventions are also followed, such as using '-' instead of // a space as separator. For example, a phone number in the US can be // written as '+1 415-736-0000' string telephone = 5; // Email address of the user (required except for waitlists) string email = 6; // User's language code, in IETF BCP 47 format. It is sent only if a partner // is allowed to use this feature. Please contact Reserve with Google team // to be added to the allowlist and receive this code. (optional) string language_code = 7; reserved 8; }