on develop help sign in
Regenerating gogol-content from latest service definition
commitfe69b95d40075695b7677f6ad0200fa39469ee34 authorBrendan Hay <brendan.g.hay@gmail.com> dateTue 25 Oct 2016, 11:37 (10 years ago) parentdca4c14
2 files changed+668−6
gen/model/content/v2/content-api.json+661−3 gen/model/content/v2sandbox/content-api.json+7−3
gen/model/content/v2/content-api.json+661−3
@@ -1,12 +1,12 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/hqrMddPMFaU74nL8Pb566O2vUwc\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/s25nZfCDiUSmvUdwENlGP-4IYvU\"",
44 "discoveryVersion": "v1",
55 "id": "content:v2",
66 "name": "content",
77 "canonicalName": "Shopping Content",
88 "version": "v2",
9− "revision": "20160419",
9+ "revision": "20160928",
1010 "title": "Content API for Shopping",
1111 "description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.",
1212 "ownerDomain": "google.com",
@@ -455,6 +455,16 @@
455455 "$ref": "AccountShippingShippingServiceCostRule",
456456 "description": "Decision tree for \"complicated\" shipping cost calculation."
457457 },
458+ "maxDaysInTransit": {
459+ "type": "string",
460+ "description": "The maximum number of days in transit. Must be a value between 0 and 250 included. A value of 0 means same day delivery.",
461+ "format": "uint64"
462+ },
463+ "minDaysInTransit": {
464+ "type": "string",
465+ "description": "The minimum number of days in transit. Must be a value between 0 and maxDaysIntransit included. A value of 0 means same day delivery.",
466+ "format": "uint64"
467+ },
458468 "name": {
459469 "type": "string",
460470 "description": "The name of this shipping service.",
@@ -1126,6 +1136,57 @@
11261136 }
11271137 }
11281138 },
1139+ "CarrierRate": {
1140+ "id": "CarrierRate",
1141+ "type": "object",
1142+ "properties": {
1143+ "carrierName": {
1144+ "type": "string",
1145+ "description": "Carrier service, such as \"UPS\" or \"Fedex\". The list of supported carriers can be retrieved via the getSupportedCarriers method. Required."
1146+ },
1147+ "carrierService": {
1148+ "type": "string",
1149+ "description": "Carrier service, such as \"ground\" or \"2 days\". The list of supported services for a carrier can be retrieved via the getSupportedCarriers method. Required."
1150+ },
1151+ "flatAdjustment": {
1152+ "$ref": "Price",
1153+ "description": "Additive shipping rate modifier. Can be negative. For example { \"value\": \"1\", \"currency\" : \"USD\" } adds $1 to the rate, { \"value\": \"-3\", \"currency\" : \"USD\" } removes $3 from the rate. Optional."
1154+ },
1155+ "name": {
1156+ "type": "string",
1157+ "description": "Name of the carrier rate. Must be unique per rate group. Required."
1158+ },
1159+ "originPostalCode": {
1160+ "type": "string",
1161+ "description": "Shipping origin for this carrier rate. Required."
1162+ },
1163+ "percentageAdjustment": {
1164+ "type": "string",
1165+ "description": "Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example \"5.4\" increases the rate by 5.4%, \"-3\" decreases the rate by 3%. Optional."
1166+ }
1167+ }
1168+ },
1169+ "CarriersCarrier": {
1170+ "id": "CarriersCarrier",
1171+ "type": "object",
1172+ "properties": {
1173+ "country": {
1174+ "type": "string",
1175+ "description": "The CLDR country code of the carrier (e.g., \"US\"). Always present."
1176+ },
1177+ "name": {
1178+ "type": "string",
1179+ "description": "The name of the carrier (e.g., \"UPS\"). Always present."
1180+ },
1181+ "services": {
1182+ "type": "array",
1183+ "description": "A list of supported services (e.g., \"ground\") for that carrier. Contains at least one service.",
1184+ "items": {
1185+ "type": "string"
1186+ }
1187+ }
1188+ }
1189+ },
11291190 "Datafeed": {
11301191 "id": "Datafeed",
11311192 "type": "object",
@@ -1569,6 +1630,22 @@
15691630 }
15701631 }
15711632 },
1633+ "DeliveryTime": {
1634+ "id": "DeliveryTime",
1635+ "type": "object",
1636+ "properties": {
1637+ "maxTransitTimeInDays": {
1638+ "type": "integer",
1639+ "description": "Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Must be greater than or equal to minTransitTimeInDays. Required.",
1640+ "format": "uint32"
1641+ },
1642+ "minTransitTimeInDays": {
1643+ "type": "integer",
1644+ "description": "Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Required.",
1645+ "format": "uint32"
1646+ }
1647+ }
1648+ },
15721649 "Error": {
15731650 "id": "Error",
15741651 "type": "object",
@@ -1611,6 +1688,48 @@
16111688 }
16121689 }
16131690 },
1691+ "Headers": {
1692+ "id": "Headers",
1693+ "type": "object",
1694+ "description": "A non-empty list of row or column headers for a table. Exactly one of prices, weights, numItems, postalCodeGroupNames, or locations must be set.",
1695+ "properties": {
1696+ "locations": {
1697+ "type": "array",
1698+ "description": "A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.",
1699+ "items": {
1700+ "$ref": "LocationIdSet"
1701+ }
1702+ },
1703+ "numberOfItems": {
1704+ "type": "array",
1705+ "description": "A list of inclusive number of items upper bounds. The last value can be \"infinity\". For example [\"10\", \"50\", \"infinity\"] represents the headers \"\u003c= 10 items\", \" 50 items\". Must be non-empty. Can only be set if all other fields are not set.",
1706+ "items": {
1707+ "type": "string"
1708+ }
1709+ },
1710+ "postalCodeGroupNames": {
1711+ "type": "array",
1712+ "description": "A list of postal group names. The last value can be \"all other locations\". Example: [\"zone 1\", \"zone 2\", \"all other locations\"]. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.",
1713+ "items": {
1714+ "type": "string"
1715+ }
1716+ },
1717+ "prices": {
1718+ "type": "array",
1719+ "description": "be \"infinity\". For example [{\"value\": \"10\", \"currency\": \"USD\"}, {\"value\": \"500\", \"currency\": \"USD\"}, {\"value\": \"infinity\", \"currency\": \"USD\"}] represents the headers \"\u003c= $10\", \" $500\". All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.",
1720+ "items": {
1721+ "$ref": "Price"
1722+ }
1723+ },
1724+ "weights": {
1725+ "type": "array",
1726+ "description": "be \"infinity\". For example [{\"value\": \"10\", \"unit\": \"kg\"}, {\"value\": \"50\", \"unit\": \"kg\"}, {\"value\": \"infinity\", \"unit\": \"kg\"}] represents the headers \"\u003c= 10kg\", \" 50kg\". All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.",
1727+ "items": {
1728+ "$ref": "Weight"
1729+ }
1730+ }
1731+ }
1732+ },
16141733 "Installment": {
16151734 "id": "Installment",
16161735 "type": "object",
@@ -1803,6 +1922,19 @@
18031922 }
18041923 }
18051924 },
1925+ "LocationIdSet": {
1926+ "id": "LocationIdSet",
1927+ "type": "object",
1928+ "properties": {
1929+ "locationIds": {
1930+ "type": "array",
1931+ "description": "A non-empty list of location IDs. They must all be of the same location type (e.g., state).",
1932+ "items": {
1933+ "type": "string"
1934+ }
1935+ }
1936+ }
1937+ },
18061938 "LoyaltyPoints": {
18071939 "id": "LoyaltyPoints",
18081940 "type": "object",
@@ -1831,6 +1963,10 @@
18311963 "type": "boolean",
18321964 "description": "Whether the order was acknowledged."
18331965 },
1966+ "channelType": {
1967+ "type": "string",
1968+ "description": "The channel type of the order: \"purchaseOnGoogle\" or \"googleExpress\"."
1969+ },
18341970 "customer": {
18351971 "$ref": "OrderCustomer",
18361972 "description": "The details of the customer who placed the order."
@@ -1981,7 +2117,7 @@
19812117 },
19822118 "reason": {
19832119 "type": "string",
1984− "description": "The reason for the cancellation. Orders that are cancelled with a noIventory reason will lead to the removal of the product from POG until you make an update to that product. This will not affect your Shopping ads."
2120+ "description": "The reason for the cancellation. Orders that are cancelled with a noInventory reason will lead to the removal of the product from POG until you make an update to that product. This will not affect your Shopping ads."
19852121 },
19862122 "reasonText": {
19872123 "type": "string",
@@ -3118,6 +3254,41 @@
31183254 }
31193255 }
31203256 },
3257+ "PostalCodeGroup": {
3258+ "id": "PostalCodeGroup",
3259+ "type": "object",
3260+ "properties": {
3261+ "country": {
3262+ "type": "string",
3263+ "description": "The CLDR territory code of the country the postal code group applies to. Required."
3264+ },
3265+ "name": {
3266+ "type": "string",
3267+ "description": "The name of the postal code group, referred to in headers. Required."
3268+ },
3269+ "postalCodeRanges": {
3270+ "type": "array",
3271+ "description": "A range of postal codes. Required.",
3272+ "items": {
3273+ "$ref": "PostalCodeRange"
3274+ }
3275+ }
3276+ }
3277+ },
3278+ "PostalCodeRange": {
3279+ "id": "PostalCodeRange",
3280+ "type": "object",
3281+ "properties": {
3282+ "postalCodeRangeBegin": {
3283+ "type": "string",
3284+ "description": "A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range defining the area. Examples values: \"94108\", \"9410*\", \"9*\". Required."
3285+ },
3286+ "postalCodeRangeEnd": {
3287+ "type": "string",
3288+ "description": "A postal code or a pattern of the form prefix* denoting the inclusive upper bound of the range defining the area. It must have the same length as postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a pattern with the same prefix length. Optional: if not set, then the area is defined as being all the postal codes matching postalCodeRangeBegin."
3289+ }
3290+ }
3291+ },
31213292 "Price": {
31223293 "id": "Price",
31233294 "type": "object",
@@ -3144,6 +3315,13 @@
31443315 "type": "string"
31453316 }
31463317 },
3318+ "additionalProductTypes": {
3319+ "type": "array",
3320+ "description": "Additional categories of the item (formatted as in products feed specification).",
3321+ "items": {
3322+ "type": "string"
3323+ }
3324+ },
31473325 "adult": {
31483326 "type": "boolean",
31493327 "description": "Set to true if the item is targeted towards adults."
@@ -3996,6 +4174,262 @@
39964174 }
39974175 }
39984176 },
4177+ "RateGroup": {
4178+ "id": "RateGroup",
4179+ "type": "object",
4180+ "properties": {
4181+ "applicableShippingLabels": {
4182+ "type": "array",
4183+ "description": "A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service. Required.",
4184+ "items": {
4185+ "type": "string"
4186+ }
4187+ },
4188+ "carrierRates": {
4189+ "type": "array",
4190+ "description": "A list of carrier rates that can be referred to by mainTable or singleValue.",
4191+ "items": {
4192+ "$ref": "CarrierRate"
4193+ }
4194+ },
4195+ "mainTable": {
4196+ "$ref": "Table",
4197+ "description": "A table defining the rate group, when singleValue is not expressive enough. Can only be set if singleValue is not set."
4198+ },
4199+ "singleValue": {
4200+ "$ref": "Value",
4201+ "description": "The value of the rate group (e.g. flat rate $10). Can only be set if mainTable and subtables are not set."
4202+ },
4203+ "subtables": {
4204+ "type": "array",
4205+ "description": "A list of subtables referred to by mainTable. Can only be set if mainTable is set.",
4206+ "items": {
4207+ "$ref": "Table"
4208+ }
4209+ }
4210+ }
4211+ },
4212+ "Row": {
4213+ "id": "Row",
4214+ "type": "object",
4215+ "properties": {
4216+ "cells": {
4217+ "type": "array",
4218+ "description": "The list of cells that constitute the row. Must have the same length as columnHeaders for two-dimensional tables, a length of 1 for one-dimensional tables. Required.",
4219+ "items": {
4220+ "$ref": "Value"
4221+ }
4222+ }
4223+ }
4224+ },
4225+ "Service": {
4226+ "id": "Service",
4227+ "type": "object",
4228+ "properties": {
4229+ "active": {
4230+ "type": "boolean",
4231+ "description": "A boolean exposing the active status of the shipping service. Required."
4232+ },
4233+ "currency": {
4234+ "type": "string",
4235+ "description": "The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups."
4236+ },
4237+ "deliveryCountry": {
4238+ "type": "string",
4239+ "description": "The CLDR territory code of the country to which the service applies. Required."
4240+ },
4241+ "deliveryTime": {
4242+ "$ref": "DeliveryTime",
4243+ "description": "Time spent in various aspects from order to the delivery of the product. Required."
4244+ },
4245+ "name": {
4246+ "type": "string",
4247+ "description": "Free-form name of the service. Must be unique within target account. Required."
4248+ },
4249+ "rateGroups": {
4250+ "type": "array",
4251+ "description": "Shipping rate group definitions. Only the last one is allowed to have an empty applicableShippingLabels, which means \"everything else\". The other applicableShippingLabels must not overlap.",
4252+ "items": {
4253+ "$ref": "RateGroup"
4254+ }
4255+ }
4256+ }
4257+ },
4258+ "ShippingSettings": {
4259+ "id": "ShippingSettings",
4260+ "type": "object",
4261+ "description": "The merchant account's shipping settings.",
4262+ "properties": {
4263+ "accountId": {
4264+ "type": "string",
4265+ "description": "The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.",
4266+ "format": "uint64"
4267+ },
4268+ "postalCodeGroups": {
4269+ "type": "array",
4270+ "description": "A list of postal code groups that can be referred to in services. Optional.",
4271+ "items": {
4272+ "$ref": "PostalCodeGroup"
4273+ }
4274+ },
4275+ "services": {
4276+ "type": "array",
4277+ "description": "The target account's list of services. Optional.",
4278+ "items": {
4279+ "$ref": "Service"
4280+ }
4281+ }
4282+ }
4283+ },
4284+ "ShippingsettingsCustomBatchRequest": {
4285+ "id": "ShippingsettingsCustomBatchRequest",
4286+ "type": "object",
4287+ "properties": {
4288+ "entries": {
4289+ "type": "array",
4290+ "description": "The request entries to be processed in the batch.",
4291+ "items": {
4292+ "$ref": "ShippingsettingsCustomBatchRequestEntry"
4293+ }
4294+ }
4295+ }
4296+ },
4297+ "ShippingsettingsCustomBatchRequestEntry": {
4298+ "id": "ShippingsettingsCustomBatchRequestEntry",
4299+ "type": "object",
4300+ "description": "A batch entry encoding a single non-batch accountshipping request.",
4301+ "properties": {
4302+ "accountId": {
4303+ "type": "string",
4304+ "description": "The ID of the account for which to get/update account shipping settings.",
4305+ "format": "uint64"
4306+ },
4307+ "batchId": {
4308+ "type": "integer",
4309+ "description": "An entry ID, unique within the batch request.",
4310+ "format": "uint32"
4311+ },
4312+ "merchantId": {
4313+ "type": "string",
4314+ "description": "The ID of the managing account.",
4315+ "format": "uint64"
4316+ },
4317+ "method": {
4318+ "type": "string"
4319+ },
4320+ "shippingSettings": {
4321+ "$ref": "ShippingSettings",
4322+ "description": "The account shipping settings to update. Only defined if the method is update."
4323+ }
4324+ }
4325+ },
4326+ "ShippingsettingsCustomBatchResponse": {
4327+ "id": "ShippingsettingsCustomBatchResponse",
4328+ "type": "object",
4329+ "properties": {
4330+ "entries": {
4331+ "type": "array",
4332+ "description": "The result of the execution of the batch requests.",
4333+ "items": {
4334+ "$ref": "ShippingsettingsCustomBatchResponseEntry"
4335+ }
4336+ },
4337+ "kind": {
4338+ "type": "string",
4339+ "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsCustomBatchResponse\".",
4340+ "default": "content#shippingsettingsCustomBatchResponse"
4341+ }
4342+ }
4343+ },
4344+ "ShippingsettingsCustomBatchResponseEntry": {
4345+ "id": "ShippingsettingsCustomBatchResponseEntry",
4346+ "type": "object",
4347+ "description": "A batch entry encoding a single non-batch shipping settings response.",
4348+ "properties": {
4349+ "batchId": {
4350+ "type": "integer",
4351+ "description": "The ID of the request entry to which this entry responds.",
4352+ "format": "uint32"
4353+ },
4354+ "errors": {
4355+ "$ref": "Errors",
4356+ "description": "A list of errors defined if, and only if, the request failed."
4357+ },
4358+ "kind": {
4359+ "type": "string",
4360+ "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsCustomBatchResponseEntry\".",
4361+ "default": "content#shippingsettingsCustomBatchResponseEntry"
4362+ },
4363+ "shippingSettings": {
4364+ "$ref": "ShippingSettings",
4365+ "description": "The retrieved or updated account shipping settings."
4366+ }
4367+ }
4368+ },
4369+ "ShippingsettingsGetSupportedCarriersResponse": {
4370+ "id": "ShippingsettingsGetSupportedCarriersResponse",
4371+ "type": "object",
4372+ "properties": {
4373+ "carriers": {
4374+ "type": "array",
4375+ "description": "A list of supported carriers. May be empty.",
4376+ "items": {
4377+ "$ref": "CarriersCarrier"
4378+ }
4379+ },
4380+ "kind": {
4381+ "type": "string",
4382+ "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsGetSupportedCarriersResponse\".",
4383+ "default": "content#shippingsettingsGetSupportedCarriersResponse"
4384+ }
4385+ }
4386+ },
4387+ "ShippingsettingsListResponse": {
4388+ "id": "ShippingsettingsListResponse",
4389+ "type": "object",
4390+ "properties": {
4391+ "kind": {
4392+ "type": "string",
4393+ "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsListResponse\".",
4394+ "default": "content#shippingsettingsListResponse"
4395+ },
4396+ "nextPageToken": {
4397+ "type": "string",
4398+ "description": "The token for the retrieval of the next page of shipping settings."
4399+ },
4400+ "resources": {
4401+ "type": "array",
4402+ "items": {
4403+ "$ref": "ShippingSettings"
4404+ }
4405+ }
4406+ }
4407+ },
4408+ "Table": {
4409+ "id": "Table",
4410+ "type": "object",
4411+ "properties": {
4412+ "columnHeaders": {
4413+ "$ref": "Headers",
4414+ "description": "Headers of the table's columns. Optional: if not set then the table has only one dimension."
4415+ },
4416+ "name": {
4417+ "type": "string",
4418+ "description": "Name of the table. Required for subtables, ignored for the main table."
4419+ },
4420+ "rowHeaders": {
4421+ "$ref": "Headers",
4422+ "description": "Headers of the table's rows. Required."
4423+ },
4424+ "rows": {
4425+ "type": "array",
4426+ "description": "The list of rows that constitute the table. Must have the same length as rowHeaders. Required.",
4427+ "items": {
4428+ "$ref": "Row"
4429+ }
4430+ }
4431+ }
4432+ },
39994433 "TestOrder": {
40004434 "id": "TestOrder",
40014435 "type": "object",
@@ -4279,6 +4713,33 @@
42794713 }
42804714 }
42814715 },
4716+ "Value": {
4717+ "id": "Value",
4718+ "type": "object",
4719+ "description": "The single value of a rate group or the value of a rate group table's cell. Exactly one of noShipping, flatRate, pricePercentage, carrierRateName, subtableName must be set.",
4720+ "properties": {
4721+ "carrierRateName": {
4722+ "type": "string",
4723+ "description": "The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set."
4724+ },
4725+ "flatRate": {
4726+ "$ref": "Price",
4727+ "description": "A flat rate. Can only be set if all other fields are not set."
4728+ },
4729+ "noShipping": {
4730+ "type": "boolean",
4731+ "description": "If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set."
4732+ },
4733+ "pricePercentage": {
4734+ "type": "string",
4735+ "description": "A percentage of the price represented as a number in decimal notation (e.g., \"5.4\"). Can only be set if all other fields are not set."
4736+ },
4737+ "subtableName": {
4738+ "type": "string",
4739+ "description": "The name of a subtable. Can only be set in table cells (i.e., not for single values), and only if all other fields are not set."
4740+ }
4741+ }
4742+ },
42824743 "Weight": {
42834744 "id": "Weight",
42844745 "type": "object",
@@ -6171,6 +6632,203 @@
61716632 ]
61726633 }
61736634 }
6635+ },
6636+ "shippingsettings": {
6637+ "methods": {
6638+ "custombatch": {
6639+ "id": "content.shippingsettings.custombatch",
6640+ "path": "shippingsettings/batch",
6641+ "httpMethod": "POST",
6642+ "description": "Retrieves and updates the shipping settings of multiple accounts in a single request.",
6643+ "parameters": {
6644+ "dryRun": {
6645+ "type": "boolean",
6646+ "description": "Flag to run the request in dry-run mode.",
6647+ "location": "query"
6648+ }
6649+ },
6650+ "request": {
6651+ "$ref": "ShippingsettingsCustomBatchRequest"
6652+ },
6653+ "response": {
6654+ "$ref": "ShippingsettingsCustomBatchResponse"
6655+ },
6656+ "scopes": [
6657+ "https://www.googleapis.com/auth/content"
6658+ ]
6659+ },
6660+ "get": {
6661+ "id": "content.shippingsettings.get",
6662+ "path": "{merchantId}/shippingsettings/{accountId}",
6663+ "httpMethod": "GET",
6664+ "description": "Retrieves the shipping settings of the account.",
6665+ "parameters": {
6666+ "accountId": {
6667+ "type": "string",
6668+ "description": "The ID of the account for which to get/update shipping settings.",
6669+ "required": true,
6670+ "format": "uint64",
6671+ "location": "path"
6672+ },
6673+ "merchantId": {
6674+ "type": "string",
6675+ "description": "The ID of the managing account.",
6676+ "required": true,
6677+ "format": "uint64",
6678+ "location": "path"
6679+ }
6680+ },
6681+ "parameterOrder": [
6682+ "merchantId",
6683+ "accountId"
6684+ ],
6685+ "response": {
6686+ "$ref": "ShippingSettings"
6687+ },
6688+ "scopes": [
6689+ "https://www.googleapis.com/auth/content"
6690+ ]
6691+ },
6692+ "getsupportedcarriers": {
6693+ "id": "content.shippingsettings.getsupportedcarriers",
6694+ "path": "{merchantId}/supportedCarriers",
6695+ "httpMethod": "GET",
6696+ "description": "Retrieves supported carriers and carrier services for an account.",
6697+ "parameters": {
6698+ "merchantId": {
6699+ "type": "string",
6700+ "description": "The ID of the account for which to retrieve the supported carriers.",
6701+ "required": true,
6702+ "format": "uint64",
6703+ "location": "path"
6704+ }
6705+ },
6706+ "parameterOrder": [
6707+ "merchantId"
6708+ ],
6709+ "response": {
6710+ "$ref": "ShippingsettingsGetSupportedCarriersResponse"
6711+ },
6712+ "scopes": [
6713+ "https://www.googleapis.com/auth/content"
6714+ ]
6715+ },
6716+ "list": {
6717+ "id": "content.shippingsettings.list",
6718+ "path": "{merchantId}/shippingsettings",
6719+ "httpMethod": "GET",
6720+ "description": "Lists the shipping settings of the sub-accounts in your Merchant Center account.",
6721+ "parameters": {
6722+ "maxResults": {
6723+ "type": "integer",
6724+ "description": "The maximum number of shipping settings to return in the response, used for paging.",
6725+ "format": "uint32",
6726+ "location": "query"
6727+ },
6728+ "merchantId": {
6729+ "type": "string",
6730+ "description": "The ID of the managing account.",
6731+ "required": true,
6732+ "format": "uint64",
6733+ "location": "path"
6734+ },
6735+ "pageToken": {
6736+ "type": "string",
6737+ "description": "The token returned by the previous request.",
6738+ "location": "query"
6739+ }
6740+ },
6741+ "parameterOrder": [
6742+ "merchantId"
6743+ ],
6744+ "response": {
6745+ "$ref": "ShippingsettingsListResponse"
6746+ },
6747+ "scopes": [
6748+ "https://www.googleapis.com/auth/content"
6749+ ]
6750+ },
6751+ "patch": {
6752+ "id": "content.shippingsettings.patch",
6753+ "path": "{merchantId}/shippingsettings/{accountId}",
6754+ "httpMethod": "PATCH",
6755+ "description": "Updates the shipping settings of the account. This method supports patch semantics.",
6756+ "parameters": {
6757+ "accountId": {
6758+ "type": "string",
6759+ "description": "The ID of the account for which to get/update shipping settings.",
6760+ "required": true,
6761+ "format": "uint64",
6762+ "location": "path"
6763+ },
6764+ "dryRun": {
6765+ "type": "boolean",
6766+ "description": "Flag to run the request in dry-run mode.",
6767+ "location": "query"
6768+ },
6769+ "merchantId": {
6770+ "type": "string",
6771+ "description": "The ID of the managing account.",
6772+ "required": true,
6773+ "format": "uint64",
6774+ "location": "path"
6775+ }
6776+ },
6777+ "parameterOrder": [
6778+ "merchantId",
6779+ "accountId"
6780+ ],
6781+ "request": {
6782+ "$ref": "ShippingSettings"
6783+ },
6784+ "response": {
6785+ "$ref": "ShippingSettings"
6786+ },
6787+ "scopes": [
6788+ "https://www.googleapis.com/auth/content"
6789+ ]
6790+ },
6791+ "update": {
6792+ "id": "content.shippingsettings.update",
6793+ "path": "{merchantId}/shippingsettings/{accountId}",
6794+ "httpMethod": "PUT",
6795+ "description": "Updates the shipping settings of the account.",
6796+ "parameters": {
6797+ "accountId": {
6798+ "type": "string",
6799+ "description": "The ID of the account for which to get/update shipping settings.",
6800+ "required": true,
6801+ "format": "uint64",
6802+ "location": "path"
6803+ },
6804+ "dryRun": {
6805+ "type": "boolean",
6806+ "description": "Flag to run the request in dry-run mode.",
6807+ "location": "query"
6808+ },
6809+ "merchantId": {
6810+ "type": "string",
6811+ "description": "The ID of the managing account.",
6812+ "required": true,
6813+ "format": "uint64",
6814+ "location": "path"
6815+ }
6816+ },
6817+ "parameterOrder": [
6818+ "merchantId",
6819+ "accountId"
6820+ ],
6821+ "request": {
6822+ "$ref": "ShippingSettings"
6823+ },
6824+ "response": {
6825+ "$ref": "ShippingSettings"
6826+ },
6827+ "scopes": [
6828+ "https://www.googleapis.com/auth/content"
6829+ ]
6830+ }
6831+ }
61746832 }
61756833 }
61766834}
gen/model/content/v2sandbox/content-api.json+7−3
@@ -1,12 +1,12 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/4Fd9gR6kX7T-xSLXae9a3rT8Jqg\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/G4C8tbBMXFvrt_-4zEQk-STC2Qw\"",
44 "discoveryVersion": "v1",
55 "id": "content:v2sandbox",
66 "name": "content",
77 "canonicalName": "Shopping Content",
88 "version": "v2sandbox",
9− "revision": "20160419",
9+ "revision": "20160928",
1010 "title": "Content API for Shopping",
1111 "description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.",
1212 "ownerDomain": "google.com",
@@ -127,6 +127,10 @@
127127 "type": "boolean",
128128 "description": "Whether the order was acknowledged."
129129 },
130+ "channelType": {
131+ "type": "string",
132+ "description": "The channel type of the order: \"purchaseOnGoogle\" or \"googleExpress\"."
133+ },
130134 "customer": {
131135 "$ref": "OrderCustomer",
132136 "description": "The details of the customer who placed the order."
@@ -277,7 +281,7 @@
277281 },
278282 "reason": {
279283 "type": "string",
280− "description": "The reason for the cancellation. Orders that are cancelled with a noIventory reason will lead to the removal of the product from POG until you make an update to that product. This will not affect your Shopping ads."
284+ "description": "The reason for the cancellation. Orders that are cancelled with a noInventory reason will lead to the removal of the product from POG until you make an update to that product. This will not affect your Shopping ads."
281285 },
282286 "reasonText": {
283287 "type": "string",