vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2017-09-30 15:27:27 +01:00
parent 911d121bb9
commit b017fcfe9a
3048 changed files with 537057 additions and 189681 deletions

View File

@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/_xdoFNtmWVQrpSYjYrHA3E12xJI\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/dPMCZ2Ey4YVlnyiRa2uPlyOUPp4\"",
"discoveryVersion": "v1",
"id": "content:v2",
"name": "content",
"canonicalName": "Shopping Content",
"version": "v2",
"revision": "20170627",
"revision": "20170928",
"title": "Content API for Shopping",
"description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.",
"ownerDomain": "google.com",
@ -21,7 +21,7 @@
"basePath": "/content/v2/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "content/v2/",
"batchPath": "batch",
"batchPath": "batch/content/v2",
"parameters": {
"alt": {
"type": "string",
@ -136,6 +136,13 @@
"websiteUrl": {
"type": "string",
"description": "The merchant's website."
},
"youtubeChannelLinks": {
"type": "array",
"description": "List of linked YouTube channels that are active or pending approval. To create a new link request, add a new link with status active to the list. It will remain in a pending state until approved or rejected in the YT Creator Studio interface. To delete an active link, or to cancel a link request, remove it from the list.",
"items": {
"$ref": "AccountYouTubeChannelLink"
}
}
}
},
@ -179,6 +186,13 @@
"type": "string",
"description": "The ID of the account for which the status is reported."
},
"accountLevelIssues": {
"type": "array",
"description": "A list of account level issues.",
"items": {
"$ref": "AccountStatusAccountLevelIssue"
}
},
"dataQualityIssues": {
"type": "array",
"description": "A list of data quality issues.",
@ -197,6 +211,32 @@
}
}
},
"AccountStatusAccountLevelIssue": {
"id": "AccountStatusAccountLevelIssue",
"type": "object",
"properties": {
"country": {
"type": "string",
"description": "Country for which this issue is reported."
},
"detail": {
"type": "string",
"description": "Additional details about the issue."
},
"id": {
"type": "string",
"description": "Issue identifier."
},
"severity": {
"type": "string",
"description": "Severity of the issue."
},
"title": {
"type": "string",
"description": "Short description of the issue."
}
}
},
"AccountStatusDataQualityIssue": {
"id": "AccountStatusDataQualityIssue",
"type": "object",
@ -350,6 +390,32 @@
}
}
},
"AccountYouTubeChannelLink": {
"id": "AccountYouTubeChannelLink",
"type": "object",
"properties": {
"channelId": {
"type": "string",
"description": "Channel ID.",
"annotations": {
"required": [
"content.accounts.insert",
"content.accounts.update"
]
}
},
"status": {
"type": "string",
"description": "Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it represents the actual status of the link and can be either active if it was approved in YT Creator Studio or pending if it's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it's already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status inactive is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending.",
"annotations": {
"required": [
"content.accounts.insert",
"content.accounts.update"
]
}
}
}
},
"AccountsAuthInfoResponse": {
"id": "AccountsAuthInfoResponse",
"type": "object",
@ -411,6 +477,10 @@
"description": "An entry ID, unique within the batch request.",
"format": "uint32"
},
"force": {
"type": "boolean",
"description": "Whether the account should be deleted if the account has offers. Only applicable if the method is delete."
},
"merchantId": {
"type": "string",
"description": "The ID of the managing account.",
@ -755,12 +825,7 @@
},
"contentLanguage": {
"type": "string",
"description": "The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for targetCountry.",
"annotations": {
"required": [
"content.datafeeds.insert"
]
}
"description": "[DEPRECATED] Please use target.language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for targetCountry."
},
"contentType": {
"type": "string",
@ -802,7 +867,7 @@
},
"intendedDestinations": {
"type": "array",
"description": "The list of intended destinations (corresponds to checked check boxes in Merchant Center).",
"description": "[DEPRECATED] Please use target.includedDestination instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).",
"items": {
"type": "string"
}
@ -823,12 +888,13 @@
},
"targetCountry": {
"type": "string",
"description": "The country where the items in the feed will be included in the search index, represented as a CLDR territory code.",
"annotations": {
"required": [
"content.datafeeds.insert",
"content.datafeeds.update"
]
"description": "[DEPRECATED] Please use target.country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code."
},
"targets": {
"type": "array",
"description": "The targets this feed should apply to (country, language, destinations).",
"items": {
"$ref": "DatafeedTarget"
}
}
}
@ -861,6 +927,10 @@
"type": "string",
"description": "An optional password for fetch_url."
},
"paused": {
"type": "boolean",
"description": "Whether the scheduled fetch is paused or not."
},
"timeZone": {
"type": "string",
"description": "Time zone used for schedule. UTC by default. E.g., \"America/Los_Angeles\"."
@ -898,6 +968,10 @@
"type": "object",
"description": "The status of a datafeed, i.e., the result of the last retrieval of the datafeed computed asynchronously when the feed processing is finished.",
"properties": {
"country": {
"type": "string",
"description": "The country for which the status is reported, represented as a CLDR territory code."
},
"datafeedId": {
"type": "string",
"description": "The ID of the feed for which the status is reported.",
@ -925,6 +999,10 @@
"description": "Identifies what kind of resource this is. Value: the fixed string \"content#datafeedStatus\".",
"default": "content#datafeedStatus"
},
"language": {
"type": "string",
"description": "The two-letter ISO 639-1 language for which the status is reported."
},
"lastUploadDate": {
"type": "string",
"description": "The last date at which the feed was uploaded."
@ -989,6 +1067,34 @@
}
}
},
"DatafeedTarget": {
"id": "DatafeedTarget",
"type": "object",
"properties": {
"country": {
"type": "string",
"description": "The country where the items in the feed will be included in the search index, represented as a CLDR territory code."
},
"excludedDestinations": {
"type": "array",
"description": "The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).",
"items": {
"type": "string"
}
},
"includedDestinations": {
"type": "array",
"description": "The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in the excluded_destination field.",
"items": {
"type": "string"
}
},
"language": {
"type": "string",
"description": "The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for targets[].country."
}
}
},
"DatafeedsCustomBatchRequest": {
"id": "DatafeedsCustomBatchRequest",
"type": "object",
@ -1113,11 +1219,19 @@
"description": "An entry ID, unique within the batch request.",
"format": "uint32"
},
"country": {
"type": "string",
"description": "The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that for multi-target datafeeds this parameter is required."
},
"datafeedId": {
"type": "string",
"description": "The ID of the data feed to get or delete.",
"description": "The ID of the data feed to get.",
"format": "uint64"
},
"language": {
"type": "string",
"description": "The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that for multi-target datafeeds this parameter is required."
},
"merchantId": {
"type": "string",
"description": "The ID of the managing account.",
@ -1596,7 +1710,7 @@
},
"promotions": {
"type": "array",
"description": "The details of the merchant provided promotions applied to the order. More details about the program are here.",
"description": "The details of the merchant provided promotions applied to the order. More details about the program are here.",
"items": {
"$ref": "OrderPromotion"
}
@ -1747,6 +1861,10 @@
"$ref": "OrderCancellation"
}
},
"channelType": {
"type": "string",
"description": "The channel type of the order: \"purchaseOnGoogle\" or \"googleExpress\"."
},
"id": {
"type": "string",
"description": "The id of the line item."
@ -1966,7 +2084,7 @@
"properties": {
"carrier": {
"type": "string",
"description": "The carrier for the shipping. Optional."
"description": "The carrier for the shipping. Optional. See shipments[].carrier for a list of acceptable values."
},
"maxDaysInTransit": {
"type": "integer",
@ -2027,7 +2145,7 @@
},
"type": {
"type": "string",
"description": "The type of instrument (VISA, Mastercard, etc)."
"description": "The type of instrument.\n\nAcceptable values are: \n- \"AMEX\" \n- \"DISCOVER\" \n- \"JCB\" \n- \"MASTERCARD\" \n- \"UNIONPAY\" \n- \"VISA\" \n- \"\""
}
}
},
@ -2155,7 +2273,7 @@
"properties": {
"carrier": {
"type": "string",
"description": "The carrier handling the shipment."
"description": "The carrier handling the shipment.\n\nAcceptable values are: \n- \"gsx\" \n- \"ups\" \n- \"united parcel service\" \n- \"usps\" \n- \"united states postal service\" \n- \"fedex\" \n- \"dhl\" \n- \"ecourier\" \n- \"cxt\" \n- \"google\" \n- \"on trac\" \n- \"ontrac\" \n- \"on-trac\" \n- \"on_trac\" \n- \"delvic\" \n- \"dynamex\" \n- \"lasership\" \n- \"smartpost\" \n- \"fedex smartpost\" \n- \"mpx\" \n- \"uds\" \n- \"united delivery service\""
},
"creationDate": {
"type": "string",
@ -2502,7 +2620,7 @@
"properties": {
"carrier": {
"type": "string",
"description": "The carrier handling the shipment."
"description": "Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. See shipments[].carrier in the Orders resource representation for a list of acceptable values."
},
"lineItems": {
"type": "array",
@ -2513,7 +2631,37 @@
},
"shipmentId": {
"type": "string",
"description": "The ID of the shipment."
"description": "Deprecated. Please use shipmentInfo instead. The ID of the shipment."
},
"shipmentInfos": {
"type": "array",
"description": "Shipment information. This field is repeated because a single line item can be shipped in several packages (and have several tracking IDs).",
"items": {
"$ref": "OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo"
}
},
"trackingId": {
"type": "string",
"description": "Deprecated. Please use shipmentInfo instead. The tracking id for the shipment."
}
}
},
"OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo": {
"id": "OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo",
"type": "object",
"properties": {
"carrier": {
"type": "string",
"description": "The carrier handling the shipment. See shipments[].carrier in the Orders resource representation for a list of acceptable values."
},
"shipmentId": {
"type": "string",
"description": "The ID of the shipment.",
"annotations": {
"required": [
"content.orders.shiplineitems"
]
}
},
"trackingId": {
"type": "string",
@ -2527,7 +2675,7 @@
"properties": {
"carrier": {
"type": "string",
"description": "The carrier handling the shipment. Not updated if missing."
"description": "The carrier handling the shipment. Not updated if missing. See shipments[].carrier in the Orders resource representation for a list of acceptable values."
},
"shipmentId": {
"type": "string",
@ -2725,7 +2873,7 @@
"properties": {
"carrier": {
"type": "string",
"description": "The carrier handling the shipment."
"description": "Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. See shipments[].carrier in the Orders resource representation for a list of acceptable values."
},
"lineItems": {
"type": "array",
@ -2740,11 +2888,18 @@
},
"shipmentId": {
"type": "string",
"description": "The ID of the shipment."
"description": "Deprecated. Please use shipmentInfo instead. The ID of the shipment."
},
"shipmentInfos": {
"type": "array",
"description": "Shipment information. This field is repeated because a single line item can be shipped in several packages (and have several tracking IDs).",
"items": {
"$ref": "OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo"
}
},
"trackingId": {
"type": "string",
"description": "The tracking id for the shipment."
"description": "Deprecated. Please use shipmentInfo instead. The tracking id for the shipment."
}
}
},
@ -2798,7 +2953,7 @@
"properties": {
"carrier": {
"type": "string",
"description": "The carrier handling the shipment. Not updated if missing."
"description": "The carrier handling the shipment. Not updated if missing. See shipments[].carrier in the Orders resource representation for a list of acceptable values."
},
"operationId": {
"type": "string",
@ -3351,7 +3506,7 @@
},
"region": {
"type": "string",
"description": "The geographic region to which a shipping rate applies (e.g. zip code)."
"description": "The geographic region to which a shipping rate applies."
},
"service": {
"type": "string",
@ -3429,6 +3584,10 @@
"type": "string",
"description": "The link to the product."
},
"product": {
"$ref": "Product",
"description": "Product data after applying all the join inputs."
},
"productId": {
"type": "string",
"description": "The id of the product for which status is reported."
@ -3685,6 +3844,9 @@
"description": "An entry ID, unique within the batch request.",
"format": "uint32"
},
"includeAttributes": {
"type": "boolean"
},
"merchantId": {
"type": "string",
"description": "The ID of the managing account.",
@ -3831,6 +3993,10 @@
"$ref": "DeliveryTime",
"description": "Time spent in various aspects from order to the delivery of the product. Required."
},
"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."
},
"name": {
"type": "string",
"description": "Free-form name of the service. Must be unique within target account. Required."
@ -4064,7 +4230,7 @@
},
"promotions": {
"type": "array",
"description": "The details of the merchant provided promotions applied to the order. More details about the program are here.",
"description": "The details of the merchant provided promotions applied to the order. More details about the program are here.",
"items": {
"$ref": "OrderPromotion"
}
@ -4363,7 +4529,7 @@
"id": "content.accounts.claimwebsite",
"path": "{merchantId}/accounts/{accountId}/claimwebsite",
"httpMethod": "POST",
"description": "Claims the website of a Merchant Center sub-account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
"description": "Claims the website of a Merchant Center sub-account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
"parameters": {
"accountId": {
"type": "string",
@ -4381,7 +4547,7 @@
},
"overwrite": {
"type": "boolean",
"description": "Flag to remove any existing claim on the requested website by another account and replace it with a claim from this account.",
"description": "Only available to selected merchants. When set to True, this flag removes any existing claim on the requested website by another account and replaces it with a claim from this account.",
"location": "query"
}
},
@ -4436,6 +4602,12 @@
"description": "Flag to run the request in dry-run mode.",
"location": "query"
},
"force": {
"type": "boolean",
"description": "Flag to delete sub-accounts with products. The default value is false.",
"default": "false",
"location": "query"
},
"merchantId": {
"type": "string",
"description": "The ID of the managing account.",
@ -4456,7 +4628,7 @@
"id": "content.accounts.get",
"path": "{merchantId}/accounts/{accountId}",
"httpMethod": "GET",
"description": "Retrieves a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
"description": "Retrieves a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
"parameters": {
"accountId": {
"type": "string",
@ -4555,7 +4727,7 @@
"id": "content.accounts.patch",
"path": "{merchantId}/accounts/{accountId}",
"httpMethod": "PATCH",
"description": "Updates a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account. This method supports patch semantics.",
"description": "Updates a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account. This method supports patch semantics.",
"parameters": {
"accountId": {
"type": "string",
@ -4595,7 +4767,7 @@
"id": "content.accounts.update",
"path": "{merchantId}/accounts/{accountId}",
"httpMethod": "PUT",
"description": "Updates a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
"description": "Updates a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
"parameters": {
"accountId": {
"type": "string",
@ -4653,7 +4825,7 @@
"id": "content.accountstatuses.get",
"path": "{merchantId}/accountstatuses/{accountId}",
"httpMethod": "GET",
"description": "Retrieves the status of a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
"description": "Retrieves the status of a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
"parameters": {
"accountId": {
"type": "string",
@ -4746,7 +4918,7 @@
"id": "content.accounttax.get",
"path": "{merchantId}/accounttax/{accountId}",
"httpMethod": "GET",
"description": "Retrieves the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
"description": "Retrieves the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
"parameters": {
"accountId": {
"type": "string",
@ -4813,7 +4985,7 @@
"id": "content.accounttax.patch",
"path": "{merchantId}/accounttax/{accountId}",
"httpMethod": "PATCH",
"description": "Updates the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account. This method supports patch semantics.",
"description": "Updates the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account. This method supports patch semantics.",
"parameters": {
"accountId": {
"type": "string",
@ -4853,7 +5025,7 @@
"id": "content.accounttax.update",
"path": "{merchantId}/accounttax/{accountId}",
"httpMethod": "PUT",
"description": "Updates the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
"description": "Updates the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
"parameters": {
"accountId": {
"type": "string",
@ -5142,12 +5314,22 @@
"httpMethod": "GET",
"description": "Retrieves the status of a datafeed from your Merchant Center account. This method can only be called for non-multi-client accounts.",
"parameters": {
"country": {
"type": "string",
"description": "The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target.",
"location": "query"
},
"datafeedId": {
"type": "string",
"required": true,
"format": "uint64",
"location": "path"
},
"language": {
"type": "string",
"description": "The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target.",
"location": "query"
},
"merchantId": {
"type": "string",
"required": true,
@ -6121,7 +6303,7 @@
"id": "content.shippingsettings.get",
"path": "{merchantId}/shippingsettings/{accountId}",
"httpMethod": "GET",
"description": "Retrieves the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
"description": "Retrieves the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
"parameters": {
"accountId": {
"type": "string",
@ -6212,7 +6394,7 @@
"id": "content.shippingsettings.patch",
"path": "{merchantId}/shippingsettings/{accountId}",
"httpMethod": "PATCH",
"description": "Updates the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account. This method supports patch semantics.",
"description": "Updates the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account. This method supports patch semantics.",
"parameters": {
"accountId": {
"type": "string",
@ -6252,7 +6434,7 @@
"id": "content.shippingsettings.update",
"path": "{merchantId}/shippingsettings/{accountId}",
"httpMethod": "PUT",
"description": "Updates the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
"description": "Updates the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
"parameters": {
"accountId": {
"type": "string",

View File

@ -230,6 +230,14 @@ type Account struct {
// WebsiteUrl: The merchant's website.
WebsiteUrl string `json:"websiteUrl,omitempty"`
// YoutubeChannelLinks: List of linked YouTube channels that are active
// or pending approval. To create a new link request, add a new link
// with status active to the list. It will remain in a pending state
// until approved or rejected in the YT Creator Studio interface. To
// delete an active link, or to cancel a link request, remove it from
// the list.
YoutubeChannelLinks []*AccountYouTubeChannelLink `json:"youtubeChannelLinks,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
@ -335,6 +343,9 @@ type AccountStatus struct {
// AccountId: The ID of the account for which the status is reported.
AccountId string `json:"accountId,omitempty"`
// AccountLevelIssues: A list of account level issues.
AccountLevelIssues []*AccountStatusAccountLevelIssue `json:"accountLevelIssues,omitempty"`
// DataQualityIssues: A list of data quality issues.
DataQualityIssues []*AccountStatusDataQualityIssue `json:"dataQualityIssues,omitempty"`
@ -372,6 +383,45 @@ func (s *AccountStatus) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountStatusAccountLevelIssue struct {
// Country: Country for which this issue is reported.
Country string `json:"country,omitempty"`
// Detail: Additional details about the issue.
Detail string `json:"detail,omitempty"`
// Id: Issue identifier.
Id string `json:"id,omitempty"`
// Severity: Severity of the issue.
Severity string `json:"severity,omitempty"`
// Title: Short description of the issue.
Title string `json:"title,omitempty"`
// ForceSendFields is a list of field names (e.g. "Country") 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. "Country") 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 *AccountStatusAccountLevelIssue) MarshalJSON() ([]byte, error) {
type noMethod AccountStatusAccountLevelIssue
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountStatusDataQualityIssue struct {
// Country: Country for which this issue is reported.
Country string `json:"country,omitempty"`
@ -585,6 +635,45 @@ func (s *AccountUser) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountYouTubeChannelLink struct {
// ChannelId: Channel ID.
ChannelId string `json:"channelId,omitempty"`
// Status: Status of the link between this Merchant Center account and
// the YouTube channel. Upon retrieval, it represents the actual status
// of the link and can be either active if it was approved in YT Creator
// Studio or pending if it's pending approval. Upon insertion, it
// represents the intended status of the link. Re-uploading a link with
// status active when it's still pending or with status pending when
// it's already active will have no effect: the status will remain
// unchanged. Re-uploading a link with deprecated status inactive is
// equivalent to not submitting the link at all and will delete the link
// if it was active or cancel the link request if it was pending.
Status string `json:"status,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChannelId") 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. "ChannelId") 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 *AccountYouTubeChannelLink) MarshalJSON() ([]byte, error) {
type noMethod AccountYouTubeChannelLink
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountsAuthInfoResponse struct {
// AccountIdentifiers: The account identifiers corresponding to the
// authenticated user.
@ -699,6 +788,10 @@ type AccountsCustomBatchRequestEntry struct {
// BatchId: An entry ID, unique within the batch request.
BatchId int64 `json:"batchId,omitempty"`
// Force: Whether the account should be deleted if the account has
// offers. Only applicable if the method is delete.
Force bool `json:"force,omitempty"`
// MerchantId: The ID of the managing account.
MerchantId uint64 `json:"merchantId,omitempty,string"`
@ -1293,8 +1386,9 @@ type Datafeed struct {
// attributes are defined in the data feed.
AttributeLanguage string `json:"attributeLanguage,omitempty"`
// ContentLanguage: The two-letter ISO 639-1 language of the items in
// the feed. Must be a valid language for targetCountry.
// ContentLanguage: [DEPRECATED] Please use target.language instead. The
// two-letter ISO 639-1 language of the items in the feed. Must be a
// valid language for targetCountry.
ContentLanguage string `json:"contentLanguage,omitempty"`
// ContentType: The type of data feed. For product inventory feeds, only
@ -1314,8 +1408,9 @@ type Datafeed struct {
// Id: The ID of the data feed.
Id int64 `json:"id,omitempty,string"`
// IntendedDestinations: The list of intended destinations (corresponds
// to checked check boxes in Merchant Center).
// IntendedDestinations: [DEPRECATED] Please use
// target.includedDestination instead. The list of intended destinations
// (corresponds to checked check boxes in Merchant Center).
IntendedDestinations []string `json:"intendedDestinations,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
@ -1325,10 +1420,15 @@ type Datafeed struct {
// Name: A descriptive name of the data feed.
Name string `json:"name,omitempty"`
// TargetCountry: The country where the items in the feed will be
// included in the search index, represented as a CLDR territory code.
// TargetCountry: [DEPRECATED] Please use target.country instead. The
// country where the items in the feed will be included in the search
// index, represented as a CLDR territory code.
TargetCountry string `json:"targetCountry,omitempty"`
// Targets: The targets this feed should apply to (country, language,
// destinations).
Targets []*DatafeedTarget `json:"targets,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
@ -1382,6 +1482,9 @@ type DatafeedFetchSchedule struct {
// Password: An optional password for fetch_url.
Password string `json:"password,omitempty"`
// Paused: Whether the scheduled fetch is paused or not.
Paused bool `json:"paused,omitempty"`
// TimeZone: Time zone used for schedule. UTC by default. E.g.,
// "America/Los_Angeles".
TimeZone string `json:"timeZone,omitempty"`
@ -1458,6 +1561,10 @@ func (s *DatafeedFormat) MarshalJSON() ([]byte, error) {
// last retrieval of the datafeed computed asynchronously when the feed
// processing is finished.
type DatafeedStatus struct {
// Country: The country for which the status is reported, represented as
// a CLDR territory code.
Country string `json:"country,omitempty"`
// DatafeedId: The ID of the feed for which the status is reported.
DatafeedId uint64 `json:"datafeedId,omitempty,string"`
@ -1474,6 +1581,10 @@ type DatafeedStatus struct {
// string "content#datafeedStatus".
Kind string `json:"kind,omitempty"`
// Language: The two-letter ISO 639-1 language for which the status is
// reported.
Language string `json:"language,omitempty"`
// LastUploadDate: The last date at which the feed was uploaded.
LastUploadDate string `json:"lastUploadDate,omitempty"`
@ -1487,7 +1598,7 @@ type DatafeedStatus struct {
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "DatafeedId") to
// ForceSendFields is a list of field names (e.g. "Country") 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
@ -1495,7 +1606,7 @@ type DatafeedStatus struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DatafeedId") to include in
// NullFields is a list of field names (e.g. "Country") 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
@ -1583,6 +1694,48 @@ func (s *DatafeedStatusExample) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DatafeedTarget struct {
// Country: The country where the items in the feed will be included in
// the search index, represented as a CLDR territory code.
Country string `json:"country,omitempty"`
// ExcludedDestinations: The list of destinations to exclude for this
// target (corresponds to unchecked check boxes in Merchant Center).
ExcludedDestinations []string `json:"excludedDestinations,omitempty"`
// IncludedDestinations: The list of destinations to include for this
// target (corresponds to checked check boxes in Merchant Center).
// Default destinations are always included unless provided in the
// excluded_destination field.
IncludedDestinations []string `json:"includedDestinations,omitempty"`
// Language: The two-letter ISO 639-1 language of the items in the feed.
// Must be a valid language for targets[].country.
Language string `json:"language,omitempty"`
// ForceSendFields is a list of field names (e.g. "Country") 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. "Country") 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 *DatafeedTarget) MarshalJSON() ([]byte, error) {
type noMethod DatafeedTarget
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DatafeedsCustomBatchRequest struct {
// Entries: The request entries to be processed in the batch.
Entries []*DatafeedsCustomBatchRequestEntry `json:"entries,omitempty"`
@ -1792,9 +1945,19 @@ type DatafeedstatusesCustomBatchRequestEntry struct {
// BatchId: An entry ID, unique within the batch request.
BatchId int64 `json:"batchId,omitempty"`
// DatafeedId: The ID of the data feed to get or delete.
// Country: The country for which to get the datafeed status. If this
// parameter is provided then language must also be provided. Note that
// for multi-target datafeeds this parameter is required.
Country string `json:"country,omitempty"`
// DatafeedId: The ID of the data feed to get.
DatafeedId uint64 `json:"datafeedId,omitempty,string"`
// Language: The language for which to get the datafeed status. If this
// parameter is provided then country must also be provided. Note that
// for multi-target datafeeds this parameter is required.
Language string `json:"language,omitempty"`
// MerchantId: The ID of the managing account.
MerchantId uint64 `json:"merchantId,omitempty,string"`
@ -2583,7 +2746,7 @@ type Order struct {
PlacedDate string `json:"placedDate,omitempty"`
// Promotions: The details of the merchant provided promotions applied
// to the order. More details about the program are here.
// to the order. More details about the program are here.
Promotions []*OrderPromotion `json:"promotions,omitempty"`
// Refunds: Refunds for the order.
@ -2800,6 +2963,10 @@ type OrderLineItem struct {
// Cancellations: Cancellations of the line item.
Cancellations []*OrderCancellation `json:"cancellations,omitempty"`
// ChannelType: The channel type of the order: "purchaseOnGoogle" or
// "googleExpress".
ChannelType string `json:"channelType,omitempty"`
// Id: The id of the line item.
Id string `json:"id,omitempty"`
@ -3036,7 +3203,8 @@ func (s *OrderLineItemShippingDetails) MarshalJSON() ([]byte, error) {
}
type OrderLineItemShippingDetailsMethod struct {
// Carrier: The carrier for the shipping. Optional.
// Carrier: The carrier for the shipping. Optional. See
// shipments[].carrier for a list of acceptable values.
Carrier string `json:"carrier,omitempty"`
// MaxDaysInTransit: Maximum transit time.
@ -3088,7 +3256,16 @@ type OrderPaymentMethod struct {
// PhoneNumber: The billing phone number.
PhoneNumber string `json:"phoneNumber,omitempty"`
// Type: The type of instrument (VISA, Mastercard, etc).
// Type: The type of instrument.
//
// Acceptable values are:
// - "AMEX"
// - "DISCOVER"
// - "JCB"
// - "MASTERCARD"
// - "UNIONPAY"
// - "VISA"
// - ""
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "BillingAddress") to
@ -3294,6 +3471,30 @@ func (s *OrderReturn) MarshalJSON() ([]byte, error) {
type OrderShipment struct {
// Carrier: The carrier handling the shipment.
//
// Acceptable values are:
// - "gsx"
// - "ups"
// - "united parcel service"
// - "usps"
// - "united states postal service"
// - "fedex"
// - "dhl"
// - "ecourier"
// - "cxt"
// - "google"
// - "on trac"
// - "ontrac"
// - "on-trac"
// - "on_trac"
// - "delvic"
// - "dynamex"
// - "lasership"
// - "smartpost"
// - "fedex smartpost"
// - "mpx"
// - "uds"
// - "united delivery service"
Carrier string `json:"carrier,omitempty"`
// CreationDate: Date on which the shipment has been created, in ISO
@ -3917,16 +4118,25 @@ func (s *OrdersCustomBatchRequestEntryReturnLineItem) MarshalJSON() ([]byte, err
}
type OrdersCustomBatchRequestEntryShipLineItems struct {
// Carrier: The carrier handling the shipment.
// Carrier: Deprecated. Please use shipmentInfo instead. The carrier
// handling the shipment. See shipments[].carrier in the Orders
// resource representation for a list of acceptable values.
Carrier string `json:"carrier,omitempty"`
// LineItems: Line items to ship.
LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"`
// ShipmentId: The ID of the shipment.
// ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of
// the shipment.
ShipmentId string `json:"shipmentId,omitempty"`
// TrackingId: The tracking id for the shipment.
// ShipmentInfos: Shipment information. This field is repeated because a
// single line item can be shipped in several packages (and have several
// tracking IDs).
ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"`
// TrackingId: Deprecated. Please use shipmentInfo instead. The tracking
// id for the shipment.
TrackingId string `json:"trackingId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Carrier") to
@ -3952,8 +4162,45 @@ func (s *OrdersCustomBatchRequestEntryShipLineItems) MarshalJSON() ([]byte, erro
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo struct {
// Carrier: The carrier handling the shipment. See shipments[].carrier
// in the Orders resource representation for a list of acceptable
// values.
Carrier string `json:"carrier,omitempty"`
// ShipmentId: The ID of the shipment.
ShipmentId string `json:"shipmentId,omitempty"`
// TrackingId: The tracking id for the shipment.
TrackingId string `json:"trackingId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Carrier") 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. "Carrier") 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 *OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo) MarshalJSON() ([]byte, error) {
type noMethod OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type OrdersCustomBatchRequestEntryUpdateShipment struct {
// Carrier: The carrier handling the shipment. Not updated if missing.
// See shipments[].carrier in the Orders resource representation for a
// list of acceptable values.
Carrier string `json:"carrier,omitempty"`
// ShipmentId: The ID of the shipment.
@ -4324,7 +4571,9 @@ func (s *OrdersReturnLineItemResponse) MarshalJSON() ([]byte, error) {
}
type OrdersShipLineItemsRequest struct {
// Carrier: The carrier handling the shipment.
// Carrier: Deprecated. Please use shipmentInfo instead. The carrier
// handling the shipment. See shipments[].carrier in the Orders
// resource representation for a list of acceptable values.
Carrier string `json:"carrier,omitempty"`
// LineItems: Line items to ship.
@ -4334,10 +4583,17 @@ type OrdersShipLineItemsRequest struct {
// for a given order.
OperationId string `json:"operationId,omitempty"`
// ShipmentId: The ID of the shipment.
// ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of
// the shipment.
ShipmentId string `json:"shipmentId,omitempty"`
// TrackingId: The tracking id for the shipment.
// ShipmentInfos: Shipment information. This field is repeated because a
// single line item can be shipped in several packages (and have several
// tracking IDs).
ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"`
// TrackingId: Deprecated. Please use shipmentInfo instead. The tracking
// id for the shipment.
TrackingId string `json:"trackingId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Carrier") to
@ -4470,6 +4726,8 @@ func (s *OrdersUpdateMerchantOrderIdResponse) MarshalJSON() ([]byte, error) {
type OrdersUpdateShipmentRequest struct {
// Carrier: The carrier handling the shipment. Not updated if missing.
// See shipments[].carrier in the Orders resource representation for a
// list of acceptable values.
Carrier string `json:"carrier,omitempty"`
// OperationId: The ID of the operation. Unique across all operations
@ -5115,8 +5373,7 @@ type ProductShipping struct {
// Price: Fixed shipping price, represented as a number.
Price *Price `json:"price,omitempty"`
// Region: The geographic region to which a shipping rate applies (e.g.
// zip code).
// Region: The geographic region to which a shipping rate applies.
Region string `json:"region,omitempty"`
// Service: A free-form description of the service class or delivery
@ -5269,6 +5526,9 @@ type ProductStatus struct {
// Link: The link to the product.
Link string `json:"link,omitempty"`
// Product: Product data after applying all the join inputs.
Product *Product `json:"product,omitempty"`
// ProductId: The id of the product for which status is reported.
ProductId string `json:"productId,omitempty"`
@ -5736,6 +5996,8 @@ type ProductstatusesCustomBatchRequestEntry struct {
// BatchId: An entry ID, unique within the batch request.
BatchId int64 `json:"batchId,omitempty"`
IncludeAttributes bool `json:"includeAttributes,omitempty"`
// MerchantId: The ID of the managing account.
MerchantId uint64 `json:"merchantId,omitempty,string"`
@ -5974,6 +6236,11 @@ type Service struct {
// delivery of the product. Required.
DeliveryTime *DeliveryTime `json:"deliveryTime,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.
MinimumOrderValue *Price `json:"minimumOrderValue,omitempty"`
// Name: Free-form name of the service. Must be unique within target
// account. Required.
Name string `json:"name,omitempty"`
@ -6323,7 +6590,7 @@ type TestOrder struct {
PredefinedDeliveryAddress string `json:"predefinedDeliveryAddress,omitempty"`
// Promotions: The details of the merchant provided promotions applied
// to the order. More details about the program are here.
// to the order. More details about the program are here.
Promotions []*OrderPromotion `json:"promotions,omitempty"`
// ShippingCost: The total cost of shipping for all items.
@ -6756,8 +7023,9 @@ type AccountsClaimwebsiteCall struct {
// Claimwebsite: Claims the website of a Merchant Center sub-account.
// This method can only be called for accounts to which the managing
// account has access: either the managing account itself or
// sub-accounts if the managing account is a multi-client account.
// account has access: either the managing account itself for any
// Merchant Center account, or any sub-account when the managing account
// is a multi-client account.
func (r *AccountsService) Claimwebsite(merchantId uint64, accountId uint64) *AccountsClaimwebsiteCall {
c := &AccountsClaimwebsiteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@ -6765,9 +7033,10 @@ func (r *AccountsService) Claimwebsite(merchantId uint64, accountId uint64) *Acc
return c
}
// Overwrite sets the optional parameter "overwrite": Flag to remove any
// existing claim on the requested website by another account and
// replace it with a claim from this account.
// Overwrite sets the optional parameter "overwrite": Only available to
// selected merchants. When set to True, this flag removes any existing
// claim on the requested website by another account and replaces it
// with a claim from this account.
func (c *AccountsClaimwebsiteCall) Overwrite(overwrite bool) *AccountsClaimwebsiteCall {
c.urlParams_.Set("overwrite", fmt.Sprint(overwrite))
return c
@ -6855,7 +7124,7 @@ func (c *AccountsClaimwebsiteCall) Do(opts ...googleapi.CallOption) (*AccountsCl
}
return ret, nil
// {
// "description": "Claims the website of a Merchant Center sub-account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
// "description": "Claims the website of a Merchant Center sub-account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
// "httpMethod": "POST",
// "id": "content.accounts.claimwebsite",
// "parameterOrder": [
@ -6878,7 +7147,7 @@ func (c *AccountsClaimwebsiteCall) Do(opts ...googleapi.CallOption) (*AccountsCl
// "type": "string"
// },
// "overwrite": {
// "description": "Flag to remove any existing claim on the requested website by another account and replace it with a claim from this account.",
// "description": "Only available to selected merchants. When set to True, this flag removes any existing claim on the requested website by another account and replaces it with a claim from this account.",
// "location": "query",
// "type": "boolean"
// }
@ -7053,6 +7322,13 @@ func (c *AccountsDeleteCall) DryRun(dryRun bool) *AccountsDeleteCall {
return c
}
// Force sets the optional parameter "force": Flag to delete
// sub-accounts with products. The default value is false.
func (c *AccountsDeleteCall) Force(force bool) *AccountsDeleteCall {
c.urlParams_.Set("force", fmt.Sprint(force))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
@ -7130,6 +7406,12 @@ func (c *AccountsDeleteCall) Do(opts ...googleapi.CallOption) error {
// "location": "query",
// "type": "boolean"
// },
// "force": {
// "default": "false",
// "description": "Flag to delete sub-accounts with products. The default value is false.",
// "location": "query",
// "type": "boolean"
// },
// "merchantId": {
// "description": "The ID of the managing account.",
// "format": "uint64",
@ -7160,8 +7442,8 @@ type AccountsGetCall struct {
// Get: Retrieves a Merchant Center account. This method can only be
// called for accounts to which the managing account has access: either
// the managing account itself or sub-accounts if the managing account
// is a multi-client account.
// the managing account itself for any Merchant Center account, or any
// sub-account when the managing account is a multi-client account.
func (r *AccountsService) Get(merchantId uint64, accountId uint64) *AccountsGetCall {
c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@ -7264,7 +7546,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) {
}
return ret, nil
// {
// "description": "Retrieves a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
// "description": "Retrieves a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
// "httpMethod": "GET",
// "id": "content.accounts.get",
// "parameterOrder": [
@ -7644,8 +7926,9 @@ type AccountsPatchCall struct {
// Patch: Updates a Merchant Center account. This method can only be
// called for accounts to which the managing account has access: either
// the managing account itself or sub-accounts if the managing account
// is a multi-client account. This method supports patch semantics.
// the managing account itself for any Merchant Center account, or any
// sub-account when the managing account is a multi-client account. This
// method supports patch semantics.
func (r *AccountsService) Patch(merchantId uint64, accountId uint64, account *Account) *AccountsPatchCall {
c := &AccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@ -7748,7 +8031,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) {
}
return ret, nil
// {
// "description": "Updates a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account. This method supports patch semantics.",
// "description": "Updates a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account. This method supports patch semantics.",
// "httpMethod": "PATCH",
// "id": "content.accounts.patch",
// "parameterOrder": [
@ -7804,8 +8087,8 @@ type AccountsUpdateCall struct {
// Update: Updates a Merchant Center account. This method can only be
// called for accounts to which the managing account has access: either
// the managing account itself or sub-accounts if the managing account
// is a multi-client account.
// the managing account itself for any Merchant Center account, or any
// sub-account when the managing account is a multi-client account.
func (r *AccountsService) Update(merchantId uint64, accountId uint64, account *Account) *AccountsUpdateCall {
c := &AccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@ -7908,7 +8191,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error)
}
return ret, nil
// {
// "description": "Updates a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
// "description": "Updates a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
// "httpMethod": "PUT",
// "id": "content.accounts.update",
// "parameterOrder": [
@ -8081,8 +8364,9 @@ type AccountstatusesGetCall struct {
// Get: Retrieves the status of a Merchant Center account. This method
// can only be called for accounts to which the managing account has
// access: either the managing account itself or sub-accounts if the
// managing account is a multi-client account.
// access: either the managing account itself for any Merchant Center
// account, or any sub-account when the managing account is a
// multi-client account.
func (r *AccountstatusesService) Get(merchantId uint64, accountId uint64) *AccountstatusesGetCall {
c := &AccountstatusesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@ -8185,7 +8469,7 @@ func (c *AccountstatusesGetCall) Do(opts ...googleapi.CallOption) (*AccountStatu
}
return ret, nil
// {
// "description": "Retrieves the status of a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
// "description": "Retrieves the status of a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
// "httpMethod": "GET",
// "id": "content.accountstatuses.get",
// "parameterOrder": [
@ -8551,8 +8835,9 @@ type AccounttaxGetCall struct {
// Get: Retrieves the tax settings of the account. This method can only
// be called for accounts to which the managing account has access:
// either the managing account itself or sub-accounts if the managing
// account is a multi-client account.
// either the managing account itself for any Merchant Center account,
// or any sub-account when the managing account is a multi-client
// account.
func (r *AccounttaxService) Get(merchantId uint64, accountId uint64) *AccounttaxGetCall {
c := &AccounttaxGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@ -8655,7 +8940,7 @@ func (c *AccounttaxGetCall) Do(opts ...googleapi.CallOption) (*AccountTax, error
}
return ret, nil
// {
// "description": "Retrieves the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
// "description": "Retrieves the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
// "httpMethod": "GET",
// "id": "content.accounttax.get",
// "parameterOrder": [
@ -8889,9 +9174,9 @@ type AccounttaxPatchCall struct {
// Patch: Updates the tax settings of the account. This method can only
// be called for accounts to which the managing account has access:
// either the managing account itself or sub-accounts if the managing
// account is a multi-client account. This method supports patch
// semantics.
// either the managing account itself for any Merchant Center account,
// or any sub-account when the managing account is a multi-client
// account. This method supports patch semantics.
func (r *AccounttaxService) Patch(merchantId uint64, accountId uint64, accounttax *AccountTax) *AccounttaxPatchCall {
c := &AccounttaxPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@ -8994,7 +9279,7 @@ func (c *AccounttaxPatchCall) Do(opts ...googleapi.CallOption) (*AccountTax, err
}
return ret, nil
// {
// "description": "Updates the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account. This method supports patch semantics.",
// "description": "Updates the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account. This method supports patch semantics.",
// "httpMethod": "PATCH",
// "id": "content.accounttax.patch",
// "parameterOrder": [
@ -9050,8 +9335,9 @@ type AccounttaxUpdateCall struct {
// Update: Updates the tax settings of the account. This method can only
// be called for accounts to which the managing account has access:
// either the managing account itself or sub-accounts if the managing
// account is a multi-client account.
// either the managing account itself for any Merchant Center account,
// or any sub-account when the managing account is a multi-client
// account.
func (r *AccounttaxService) Update(merchantId uint64, accountId uint64, accounttax *AccountTax) *AccounttaxUpdateCall {
c := &AccounttaxUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@ -9154,7 +9440,7 @@ func (c *AccounttaxUpdateCall) Do(opts ...googleapi.CallOption) (*AccountTax, er
}
return ret, nil
// {
// "description": "Updates the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
// "description": "Updates the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
// "httpMethod": "PUT",
// "id": "content.accounttax.update",
// "parameterOrder": [
@ -10379,6 +10665,26 @@ func (r *DatafeedstatusesService) Get(merchantId uint64, datafeedId uint64) *Dat
return c
}
// Country sets the optional parameter "country": The country for which
// to get the datafeed status. If this parameter is provided then
// language must also be provided. Note that this parameter is required
// for feeds targeting multiple countries and languages, since a feed
// may have a different status for each target.
func (c *DatafeedstatusesGetCall) Country(country string) *DatafeedstatusesGetCall {
c.urlParams_.Set("country", country)
return c
}
// Language sets the optional parameter "language": The language for
// which to get the datafeed status. If this parameter is provided then
// country must also be provided. Note that this parameter is required
// for feeds targeting multiple countries and languages, since a feed
// may have a different status for each target.
func (c *DatafeedstatusesGetCall) Language(language string) *DatafeedstatusesGetCall {
c.urlParams_.Set("language", language)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
@ -10482,12 +10788,22 @@ func (c *DatafeedstatusesGetCall) Do(opts ...googleapi.CallOption) (*DatafeedSta
// "datafeedId"
// ],
// "parameters": {
// "country": {
// "description": "The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target.",
// "location": "query",
// "type": "string"
// },
// "datafeedId": {
// "format": "uint64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "language": {
// "description": "The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target.",
// "location": "query",
// "type": "string"
// },
// "merchantId": {
// "format": "uint64",
// "location": "path",
@ -14730,8 +15046,9 @@ type ShippingsettingsGetCall struct {
// Get: Retrieves the shipping settings of the account. This method can
// only be called for accounts to which the managing account has access:
// either the managing account itself or sub-accounts if the managing
// account is a multi-client account.
// either the managing account itself for any Merchant Center account,
// or any sub-account when the managing account is a multi-client
// account.
func (r *ShippingsettingsService) Get(merchantId uint64, accountId uint64) *ShippingsettingsGetCall {
c := &ShippingsettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@ -14834,7 +15151,7 @@ func (c *ShippingsettingsGetCall) Do(opts ...googleapi.CallOption) (*ShippingSet
}
return ret, nil
// {
// "description": "Retrieves the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
// "description": "Retrieves the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
// "httpMethod": "GET",
// "id": "content.shippingsettings.get",
// "parameterOrder": [
@ -15210,9 +15527,9 @@ type ShippingsettingsPatchCall struct {
// Patch: Updates the shipping settings of the account. This method can
// only be called for accounts to which the managing account has access:
// either the managing account itself or sub-accounts if the managing
// account is a multi-client account. This method supports patch
// semantics.
// either the managing account itself for any Merchant Center account,
// or any sub-account when the managing account is a multi-client
// account. This method supports patch semantics.
func (r *ShippingsettingsService) Patch(merchantId uint64, accountId uint64, shippingsettings *ShippingSettings) *ShippingsettingsPatchCall {
c := &ShippingsettingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@ -15315,7 +15632,7 @@ func (c *ShippingsettingsPatchCall) Do(opts ...googleapi.CallOption) (*ShippingS
}
return ret, nil
// {
// "description": "Updates the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account. This method supports patch semantics.",
// "description": "Updates the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account. This method supports patch semantics.",
// "httpMethod": "PATCH",
// "id": "content.shippingsettings.patch",
// "parameterOrder": [
@ -15371,8 +15688,9 @@ type ShippingsettingsUpdateCall struct {
// Update: Updates the shipping settings of the account. This method can
// only be called for accounts to which the managing account has access:
// either the managing account itself or sub-accounts if the managing
// account is a multi-client account.
// either the managing account itself for any Merchant Center account,
// or any sub-account when the managing account is a multi-client
// account.
func (r *ShippingsettingsService) Update(merchantId uint64, accountId uint64, shippingsettings *ShippingSettings) *ShippingsettingsUpdateCall {
c := &ShippingsettingsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.merchantId = merchantId
@ -15475,7 +15793,7 @@ func (c *ShippingsettingsUpdateCall) Do(opts ...googleapi.CallOption) (*Shipping
}
return ret, nil
// {
// "description": "Updates the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.",
// "description": "Updates the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself for any Merchant Center account, or any sub-account when the managing account is a multi-client account.",
// "httpMethod": "PUT",
// "id": "content.shippingsettings.update",
// "parameterOrder": [

View File

@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/lbeqa-NGWRK_GCsjSxcBWyd83Mo\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/QmLvLWNsI9BfMK5wWeN2hMPf260\"",
"discoveryVersion": "v1",
"id": "content:v2sandbox",
"name": "content",
"canonicalName": "Shopping Content",
"version": "v2sandbox",
"revision": "20170531",
"revision": "20170928",
"title": "Content API for Shopping",
"description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.",
"ownerDomain": "google.com",
@ -21,7 +21,7 @@
"basePath": "/content/v2sandbox/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "content/v2sandbox/",
"batchPath": "batch",
"batchPath": "batch/content/v2sandbox",
"parameters": {
"alt": {
"type": "string",
@ -181,7 +181,7 @@
},
"promotions": {
"type": "array",
"description": "The details of the merchant provided promotions applied to the order. More details about the program are here.",
"description": "The details of the merchant provided promotions applied to the order. More details about the program are here.",
"items": {
"$ref": "OrderPromotion"
}
@ -332,6 +332,10 @@
"$ref": "OrderCancellation"
}
},
"channelType": {
"type": "string",
"description": "The channel type of the order: \"purchaseOnGoogle\" or \"googleExpress\"."
},
"id": {
"type": "string",
"description": "The id of the line item."
@ -551,7 +555,7 @@
"properties": {
"carrier": {
"type": "string",
"description": "The carrier for the shipping. Optional."
"description": "The carrier for the shipping. Optional. See shipments[].carrier for a list of acceptable values."
},
"maxDaysInTransit": {
"type": "integer",
@ -612,7 +616,7 @@
},
"type": {
"type": "string",
"description": "The type of instrument (VISA, Mastercard, etc)."
"description": "The type of instrument.\n\nAcceptable values are: \n- \"AMEX\" \n- \"DISCOVER\" \n- \"JCB\" \n- \"MASTERCARD\" \n- \"UNIONPAY\" \n- \"VISA\" \n- \"\""
}
}
},
@ -740,7 +744,7 @@
"properties": {
"carrier": {
"type": "string",
"description": "The carrier handling the shipment."
"description": "The carrier handling the shipment.\n\nAcceptable values are: \n- \"gsx\" \n- \"ups\" \n- \"united parcel service\" \n- \"usps\" \n- \"united states postal service\" \n- \"fedex\" \n- \"dhl\" \n- \"ecourier\" \n- \"cxt\" \n- \"google\" \n- \"on trac\" \n- \"ontrac\" \n- \"on-trac\" \n- \"on_trac\" \n- \"delvic\" \n- \"dynamex\" \n- \"lasership\" \n- \"smartpost\" \n- \"fedex smartpost\" \n- \"mpx\" \n- \"uds\" \n- \"united delivery service\""
},
"creationDate": {
"type": "string",
@ -1087,7 +1091,7 @@
"properties": {
"carrier": {
"type": "string",
"description": "The carrier handling the shipment."
"description": "Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. See shipments[].carrier in the Orders resource representation for a list of acceptable values."
},
"lineItems": {
"type": "array",
@ -1098,7 +1102,37 @@
},
"shipmentId": {
"type": "string",
"description": "The ID of the shipment."
"description": "Deprecated. Please use shipmentInfo instead. The ID of the shipment."
},
"shipmentInfos": {
"type": "array",
"description": "Shipment information. This field is repeated because a single line item can be shipped in several packages (and have several tracking IDs).",
"items": {
"$ref": "OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo"
}
},
"trackingId": {
"type": "string",
"description": "Deprecated. Please use shipmentInfo instead. The tracking id for the shipment."
}
}
},
"OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo": {
"id": "OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo",
"type": "object",
"properties": {
"carrier": {
"type": "string",
"description": "The carrier handling the shipment. See shipments[].carrier in the Orders resource representation for a list of acceptable values."
},
"shipmentId": {
"type": "string",
"description": "The ID of the shipment.",
"annotations": {
"required": [
"content.orders.shiplineitems"
]
}
},
"trackingId": {
"type": "string",
@ -1112,7 +1146,7 @@
"properties": {
"carrier": {
"type": "string",
"description": "The carrier handling the shipment. Not updated if missing."
"description": "The carrier handling the shipment. Not updated if missing. See shipments[].carrier in the Orders resource representation for a list of acceptable values."
},
"shipmentId": {
"type": "string",
@ -1310,7 +1344,7 @@
"properties": {
"carrier": {
"type": "string",
"description": "The carrier handling the shipment."
"description": "Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. See shipments[].carrier in the Orders resource representation for a list of acceptable values."
},
"lineItems": {
"type": "array",
@ -1325,11 +1359,18 @@
},
"shipmentId": {
"type": "string",
"description": "The ID of the shipment."
"description": "Deprecated. Please use shipmentInfo instead. The ID of the shipment."
},
"shipmentInfos": {
"type": "array",
"description": "Shipment information. This field is repeated because a single line item can be shipped in several packages (and have several tracking IDs).",
"items": {
"$ref": "OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo"
}
},
"trackingId": {
"type": "string",
"description": "The tracking id for the shipment."
"description": "Deprecated. Please use shipmentInfo instead. The tracking id for the shipment."
}
}
},
@ -1383,7 +1424,7 @@
"properties": {
"carrier": {
"type": "string",
"description": "The carrier handling the shipment. Not updated if missing."
"description": "The carrier handling the shipment. Not updated if missing. See shipments[].carrier in the Orders resource representation for a list of acceptable values."
},
"operationId": {
"type": "string",
@ -1477,7 +1518,7 @@
},
"promotions": {
"type": "array",
"description": "The details of the merchant provided promotions applied to the order. More details about the program are here.",
"description": "The details of the merchant provided promotions applied to the order. More details about the program are here.",
"items": {
"$ref": "OrderPromotion"
}

View File

@ -196,7 +196,7 @@ type Order struct {
PlacedDate string `json:"placedDate,omitempty"`
// Promotions: The details of the merchant provided promotions applied
// to the order. More details about the program are here.
// to the order. More details about the program are here.
Promotions []*OrderPromotion `json:"promotions,omitempty"`
// Refunds: Refunds for the order.
@ -413,6 +413,10 @@ type OrderLineItem struct {
// Cancellations: Cancellations of the line item.
Cancellations []*OrderCancellation `json:"cancellations,omitempty"`
// ChannelType: The channel type of the order: "purchaseOnGoogle" or
// "googleExpress".
ChannelType string `json:"channelType,omitempty"`
// Id: The id of the line item.
Id string `json:"id,omitempty"`
@ -649,7 +653,8 @@ func (s *OrderLineItemShippingDetails) MarshalJSON() ([]byte, error) {
}
type OrderLineItemShippingDetailsMethod struct {
// Carrier: The carrier for the shipping. Optional.
// Carrier: The carrier for the shipping. Optional. See
// shipments[].carrier for a list of acceptable values.
Carrier string `json:"carrier,omitempty"`
// MaxDaysInTransit: Maximum transit time.
@ -701,7 +706,16 @@ type OrderPaymentMethod struct {
// PhoneNumber: The billing phone number.
PhoneNumber string `json:"phoneNumber,omitempty"`
// Type: The type of instrument (VISA, Mastercard, etc).
// Type: The type of instrument.
//
// Acceptable values are:
// - "AMEX"
// - "DISCOVER"
// - "JCB"
// - "MASTERCARD"
// - "UNIONPAY"
// - "VISA"
// - ""
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "BillingAddress") to
@ -907,6 +921,30 @@ func (s *OrderReturn) MarshalJSON() ([]byte, error) {
type OrderShipment struct {
// Carrier: The carrier handling the shipment.
//
// Acceptable values are:
// - "gsx"
// - "ups"
// - "united parcel service"
// - "usps"
// - "united states postal service"
// - "fedex"
// - "dhl"
// - "ecourier"
// - "cxt"
// - "google"
// - "on trac"
// - "ontrac"
// - "on-trac"
// - "on_trac"
// - "delvic"
// - "dynamex"
// - "lasership"
// - "smartpost"
// - "fedex smartpost"
// - "mpx"
// - "uds"
// - "united delivery service"
Carrier string `json:"carrier,omitempty"`
// CreationDate: Date on which the shipment has been created, in ISO
@ -1530,16 +1568,25 @@ func (s *OrdersCustomBatchRequestEntryReturnLineItem) MarshalJSON() ([]byte, err
}
type OrdersCustomBatchRequestEntryShipLineItems struct {
// Carrier: The carrier handling the shipment.
// Carrier: Deprecated. Please use shipmentInfo instead. The carrier
// handling the shipment. See shipments[].carrier in the Orders
// resource representation for a list of acceptable values.
Carrier string `json:"carrier,omitempty"`
// LineItems: Line items to ship.
LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"`
// ShipmentId: The ID of the shipment.
// ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of
// the shipment.
ShipmentId string `json:"shipmentId,omitempty"`
// TrackingId: The tracking id for the shipment.
// ShipmentInfos: Shipment information. This field is repeated because a
// single line item can be shipped in several packages (and have several
// tracking IDs).
ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"`
// TrackingId: Deprecated. Please use shipmentInfo instead. The tracking
// id for the shipment.
TrackingId string `json:"trackingId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Carrier") to
@ -1565,8 +1612,45 @@ func (s *OrdersCustomBatchRequestEntryShipLineItems) MarshalJSON() ([]byte, erro
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo struct {
// Carrier: The carrier handling the shipment. See shipments[].carrier
// in the Orders resource representation for a list of acceptable
// values.
Carrier string `json:"carrier,omitempty"`
// ShipmentId: The ID of the shipment.
ShipmentId string `json:"shipmentId,omitempty"`
// TrackingId: The tracking id for the shipment.
TrackingId string `json:"trackingId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Carrier") 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. "Carrier") 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 *OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo) MarshalJSON() ([]byte, error) {
type noMethod OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type OrdersCustomBatchRequestEntryUpdateShipment struct {
// Carrier: The carrier handling the shipment. Not updated if missing.
// See shipments[].carrier in the Orders resource representation for a
// list of acceptable values.
Carrier string `json:"carrier,omitempty"`
// ShipmentId: The ID of the shipment.
@ -1937,7 +2021,9 @@ func (s *OrdersReturnLineItemResponse) MarshalJSON() ([]byte, error) {
}
type OrdersShipLineItemsRequest struct {
// Carrier: The carrier handling the shipment.
// Carrier: Deprecated. Please use shipmentInfo instead. The carrier
// handling the shipment. See shipments[].carrier in the Orders
// resource representation for a list of acceptable values.
Carrier string `json:"carrier,omitempty"`
// LineItems: Line items to ship.
@ -1947,10 +2033,17 @@ type OrdersShipLineItemsRequest struct {
// for a given order.
OperationId string `json:"operationId,omitempty"`
// ShipmentId: The ID of the shipment.
// ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of
// the shipment.
ShipmentId string `json:"shipmentId,omitempty"`
// TrackingId: The tracking id for the shipment.
// ShipmentInfos: Shipment information. This field is repeated because a
// single line item can be shipped in several packages (and have several
// tracking IDs).
ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"`
// TrackingId: Deprecated. Please use shipmentInfo instead. The tracking
// id for the shipment.
TrackingId string `json:"trackingId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Carrier") to
@ -2083,6 +2176,8 @@ func (s *OrdersUpdateMerchantOrderIdResponse) MarshalJSON() ([]byte, error) {
type OrdersUpdateShipmentRequest struct {
// Carrier: The carrier handling the shipment. Not updated if missing.
// See shipments[].carrier in the Orders resource representation for a
// list of acceptable values.
Carrier string `json:"carrier,omitempty"`
// OperationId: The ID of the operation. Unique across all operations
@ -2207,7 +2302,7 @@ type TestOrder struct {
PredefinedDeliveryAddress string `json:"predefinedDeliveryAddress,omitempty"`
// Promotions: The details of the merchant provided promotions applied
// to the order. More details about the program are here.
// to the order. More details about the program are here.
Promotions []*OrderPromotion `json:"promotions,omitempty"`
// ShippingCost: The total cost of shipping for all items.