1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-03 09:03:50 +00:00

vendor: update all dependencies

* Update all dependencies
  * Remove all `[[constraint]]` from Gopkg.toml
  * Add in the minimum number of `[[override]]` to build
  * Remove go get of github.com/inconshreveable/mousetrap as it is vendored
  * Update docs with new policy on constraints
This commit is contained in:
Nick Craig-Wood
2018-05-02 17:09:45 +01:00
parent 21383877df
commit 6427029c4e
4902 changed files with 1443417 additions and 227283 deletions

View File

@@ -15,7 +15,7 @@
"description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/shopping-content",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/viqemhmQQxAoxqj8nxZHD7zTSa8\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/PNUnFmurkt6UcyajxjbWsLH2mTY\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@@ -60,12 +60,12 @@
"type": "boolean"
},
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -398,6 +398,12 @@
"required": true,
"type": "string"
},
"destinations": {
"description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
"location": "query",
"repeated": true,
"type": "string"
},
"merchantId": {
"description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.",
"format": "uint64",
@@ -422,6 +428,12 @@
"merchantId"
],
"parameters": {
"destinations": {
"description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
"location": "query",
"repeated": true,
"type": "string"
},
"maxResults": {
"description": "The maximum number of account statuses to return in the response, used for paging.",
"format": "uint32",
@@ -681,6 +693,43 @@
"https://www.googleapis.com/auth/content"
]
},
"fetchnow": {
"description": "Invokes a fetch for the datafeed in your Merchant Center account.",
"httpMethod": "POST",
"id": "content.datafeeds.fetchnow",
"parameterOrder": [
"merchantId",
"datafeedId"
],
"parameters": {
"datafeedId": {
"description": "The ID of the datafeed to be fetched.",
"format": "uint64",
"location": "path",
"required": true,
"type": "string"
},
"dryRun": {
"description": "Flag to run the request in dry-run mode.",
"location": "query",
"type": "boolean"
},
"merchantId": {
"description": "The ID of the account that manages the datafeed. This account cannot be a multi-client account.",
"format": "uint64",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "{merchantId}/datafeeds/{datafeedId}/fetchNow",
"response": {
"$ref": "DatafeedsFetchNowResponse"
},
"scopes": [
"https://www.googleapis.com/auth/content"
]
},
"get": {
"description": "Retrieves a datafeed configuration from your Merchant Center account.",
"httpMethod": "GET",
@@ -1032,7 +1081,7 @@
"liasettings": {
"methods": {
"custombatch": {
"description": "Retrieves and updates the Lia settings of multiple accounts in a single request.",
"description": "Retrieves and/or updates the LIA settings of multiple accounts in a single request.",
"httpMethod": "POST",
"id": "content.liasettings.custombatch",
"parameters": {
@@ -1054,7 +1103,7 @@
]
},
"get": {
"description": "Retrieves the Lia settings of the account.",
"description": "Retrieves the LIA settings of the account.",
"httpMethod": "GET",
"id": "content.liasettings.get",
"parameterOrder": [
@@ -1063,7 +1112,7 @@
],
"parameters": {
"accountId": {
"description": "The ID of the account for which to get/update Lia settings.",
"description": "The ID of the account for which to get or update LIA settings.",
"format": "uint64",
"location": "path",
"required": true,
@@ -1086,7 +1135,7 @@
]
},
"getaccessiblegmbaccounts": {
"description": "Retrieves the list of accesable Google My Business accounts.",
"description": "Retrieves the list of accessible Google My Business accounts.",
"httpMethod": "GET",
"id": "content.liasettings.getaccessiblegmbaccounts",
"parameterOrder": [
@@ -1095,7 +1144,7 @@
],
"parameters": {
"accountId": {
"description": "The ID of the account for which to retrieve the accessible Google My Business accounts.",
"description": "The ID of the account for which to retrieve accessible Google My Business accounts.",
"format": "uint64",
"location": "path",
"required": true,
@@ -1118,7 +1167,7 @@
]
},
"list": {
"description": "Lists the Lia settings of the sub-accounts in your Merchant Center account.",
"description": "Lists the LIA settings of the sub-accounts in your Merchant Center account.",
"httpMethod": "GET",
"id": "content.liasettings.list",
"parameterOrder": [
@@ -1126,7 +1175,7 @@
],
"parameters": {
"maxResults": {
"description": "The maximum number of Lia settings to return in the response, used for paging.",
"description": "The maximum number of LIA settings to return in the response, used for paging.",
"format": "uint32",
"location": "query",
"type": "integer"
@@ -1153,7 +1202,7 @@
]
},
"patch": {
"description": "Updates the Lia settings of the account. This method supports patch semantics.",
"description": "Updates the LIA settings of the account. This method supports patch semantics.",
"httpMethod": "PATCH",
"id": "content.liasettings.patch",
"parameterOrder": [
@@ -1162,7 +1211,7 @@
],
"parameters": {
"accountId": {
"description": "The ID of the account for which to get/update Lia settings.",
"description": "The ID of the account for which to get or update LIA settings.",
"format": "uint64",
"location": "path",
"required": true,
@@ -1193,7 +1242,7 @@
]
},
"requestgmbaccess": {
"description": "Requests access to a specified Google By Business account.",
"description": "Requests access to a specified Google My Business account.",
"httpMethod": "POST",
"id": "content.liasettings.requestgmbaccess",
"parameterOrder": [
@@ -1209,7 +1258,7 @@
"type": "string"
},
"gmbEmail": {
"description": "The email of the Google My Business Account.",
"description": "The email of the Google My Business account.",
"location": "query",
"type": "string"
},
@@ -1230,7 +1279,7 @@
]
},
"requestinventoryverification": {
"description": "Requests the inventory validation for the specified country.",
"description": "Requests inventory validation for the specified country.",
"httpMethod": "POST",
"id": "content.liasettings.requestinventoryverification",
"parameterOrder": [
@@ -1247,7 +1296,7 @@
"type": "string"
},
"country": {
"description": "The country for which the inventory validation is requested.",
"description": "The country for which inventory validation is requested.",
"location": "path",
"required": true,
"type": "string"
@@ -1269,7 +1318,7 @@
]
},
"setinventoryverificationcontact": {
"description": "Sets the inventory validation verification for the specified country.",
"description": "Sets the inventory verification contract for the specified country.",
"httpMethod": "POST",
"id": "content.liasettings.setinventoryverificationcontact",
"parameterOrder": [
@@ -1285,7 +1334,7 @@
"type": "string"
},
"contactEmail": {
"description": "The email of the inventory check contact.",
"description": "The email of the inventory verification contact.",
"location": "query",
"type": "string"
},
@@ -1295,12 +1344,12 @@
"type": "string"
},
"country": {
"description": "The country for which the inventory verification is requested.",
"description": "The country for which inventory verification is requested.",
"location": "query",
"type": "string"
},
"language": {
"description": "The country for which the inventory verification is requested.",
"description": "The language for which inventory verification is requested.",
"location": "query",
"type": "string"
},
@@ -1321,7 +1370,7 @@
]
},
"update": {
"description": "Updates the Lia settings of the account.",
"description": "Updates the LIA settings of the account.",
"httpMethod": "PUT",
"id": "content.liasettings.update",
"parameterOrder": [
@@ -1330,7 +1379,7 @@
],
"parameters": {
"accountId": {
"description": "The ID of the account for which to get/update Lia settings.",
"description": "The ID of the account for which to get or update LIA settings.",
"format": "uint64",
"location": "path",
"required": true,
@@ -2121,7 +2170,7 @@
"type": "boolean"
},
"merchantId": {
"description": "The ID of the POS provider.",
"description": "The ID of the POS or inventory data provider.",
"format": "uint64",
"location": "path",
"required": true,
@@ -2157,7 +2206,7 @@
],
"parameters": {
"merchantId": {
"description": "The ID of the POS provider.",
"description": "The ID of the POS or inventory data provider.",
"format": "uint64",
"location": "path",
"required": true,
@@ -2200,7 +2249,7 @@
"type": "boolean"
},
"merchantId": {
"description": "The ID of the POS provider.",
"description": "The ID of the POS or inventory data provider.",
"format": "uint64",
"location": "path",
"required": true,
@@ -2240,7 +2289,7 @@
"type": "boolean"
},
"merchantId": {
"description": "The ID of the POS provider.",
"description": "The ID of the POS or inventory data provider.",
"format": "uint64",
"location": "path",
"required": true,
@@ -2275,7 +2324,7 @@
],
"parameters": {
"merchantId": {
"description": "The ID of the POS provider.",
"description": "The ID of the POS or inventory data provider.",
"format": "uint64",
"location": "path",
"required": true,
@@ -2312,7 +2361,7 @@
"type": "boolean"
},
"merchantId": {
"description": "The ID of the POS provider.",
"description": "The ID of the POS or inventory data provider.",
"format": "uint64",
"location": "path",
"required": true,
@@ -2534,6 +2583,12 @@
"productId"
],
"parameters": {
"destinations": {
"description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
"location": "query",
"repeated": true,
"type": "string"
},
"includeAttributes": {
"description": "Flag to include full product data in the result of this get request. The default value is false.",
"location": "query",
@@ -2569,6 +2624,12 @@
"merchantId"
],
"parameters": {
"destinations": {
"description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
"location": "query",
"repeated": true,
"type": "string"
},
"includeAttributes": {
"description": "Flag to include full product data in the results of the list request. The default value is false.",
"location": "query",
@@ -2830,7 +2891,7 @@
}
}
},
"revision": "20180314",
"revision": "20180410",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Account": {
@@ -2992,6 +3053,10 @@
"description": "Country for which this issue is reported.",
"type": "string"
},
"destination": {
"description": "The destination the issue applies to.",
"type": "string"
},
"detail": {
"description": "Additional details about the issue.",
"type": "string"
@@ -3018,6 +3083,10 @@
"description": "Country for which this issue is reported.",
"type": "string"
},
"destination": {
"description": "The destination the issue applies to.",
"type": "string"
},
"detail": {
"description": "A more detailed description of the issue.",
"type": "string"
@@ -3348,6 +3417,13 @@
"format": "uint32",
"type": "integer"
},
"destinations": {
"description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
"items": {
"type": "string"
},
"type": "array"
},
"merchantId": {
"description": "The ID of the managing account.",
"format": "uint64",
@@ -3937,6 +4013,17 @@
},
"type": "object"
},
"DatafeedsFetchNowResponse": {
"id": "DatafeedsFetchNowResponse",
"properties": {
"kind": {
"default": "content#datafeedsFetchNowResponse",
"description": "Identifies what kind of resource this is. Value: the fixed string \"content#datafeedsFetchNowResponse\".",
"type": "string"
}
},
"type": "object"
},
"DatafeedsListResponse": {
"id": "DatafeedsListResponse",
"properties": {
@@ -4137,7 +4224,7 @@
"type": "string"
},
"gmbAccounts": {
"description": "A list of GMB account which are available to the merchant.",
"description": "A list of GMB accounts which are available to the merchant.",
"items": {
"$ref": "GmbAccountsGmbAccount"
},
@@ -4163,7 +4250,7 @@
"type": "string"
},
"type": {
"description": "Type of the GMB account (User or Business).",
"description": "The type of the GMB account (User or Business).",
"type": "string"
}
},
@@ -4487,11 +4574,11 @@
"id": "LiaAboutPageSettings",
"properties": {
"status": {
"description": "The status verification process.",
"description": "The status of the verification process for the About page.",
"type": "string"
},
"url": {
"description": "The about URL.",
"description": "The URL for the About page.",
"type": "string"
}
},
@@ -4502,7 +4589,7 @@
"properties": {
"about": {
"$ref": "LiaAboutPageSettings",
"description": "The about page settings."
"description": "The settings for the About page."
},
"country": {
"annotations": {
@@ -4519,7 +4606,7 @@
},
"inventory": {
"$ref": "LiaInventorySettings",
"description": "LIA inventory settings."
"description": "LIA inventory verification settings."
},
"onDisplayToOrder": {
"$ref": "LiaOnDisplayToOrderSettings",
@@ -4536,11 +4623,11 @@
"id": "LiaInventorySettings",
"properties": {
"inventoryVerificationContactEmail": {
"description": "The email of contact which will be contacted during the verification process.",
"description": "The email of the contact for the inventory verification process.",
"type": "string"
},
"inventoryVerificationContactName": {
"description": "The name of contact which will be contacted during the verification process.",
"description": "The name of the contact for the inventory verification process.",
"type": "string"
},
"inventoryVerificationContactStatus": {
@@ -4703,7 +4790,7 @@
"type": "string"
},
"gmbAccounts": {
"description": "A list of GMB account which are available to the merchant.",
"description": "A list of GMB accounts which are available to the merchant.",
"items": {
"$ref": "GmbAccountsGmbAccount"
},
@@ -4726,7 +4813,7 @@
"type": "string"
},
"nextPageToken": {
"description": "The token for the retrieval of the next page of Lia settings.",
"description": "The token for the retrieval of the next page of LIA settings.",
"type": "string"
},
"resources": {
@@ -4978,16 +5065,38 @@
"id": "OrderCustomer",
"properties": {
"email": {
"description": "Email address of the customer.",
"description": "Email address that should be used for order related communications. In certain cases this might not be a real users email, but a proxy email.",
"type": "string"
},
"explicitMarketingPreference": {
"description": "If set, this indicates the user explicitly chose to opt in or out of providing marketing rights to the merchant. If unset, this indicates the user has already made this choice in a previous purchase, and was thus not shown the marketing right opt in/out checkbox during the checkout flow.",
"description": "Deprecated. Please use marketingRightsInfo instead.",
"type": "boolean"
},
"fullName": {
"description": "Full name of the customer.",
"type": "string"
},
"marketingRightsInfo": {
"$ref": "OrderCustomerMarketingRightsInfo",
"description": "Customer's marketing preferences."
}
},
"type": "object"
},
"OrderCustomerMarketingRightsInfo": {
"id": "OrderCustomerMarketingRightsInfo",
"properties": {
"explicitMarketingPreference": {
"description": "Last known user selection regarding marketing preferences. In certain cases this selection might not be known, so this field would be empty.",
"type": "string"
},
"lastUpdatedTimestamp": {
"description": "Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a selection yet.",
"type": "string"
},
"marketingEmailAddress": {
"description": "Email address that can be used for marketing purposes. This field is only filled when explicitMarketingPreference is equal to 'granted'.",
"type": "string"
}
},
"type": "object"
@@ -6648,7 +6757,7 @@
"description": "The store information to submit. Set this only if the method is insert."
},
"storeCode": {
"description": "The store code. Required only to get/submit store information.",
"description": "The store code. Set this only if the method is delete or get.",
"type": "string"
},
"targetMerchantId": {
@@ -6765,7 +6874,7 @@
"content.pos.inventory"
]
},
"description": "The identifier of the merchant's store.",
"description": "The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the store in Google My Business.",
"type": "string"
},
"targetCountry": {
@@ -6839,7 +6948,7 @@
"content.pos.inventory"
]
},
"description": "The identifier of the merchant's store.",
"description": "The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the store in Google My Business.",
"type": "string"
},
"targetCountry": {
@@ -6918,7 +7027,7 @@
"content.pos.inventory"
]
},
"description": "The identifier of the merchant's store.",
"description": "The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the store in Google My Business.",
"type": "string"
},
"targetCountry": {
@@ -7019,7 +7128,7 @@
"content.pos.sale"
]
},
"description": "The identifier of the merchant's store.",
"description": "The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the store in Google My Business.",
"type": "string"
},
"targetCountry": {
@@ -7097,7 +7206,7 @@
"content.pos.sale"
]
},
"description": "The identifier of the merchant's store.",
"description": "The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the store in Google My Business.",
"type": "string"
},
"targetCountry": {
@@ -7180,7 +7289,7 @@
"content.pos.sale"
]
},
"description": "The identifier of the merchant's store.",
"description": "The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the store in Google My Business.",
"type": "string"
},
"targetCountry": {
@@ -7854,6 +7963,10 @@
"ProductStatusDataQualityIssue": {
"id": "ProductStatusDataQualityIssue",
"properties": {
"destination": {
"description": "The destination the issue applies to.",
"type": "string"
},
"detail": {
"description": "A more detailed error string.",
"type": "string"
@@ -7922,10 +8035,22 @@
"description": "The error code of the issue.",
"type": "string"
},
"description": {
"description": "A short issue description in English.",
"type": "string"
},
"destination": {
"description": "The destination the issue applies to.",
"type": "string"
},
"detail": {
"description": "A detailed issue description in English.",
"type": "string"
},
"documentation": {
"description": "The URL of a web page to help with resolving this issue.",
"type": "string"
},
"resolution": {
"description": "Whether the issue can be resolved by the merchant.",
"type": "string"
@@ -8126,6 +8251,13 @@
"format": "uint32",
"type": "integer"
},
"destinations": {
"description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
"items": {
"type": "string"
},
"type": "array"
},
"includeAttributes": {
"type": "boolean"
},
@@ -8275,6 +8407,10 @@
"$ref": "DeliveryTime",
"description": "Time spent in various aspects from order to the delivery of the product. Required."
},
"eligibility": {
"description": "Eligibility for this service.",
"type": "string"
},
"minimumOrderValue": {
"$ref": "Price",
"description": "Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency."
@@ -8582,12 +8718,30 @@
"type": "string"
},
"explicitMarketingPreference": {
"description": "If set, this indicates the user explicitly chose to opt in or out of providing marketing rights to the merchant. If unset, this indicates the user has already made this choice in a previous purchase, and was thus not shown the marketing right opt in/out checkbox during the checkout flow. Optional.",
"description": "Deprecated. Please use marketingRightsInfo instead.",
"type": "boolean"
},
"fullName": {
"description": "Full name of the customer.",
"type": "string"
},
"marketingRightsInfo": {
"$ref": "TestOrderCustomerMarketingRightsInfo",
"description": "Customer's marketing preferences."
}
},
"type": "object"
},
"TestOrderCustomerMarketingRightsInfo": {
"id": "TestOrderCustomerMarketingRightsInfo",
"properties": {
"explicitMarketingPreference": {
"description": "Last know user use selection regards marketing preferences. In certain cases selection might not be known, so this field would be empty.",
"type": "string"
},
"lastUpdatedTimestamp": {
"description": "Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a selection yet.",
"type": "string"
}
},
"type": "object"

View File

@@ -449,6 +449,9 @@ type AccountStatusAccountLevelIssue struct {
// Country: Country for which this issue is reported.
Country string `json:"country,omitempty"`
// Destination: The destination the issue applies to.
Destination string `json:"destination,omitempty"`
// Detail: Additional details about the issue.
Detail string `json:"detail,omitempty"`
@@ -488,6 +491,9 @@ type AccountStatusDataQualityIssue struct {
// Country: Country for which this issue is reported.
Country string `json:"country,omitempty"`
// Destination: The destination the issue applies to.
Destination string `json:"destination,omitempty"`
// Detail: A more detailed description of the issue.
Detail string `json:"detail,omitempty"`
@@ -1036,6 +1042,10 @@ type AccountstatusesCustomBatchRequestEntry struct {
// BatchId: An entry ID, unique within the batch request.
BatchId int64 `json:"batchId,omitempty"`
// Destinations: If set, only issues for the specified destinations are
// returned, otherwise only issues for the Shopping destination.
Destinations []string `json:"destinations,omitempty"`
// MerchantId: The ID of the managing account.
MerchantId uint64 `json:"merchantId,omitempty,string"`
@@ -1936,6 +1946,38 @@ func (s *DatafeedsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DatafeedsFetchNowResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#datafeedsFetchNowResponse".
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedsFetchNowResponse) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedsFetchNowResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DatafeedsListResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#datafeedsListResponse".
@@ -2268,7 +2310,7 @@ type GmbAccounts struct {
// AccountId: The ID of the account.
AccountId uint64 `json:"accountId,omitempty,string"`
// GmbAccounts: A list of GMB account which are available to the
// GmbAccounts: A list of GMB accounts which are available to the
// merchant.
GmbAccounts []*GmbAccountsGmbAccount `json:"gmbAccounts,omitempty"`
@@ -2305,7 +2347,7 @@ type GmbAccountsGmbAccount struct {
// Name: The name of the GMB account.
Name string `json:"name,omitempty"`
// Type: Type of the GMB account (User or Business).
// Type: The type of the GMB account (User or Business).
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "Email") to
@@ -2858,10 +2900,10 @@ func (s *InventorySetResponse) MarshalJSON() ([]byte, error) {
}
type LiaAboutPageSettings struct {
// Status: The status verification process.
// Status: The status of the verification process for the About page.
Status string `json:"status,omitempty"`
// Url: The about URL.
// Url: The URL for the About page.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Status") to
@@ -2888,7 +2930,7 @@ func (s *LiaAboutPageSettings) MarshalJSON() ([]byte, error) {
}
type LiaCountrySettings struct {
// About: The about page settings.
// About: The settings for the About page.
About *LiaAboutPageSettings `json:"about,omitempty"`
// Country: CLDR country code (e.g. "US").
@@ -2898,7 +2940,7 @@ type LiaCountrySettings struct {
// storefront" feature.
HostedLocalStorefrontActive bool `json:"hostedLocalStorefrontActive,omitempty"`
// Inventory: LIA inventory settings.
// Inventory: LIA inventory verification settings.
Inventory *LiaInventorySettings `json:"inventory,omitempty"`
// OnDisplayToOrder: LIA "On Display To Order" settings.
@@ -2931,12 +2973,12 @@ func (s *LiaCountrySettings) MarshalJSON() ([]byte, error) {
}
type LiaInventorySettings struct {
// InventoryVerificationContactEmail: The email of contact which will be
// contacted during the verification process.
// InventoryVerificationContactEmail: The email of the contact for the
// inventory verification process.
InventoryVerificationContactEmail string `json:"inventoryVerificationContactEmail,omitempty"`
// InventoryVerificationContactName: The name of contact which will be
// contacted during the verification process.
// InventoryVerificationContactName: The name of the contact for the
// inventory verification process.
InventoryVerificationContactName string `json:"inventoryVerificationContactName,omitempty"`
// InventoryVerificationContactStatus: The status of the verification
@@ -3203,7 +3245,7 @@ type LiasettingsGetAccessibleGmbAccountsResponse struct {
// AccountId: The ID of the account.
AccountId uint64 `json:"accountId,omitempty,string"`
// GmbAccounts: A list of GMB account which are available to the
// GmbAccounts: A list of GMB accounts which are available to the
// merchant.
GmbAccounts []*GmbAccountsGmbAccount `json:"gmbAccounts,omitempty"`
@@ -3243,7 +3285,7 @@ type LiasettingsListResponse struct {
// string "content#liasettingsListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: The token for the retrieval of the next page of Lia
// NextPageToken: The token for the retrieval of the next page of LIA
// settings.
NextPageToken string `json:"nextPageToken,omitempty"`
@@ -3641,19 +3683,21 @@ func (s *OrderCancellation) MarshalJSON() ([]byte, error) {
}
type OrderCustomer struct {
// Email: Email address of the customer.
// Email: Email address that should be used for order related
// communications. In certain cases this might not be a real users
// email, but a proxy email.
Email string `json:"email,omitempty"`
// ExplicitMarketingPreference: If set, this indicates the user
// explicitly chose to opt in or out of providing marketing rights to
// the merchant. If unset, this indicates the user has already made this
// choice in a previous purchase, and was thus not shown the marketing
// right opt in/out checkbox during the checkout flow.
// ExplicitMarketingPreference: Deprecated. Please use
// marketingRightsInfo instead.
ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"`
// FullName: Full name of the customer.
FullName string `json:"fullName,omitempty"`
// MarketingRightsInfo: Customer's marketing preferences.
MarketingRightsInfo *OrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "Email") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -3677,6 +3721,46 @@ func (s *OrderCustomer) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type OrderCustomerMarketingRightsInfo struct {
// ExplicitMarketingPreference: Last known user selection regarding
// marketing preferences. In certain cases this selection might not be
// known, so this field would be empty.
ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"`
// LastUpdatedTimestamp: Timestamp when last time marketing preference
// was updated. Could be empty, if user wasn't offered a selection yet.
LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"`
// MarketingEmailAddress: Email address that can be used for marketing
// purposes. This field is only filled when explicitMarketingPreference
// is equal to 'granted'.
MarketingEmailAddress string `json:"marketingEmailAddress,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *OrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) {
type NoMethod OrderCustomerMarketingRightsInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type OrderDeliveryDetails struct {
// Address: The delivery address
Address *OrderAddress `json:"address,omitempty"`
@@ -6328,8 +6412,8 @@ type PosCustomBatchRequestEntry struct {
// is insert.
Store *PosStore `json:"store,omitempty"`
// StoreCode: The store code. Required only to get/submit store
// information.
// StoreCode: The store code. Set this only if the method is delete or
// get.
StoreCode string `json:"storeCode,omitempty"`
// TargetMerchantId: The ID of the account for which to get/submit data.
@@ -6458,7 +6542,8 @@ type PosInventory struct {
// Quantity: The available quantity of the item.
Quantity int64 `json:"quantity,omitempty,string"`
// StoreCode: The identifier of the merchant's store.
// StoreCode: The identifier of the merchant's store. Either a storeCode
// inserted via the API or the code of the store in Google My Business.
StoreCode string `json:"storeCode,omitempty"`
// TargetCountry: The CLDR territory code for the item.
@@ -6507,7 +6592,8 @@ type PosInventoryRequest struct {
// Quantity: The available quantity of the item.
Quantity int64 `json:"quantity,omitempty,string"`
// StoreCode: The identifier of the merchant's store.
// StoreCode: The identifier of the merchant's store. Either a storeCode
// inserted via the API or the code of the store in Google My Business.
StoreCode string `json:"storeCode,omitempty"`
// TargetCountry: The CLDR territory code for the item.
@@ -6560,7 +6646,8 @@ type PosInventoryResponse struct {
// Quantity: The available quantity of the item.
Quantity int64 `json:"quantity,omitempty,string"`
// StoreCode: The identifier of the merchant's store.
// StoreCode: The identifier of the merchant's store. Either a storeCode
// inserted via the API or the code of the store in Google My Business.
StoreCode string `json:"storeCode,omitempty"`
// TargetCountry: The CLDR territory code for the item.
@@ -6657,7 +6744,8 @@ type PosSale struct {
// SaleId: A unique ID to group items from the same sale event.
SaleId string `json:"saleId,omitempty"`
// StoreCode: The identifier of the merchant's store.
// StoreCode: The identifier of the merchant's store. Either a storeCode
// inserted via the API or the code of the store in Google My Business.
StoreCode string `json:"storeCode,omitempty"`
// TargetCountry: The CLDR territory code for the item.
@@ -6710,7 +6798,8 @@ type PosSaleRequest struct {
// SaleId: A unique ID to group items from the same sale event.
SaleId string `json:"saleId,omitempty"`
// StoreCode: The identifier of the merchant's store.
// StoreCode: The identifier of the merchant's store. Either a storeCode
// inserted via the API or the code of the store in Google My Business.
StoreCode string `json:"storeCode,omitempty"`
// TargetCountry: The CLDR territory code for the item.
@@ -6767,7 +6856,8 @@ type PosSaleResponse struct {
// SaleId: A unique ID to group items from the same sale event.
SaleId string `json:"saleId,omitempty"`
// StoreCode: The identifier of the merchant's store.
// StoreCode: The identifier of the merchant's store. Either a storeCode
// inserted via the API or the code of the store in Google My Business.
StoreCode string `json:"storeCode,omitempty"`
// TargetCountry: The CLDR territory code for the item.
@@ -7612,6 +7702,9 @@ func (s *ProductStatus) MarshalJSON() ([]byte, error) {
}
type ProductStatusDataQualityIssue struct {
// Destination: The destination the issue applies to.
Destination string `json:"destination,omitempty"`
// Detail: A more detailed error string.
Detail string `json:"detail,omitempty"`
@@ -7637,7 +7730,7 @@ type ProductStatusDataQualityIssue struct {
// ValueProvided: The value the attribute had at time of evaluation.
ValueProvided string `json:"valueProvided,omitempty"`
// ForceSendFields is a list of field names (e.g. "Detail") to
// ForceSendFields is a list of field names (e.g. "Destination") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -7645,10 +7738,10 @@ type ProductStatusDataQualityIssue struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Detail") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// NullFields is a list of field names (e.g. "Destination") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
@@ -7707,9 +7800,19 @@ type ProductStatusItemLevelIssue struct {
// Code: The error code of the issue.
Code string `json:"code,omitempty"`
// Description: A short issue description in English.
Description string `json:"description,omitempty"`
// Destination: The destination the issue applies to.
Destination string `json:"destination,omitempty"`
// Detail: A detailed issue description in English.
Detail string `json:"detail,omitempty"`
// Documentation: The URL of a web page to help with resolving this
// issue.
Documentation string `json:"documentation,omitempty"`
// Resolution: Whether the issue can be resolved by the merchant.
Resolution string `json:"resolution,omitempty"`
@@ -8089,6 +8192,10 @@ type ProductstatusesCustomBatchRequestEntry struct {
// BatchId: An entry ID, unique within the batch request.
BatchId int64 `json:"batchId,omitempty"`
// Destinations: If set, only issues for the specified destinations are
// returned, otherwise only issues for the Shopping destination.
Destinations []string `json:"destinations,omitempty"`
IncludeAttributes bool `json:"includeAttributes,omitempty"`
// MerchantId: The ID of the managing account.
@@ -8329,6 +8436,9 @@ type Service struct {
// delivery of the product. Required.
DeliveryTime *DeliveryTime `json:"deliveryTime,omitempty"`
// Eligibility: Eligibility for this service.
Eligibility string `json:"eligibility,omitempty"`
// MinimumOrderValue: Minimum order value for this service. If set,
// indicates that customers will have to spend at least this amount. All
// prices within a service must have the same currency.
@@ -8762,16 +8872,16 @@ type TestOrderCustomer struct {
// Email: Email address of the customer.
Email string `json:"email,omitempty"`
// ExplicitMarketingPreference: If set, this indicates the user
// explicitly chose to opt in or out of providing marketing rights to
// the merchant. If unset, this indicates the user has already made this
// choice in a previous purchase, and was thus not shown the marketing
// right opt in/out checkbox during the checkout flow. Optional.
// ExplicitMarketingPreference: Deprecated. Please use
// marketingRightsInfo instead.
ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"`
// FullName: Full name of the customer.
FullName string `json:"fullName,omitempty"`
// MarketingRightsInfo: Customer's marketing preferences.
MarketingRightsInfo *TestOrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "Email") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -8795,6 +8905,41 @@ func (s *TestOrderCustomer) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestOrderCustomerMarketingRightsInfo struct {
// ExplicitMarketingPreference: Last know user use selection regards
// marketing preferences. In certain cases selection might not be known,
// so this field would be empty.
ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"`
// LastUpdatedTimestamp: Timestamp when last time marketing preference
// was updated. Could be empty, if user wasn't offered a selection yet.
LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestOrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) {
type NoMethod TestOrderCustomerMarketingRightsInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestOrderLineItem struct {
// Product: Product data from the time of the order placement.
Product *TestOrderLineItemProduct `json:"product,omitempty"`
@@ -10487,6 +10632,14 @@ func (r *AccountstatusesService) Get(merchantId uint64, accountId uint64) *Accou
return c
}
// Destinations sets the optional parameter "destinations": If set, only
// issues for the specified destinations are returned, otherwise only
// issues for the Shopping destination.
func (c *AccountstatusesGetCall) Destinations(destinations ...string) *AccountstatusesGetCall {
c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
@@ -10597,6 +10750,12 @@ func (c *AccountstatusesGetCall) Do(opts ...googleapi.CallOption) (*AccountStatu
// "required": true,
// "type": "string"
// },
// "destinations": {
// "description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "merchantId": {
// "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.",
// "format": "uint64",
@@ -10635,6 +10794,14 @@ func (r *AccountstatusesService) List(merchantId uint64) *AccountstatusesListCal
return c
}
// Destinations sets the optional parameter "destinations": If set, only
// issues for the specified destinations are returned, otherwise only
// issues for the Shopping destination.
func (c *AccountstatusesListCall) Destinations(destinations ...string) *AccountstatusesListCall {
c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
return c
}
// MaxResults sets the optional parameter "maxResults": The maximum
// number of account statuses to return in the response, used for
// paging.
@@ -10751,6 +10918,12 @@ func (c *AccountstatusesListCall) Do(opts ...googleapi.CallOption) (*Accountstat
// "merchantId"
// ],
// "parameters": {
// "destinations": {
// "description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "maxResults": {
// "description": "The maximum number of account statuses to return in the response, used for paging.",
// "format": "uint32",
@@ -11833,6 +12006,154 @@ func (c *DatafeedsDeleteCall) Do(opts ...googleapi.CallOption) error {
}
// method id "content.datafeeds.fetchnow":
type DatafeedsFetchnowCall struct {
s *APIService
merchantId uint64
datafeedId uint64
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Fetchnow: Invokes a fetch for the datafeed in your Merchant Center
// account.
func (r *DatafeedsService) Fetchnow(merchantId uint64, datafeedId uint64) *DatafeedsFetchnowCall {
c := &DatafeedsFetchnowCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
c.datafeedId = datafeedId
return c
}
// DryRun sets the optional parameter "dryRun": Flag to run the request
// in dry-run mode.
func (c *DatafeedsFetchnowCall) DryRun(dryRun bool) *DatafeedsFetchnowCall {
c.urlParams_.Set("dryRun", fmt.Sprint(dryRun))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *DatafeedsFetchnowCall) Fields(s ...googleapi.Field) *DatafeedsFetchnowCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *DatafeedsFetchnowCall) Context(ctx context.Context) *DatafeedsFetchnowCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *DatafeedsFetchnowCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *DatafeedsFetchnowCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds/{datafeedId}/fetchNow")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"merchantId": strconv.FormatUint(c.merchantId, 10),
"datafeedId": strconv.FormatUint(c.datafeedId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "content.datafeeds.fetchnow" call.
// Exactly one of *DatafeedsFetchNowResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *DatafeedsFetchNowResponse.ServerResponse.Header or (if a response
// was returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *DatafeedsFetchnowCall) Do(opts ...googleapi.CallOption) (*DatafeedsFetchNowResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &DatafeedsFetchNowResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Invokes a fetch for the datafeed in your Merchant Center account.",
// "httpMethod": "POST",
// "id": "content.datafeeds.fetchnow",
// "parameterOrder": [
// "merchantId",
// "datafeedId"
// ],
// "parameters": {
// "datafeedId": {
// "description": "The ID of the datafeed to be fetched.",
// "format": "uint64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "dryRun": {
// "description": "Flag to run the request in dry-run mode.",
// "location": "query",
// "type": "boolean"
// },
// "merchantId": {
// "description": "The ID of the account that manages the datafeed. This account cannot be a multi-client account.",
// "format": "uint64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "{merchantId}/datafeeds/{datafeedId}/fetchNow",
// "response": {
// "$ref": "DatafeedsFetchNowResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/content"
// ]
// }
}
// method id "content.datafeeds.get":
type DatafeedsGetCall struct {
@@ -13423,7 +13744,7 @@ type LiasettingsCustombatchCall struct {
header_ http.Header
}
// Custombatch: Retrieves and updates the Lia settings of multiple
// Custombatch: Retrieves and/or updates the LIA settings of multiple
// accounts in a single request.
func (r *LiasettingsService) Custombatch(liasettingscustombatchrequest *LiasettingsCustomBatchRequest) *LiasettingsCustombatchCall {
c := &LiasettingsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
@@ -13521,7 +13842,7 @@ func (c *LiasettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*Liasetti
}
return ret, nil
// {
// "description": "Retrieves and updates the Lia settings of multiple accounts in a single request.",
// "description": "Retrieves and/or updates the LIA settings of multiple accounts in a single request.",
// "httpMethod": "POST",
// "id": "content.liasettings.custombatch",
// "parameters": {
@@ -13557,7 +13878,7 @@ type LiasettingsGetCall struct {
header_ http.Header
}
// Get: Retrieves the Lia settings of the account.
// Get: Retrieves the LIA settings of the account.
func (r *LiasettingsService) Get(merchantId uint64, accountId uint64) *LiasettingsGetCall {
c := &LiasettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@@ -13660,7 +13981,7 @@ func (c *LiasettingsGetCall) Do(opts ...googleapi.CallOption) (*LiaSettings, err
}
return ret, nil
// {
// "description": "Retrieves the Lia settings of the account.",
// "description": "Retrieves the LIA settings of the account.",
// "httpMethod": "GET",
// "id": "content.liasettings.get",
// "parameterOrder": [
@@ -13669,7 +13990,7 @@ func (c *LiasettingsGetCall) Do(opts ...googleapi.CallOption) (*LiaSettings, err
// ],
// "parameters": {
// "accountId": {
// "description": "The ID of the account for which to get/update Lia settings.",
// "description": "The ID of the account for which to get or update LIA settings.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -13706,7 +14027,7 @@ type LiasettingsGetaccessiblegmbaccountsCall struct {
header_ http.Header
}
// Getaccessiblegmbaccounts: Retrieves the list of accesable Google My
// Getaccessiblegmbaccounts: Retrieves the list of accessible Google My
// Business accounts.
func (r *LiasettingsService) Getaccessiblegmbaccounts(merchantId uint64, accountId uint64) *LiasettingsGetaccessiblegmbaccountsCall {
c := &LiasettingsGetaccessiblegmbaccountsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
@@ -13812,7 +14133,7 @@ func (c *LiasettingsGetaccessiblegmbaccountsCall) Do(opts ...googleapi.CallOptio
}
return ret, nil
// {
// "description": "Retrieves the list of accesable Google My Business accounts.",
// "description": "Retrieves the list of accessible Google My Business accounts.",
// "httpMethod": "GET",
// "id": "content.liasettings.getaccessiblegmbaccounts",
// "parameterOrder": [
@@ -13821,7 +14142,7 @@ func (c *LiasettingsGetaccessiblegmbaccountsCall) Do(opts ...googleapi.CallOptio
// ],
// "parameters": {
// "accountId": {
// "description": "The ID of the account for which to retrieve the accessible Google My Business accounts.",
// "description": "The ID of the account for which to retrieve accessible Google My Business accounts.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -13857,7 +14178,7 @@ type LiasettingsListCall struct {
header_ http.Header
}
// List: Lists the Lia settings of the sub-accounts in your Merchant
// List: Lists the LIA settings of the sub-accounts in your Merchant
// Center account.
func (r *LiasettingsService) List(merchantId uint64) *LiasettingsListCall {
c := &LiasettingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
@@ -13866,7 +14187,7 @@ func (r *LiasettingsService) List(merchantId uint64) *LiasettingsListCall {
}
// MaxResults sets the optional parameter "maxResults": The maximum
// number of Lia settings to return in the response, used for paging.
// number of LIA settings to return in the response, used for paging.
func (c *LiasettingsListCall) MaxResults(maxResults int64) *LiasettingsListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
@@ -13973,7 +14294,7 @@ func (c *LiasettingsListCall) Do(opts ...googleapi.CallOption) (*LiasettingsList
}
return ret, nil
// {
// "description": "Lists the Lia settings of the sub-accounts in your Merchant Center account.",
// "description": "Lists the LIA settings of the sub-accounts in your Merchant Center account.",
// "httpMethod": "GET",
// "id": "content.liasettings.list",
// "parameterOrder": [
@@ -13981,7 +14302,7 @@ func (c *LiasettingsListCall) Do(opts ...googleapi.CallOption) (*LiasettingsList
// ],
// "parameters": {
// "maxResults": {
// "description": "The maximum number of Lia settings to return in the response, used for paging.",
// "description": "The maximum number of LIA settings to return in the response, used for paging.",
// "format": "uint32",
// "location": "query",
// "type": "integer"
@@ -14043,7 +14364,7 @@ type LiasettingsPatchCall struct {
header_ http.Header
}
// Patch: Updates the Lia settings of the account. This method supports
// Patch: Updates the LIA settings of the account. This method supports
// patch semantics.
func (r *LiasettingsService) Patch(merchantId uint64, accountId uint64, liasettings *LiaSettings) *LiasettingsPatchCall {
c := &LiasettingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
@@ -14147,7 +14468,7 @@ func (c *LiasettingsPatchCall) Do(opts ...googleapi.CallOption) (*LiaSettings, e
}
return ret, nil
// {
// "description": "Updates the Lia settings of the account. This method supports patch semantics.",
// "description": "Updates the LIA settings of the account. This method supports patch semantics.",
// "httpMethod": "PATCH",
// "id": "content.liasettings.patch",
// "parameterOrder": [
@@ -14156,7 +14477,7 @@ func (c *LiasettingsPatchCall) Do(opts ...googleapi.CallOption) (*LiaSettings, e
// ],
// "parameters": {
// "accountId": {
// "description": "The ID of the account for which to get/update Lia settings.",
// "description": "The ID of the account for which to get or update LIA settings.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -14200,7 +14521,7 @@ type LiasettingsRequestgmbaccessCall struct {
header_ http.Header
}
// Requestgmbaccess: Requests access to a specified Google By Business
// Requestgmbaccess: Requests access to a specified Google My Business
// account.
func (r *LiasettingsService) Requestgmbaccess(merchantId uint64, accountId uint64) *LiasettingsRequestgmbaccessCall {
c := &LiasettingsRequestgmbaccessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
@@ -14210,7 +14531,7 @@ func (r *LiasettingsService) Requestgmbaccess(merchantId uint64, accountId uint6
}
// GmbEmail sets the optional parameter "gmbEmail": The email of the
// Google My Business Account.
// Google My Business account.
func (c *LiasettingsRequestgmbaccessCall) GmbEmail(gmbEmail string) *LiasettingsRequestgmbaccessCall {
c.urlParams_.Set("gmbEmail", gmbEmail)
return c
@@ -14299,7 +14620,7 @@ func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*Lia
}
return ret, nil
// {
// "description": "Requests access to a specified Google By Business account.",
// "description": "Requests access to a specified Google My Business account.",
// "httpMethod": "POST",
// "id": "content.liasettings.requestgmbaccess",
// "parameterOrder": [
@@ -14315,7 +14636,7 @@ func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*Lia
// "type": "string"
// },
// "gmbEmail": {
// "description": "The email of the Google My Business Account.",
// "description": "The email of the Google My Business account.",
// "location": "query",
// "type": "string"
// },
@@ -14350,8 +14671,8 @@ type LiasettingsRequestinventoryverificationCall struct {
header_ http.Header
}
// Requestinventoryverification: Requests the inventory validation for
// the specified country.
// Requestinventoryverification: Requests inventory validation for the
// specified country.
func (r *LiasettingsService) Requestinventoryverification(merchantId uint64, accountId uint64, country string) *LiasettingsRequestinventoryverificationCall {
c := &LiasettingsRequestinventoryverificationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@@ -14445,7 +14766,7 @@ func (c *LiasettingsRequestinventoryverificationCall) Do(opts ...googleapi.CallO
}
return ret, nil
// {
// "description": "Requests the inventory validation for the specified country.",
// "description": "Requests inventory validation for the specified country.",
// "httpMethod": "POST",
// "id": "content.liasettings.requestinventoryverification",
// "parameterOrder": [
@@ -14462,7 +14783,7 @@ func (c *LiasettingsRequestinventoryverificationCall) Do(opts ...googleapi.CallO
// "type": "string"
// },
// "country": {
// "description": "The country for which the inventory validation is requested.",
// "description": "The country for which inventory validation is requested.",
// "location": "path",
// "required": true,
// "type": "string"
@@ -14497,8 +14818,8 @@ type LiasettingsSetinventoryverificationcontactCall struct {
header_ http.Header
}
// Setinventoryverificationcontact: Sets the inventory validation
// verification for the specified country.
// Setinventoryverificationcontact: Sets the inventory verification
// contract for the specified country.
func (r *LiasettingsService) Setinventoryverificationcontact(merchantId uint64, accountId uint64) *LiasettingsSetinventoryverificationcontactCall {
c := &LiasettingsSetinventoryverificationcontactCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@@ -14507,7 +14828,7 @@ func (r *LiasettingsService) Setinventoryverificationcontact(merchantId uint64,
}
// ContactEmail sets the optional parameter "contactEmail": The email of
// the inventory check contact.
// the inventory verification contact.
func (c *LiasettingsSetinventoryverificationcontactCall) ContactEmail(contactEmail string) *LiasettingsSetinventoryverificationcontactCall {
c.urlParams_.Set("contactEmail", contactEmail)
return c
@@ -14521,14 +14842,14 @@ func (c *LiasettingsSetinventoryverificationcontactCall) ContactName(contactName
}
// Country sets the optional parameter "country": The country for which
// the inventory verification is requested.
// inventory verification is requested.
func (c *LiasettingsSetinventoryverificationcontactCall) Country(country string) *LiasettingsSetinventoryverificationcontactCall {
c.urlParams_.Set("country", country)
return c
}
// Language sets the optional parameter "language": The country for
// which the inventory verification is requested.
// Language sets the optional parameter "language": The language for
// which inventory verification is requested.
func (c *LiasettingsSetinventoryverificationcontactCall) Language(language string) *LiasettingsSetinventoryverificationcontactCall {
c.urlParams_.Set("language", language)
return c
@@ -14618,7 +14939,7 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.Ca
}
return ret, nil
// {
// "description": "Sets the inventory validation verification for the specified country.",
// "description": "Sets the inventory verification contract for the specified country.",
// "httpMethod": "POST",
// "id": "content.liasettings.setinventoryverificationcontact",
// "parameterOrder": [
@@ -14634,7 +14955,7 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.Ca
// "type": "string"
// },
// "contactEmail": {
// "description": "The email of the inventory check contact.",
// "description": "The email of the inventory verification contact.",
// "location": "query",
// "type": "string"
// },
@@ -14644,12 +14965,12 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.Ca
// "type": "string"
// },
// "country": {
// "description": "The country for which the inventory verification is requested.",
// "description": "The country for which inventory verification is requested.",
// "location": "query",
// "type": "string"
// },
// "language": {
// "description": "The country for which the inventory verification is requested.",
// "description": "The language for which inventory verification is requested.",
// "location": "query",
// "type": "string"
// },
@@ -14684,7 +15005,7 @@ type LiasettingsUpdateCall struct {
header_ http.Header
}
// Update: Updates the Lia settings of the account.
// Update: Updates the LIA settings of the account.
func (r *LiasettingsService) Update(merchantId uint64, accountId uint64, liasettings *LiaSettings) *LiasettingsUpdateCall {
c := &LiasettingsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@@ -14787,7 +15108,7 @@ func (c *LiasettingsUpdateCall) Do(opts ...googleapi.CallOption) (*LiaSettings,
}
return ret, nil
// {
// "description": "Updates the Lia settings of the account.",
// "description": "Updates the LIA settings of the account.",
// "httpMethod": "PUT",
// "id": "content.liasettings.update",
// "parameterOrder": [
@@ -14796,7 +15117,7 @@ func (c *LiasettingsUpdateCall) Do(opts ...googleapi.CallOption) (*LiaSettings,
// ],
// "parameters": {
// "accountId": {
// "description": "The ID of the account for which to get/update Lia settings.",
// "description": "The ID of the account for which to get or update LIA settings.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -18106,7 +18427,7 @@ func (c *PosDeleteCall) Do(opts ...googleapi.CallOption) error {
// "type": "boolean"
// },
// "merchantId": {
// "description": "The ID of the POS provider.",
// "description": "The ID of the POS or inventory data provider.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -18262,7 +18583,7 @@ func (c *PosGetCall) Do(opts ...googleapi.CallOption) (*PosStore, error) {
// ],
// "parameters": {
// "merchantId": {
// "description": "The ID of the POS provider.",
// "description": "The ID of the POS or inventory data provider.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -18422,7 +18743,7 @@ func (c *PosInsertCall) Do(opts ...googleapi.CallOption) (*PosStore, error) {
// "type": "boolean"
// },
// "merchantId": {
// "description": "The ID of the POS provider.",
// "description": "The ID of the POS or inventory data provider.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -18579,7 +18900,7 @@ func (c *PosInventoryCall) Do(opts ...googleapi.CallOption) (*PosInventoryRespon
// "type": "boolean"
// },
// "merchantId": {
// "description": "The ID of the POS provider.",
// "description": "The ID of the POS or inventory data provider.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -18731,7 +19052,7 @@ func (c *PosListCall) Do(opts ...googleapi.CallOption) (*PosListResponse, error)
// ],
// "parameters": {
// "merchantId": {
// "description": "The ID of the POS provider.",
// "description": "The ID of the POS or inventory data provider.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -18885,7 +19206,7 @@ func (c *PosSaleCall) Do(opts ...googleapi.CallOption) (*PosSaleResponse, error)
// "type": "boolean"
// },
// "merchantId": {
// "description": "The ID of the POS provider.",
// "description": "The ID of the POS or inventory data provider.",
// "format": "uint64",
// "location": "path",
// "required": true,
@@ -19811,6 +20132,14 @@ func (r *ProductstatusesService) Get(merchantId uint64, productId string) *Produ
return c
}
// Destinations sets the optional parameter "destinations": If set, only
// issues for the specified destinations are returned, otherwise only
// issues for the Shopping destination.
func (c *ProductstatusesGetCall) Destinations(destinations ...string) *ProductstatusesGetCall {
c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
return c
}
// IncludeAttributes sets the optional parameter "includeAttributes":
// Flag to include full product data in the result of this get request.
// The default value is false.
@@ -19922,6 +20251,12 @@ func (c *ProductstatusesGetCall) Do(opts ...googleapi.CallOption) (*ProductStatu
// "productId"
// ],
// "parameters": {
// "destinations": {
// "description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "includeAttributes": {
// "description": "Flag to include full product data in the result of this get request. The default value is false.",
// "location": "query",
@@ -19971,6 +20306,14 @@ func (r *ProductstatusesService) List(merchantId uint64) *ProductstatusesListCal
return c
}
// Destinations sets the optional parameter "destinations": If set, only
// issues for the specified destinations are returned, otherwise only
// issues for the Shopping destination.
func (c *ProductstatusesListCall) Destinations(destinations ...string) *ProductstatusesListCall {
c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
return c
}
// IncludeAttributes sets the optional parameter "includeAttributes":
// Flag to include full product data in the results of the list request.
// The default value is false.
@@ -20104,6 +20447,12 @@ func (c *ProductstatusesListCall) Do(opts ...googleapi.CallOption) (*Productstat
// "merchantId"
// ],
// "parameters": {
// "destinations": {
// "description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.",
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "includeAttributes": {
// "description": "Flag to include full product data in the results of the list request. The default value is false.",
// "location": "query",

View File

@@ -15,7 +15,7 @@
"description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/shopping-content",
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/QMVTzP4sO9_JHyigCiKlZqLj3Hc\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/LI6UdBai7-kwhskTkR_vgy6vg2U\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@@ -60,12 +60,12 @@
"type": "boolean"
},
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
@@ -792,7 +792,7 @@
}
}
},
"revision": "20180205",
"revision": "20180410",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Error": {
@@ -1011,16 +1011,38 @@
"id": "OrderCustomer",
"properties": {
"email": {
"description": "Email address of the customer.",
"description": "Email address that should be used for order related communications. In certain cases this might not be a real users email, but a proxy email.",
"type": "string"
},
"explicitMarketingPreference": {
"description": "If set, this indicates the user explicitly chose to opt in or out of providing marketing rights to the merchant. If unset, this indicates the user has already made this choice in a previous purchase, and was thus not shown the marketing right opt in/out checkbox during the checkout flow.",
"description": "Deprecated. Please use marketingRightsInfo instead.",
"type": "boolean"
},
"fullName": {
"description": "Full name of the customer.",
"type": "string"
},
"marketingRightsInfo": {
"$ref": "OrderCustomerMarketingRightsInfo",
"description": "Customer's marketing preferences."
}
},
"type": "object"
},
"OrderCustomerMarketingRightsInfo": {
"id": "OrderCustomerMarketingRightsInfo",
"properties": {
"explicitMarketingPreference": {
"description": "Last known user selection regarding marketing preferences. In certain cases this selection might not be known, so this field would be empty.",
"type": "string"
},
"lastUpdatedTimestamp": {
"description": "Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a selection yet.",
"type": "string"
},
"marketingEmailAddress": {
"description": "Email address that can be used for marketing purposes. This field is only filled when explicitMarketingPreference is equal to 'granted'.",
"type": "string"
}
},
"type": "object"
@@ -2749,12 +2771,30 @@
"type": "string"
},
"explicitMarketingPreference": {
"description": "If set, this indicates the user explicitly chose to opt in or out of providing marketing rights to the merchant. If unset, this indicates the user has already made this choice in a previous purchase, and was thus not shown the marketing right opt in/out checkbox during the checkout flow. Optional.",
"description": "Deprecated. Please use marketingRightsInfo instead.",
"type": "boolean"
},
"fullName": {
"description": "Full name of the customer.",
"type": "string"
},
"marketingRightsInfo": {
"$ref": "TestOrderCustomerMarketingRightsInfo",
"description": "Customer's marketing preferences."
}
},
"type": "object"
},
"TestOrderCustomerMarketingRightsInfo": {
"id": "TestOrderCustomerMarketingRightsInfo",
"properties": {
"explicitMarketingPreference": {
"description": "Last know user use selection regards marketing preferences. In certain cases selection might not be known, so this field would be empty.",
"type": "string"
},
"lastUpdatedTimestamp": {
"description": "Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a selection yet.",
"type": "string"
}
},
"type": "object"

View File

@@ -343,19 +343,21 @@ func (s *OrderCancellation) MarshalJSON() ([]byte, error) {
}
type OrderCustomer struct {
// Email: Email address of the customer.
// Email: Email address that should be used for order related
// communications. In certain cases this might not be a real users
// email, but a proxy email.
Email string `json:"email,omitempty"`
// ExplicitMarketingPreference: If set, this indicates the user
// explicitly chose to opt in or out of providing marketing rights to
// the merchant. If unset, this indicates the user has already made this
// choice in a previous purchase, and was thus not shown the marketing
// right opt in/out checkbox during the checkout flow.
// ExplicitMarketingPreference: Deprecated. Please use
// marketingRightsInfo instead.
ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"`
// FullName: Full name of the customer.
FullName string `json:"fullName,omitempty"`
// MarketingRightsInfo: Customer's marketing preferences.
MarketingRightsInfo *OrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "Email") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -379,6 +381,46 @@ func (s *OrderCustomer) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type OrderCustomerMarketingRightsInfo struct {
// ExplicitMarketingPreference: Last known user selection regarding
// marketing preferences. In certain cases this selection might not be
// known, so this field would be empty.
ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"`
// LastUpdatedTimestamp: Timestamp when last time marketing preference
// was updated. Could be empty, if user wasn't offered a selection yet.
LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"`
// MarketingEmailAddress: Email address that can be used for marketing
// purposes. This field is only filled when explicitMarketingPreference
// is equal to 'granted'.
MarketingEmailAddress string `json:"marketingEmailAddress,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *OrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) {
type NoMethod OrderCustomerMarketingRightsInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type OrderDeliveryDetails struct {
// Address: The delivery address
Address *OrderAddress `json:"address,omitempty"`
@@ -3075,16 +3117,16 @@ type TestOrderCustomer struct {
// Email: Email address of the customer.
Email string `json:"email,omitempty"`
// ExplicitMarketingPreference: If set, this indicates the user
// explicitly chose to opt in or out of providing marketing rights to
// the merchant. If unset, this indicates the user has already made this
// choice in a previous purchase, and was thus not shown the marketing
// right opt in/out checkbox during the checkout flow. Optional.
// ExplicitMarketingPreference: Deprecated. Please use
// marketingRightsInfo instead.
ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"`
// FullName: Full name of the customer.
FullName string `json:"fullName,omitempty"`
// MarketingRightsInfo: Customer's marketing preferences.
MarketingRightsInfo *TestOrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "Email") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -3108,6 +3150,41 @@ func (s *TestOrderCustomer) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestOrderCustomerMarketingRightsInfo struct {
// ExplicitMarketingPreference: Last know user use selection regards
// marketing preferences. In certain cases selection might not be known,
// so this field would be empty.
ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"`
// LastUpdatedTimestamp: Timestamp when last time marketing preference
// was updated. Could be empty, if user wasn't offered a selection yet.
LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "ExplicitMarketingPreference") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestOrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) {
type NoMethod TestOrderCustomerMarketingRightsInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestOrderLineItem struct {
// Product: Product data from the time of the order placement.
Product *TestOrderLineItemProduct `json:"product,omitempty"`