OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/content": { | 5 "https://www.googleapis.com/auth/content": { |
6 "description": "Manage your product listings and accounts fo
r Google Shopping" | 6 "description": "Manage your product listings and accounts fo
r Google Shopping" |
7 } | 7 } |
8 } | 8 } |
9 } | 9 } |
10 }, | 10 }, |
11 "basePath": "/content/v2/", | 11 "basePath": "/content/v2/", |
12 "baseUrl": "https://www.googleapis.com/content/v2/", | 12 "baseUrl": "https://www.googleapis.com/content/v2/", |
13 "batchPath": "batch", | 13 "batchPath": "batch", |
14 "canonicalName": "Shopping Content", | 14 "canonicalName": "Shopping Content", |
15 "description": "Manages product items, inventory, and Merchant Center accoun
ts for Google Shopping.", | 15 "description": "Manages product items, inventory, and Merchant Center accoun
ts for Google Shopping.", |
16 "discoveryVersion": "v1", | 16 "discoveryVersion": "v1", |
17 "documentationLink": "https://developers.google.com/shopping-content", | 17 "documentationLink": "https://developers.google.com/shopping-content", |
18 "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/ZCZOOwDCC1weteZqQodwch31zkc\"", | 18 "etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/tkmMskVFTW_4jdAKLGSBFnYS5lM\"", |
19 "icons": { | 19 "icons": { |
20 "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.
png", | 20 "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.
png", |
21 "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.
png" | 21 "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.
png" |
22 }, | 22 }, |
23 "id": "content:v2", | 23 "id": "content:v2", |
24 "kind": "discovery#restDescription", | 24 "kind": "discovery#restDescription", |
25 "name": "content", | 25 "name": "content", |
26 "ownerDomain": "google.com", | 26 "ownerDomain": "google.com", |
27 "ownerName": "Google", | 27 "ownerName": "Google", |
28 "parameters": { | 28 "parameters": { |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 }, | 316 }, |
317 "response": { | 317 "response": { |
318 "$ref": "Account" | 318 "$ref": "Account" |
319 }, | 319 }, |
320 "scopes": [ | 320 "scopes": [ |
321 "https://www.googleapis.com/auth/content" | 321 "https://www.googleapis.com/auth/content" |
322 ] | 322 ] |
323 } | 323 } |
324 } | 324 } |
325 }, | 325 }, |
326 "accountshipping": { | |
327 "methods": { | |
328 "custombatch": { | |
329 "description": "Retrieves and updates the shipping settings
of multiple accounts in a single request.", | |
330 "httpMethod": "POST", | |
331 "id": "content.accountshipping.custombatch", | |
332 "parameters": { | |
333 "dryRun": { | |
334 "description": "Flag to run the request in dry-run m
ode.", | |
335 "location": "query", | |
336 "type": "boolean" | |
337 } | |
338 }, | |
339 "path": "accountshipping/batch", | |
340 "request": { | |
341 "$ref": "AccountshippingCustomBatchRequest" | |
342 }, | |
343 "response": { | |
344 "$ref": "AccountshippingCustomBatchResponse" | |
345 }, | |
346 "scopes": [ | |
347 "https://www.googleapis.com/auth/content" | |
348 ] | |
349 }, | |
350 "get": { | |
351 "description": "Retrieves the shipping settings of the accou
nt. This method can only be called for accounts to which the managing account ha
s access: either the managing account itself or sub-accounts if the managing acc
ount is a multi-client account.", | |
352 "httpMethod": "GET", | |
353 "id": "content.accountshipping.get", | |
354 "parameterOrder": [ | |
355 "merchantId", | |
356 "accountId" | |
357 ], | |
358 "parameters": { | |
359 "accountId": { | |
360 "description": "The ID of the account for which to g
et/update account shipping settings.", | |
361 "format": "uint64", | |
362 "location": "path", | |
363 "required": true, | |
364 "type": "string" | |
365 }, | |
366 "merchantId": { | |
367 "description": "The ID of the managing account.", | |
368 "format": "uint64", | |
369 "location": "path", | |
370 "required": true, | |
371 "type": "string" | |
372 } | |
373 }, | |
374 "path": "{merchantId}/accountshipping/{accountId}", | |
375 "response": { | |
376 "$ref": "AccountShipping" | |
377 }, | |
378 "scopes": [ | |
379 "https://www.googleapis.com/auth/content" | |
380 ] | |
381 }, | |
382 "list": { | |
383 "description": "Lists the shipping settings of the sub-accou
nts in your Merchant Center account. This method can only be called for multi-cl
ient accounts.", | |
384 "httpMethod": "GET", | |
385 "id": "content.accountshipping.list", | |
386 "parameterOrder": [ | |
387 "merchantId" | |
388 ], | |
389 "parameters": { | |
390 "maxResults": { | |
391 "description": "The maximum number of shipping setti
ngs to return in the response, used for paging.", | |
392 "format": "uint32", | |
393 "location": "query", | |
394 "type": "integer" | |
395 }, | |
396 "merchantId": { | |
397 "description": "The ID of the managing account.", | |
398 "format": "uint64", | |
399 "location": "path", | |
400 "required": true, | |
401 "type": "string" | |
402 }, | |
403 "pageToken": { | |
404 "description": "The token returned by the previous r
equest.", | |
405 "location": "query", | |
406 "type": "string" | |
407 } | |
408 }, | |
409 "path": "{merchantId}/accountshipping", | |
410 "response": { | |
411 "$ref": "AccountshippingListResponse" | |
412 }, | |
413 "scopes": [ | |
414 "https://www.googleapis.com/auth/content" | |
415 ] | |
416 }, | |
417 "patch": { | |
418 "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 accou
nt is a multi-client account. This method supports patch semantics.", | |
419 "httpMethod": "PATCH", | |
420 "id": "content.accountshipping.patch", | |
421 "parameterOrder": [ | |
422 "merchantId", | |
423 "accountId" | |
424 ], | |
425 "parameters": { | |
426 "accountId": { | |
427 "description": "The ID of the account for which to g
et/update account shipping settings.", | |
428 "format": "uint64", | |
429 "location": "path", | |
430 "required": true, | |
431 "type": "string" | |
432 }, | |
433 "dryRun": { | |
434 "description": "Flag to run the request in dry-run m
ode.", | |
435 "location": "query", | |
436 "type": "boolean" | |
437 }, | |
438 "merchantId": { | |
439 "description": "The ID of the managing account.", | |
440 "format": "uint64", | |
441 "location": "path", | |
442 "required": true, | |
443 "type": "string" | |
444 } | |
445 }, | |
446 "path": "{merchantId}/accountshipping/{accountId}", | |
447 "request": { | |
448 "$ref": "AccountShipping" | |
449 }, | |
450 "response": { | |
451 "$ref": "AccountShipping" | |
452 }, | |
453 "scopes": [ | |
454 "https://www.googleapis.com/auth/content" | |
455 ] | |
456 }, | |
457 "update": { | |
458 "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 accou
nt is a multi-client account.", | |
459 "httpMethod": "PUT", | |
460 "id": "content.accountshipping.update", | |
461 "parameterOrder": [ | |
462 "merchantId", | |
463 "accountId" | |
464 ], | |
465 "parameters": { | |
466 "accountId": { | |
467 "description": "The ID of the account for which to g
et/update account shipping settings.", | |
468 "format": "uint64", | |
469 "location": "path", | |
470 "required": true, | |
471 "type": "string" | |
472 }, | |
473 "dryRun": { | |
474 "description": "Flag to run the request in dry-run m
ode.", | |
475 "location": "query", | |
476 "type": "boolean" | |
477 }, | |
478 "merchantId": { | |
479 "description": "The ID of the managing account.", | |
480 "format": "uint64", | |
481 "location": "path", | |
482 "required": true, | |
483 "type": "string" | |
484 } | |
485 }, | |
486 "path": "{merchantId}/accountshipping/{accountId}", | |
487 "request": { | |
488 "$ref": "AccountShipping" | |
489 }, | |
490 "response": { | |
491 "$ref": "AccountShipping" | |
492 }, | |
493 "scopes": [ | |
494 "https://www.googleapis.com/auth/content" | |
495 ] | |
496 } | |
497 } | |
498 }, | |
499 "accountstatuses": { | 326 "accountstatuses": { |
500 "methods": { | 327 "methods": { |
501 "custombatch": { | 328 "custombatch": { |
502 "httpMethod": "POST", | 329 "httpMethod": "POST", |
503 "id": "content.accountstatuses.custombatch", | 330 "id": "content.accountstatuses.custombatch", |
504 "path": "accountstatuses/batch", | 331 "path": "accountstatuses/batch", |
505 "request": { | 332 "request": { |
506 "$ref": "AccountstatusesCustomBatchRequest" | 333 "$ref": "AccountstatusesCustomBatchRequest" |
507 }, | 334 }, |
508 "response": { | 335 "response": { |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1199 }, | 1026 }, |
1200 "path": "{merchantId}/testorders/{orderId}/advance", | 1027 "path": "{merchantId}/testorders/{orderId}/advance", |
1201 "response": { | 1028 "response": { |
1202 "$ref": "OrdersAdvanceTestOrderResponse" | 1029 "$ref": "OrdersAdvanceTestOrderResponse" |
1203 }, | 1030 }, |
1204 "scopes": [ | 1031 "scopes": [ |
1205 "https://www.googleapis.com/auth/content" | 1032 "https://www.googleapis.com/auth/content" |
1206 ] | 1033 ] |
1207 }, | 1034 }, |
1208 "cancel": { | 1035 "cancel": { |
1209 "description": "Cancels all line items in an order. This met
hod can only be called for non-multi-client accounts.", | 1036 "description": "Cancels all line items in an order, making a
full refund. This method can only be called for non-multi-client accounts.", |
1210 "httpMethod": "POST", | 1037 "httpMethod": "POST", |
1211 "id": "content.orders.cancel", | 1038 "id": "content.orders.cancel", |
1212 "parameterOrder": [ | 1039 "parameterOrder": [ |
1213 "merchantId", | 1040 "merchantId", |
1214 "orderId" | 1041 "orderId" |
1215 ], | 1042 ], |
1216 "parameters": { | 1043 "parameters": { |
1217 "merchantId": { | 1044 "merchantId": { |
1218 "description": "The ID of the managing account.", | 1045 "description": "The ID of the managing account.", |
1219 "format": "uint64", | 1046 "format": "uint64", |
(...skipping 13 matching lines...) Expand all Loading... |
1233 "$ref": "OrdersCancelRequest" | 1060 "$ref": "OrdersCancelRequest" |
1234 }, | 1061 }, |
1235 "response": { | 1062 "response": { |
1236 "$ref": "OrdersCancelResponse" | 1063 "$ref": "OrdersCancelResponse" |
1237 }, | 1064 }, |
1238 "scopes": [ | 1065 "scopes": [ |
1239 "https://www.googleapis.com/auth/content" | 1066 "https://www.googleapis.com/auth/content" |
1240 ] | 1067 ] |
1241 }, | 1068 }, |
1242 "cancellineitem": { | 1069 "cancellineitem": { |
1243 "description": "Cancels a line item. This method can only be
called for non-multi-client accounts.", | 1070 "description": "Cancels a line item, making a full refund. T
his method can only be called for non-multi-client accounts.", |
1244 "httpMethod": "POST", | 1071 "httpMethod": "POST", |
1245 "id": "content.orders.cancellineitem", | 1072 "id": "content.orders.cancellineitem", |
1246 "parameterOrder": [ | 1073 "parameterOrder": [ |
1247 "merchantId", | 1074 "merchantId", |
1248 "orderId" | 1075 "orderId" |
1249 ], | 1076 ], |
1250 "parameters": { | 1077 "parameters": { |
1251 "merchantId": { | 1078 "merchantId": { |
1252 "description": "The ID of the managing account.", | 1079 "description": "The ID of the managing account.", |
1253 "format": "uint64", | 1080 "format": "uint64", |
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2130 "response": { | 1957 "response": { |
2131 "$ref": "ShippingSettings" | 1958 "$ref": "ShippingSettings" |
2132 }, | 1959 }, |
2133 "scopes": [ | 1960 "scopes": [ |
2134 "https://www.googleapis.com/auth/content" | 1961 "https://www.googleapis.com/auth/content" |
2135 ] | 1962 ] |
2136 } | 1963 } |
2137 } | 1964 } |
2138 } | 1965 } |
2139 }, | 1966 }, |
2140 "revision": "20170303", | 1967 "revision": "20170406", |
2141 "rootUrl": "https://www.googleapis.com/", | 1968 "rootUrl": "https://www.googleapis.com/", |
2142 "schemas": { | 1969 "schemas": { |
2143 "Account": { | 1970 "Account": { |
2144 "description": "Account data.", | 1971 "description": "Account data.", |
2145 "id": "Account", | 1972 "id": "Account", |
2146 "properties": { | 1973 "properties": { |
2147 "adultContent": { | 1974 "adultContent": { |
2148 "description": "Indicates whether the merchant sells adult c
ontent.", | 1975 "description": "Indicates whether the merchant sells adult c
ontent.", |
2149 "type": "boolean" | 1976 "type": "boolean" |
2150 }, | 1977 }, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2226 "type": "string" | 2053 "type": "string" |
2227 }, | 2054 }, |
2228 "merchantId": { | 2055 "merchantId": { |
2229 "description": "The merchant account ID, set for individual
accounts and subaccounts.", | 2056 "description": "The merchant account ID, set for individual
accounts and subaccounts.", |
2230 "format": "uint64", | 2057 "format": "uint64", |
2231 "type": "string" | 2058 "type": "string" |
2232 } | 2059 } |
2233 }, | 2060 }, |
2234 "type": "object" | 2061 "type": "object" |
2235 }, | 2062 }, |
2236 "AccountShipping": { | |
2237 "description": "The shipping settings of a merchant account.", | |
2238 "id": "AccountShipping", | |
2239 "properties": { | |
2240 "accountId": { | |
2241 "annotations": { | |
2242 "required": [ | |
2243 "content.accountshipping.update" | |
2244 ] | |
2245 }, | |
2246 "description": "The ID of the account to which these account
shipping settings belong.", | |
2247 "format": "uint64", | |
2248 "type": "string" | |
2249 }, | |
2250 "carrierRates": { | |
2251 "description": "Carrier-based shipping calculations.", | |
2252 "items": { | |
2253 "$ref": "AccountShippingCarrierRate" | |
2254 }, | |
2255 "type": "array" | |
2256 }, | |
2257 "kind": { | |
2258 "default": "content#accountShipping", | |
2259 "description": "Identifies what kind of resource this is. Va
lue: the fixed string \"content#accountShipping\".", | |
2260 "type": "string" | |
2261 }, | |
2262 "locationGroups": { | |
2263 "description": "Location groups for shipping.", | |
2264 "items": { | |
2265 "$ref": "AccountShippingLocationGroup" | |
2266 }, | |
2267 "type": "array" | |
2268 }, | |
2269 "rateTables": { | |
2270 "description": "Rate tables definitions.", | |
2271 "items": { | |
2272 "$ref": "AccountShippingRateTable" | |
2273 }, | |
2274 "type": "array" | |
2275 }, | |
2276 "services": { | |
2277 "description": "Shipping services describing shipping fees c
alculation.", | |
2278 "items": { | |
2279 "$ref": "AccountShippingShippingService" | |
2280 }, | |
2281 "type": "array" | |
2282 } | |
2283 }, | |
2284 "type": "object" | |
2285 }, | |
2286 "AccountShippingCarrierRate": { | |
2287 "description": "A carrier-calculated shipping rate.", | |
2288 "id": "AccountShippingCarrierRate", | |
2289 "properties": { | |
2290 "carrier": { | |
2291 "annotations": { | |
2292 "required": [ | |
2293 "content.accountshipping.update" | |
2294 ] | |
2295 }, | |
2296 "description": "The carrier that is responsible for the ship
ping, such as \"UPS\", \"FedEx\", or \"USPS\".", | |
2297 "type": "string" | |
2298 }, | |
2299 "carrierService": { | |
2300 "annotations": { | |
2301 "required": [ | |
2302 "content.accountshipping.update" | |
2303 ] | |
2304 }, | |
2305 "description": "The carrier service, such as \"Ground\" or \
"2Day\".", | |
2306 "type": "string" | |
2307 }, | |
2308 "modifierFlatRate": { | |
2309 "$ref": "Price", | |
2310 "description": "Additive shipping rate modifier." | |
2311 }, | |
2312 "modifierPercent": { | |
2313 "description": "Multiplicative shipping rate modifier in per
cent. Represented as a floating point number without the percentage character.", | |
2314 "type": "string" | |
2315 }, | |
2316 "name": { | |
2317 "annotations": { | |
2318 "required": [ | |
2319 "content.accountshipping.update" | |
2320 ] | |
2321 }, | |
2322 "description": "The name of the carrier rate.", | |
2323 "type": "string" | |
2324 }, | |
2325 "saleCountry": { | |
2326 "annotations": { | |
2327 "required": [ | |
2328 "content.accountshipping.update" | |
2329 ] | |
2330 }, | |
2331 "description": "The sale country for which this carrier rate
is valid, represented as a CLDR territory code.", | |
2332 "type": "string" | |
2333 }, | |
2334 "shippingOrigin": { | |
2335 "annotations": { | |
2336 "required": [ | |
2337 "content.accountshipping.update" | |
2338 ] | |
2339 }, | |
2340 "description": "Shipping origin represented as a postal code
.", | |
2341 "type": "string" | |
2342 } | |
2343 }, | |
2344 "type": "object" | |
2345 }, | |
2346 "AccountShippingCondition": { | |
2347 "id": "AccountShippingCondition", | |
2348 "properties": { | |
2349 "deliveryLocationGroup": { | |
2350 "description": "Delivery location in terms of a location gro
up name. A location group with this name must be specified among location groups
.", | |
2351 "type": "string" | |
2352 }, | |
2353 "deliveryLocationId": { | |
2354 "description": "Delivery location in terms of a location ID.
Can be used to represent administrative areas, smaller country subdivisions, or
cities.", | |
2355 "format": "int64", | |
2356 "type": "string" | |
2357 }, | |
2358 "deliveryPostalCode": { | |
2359 "description": "Delivery location in terms of a postal code.
", | |
2360 "type": "string" | |
2361 }, | |
2362 "deliveryPostalCodeRange": { | |
2363 "$ref": "AccountShippingPostalCodeRange", | |
2364 "description": "Delivery location in terms of a postal code
range." | |
2365 }, | |
2366 "priceMax": { | |
2367 "$ref": "Price", | |
2368 "description": "Maximum shipping price. Forms an interval be
tween the maximum of smaller prices (exclusive) and this price (inclusive)." | |
2369 }, | |
2370 "shippingLabel": { | |
2371 "description": "Shipping label of the product. The products
with the label are matched.", | |
2372 "type": "string" | |
2373 }, | |
2374 "weightMax": { | |
2375 "$ref": "Weight", | |
2376 "description": "Maximum shipping weight. Forms an interval b
etween the maximum of smaller weight (exclusive) and this weight (inclusive)." | |
2377 } | |
2378 }, | |
2379 "type": "object" | |
2380 }, | |
2381 "AccountShippingLocationGroup": { | |
2382 "description": "A user-defined locations group in a given country. A
ll the locations of the group must be of the same type.", | |
2383 "id": "AccountShippingLocationGroup", | |
2384 "properties": { | |
2385 "country": { | |
2386 "annotations": { | |
2387 "required": [ | |
2388 "content.accountshipping.update" | |
2389 ] | |
2390 }, | |
2391 "description": "The CLDR territory code of the country in wh
ich this location group is.", | |
2392 "type": "string" | |
2393 }, | |
2394 "locationIds": { | |
2395 "description": "A location ID (also called criteria ID) repr
esenting administrative areas, smaller country subdivisions (counties), or citie
s.", | |
2396 "items": { | |
2397 "format": "int64", | |
2398 "type": "string" | |
2399 }, | |
2400 "type": "array" | |
2401 }, | |
2402 "name": { | |
2403 "annotations": { | |
2404 "required": [ | |
2405 "content.accountshipping.update" | |
2406 ] | |
2407 }, | |
2408 "description": "The name of the location group.", | |
2409 "type": "string" | |
2410 }, | |
2411 "postalCodeRanges": { | |
2412 "description": "A postal code range representing a city or a
set of cities.", | |
2413 "items": { | |
2414 "$ref": "AccountShippingPostalCodeRange" | |
2415 }, | |
2416 "type": "array" | |
2417 }, | |
2418 "postalCodes": { | |
2419 "description": "A postal code representing a city or a set o
f cities. \n- A single postal code (e.g., 12345)\n- A postal code prefix follow
ed by a star (e.g., 1234*)", | |
2420 "items": { | |
2421 "type": "string" | |
2422 }, | |
2423 "type": "array" | |
2424 } | |
2425 }, | |
2426 "type": "object" | |
2427 }, | |
2428 "AccountShippingPostalCodeRange": { | |
2429 "description": "A postal code range, that can be either: \n- A rang
e of postal codes (e.g., start=12340, end=12359)\n- A range of postal codes pref
ixes (e.g., start=1234* end=1235*). Prefixes must be of the same length (e.g., s
tart=12* end=2* is invalid).", | |
2430 "id": "AccountShippingPostalCodeRange", | |
2431 "properties": { | |
2432 "end": { | |
2433 "annotations": { | |
2434 "required": [ | |
2435 "content.accountshipping.update" | |
2436 ] | |
2437 }, | |
2438 "description": "The last (inclusive) postal code or prefix o
f the range.", | |
2439 "type": "string" | |
2440 }, | |
2441 "start": { | |
2442 "annotations": { | |
2443 "required": [ | |
2444 "content.accountshipping.update" | |
2445 ] | |
2446 }, | |
2447 "description": "The first (inclusive) postal code or prefix
of the range.", | |
2448 "type": "string" | |
2449 } | |
2450 }, | |
2451 "type": "object" | |
2452 }, | |
2453 "AccountShippingRateTable": { | |
2454 "description": "A single or bi-dimensional table of shipping rates.
Each dimension is defined in terms of consecutive price/weight ranges, delivery
locations, or shipping labels.", | |
2455 "id": "AccountShippingRateTable", | |
2456 "properties": { | |
2457 "content": { | |
2458 "description": "One-dimensional table cells define one condi
tion along the same dimension. Bi-dimensional table cells use two dimensions wit
h respectively M and N distinct values and must contain exactly M * N cells with
distinct conditions (for each possible value pairs).", | |
2459 "items": { | |
2460 "$ref": "AccountShippingRateTableCell" | |
2461 }, | |
2462 "type": "array" | |
2463 }, | |
2464 "name": { | |
2465 "annotations": { | |
2466 "required": [ | |
2467 "content.accountshipping.update" | |
2468 ] | |
2469 }, | |
2470 "description": "The name of the rate table.", | |
2471 "type": "string" | |
2472 }, | |
2473 "saleCountry": { | |
2474 "annotations": { | |
2475 "required": [ | |
2476 "content.accountshipping.update" | |
2477 ] | |
2478 }, | |
2479 "description": "The sale country for which this table is val
id, represented as a CLDR territory code.", | |
2480 "type": "string" | |
2481 } | |
2482 }, | |
2483 "type": "object" | |
2484 }, | |
2485 "AccountShippingRateTableCell": { | |
2486 "id": "AccountShippingRateTableCell", | |
2487 "properties": { | |
2488 "condition": { | |
2489 "$ref": "AccountShippingCondition", | |
2490 "description": "Conditions for which the cell is valid. All
cells in a table must use the same dimension or pair of dimensions among price,
weight, shipping label or delivery location. If no condition is specified, the c
ell acts as a catch-all and matches all the elements that are not matched by oth
er cells in this dimension." | |
2491 }, | |
2492 "rate": { | |
2493 "$ref": "Price", | |
2494 "annotations": { | |
2495 "required": [ | |
2496 "content.accountshipping.update" | |
2497 ] | |
2498 }, | |
2499 "description": "The rate applicable if the cell conditions a
re matched." | |
2500 } | |
2501 }, | |
2502 "type": "object" | |
2503 }, | |
2504 "AccountShippingShippingService": { | |
2505 "description": "Shipping services provided in a country.", | |
2506 "id": "AccountShippingShippingService", | |
2507 "properties": { | |
2508 "active": { | |
2509 "description": "Whether the shipping service is available.", | |
2510 "type": "boolean" | |
2511 }, | |
2512 "calculationMethod": { | |
2513 "$ref": "AccountShippingShippingServiceCalculationMethod", | |
2514 "description": "Calculation method for the \"simple\" case t
hat needs no rules." | |
2515 }, | |
2516 "costRuleTree": { | |
2517 "$ref": "AccountShippingShippingServiceCostRule", | |
2518 "description": "Decision tree for \"complicated\" shipping c
ost calculation." | |
2519 }, | |
2520 "maxDaysInTransit": { | |
2521 "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.", | |
2522 "format": "uint64", | |
2523 "type": "string" | |
2524 }, | |
2525 "minDaysInTransit": { | |
2526 "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.", | |
2527 "format": "uint64", | |
2528 "type": "string" | |
2529 }, | |
2530 "name": { | |
2531 "annotations": { | |
2532 "required": [ | |
2533 "content.accountshipping.update" | |
2534 ] | |
2535 }, | |
2536 "description": "The name of this shipping service.", | |
2537 "type": "string" | |
2538 }, | |
2539 "saleCountry": { | |
2540 "annotations": { | |
2541 "required": [ | |
2542 "content.accountshipping.update" | |
2543 ] | |
2544 }, | |
2545 "description": "The CLDR territory code of the sale country
for which this service can be used.", | |
2546 "type": "string" | |
2547 } | |
2548 }, | |
2549 "type": "object" | |
2550 }, | |
2551 "AccountShippingShippingServiceCalculationMethod": { | |
2552 "description": "Shipping cost calculation method. Exactly one of the
field is set.", | |
2553 "id": "AccountShippingShippingServiceCalculationMethod", | |
2554 "properties": { | |
2555 "carrierRate": { | |
2556 "description": "Name of the carrier rate to use for the calc
ulation.", | |
2557 "type": "string" | |
2558 }, | |
2559 "excluded": { | |
2560 "description": "Delivery is excluded. Valid only within cost
rules tree.", | |
2561 "type": "boolean" | |
2562 }, | |
2563 "flatRate": { | |
2564 "$ref": "Price", | |
2565 "description": "Fixed price shipping, represented as a float
ing point number associated with a currency." | |
2566 }, | |
2567 "percentageRate": { | |
2568 "description": "Percentage of the price, represented as a fl
oating point number without the percentage character.", | |
2569 "type": "string" | |
2570 }, | |
2571 "rateTable": { | |
2572 "description": "Name of the rate table to use for the calcul
ation.", | |
2573 "type": "string" | |
2574 } | |
2575 }, | |
2576 "type": "object" | |
2577 }, | |
2578 "AccountShippingShippingServiceCostRule": { | |
2579 "description": "Building block of the cost calculation decision tree
. \n- The tree root should have no condition and no calculation method.\n- All
the children must have a condition on the same dimension. The first child matchi
ng a condition is entered, therefore, price and weight conditions form contiguou
s intervals.\n- The last child of an element must have no condition and matches
all elements not previously matched.\n- Children and calculation method are mutu
ally exclusive, and exactly one of them must be defined; the root must only have
children.", | |
2580 "id": "AccountShippingShippingServiceCostRule", | |
2581 "properties": { | |
2582 "calculationMethod": { | |
2583 "$ref": "AccountShippingShippingServiceCalculationMethod", | |
2584 "description": "Final calculation method to be used only in
leaf nodes." | |
2585 }, | |
2586 "children": { | |
2587 "description": "Subsequent rules to be applied, only for inn
er nodes. The last child must not specify a condition and acts as a catch-all.", | |
2588 "items": { | |
2589 "$ref": "AccountShippingShippingServiceCostRule" | |
2590 }, | |
2591 "type": "array" | |
2592 }, | |
2593 "condition": { | |
2594 "$ref": "AccountShippingCondition", | |
2595 "description": "Condition for this rule to be applicable. If
no condition is specified, the rule acts as a catch-all." | |
2596 } | |
2597 }, | |
2598 "type": "object" | |
2599 }, | |
2600 "AccountStatus": { | 2063 "AccountStatus": { |
2601 "description": "The status of an account, i.e., information about it
s products, which is computed offline and not returned immediately at insertion
time.", | 2064 "description": "The status of an account, i.e., information about it
s products, which is computed offline and not returned immediately at insertion
time.", |
2602 "id": "AccountStatus", | 2065 "id": "AccountStatus", |
2603 "properties": { | 2066 "properties": { |
2604 "accountId": { | 2067 "accountId": { |
2605 "description": "The ID of the account for which the status i
s reported.", | 2068 "description": "The ID of the account for which the status i
s reported.", |
2606 "type": "string" | 2069 "type": "string" |
2607 }, | 2070 }, |
2608 "dataQualityIssues": { | 2071 "dataQualityIssues": { |
2609 "description": "A list of data quality issues.", | 2072 "description": "A list of data quality issues.", |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2890 }, | 2353 }, |
2891 "resources": { | 2354 "resources": { |
2892 "items": { | 2355 "items": { |
2893 "$ref": "Account" | 2356 "$ref": "Account" |
2894 }, | 2357 }, |
2895 "type": "array" | 2358 "type": "array" |
2896 } | 2359 } |
2897 }, | 2360 }, |
2898 "type": "object" | 2361 "type": "object" |
2899 }, | 2362 }, |
2900 "AccountshippingCustomBatchRequest": { | |
2901 "id": "AccountshippingCustomBatchRequest", | |
2902 "properties": { | |
2903 "entries": { | |
2904 "description": "The request entries to be processed in the b
atch.", | |
2905 "items": { | |
2906 "$ref": "AccountshippingCustomBatchRequestEntry" | |
2907 }, | |
2908 "type": "array" | |
2909 } | |
2910 }, | |
2911 "type": "object" | |
2912 }, | |
2913 "AccountshippingCustomBatchRequestEntry": { | |
2914 "description": "A batch entry encoding a single non-batch accountshi
pping request.", | |
2915 "id": "AccountshippingCustomBatchRequestEntry", | |
2916 "properties": { | |
2917 "accountId": { | |
2918 "description": "The ID of the account for which to get/updat
e account shipping settings.", | |
2919 "format": "uint64", | |
2920 "type": "string" | |
2921 }, | |
2922 "accountShipping": { | |
2923 "$ref": "AccountShipping", | |
2924 "description": "The account shipping settings to update. Onl
y defined if the method is update." | |
2925 }, | |
2926 "batchId": { | |
2927 "description": "An entry ID, unique within the batch request
.", | |
2928 "format": "uint32", | |
2929 "type": "integer" | |
2930 }, | |
2931 "merchantId": { | |
2932 "description": "The ID of the managing account.", | |
2933 "format": "uint64", | |
2934 "type": "string" | |
2935 }, | |
2936 "method": { | |
2937 "type": "string" | |
2938 } | |
2939 }, | |
2940 "type": "object" | |
2941 }, | |
2942 "AccountshippingCustomBatchResponse": { | |
2943 "id": "AccountshippingCustomBatchResponse", | |
2944 "properties": { | |
2945 "entries": { | |
2946 "description": "The result of the execution of the batch req
uests.", | |
2947 "items": { | |
2948 "$ref": "AccountshippingCustomBatchResponseEntry" | |
2949 }, | |
2950 "type": "array" | |
2951 }, | |
2952 "kind": { | |
2953 "default": "content#accountshippingCustomBatchResponse", | |
2954 "description": "Identifies what kind of resource this is. Va
lue: the fixed string \"content#accountshippingCustomBatchResponse\".", | |
2955 "type": "string" | |
2956 } | |
2957 }, | |
2958 "type": "object" | |
2959 }, | |
2960 "AccountshippingCustomBatchResponseEntry": { | |
2961 "description": "A batch entry encoding a single non-batch accountshi
pping response.", | |
2962 "id": "AccountshippingCustomBatchResponseEntry", | |
2963 "properties": { | |
2964 "accountShipping": { | |
2965 "$ref": "AccountShipping", | |
2966 "description": "The retrieved or updated account shipping se
ttings." | |
2967 }, | |
2968 "batchId": { | |
2969 "description": "The ID of the request entry this entry respo
nds to.", | |
2970 "format": "uint32", | |
2971 "type": "integer" | |
2972 }, | |
2973 "errors": { | |
2974 "$ref": "Errors", | |
2975 "description": "A list of errors defined if and only if the
request failed." | |
2976 }, | |
2977 "kind": { | |
2978 "default": "content#accountshippingCustomBatchResponseEntry"
, | |
2979 "description": "Identifies what kind of resource this is. Va
lue: the fixed string \"content#accountshippingCustomBatchResponseEntry\".", | |
2980 "type": "string" | |
2981 } | |
2982 }, | |
2983 "type": "object" | |
2984 }, | |
2985 "AccountshippingListResponse": { | |
2986 "id": "AccountshippingListResponse", | |
2987 "properties": { | |
2988 "kind": { | |
2989 "default": "content#accountshippingListResponse", | |
2990 "description": "Identifies what kind of resource this is. Va
lue: the fixed string \"content#accountshippingListResponse\".", | |
2991 "type": "string" | |
2992 }, | |
2993 "nextPageToken": { | |
2994 "description": "The token for the retrieval of the next page
of account shipping settings.", | |
2995 "type": "string" | |
2996 }, | |
2997 "resources": { | |
2998 "items": { | |
2999 "$ref": "AccountShipping" | |
3000 }, | |
3001 "type": "array" | |
3002 } | |
3003 }, | |
3004 "type": "object" | |
3005 }, | |
3006 "AccountstatusesCustomBatchRequest": { | 2363 "AccountstatusesCustomBatchRequest": { |
3007 "id": "AccountstatusesCustomBatchRequest", | 2364 "id": "AccountstatusesCustomBatchRequest", |
3008 "properties": { | 2365 "properties": { |
3009 "entries": { | 2366 "entries": { |
3010 "description": "The request entries to be processed in the b
atch.", | 2367 "description": "The request entries to be processed in the b
atch.", |
3011 "items": { | 2368 "items": { |
3012 "$ref": "AccountstatusesCustomBatchRequestEntry" | 2369 "$ref": "AccountstatusesCustomBatchRequestEntry" |
3013 }, | 2370 }, |
3014 "type": "array" | 2371 "type": "array" |
3015 } | 2372 } |
(...skipping 3365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6381 "description": "The request entries to be processed in the b
atch.", | 5738 "description": "The request entries to be processed in the b
atch.", |
6382 "items": { | 5739 "items": { |
6383 "$ref": "ShippingsettingsCustomBatchRequestEntry" | 5740 "$ref": "ShippingsettingsCustomBatchRequestEntry" |
6384 }, | 5741 }, |
6385 "type": "array" | 5742 "type": "array" |
6386 } | 5743 } |
6387 }, | 5744 }, |
6388 "type": "object" | 5745 "type": "object" |
6389 }, | 5746 }, |
6390 "ShippingsettingsCustomBatchRequestEntry": { | 5747 "ShippingsettingsCustomBatchRequestEntry": { |
6391 "description": "A batch entry encoding a single non-batch accountshi
pping request.", | 5748 "description": "A batch entry encoding a single non-batch shippingse
ttings request.", |
6392 "id": "ShippingsettingsCustomBatchRequestEntry", | 5749 "id": "ShippingsettingsCustomBatchRequestEntry", |
6393 "properties": { | 5750 "properties": { |
6394 "accountId": { | 5751 "accountId": { |
6395 "description": "The ID of the account for which to get/updat
e account shipping settings.", | 5752 "description": "The ID of the account for which to get/updat
e account shipping settings.", |
6396 "format": "uint64", | 5753 "format": "uint64", |
6397 "type": "string" | 5754 "type": "string" |
6398 }, | 5755 }, |
6399 "batchId": { | 5756 "batchId": { |
6400 "description": "An entry ID, unique within the batch request
.", | 5757 "description": "An entry ID, unique within the batch request
.", |
6401 "format": "uint32", | 5758 "format": "uint32", |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6830 "description": "The name of a subtable. Can only be set in t
able cells (i.e., not for single values), and only if all other fields are not s
et.", | 6187 "description": "The name of a subtable. Can only be set in t
able cells (i.e., not for single values), and only if all other fields are not s
et.", |
6831 "type": "string" | 6188 "type": "string" |
6832 } | 6189 } |
6833 }, | 6190 }, |
6834 "type": "object" | 6191 "type": "object" |
6835 }, | 6192 }, |
6836 "Weight": { | 6193 "Weight": { |
6837 "id": "Weight", | 6194 "id": "Weight", |
6838 "properties": { | 6195 "properties": { |
6839 "unit": { | 6196 "unit": { |
6840 "annotations": { | |
6841 "required": [ | |
6842 "content.accountshipping.update" | |
6843 ] | |
6844 }, | |
6845 "description": "The weight unit.", | 6197 "description": "The weight unit.", |
6846 "type": "string" | 6198 "type": "string" |
6847 }, | 6199 }, |
6848 "value": { | 6200 "value": { |
6849 "annotations": { | |
6850 "required": [ | |
6851 "content.accountshipping.update" | |
6852 ] | |
6853 }, | |
6854 "description": "The weight represented as a number.", | 6201 "description": "The weight represented as a number.", |
6855 "type": "string" | 6202 "type": "string" |
6856 } | 6203 } |
6857 }, | 6204 }, |
6858 "type": "object" | 6205 "type": "object" |
6859 } | 6206 } |
6860 }, | 6207 }, |
6861 "servicePath": "content/v2/", | 6208 "servicePath": "content/v2/", |
6862 "title": "Content API for Shopping", | 6209 "title": "Content API for Shopping", |
6863 "version": "v2" | 6210 "version": "v2" |
6864 } | 6211 } |
OLD | NEW |