chore: update docs/dyn , add static discovery files to discovery_cache/documents (#1111)
This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/78f53313-0c78-4a29-8841-f031665a4c6a/targets
- [ ] To automatically regenerate this PR, check this box.
Source-Link: https://github.com/googleapis/synthtool/commit/c2de32114ec484aa708d32012d1fa8d75232daf5
diff --git a/docs/dyn/content_v2.shippingsettings.html b/docs/dyn/content_v2.shippingsettings.html
index c145882..e9b2273 100644
--- a/docs/dyn/content_v2.shippingsettings.html
+++ b/docs/dyn/content_v2.shippingsettings.html
@@ -93,7 +93,7 @@
<code><a href="#getsupportedpickupservices">getsupportedpickupservices(merchantId, x__xgafv=None)</a></code></p>
<p class="firstline">Retrieves supported pickup services for an account.</p>
<p class="toc_element">
- <code><a href="#list">list(merchantId, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
+ <code><a href="#list">list(merchantId, pageToken=None, maxResults=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists the shipping settings of the sub-accounts in your Merchant Center account.</p>
<p class="toc_element">
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
@@ -118,164 +118,214 @@
{
"entries": [ # The request entries to be processed in the batch.
{ # A batch entry encoding a single non-batch shippingsettings request.
- "merchantId": "A String", # The ID of the managing account.
- "accountId": "A String", # The ID of the account for which to get/update account shipping settings.
- "method": "A String", # The method of the batch entry. Acceptable values are: - "`get`" - "`update`"
+ "batchId": 42, # An entry ID, unique within the batch request.
"shippingSettings": { # The merchant account's shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role. # The account shipping settings to update. Only defined if the method is `update`.
- "services": [ # The target account's list of services. Optional.
- {
- "pickupService": { # The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved via the `getSupportedPickupServices` method. Required if and only if the service delivery type is `pickup`.
- "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required.
- "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required.
+ "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional.
+ {
+ "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required.
+ "name": "A String", # The name of the postal code group, referred to in headers. Required.
+ "postalCodeRanges": [ # A range of postal codes. Required.
+ {
+ "postalCodeRangeEnd": "A String", # 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`.
+ "postalCodeRangeBegin": "A String", # 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.
+ },
+ ],
},
- "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`"
- "rateGroups": [ # 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.
- {
- "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
- "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
- "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
+ ],
+ "services": [ # The target account's list of services. Optional.
+ {
+ "name": "A String", # Free-form name of the service. Must be unique within target account. Required.
+ "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
+ "storeCodeSetWithMovs": [
+ { # A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
+ "storeCodes": [ # A list of unique store codes or empty for the catch all.
+ "A String",
+ ],
+ "value": { # The minimum order value for the given stores.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ ],
+ },
+ "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`"
+ "pickupService": { # The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved via the `getSupportedPickupServices` method. Required if and only if the service delivery type is `pickup`.
+ "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required.
+ "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required.
+ },
+ "active": True or False, # A boolean exposing the active status of the shipping service. Required.
+ "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`"
+ "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required.
+ "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. Cannot be set together with minimum_order_value_table.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ "rateGroups": [ # 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.
+ {
+ "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
{
- "cells": [ # 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.
- { # 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.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
+ "percentageAdjustment": "A String", # 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.
+ "originPostalCode": "A String", # Shipping origin for this carrier rate. Required.
+ "carrierService": "A String", # Carrier service, such as `"ground"` or `"2 days"`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
+ "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
+ "flatAdjustment": { # 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.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required.
+ },
+ ],
+ "singleValue": { # 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. # The value of the rate group (e.g. flat rate $10). Can only be set if `mainTable` and `subtables` are not set.
+ "pricePercentage": "A String", # 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.
+ "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
+ "carrierRateName": "A String", # 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.
+ "subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
+ {
+ "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
"currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
},
- "pricePercentage": "A String", # 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.
- "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
- "carrierRateName": "A String", # 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.
- "subtableName": "A String", # 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.
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
+ },
+ ],
+ },
+ "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
+ {
+ "cells": [ # 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.
+ { # 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.
+ "pricePercentage": "A String", # 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.
+ "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
+ "carrierRateName": "A String", # 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.
+ "subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ ],
+ },
+ ],
+ "columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
+ },
+ ],
+ },
+ "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
+ },
+ ],
+ "applicableShippingLabels": [ # 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.
+ "A String",
+ ],
+ "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
+ "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
},
],
},
- ],
- "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
- "columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
- },
- "singleValue": { # 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. # The value of the rate group (e.g. flat rate $10). Can only be set if `mainTable` and `subtables` are not set.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "pricePercentage": "A String", # 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.
- "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
- "carrierRateName": "A String", # 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.
- "subtableName": "A String", # 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.
- },
- "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
- {
- "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
"rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
{
"cells": [ # 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.
{ # 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.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
"pricePercentage": "A String", # 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.
"noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
"carrierRateName": "A String", # 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.
"subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
},
],
},
],
- "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
"columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
{
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
},
],
"postalCodeGroupNames": [ # 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.
"A String",
],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
{
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
},
],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
"locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
{
"locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
@@ -283,118 +333,68 @@
],
},
],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
},
+ "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
},
- ],
- "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service.
- "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
- {
- "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required.
- "originPostalCode": "A String", # Shipping origin for this carrier rate. Required.
- "flatAdjustment": { # 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.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
- "percentageAdjustment": "A String", # 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.
- "carrierService": "A String", # Carrier service, such as `"ground"` or `"2 days"`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
- },
- ],
- "applicableShippingLabels": [ # 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.
- "A String",
- ],
- },
- ],
- "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
- "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. Cannot be set together with minimum_order_value_table.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`"
- "name": "A String", # Free-form name of the service. Must be unique within target account. Required.
- "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required.
- "maxHandlingTimeInDays": 42, # Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `minHandlingTimeInDays`.
- "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
- "businessDays": [ # Regular business days. May not be empty.
- "A String",
- ],
- },
- "maxTransitTimeInDays": 42, # 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`.
- "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
- "timezone": "A String", # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
- "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
- "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
- },
- "minTransitTimeInDays": 42, # Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `{min,max}TransitTimeInDays` or `transitTimeTable` must be set, but not both.
- "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
- {
- "deadlineHour": 42, # Hour of the day on the deadline date until which the order has to be placed to qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.
- "visibleFromDate": "A String", # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October 2016. Required.
- "holidayId": "A String", # Unique identifier for the holiday. Required.
- "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required.
- "deadlineTimezone": "A String", # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service.
},
],
- "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
- "businessDays": [ # Regular business days. May not be empty.
- "A String",
- ],
- },
- "transitTimeTable": { # Transit time table, number of business days spent in transit based on row and column dimensions. Either `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but not both.
- "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`.
- "A String",
- ],
- "rows": [
- {
- "values": [
- {
- "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
- "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`.
- },
- ],
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- },
- "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
- },
- "active": True or False, # A boolean exposing the active status of the shipping service. Required.
- "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
- "storeCodeSetWithMovs": [
- { # A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
- "value": { # The minimum order value for the given stores.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "storeCodes": [ # A list of unique store codes or empty for the catch all.
+ "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
+ "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required.
+ "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
+ "maxHandlingTimeInDays": 42, # Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `minHandlingTimeInDays`.
+ "transitTimeTable": { # Transit time table, number of business days spent in transit based on row and column dimensions. Either `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but not both.
+ "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`.
+ "A String",
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "rows": [
+ {
+ "values": [
+ {
+ "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`.
+ "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
+ },
+ ],
+ },
+ ],
+ },
+ "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
+ "businessDays": [ # Regular business days. May not be empty.
"A String",
],
},
- ],
- },
- "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required.
- },
- ],
- "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional.
- {
- "postalCodeRanges": [ # A range of postal codes. Required.
- {
- "postalCodeRangeBegin": "A String", # 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.
- "postalCodeRangeEnd": "A String", # 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`.
+ "maxTransitTimeInDays": 42, # 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`.
+ "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
+ {
+ "deadlineHour": 42, # Hour of the day on the deadline date until which the order has to be placed to qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.
+ "visibleFromDate": "A String", # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October 2016. Required.
+ "holidayId": "A String", # Unique identifier for the holiday. Required.
+ "deadlineTimezone": "A String", # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required.
+ },
+ ],
+ "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
+ "timezone": "A String", # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
+ "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
+ },
+ "minTransitTimeInDays": 42, # Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `{min,max}TransitTimeInDays` or `transitTimeTable` must be set, but not both.
+ "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
+ "businessDays": [ # Regular business days. May not be empty.
+ "A String",
+ ],
+ },
},
- ],
- "name": "A String", # The name of the postal code group, referred to in headers. Required.
- "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required.
- },
- ],
- "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
- },
- "batchId": 42, # An entry ID, unique within the batch request.
+ },
+ ],
+ "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
+ },
+ "merchantId": "A String", # The ID of the managing account.
+ "accountId": "A String", # The ID of the account for which to get/update account shipping settings.
+ "method": "A String", # The method of the batch entry. Acceptable values are: - "`get`" - "`update`"
},
],
}
@@ -413,173 +413,224 @@
"entries": [ # The result of the execution of the batch requests.
{ # A batch entry encoding a single non-batch shipping settings response.
"errors": { # A list of errors returned by a failed batch entry. # A list of errors defined if, and only if, the request failed.
- "errors": [ # A list of errors.
- { # An error returned by the API.
- "domain": "A String", # The domain of the error.
- "message": "A String", # A description of the error.
- "reason": "A String", # The error code.
- },
- ],
"message": "A String", # The message of the first error in `errors`.
"code": 42, # The HTTP status of the first error in `errors`.
+ "errors": [ # A list of errors.
+ { # An error returned by the API.
+ "message": "A String", # A description of the error.
+ "reason": "A String", # The error code.
+ "domain": "A String", # The domain of the error.
+ },
+ ],
},
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#shippingsettingsCustomBatchResponseEntry`"
- "batchId": 42, # The ID of the request entry to which this entry responds.
"shippingSettings": { # The merchant account's shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role. # The retrieved or updated account shipping settings.
- "services": [ # The target account's list of services. Optional.
- {
- "pickupService": { # The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved via the `getSupportedPickupServices` method. Required if and only if the service delivery type is `pickup`.
- "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required.
- "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required.
+ "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional.
+ {
+ "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required.
+ "name": "A String", # The name of the postal code group, referred to in headers. Required.
+ "postalCodeRanges": [ # A range of postal codes. Required.
+ {
+ "postalCodeRangeEnd": "A String", # 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`.
+ "postalCodeRangeBegin": "A String", # 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.
+ },
+ ],
},
- "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`"
- "rateGroups": [ # 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.
- {
- "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
- "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
- "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
+ ],
+ "services": [ # The target account's list of services. Optional.
+ {
+ "name": "A String", # Free-form name of the service. Must be unique within target account. Required.
+ "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
+ "storeCodeSetWithMovs": [
+ { # A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
+ "storeCodes": [ # A list of unique store codes or empty for the catch all.
+ "A String",
+ ],
+ "value": { # The minimum order value for the given stores.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ ],
+ },
+ "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`"
+ "pickupService": { # The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved via the `getSupportedPickupServices` method. Required if and only if the service delivery type is `pickup`.
+ "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required.
+ "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required.
+ },
+ "active": True or False, # A boolean exposing the active status of the shipping service. Required.
+ "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`"
+ "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required.
+ "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. Cannot be set together with minimum_order_value_table.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ "rateGroups": [ # 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.
+ {
+ "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
{
- "cells": [ # 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.
- { # 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.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
+ "percentageAdjustment": "A String", # 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.
+ "originPostalCode": "A String", # Shipping origin for this carrier rate. Required.
+ "carrierService": "A String", # Carrier service, such as `"ground"` or `"2 days"`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
+ "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
+ "flatAdjustment": { # 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.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required.
+ },
+ ],
+ "singleValue": { # 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. # The value of the rate group (e.g. flat rate $10). Can only be set if `mainTable` and `subtables` are not set.
+ "pricePercentage": "A String", # 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.
+ "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
+ "carrierRateName": "A String", # 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.
+ "subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
+ {
+ "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
"currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
},
- "pricePercentage": "A String", # 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.
- "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
- "carrierRateName": "A String", # 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.
- "subtableName": "A String", # 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.
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
+ },
+ ],
+ },
+ "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
+ {
+ "cells": [ # 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.
+ { # 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.
+ "pricePercentage": "A String", # 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.
+ "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
+ "carrierRateName": "A String", # 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.
+ "subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ ],
+ },
+ ],
+ "columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
+ },
+ ],
+ },
+ "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
+ },
+ ],
+ "applicableShippingLabels": [ # 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.
+ "A String",
+ ],
+ "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
+ "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
},
],
},
- ],
- "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
- "columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
- },
- "singleValue": { # 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. # The value of the rate group (e.g. flat rate $10). Can only be set if `mainTable` and `subtables` are not set.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "pricePercentage": "A String", # 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.
- "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
- "carrierRateName": "A String", # 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.
- "subtableName": "A String", # 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.
- },
- "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
- {
- "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
"rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
{
"cells": [ # 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.
{ # 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.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
"pricePercentage": "A String", # 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.
"noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
"carrierRateName": "A String", # 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.
"subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
},
],
},
],
- "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
"columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
{
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
},
],
"postalCodeGroupNames": [ # 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.
"A String",
],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
{
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
},
],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
"locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
{
"locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
@@ -587,117 +638,66 @@
],
},
],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
},
+ "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
},
- ],
- "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service.
- "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
- {
- "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required.
- "originPostalCode": "A String", # Shipping origin for this carrier rate. Required.
- "flatAdjustment": { # 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.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
- "percentageAdjustment": "A String", # 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.
- "carrierService": "A String", # Carrier service, such as `"ground"` or `"2 days"`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
- },
- ],
- "applicableShippingLabels": [ # 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.
- "A String",
- ],
- },
- ],
- "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
- "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. Cannot be set together with minimum_order_value_table.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`"
- "name": "A String", # Free-form name of the service. Must be unique within target account. Required.
- "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required.
- "maxHandlingTimeInDays": 42, # Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `minHandlingTimeInDays`.
- "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
- "businessDays": [ # Regular business days. May not be empty.
- "A String",
- ],
- },
- "maxTransitTimeInDays": 42, # 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`.
- "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
- "timezone": "A String", # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
- "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
- "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
- },
- "minTransitTimeInDays": 42, # Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `{min,max}TransitTimeInDays` or `transitTimeTable` must be set, but not both.
- "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
- {
- "deadlineHour": 42, # Hour of the day on the deadline date until which the order has to be placed to qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.
- "visibleFromDate": "A String", # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October 2016. Required.
- "holidayId": "A String", # Unique identifier for the holiday. Required.
- "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required.
- "deadlineTimezone": "A String", # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service.
},
],
- "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
- "businessDays": [ # Regular business days. May not be empty.
- "A String",
- ],
- },
- "transitTimeTable": { # Transit time table, number of business days spent in transit based on row and column dimensions. Either `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but not both.
- "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`.
- "A String",
- ],
- "rows": [
- {
- "values": [
- {
- "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
- "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`.
- },
- ],
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- },
- "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
- },
- "active": True or False, # A boolean exposing the active status of the shipping service. Required.
- "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
- "storeCodeSetWithMovs": [
- { # A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
- "value": { # The minimum order value for the given stores.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "storeCodes": [ # A list of unique store codes or empty for the catch all.
+ "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
+ "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required.
+ "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
+ "maxHandlingTimeInDays": 42, # Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `minHandlingTimeInDays`.
+ "transitTimeTable": { # Transit time table, number of business days spent in transit based on row and column dimensions. Either `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but not both.
+ "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`.
+ "A String",
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "rows": [
+ {
+ "values": [
+ {
+ "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`.
+ "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
+ },
+ ],
+ },
+ ],
+ },
+ "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
+ "businessDays": [ # Regular business days. May not be empty.
"A String",
],
},
- ],
- },
- "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required.
- },
- ],
- "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional.
- {
- "postalCodeRanges": [ # A range of postal codes. Required.
- {
- "postalCodeRangeBegin": "A String", # 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.
- "postalCodeRangeEnd": "A String", # 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`.
+ "maxTransitTimeInDays": 42, # 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`.
+ "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
+ {
+ "deadlineHour": 42, # Hour of the day on the deadline date until which the order has to be placed to qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.
+ "visibleFromDate": "A String", # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October 2016. Required.
+ "holidayId": "A String", # Unique identifier for the holiday. Required.
+ "deadlineTimezone": "A String", # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required.
+ },
+ ],
+ "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
+ "timezone": "A String", # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
+ "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
+ },
+ "minTransitTimeInDays": 42, # Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `{min,max}TransitTimeInDays` or `transitTimeTable` must be set, but not both.
+ "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
+ "businessDays": [ # Regular business days. May not be empty.
+ "A String",
+ ],
+ },
},
- ],
- "name": "A String", # The name of the postal code group, referred to in headers. Required.
- "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required.
- },
- ],
- "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
- },
+ },
+ ],
+ "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
+ },
+ "batchId": 42, # The ID of the request entry to which this entry responds.
},
],
}</pre>
@@ -719,160 +719,212 @@
An object of the form:
{ # The merchant account's shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
- "services": [ # The target account's list of services. Optional.
- {
- "pickupService": { # The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved via the `getSupportedPickupServices` method. Required if and only if the service delivery type is `pickup`.
- "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required.
- "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required.
+ "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional.
+ {
+ "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required.
+ "name": "A String", # The name of the postal code group, referred to in headers. Required.
+ "postalCodeRanges": [ # A range of postal codes. Required.
+ {
+ "postalCodeRangeEnd": "A String", # 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`.
+ "postalCodeRangeBegin": "A String", # 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.
+ },
+ ],
},
- "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`"
- "rateGroups": [ # 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.
- {
- "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
- "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
- "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
+ ],
+ "services": [ # The target account's list of services. Optional.
+ {
+ "name": "A String", # Free-form name of the service. Must be unique within target account. Required.
+ "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
+ "storeCodeSetWithMovs": [
+ { # A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
+ "storeCodes": [ # A list of unique store codes or empty for the catch all.
+ "A String",
+ ],
+ "value": { # The minimum order value for the given stores.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ ],
+ },
+ "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`"
+ "pickupService": { # The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved via the `getSupportedPickupServices` method. Required if and only if the service delivery type is `pickup`.
+ "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required.
+ "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required.
+ },
+ "active": True or False, # A boolean exposing the active status of the shipping service. Required.
+ "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`"
+ "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required.
+ "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. Cannot be set together with minimum_order_value_table.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ "rateGroups": [ # 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.
+ {
+ "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
{
- "cells": [ # 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.
- { # 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.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
+ "percentageAdjustment": "A String", # 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.
+ "originPostalCode": "A String", # Shipping origin for this carrier rate. Required.
+ "carrierService": "A String", # Carrier service, such as `"ground"` or `"2 days"`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
+ "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
+ "flatAdjustment": { # 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.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required.
+ },
+ ],
+ "singleValue": { # 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. # The value of the rate group (e.g. flat rate $10). Can only be set if `mainTable` and `subtables` are not set.
+ "pricePercentage": "A String", # 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.
+ "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
+ "carrierRateName": "A String", # 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.
+ "subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
+ {
+ "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
"currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
},
- "pricePercentage": "A String", # 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.
- "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
- "carrierRateName": "A String", # 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.
- "subtableName": "A String", # 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.
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
+ },
+ ],
+ },
+ "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
+ {
+ "cells": [ # 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.
+ { # 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.
+ "pricePercentage": "A String", # 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.
+ "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
+ "carrierRateName": "A String", # 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.
+ "subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ ],
+ },
+ ],
+ "columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
+ },
+ ],
+ },
+ "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
+ },
+ ],
+ "applicableShippingLabels": [ # 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.
+ "A String",
+ ],
+ "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
+ "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
},
],
},
- ],
- "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
- "columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
- },
- "singleValue": { # 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. # The value of the rate group (e.g. flat rate $10). Can only be set if `mainTable` and `subtables` are not set.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "pricePercentage": "A String", # 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.
- "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
- "carrierRateName": "A String", # 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.
- "subtableName": "A String", # 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.
- },
- "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
- {
- "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
"rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
{
"cells": [ # 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.
{ # 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.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
"pricePercentage": "A String", # 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.
"noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
"carrierRateName": "A String", # 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.
"subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
},
],
},
],
- "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
"columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
{
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
},
],
"postalCodeGroupNames": [ # 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.
"A String",
],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
{
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
},
],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
"locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
{
"locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
@@ -880,117 +932,65 @@
],
},
],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
},
+ "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
},
- ],
- "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service.
- "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
- {
- "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required.
- "originPostalCode": "A String", # Shipping origin for this carrier rate. Required.
- "flatAdjustment": { # 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.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
- "percentageAdjustment": "A String", # 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.
- "carrierService": "A String", # Carrier service, such as `"ground"` or `"2 days"`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
- },
- ],
- "applicableShippingLabels": [ # 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.
- "A String",
- ],
- },
- ],
- "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
- "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. Cannot be set together with minimum_order_value_table.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`"
- "name": "A String", # Free-form name of the service. Must be unique within target account. Required.
- "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required.
- "maxHandlingTimeInDays": 42, # Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `minHandlingTimeInDays`.
- "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
- "businessDays": [ # Regular business days. May not be empty.
- "A String",
- ],
- },
- "maxTransitTimeInDays": 42, # 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`.
- "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
- "timezone": "A String", # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
- "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
- "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
- },
- "minTransitTimeInDays": 42, # Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `{min,max}TransitTimeInDays` or `transitTimeTable` must be set, but not both.
- "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
- {
- "deadlineHour": 42, # Hour of the day on the deadline date until which the order has to be placed to qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.
- "visibleFromDate": "A String", # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October 2016. Required.
- "holidayId": "A String", # Unique identifier for the holiday. Required.
- "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required.
- "deadlineTimezone": "A String", # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service.
},
],
- "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
- "businessDays": [ # Regular business days. May not be empty.
- "A String",
- ],
- },
- "transitTimeTable": { # Transit time table, number of business days spent in transit based on row and column dimensions. Either `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but not both.
- "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`.
- "A String",
- ],
- "rows": [
- {
- "values": [
- {
- "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
- "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`.
- },
- ],
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- },
- "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
- },
- "active": True or False, # A boolean exposing the active status of the shipping service. Required.
- "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
- "storeCodeSetWithMovs": [
- { # A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
- "value": { # The minimum order value for the given stores.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "storeCodes": [ # A list of unique store codes or empty for the catch all.
+ "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
+ "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required.
+ "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
+ "maxHandlingTimeInDays": 42, # Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `minHandlingTimeInDays`.
+ "transitTimeTable": { # Transit time table, number of business days spent in transit based on row and column dimensions. Either `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but not both.
+ "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`.
+ "A String",
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "rows": [
+ {
+ "values": [
+ {
+ "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`.
+ "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
+ },
+ ],
+ },
+ ],
+ },
+ "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
+ "businessDays": [ # Regular business days. May not be empty.
"A String",
],
},
- ],
- },
- "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required.
- },
- ],
- "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional.
- {
- "postalCodeRanges": [ # A range of postal codes. Required.
- {
- "postalCodeRangeBegin": "A String", # 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.
- "postalCodeRangeEnd": "A String", # 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`.
+ "maxTransitTimeInDays": 42, # 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`.
+ "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
+ {
+ "deadlineHour": 42, # Hour of the day on the deadline date until which the order has to be placed to qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.
+ "visibleFromDate": "A String", # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October 2016. Required.
+ "holidayId": "A String", # Unique identifier for the holiday. Required.
+ "deadlineTimezone": "A String", # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required.
+ },
+ ],
+ "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
+ "timezone": "A String", # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
+ "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
+ },
+ "minTransitTimeInDays": 42, # Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `{min,max}TransitTimeInDays` or `transitTimeTable` must be set, but not both.
+ "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
+ "businessDays": [ # Regular business days. May not be empty.
+ "A String",
+ ],
+ },
},
- ],
- "name": "A String", # The name of the postal code group, referred to in headers. Required.
- "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required.
- },
- ],
- "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
- }</pre>
+ },
+ ],
+ "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
+ }</pre>
</div>
<div class="method">
@@ -1008,16 +1008,16 @@
An object of the form:
{
+ "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#shippingsettingsGetSupportedCarriersResponse".
"carriers": [ # A list of supported carriers. May be empty.
{
"services": [ # A list of supported services (e.g., `"ground"`) for that carrier. Contains at least one service.
"A String",
],
- "country": "A String", # The CLDR country code of the carrier (e.g., "US"). Always present.
"name": "A String", # The name of the carrier (e.g., `"UPS"`). Always present.
+ "country": "A String", # The CLDR country code of the carrier (e.g., "US"). Always present.
},
],
- "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#shippingsettingsGetSupportedCarriersResponse".
}</pre>
</div>
@@ -1040,10 +1040,10 @@
{
"type": "A String", # The holiday type. Always present. Acceptable values are: - "`Christmas`" - "`Easter`" - "`Father's Day`" - "`Halloween`" - "`Independence Day (USA)`" - "`Mother's Day`" - "`Thanksgiving`" - "`Valentine's Day`"
"date": "A String", # Date of the holiday, in ISO 8601 format. E.g. "2016-12-25" for Christmas 2016. Always present.
- "countryCode": "A String", # The CLDR territory code of the country in which the holiday is available. E.g. "US", "DE", "GB". A holiday cutoff can only be configured in a shipping settings service with matching delivery country. Always present.
- "deliveryGuaranteeDate": "A String", # Date on which the order has to arrive at the customer's, in ISO 8601 format. E.g. "2016-12-24" for 24th December 2016. Always present.
"id": "A String", # Unique identifier for the holiday to be used when configuring holiday cutoffs. Always present.
+ "countryCode": "A String", # The CLDR territory code of the country in which the holiday is available. E.g. "US", "DE", "GB". A holiday cutoff can only be configured in a shipping settings service with matching delivery country. Always present.
"deliveryGuaranteeHour": "A String", # Hour of the day in the delivery location's timezone on the guaranteed delivery date by which the order has to arrive at the customer's. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Always present.
+ "deliveryGuaranteeDate": "A String", # Date on which the order has to arrive at the customer's, in ISO 8601 format. E.g. "2016-12-24" for 24th December 2016. Always present.
},
],
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#shippingsettingsGetSupportedHolidaysResponse".
@@ -1065,25 +1065,25 @@
An object of the form:
{
+ "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#shippingsettingsGetSupportedPickupServicesResponse".
"pickupServices": [ # A list of supported pickup services. May be empty.
{
+ "carrierName": "A String", # The name of the carrier (e.g., `"UPS"`). Always present.
"serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Always present.
"country": "A String", # The CLDR country code of the carrier (e.g., "US"). Always present.
- "carrierName": "A String", # The name of the carrier (e.g., `"UPS"`). Always present.
},
],
- "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#shippingsettingsGetSupportedPickupServicesResponse".
}</pre>
</div>
<div class="method">
- <code class="details" id="list">list(merchantId, maxResults=None, pageToken=None, x__xgafv=None)</code>
+ <code class="details" id="list">list(merchantId, pageToken=None, maxResults=None, x__xgafv=None)</code>
<pre>Lists the shipping settings of the sub-accounts in your Merchant Center account.
Args:
merchantId: string, The ID of the managing account. This must be a multi-client account. (required)
- maxResults: integer, The maximum number of shipping settings to return in the response, used for paging.
pageToken: string, The token returned by the previous request.
+ maxResults: integer, The maximum number of shipping settings to return in the response, used for paging.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
@@ -1093,163 +1093,214 @@
An object of the form:
{
- "nextPageToken": "A String", # The token for the retrieval of the next page of shipping settings.
"resources": [
{ # The merchant account's shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
- "services": [ # The target account's list of services. Optional.
- {
- "pickupService": { # The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved via the `getSupportedPickupServices` method. Required if and only if the service delivery type is `pickup`.
- "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required.
- "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required.
+ "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional.
+ {
+ "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required.
+ "name": "A String", # The name of the postal code group, referred to in headers. Required.
+ "postalCodeRanges": [ # A range of postal codes. Required.
+ {
+ "postalCodeRangeEnd": "A String", # 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`.
+ "postalCodeRangeBegin": "A String", # 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.
+ },
+ ],
},
- "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`"
- "rateGroups": [ # 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.
- {
- "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
- "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
- "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
+ ],
+ "services": [ # The target account's list of services. Optional.
+ {
+ "name": "A String", # Free-form name of the service. Must be unique within target account. Required.
+ "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
+ "storeCodeSetWithMovs": [
+ { # A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
+ "storeCodes": [ # A list of unique store codes or empty for the catch all.
+ "A String",
+ ],
+ "value": { # The minimum order value for the given stores.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ ],
+ },
+ "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`"
+ "pickupService": { # The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved via the `getSupportedPickupServices` method. Required if and only if the service delivery type is `pickup`.
+ "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required.
+ "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required.
+ },
+ "active": True or False, # A boolean exposing the active status of the shipping service. Required.
+ "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`"
+ "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required.
+ "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. Cannot be set together with minimum_order_value_table.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ "rateGroups": [ # 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.
+ {
+ "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
{
- "cells": [ # 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.
- { # 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.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
+ "percentageAdjustment": "A String", # 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.
+ "originPostalCode": "A String", # Shipping origin for this carrier rate. Required.
+ "carrierService": "A String", # Carrier service, such as `"ground"` or `"2 days"`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
+ "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
+ "flatAdjustment": { # 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.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required.
+ },
+ ],
+ "singleValue": { # 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. # The value of the rate group (e.g. flat rate $10). Can only be set if `mainTable` and `subtables` are not set.
+ "pricePercentage": "A String", # 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.
+ "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
+ "carrierRateName": "A String", # 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.
+ "subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
+ {
+ "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
"currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
},
- "pricePercentage": "A String", # 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.
- "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
- "carrierRateName": "A String", # 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.
- "subtableName": "A String", # 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.
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
+ },
+ ],
+ },
+ "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
+ {
+ "cells": [ # 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.
+ { # 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.
+ "pricePercentage": "A String", # 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.
+ "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
+ "carrierRateName": "A String", # 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.
+ "subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ ],
+ },
+ ],
+ "columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
+ },
+ ],
+ },
+ "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
+ },
+ ],
+ "applicableShippingLabels": [ # 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.
+ "A String",
+ ],
+ "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
+ "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
},
],
},
- ],
- "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
- "columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
- },
- "singleValue": { # 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. # The value of the rate group (e.g. flat rate $10). Can only be set if `mainTable` and `subtables` are not set.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "pricePercentage": "A String", # 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.
- "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
- "carrierRateName": "A String", # 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.
- "subtableName": "A String", # 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.
- },
- "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
- {
- "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
"rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
{
"cells": [ # 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.
{ # 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.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
"pricePercentage": "A String", # 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.
"noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
"carrierRateName": "A String", # 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.
"subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
},
],
},
],
- "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
"columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
{
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
},
],
"postalCodeGroupNames": [ # 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.
"A String",
],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
{
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
},
],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
"locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
{
"locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
@@ -1257,119 +1308,68 @@
],
},
],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
},
+ "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
},
- ],
- "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service.
- "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
- {
- "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required.
- "originPostalCode": "A String", # Shipping origin for this carrier rate. Required.
- "flatAdjustment": { # 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.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
- "percentageAdjustment": "A String", # 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.
- "carrierService": "A String", # Carrier service, such as `"ground"` or `"2 days"`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
- },
- ],
- "applicableShippingLabels": [ # 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.
- "A String",
- ],
- },
- ],
- "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
- "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. Cannot be set together with minimum_order_value_table.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`"
- "name": "A String", # Free-form name of the service. Must be unique within target account. Required.
- "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required.
- "maxHandlingTimeInDays": 42, # Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `minHandlingTimeInDays`.
- "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
- "businessDays": [ # Regular business days. May not be empty.
- "A String",
- ],
- },
- "maxTransitTimeInDays": 42, # 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`.
- "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
- "timezone": "A String", # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
- "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
- "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
- },
- "minTransitTimeInDays": 42, # Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `{min,max}TransitTimeInDays` or `transitTimeTable` must be set, but not both.
- "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
- {
- "deadlineHour": 42, # Hour of the day on the deadline date until which the order has to be placed to qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.
- "visibleFromDate": "A String", # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October 2016. Required.
- "holidayId": "A String", # Unique identifier for the holiday. Required.
- "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required.
- "deadlineTimezone": "A String", # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service.
},
],
- "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
- "businessDays": [ # Regular business days. May not be empty.
- "A String",
- ],
- },
- "transitTimeTable": { # Transit time table, number of business days spent in transit based on row and column dimensions. Either `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but not both.
- "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`.
- "A String",
- ],
- "rows": [
- {
- "values": [
- {
- "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
- "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`.
- },
- ],
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- },
- "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
- },
- "active": True or False, # A boolean exposing the active status of the shipping service. Required.
- "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
- "storeCodeSetWithMovs": [
- { # A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
- "value": { # The minimum order value for the given stores.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "storeCodes": [ # A list of unique store codes or empty for the catch all.
+ "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
+ "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required.
+ "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
+ "maxHandlingTimeInDays": 42, # Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `minHandlingTimeInDays`.
+ "transitTimeTable": { # Transit time table, number of business days spent in transit based on row and column dimensions. Either `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but not both.
+ "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`.
+ "A String",
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "rows": [
+ {
+ "values": [
+ {
+ "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`.
+ "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
+ },
+ ],
+ },
+ ],
+ },
+ "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
+ "businessDays": [ # Regular business days. May not be empty.
"A String",
],
},
- ],
- },
- "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required.
- },
- ],
- "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional.
- {
- "postalCodeRanges": [ # A range of postal codes. Required.
- {
- "postalCodeRangeBegin": "A String", # 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.
- "postalCodeRangeEnd": "A String", # 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`.
+ "maxTransitTimeInDays": 42, # 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`.
+ "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
+ {
+ "deadlineHour": 42, # Hour of the day on the deadline date until which the order has to be placed to qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.
+ "visibleFromDate": "A String", # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October 2016. Required.
+ "holidayId": "A String", # Unique identifier for the holiday. Required.
+ "deadlineTimezone": "A String", # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required.
+ },
+ ],
+ "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
+ "timezone": "A String", # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
+ "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
+ },
+ "minTransitTimeInDays": 42, # Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `{min,max}TransitTimeInDays` or `transitTimeTable` must be set, but not both.
+ "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
+ "businessDays": [ # Regular business days. May not be empty.
+ "A String",
+ ],
+ },
},
- ],
- "name": "A String", # The name of the postal code group, referred to in headers. Required.
- "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required.
- },
- ],
- "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
- },
+ },
+ ],
+ "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
+ },
],
"kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#shippingsettingsListResponse".
+ "nextPageToken": "A String", # The token for the retrieval of the next page of shipping settings.
}</pre>
</div>
@@ -1398,160 +1398,212 @@
The object takes the form of:
{ # The merchant account's shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
- "services": [ # The target account's list of services. Optional.
- {
- "pickupService": { # The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved via the `getSupportedPickupServices` method. Required if and only if the service delivery type is `pickup`.
- "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required.
- "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required.
+ "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional.
+ {
+ "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required.
+ "name": "A String", # The name of the postal code group, referred to in headers. Required.
+ "postalCodeRanges": [ # A range of postal codes. Required.
+ {
+ "postalCodeRangeEnd": "A String", # 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`.
+ "postalCodeRangeBegin": "A String", # 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.
+ },
+ ],
},
- "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`"
- "rateGroups": [ # 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.
- {
- "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
- "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
- "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
+ ],
+ "services": [ # The target account's list of services. Optional.
+ {
+ "name": "A String", # Free-form name of the service. Must be unique within target account. Required.
+ "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
+ "storeCodeSetWithMovs": [
+ { # A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
+ "storeCodes": [ # A list of unique store codes or empty for the catch all.
+ "A String",
+ ],
+ "value": { # The minimum order value for the given stores.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ ],
+ },
+ "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`"
+ "pickupService": { # The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved via the `getSupportedPickupServices` method. Required if and only if the service delivery type is `pickup`.
+ "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required.
+ "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required.
+ },
+ "active": True or False, # A boolean exposing the active status of the shipping service. Required.
+ "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`"
+ "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required.
+ "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. Cannot be set together with minimum_order_value_table.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ "rateGroups": [ # 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.
+ {
+ "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
{
- "cells": [ # 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.
- { # 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.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
+ "percentageAdjustment": "A String", # 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.
+ "originPostalCode": "A String", # Shipping origin for this carrier rate. Required.
+ "carrierService": "A String", # Carrier service, such as `"ground"` or `"2 days"`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
+ "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
+ "flatAdjustment": { # 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.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required.
+ },
+ ],
+ "singleValue": { # 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. # The value of the rate group (e.g. flat rate $10). Can only be set if `mainTable` and `subtables` are not set.
+ "pricePercentage": "A String", # 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.
+ "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
+ "carrierRateName": "A String", # 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.
+ "subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
+ {
+ "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
"currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
},
- "pricePercentage": "A String", # 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.
- "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
- "carrierRateName": "A String", # 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.
- "subtableName": "A String", # 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.
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
+ },
+ ],
+ },
+ "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
+ {
+ "cells": [ # 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.
+ { # 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.
+ "pricePercentage": "A String", # 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.
+ "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
+ "carrierRateName": "A String", # 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.
+ "subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ ],
+ },
+ ],
+ "columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
+ },
+ ],
+ },
+ "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
+ },
+ ],
+ "applicableShippingLabels": [ # 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.
+ "A String",
+ ],
+ "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
+ "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
},
],
},
- ],
- "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
- "columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
- },
- "singleValue": { # 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. # The value of the rate group (e.g. flat rate $10). Can only be set if `mainTable` and `subtables` are not set.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "pricePercentage": "A String", # 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.
- "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
- "carrierRateName": "A String", # 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.
- "subtableName": "A String", # 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.
- },
- "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
- {
- "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
"rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
{
"cells": [ # 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.
{ # 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.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
"pricePercentage": "A String", # 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.
"noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
"carrierRateName": "A String", # 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.
"subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
},
],
},
],
- "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
"columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
{
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
},
],
"postalCodeGroupNames": [ # 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.
"A String",
],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
{
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
},
],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
"locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
{
"locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
@@ -1559,117 +1611,65 @@
],
},
],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
},
+ "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
},
- ],
- "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service.
- "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
- {
- "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required.
- "originPostalCode": "A String", # Shipping origin for this carrier rate. Required.
- "flatAdjustment": { # 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.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
- "percentageAdjustment": "A String", # 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.
- "carrierService": "A String", # Carrier service, such as `"ground"` or `"2 days"`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
- },
- ],
- "applicableShippingLabels": [ # 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.
- "A String",
- ],
- },
- ],
- "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
- "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. Cannot be set together with minimum_order_value_table.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`"
- "name": "A String", # Free-form name of the service. Must be unique within target account. Required.
- "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required.
- "maxHandlingTimeInDays": 42, # Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `minHandlingTimeInDays`.
- "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
- "businessDays": [ # Regular business days. May not be empty.
- "A String",
- ],
- },
- "maxTransitTimeInDays": 42, # 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`.
- "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
- "timezone": "A String", # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
- "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
- "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
- },
- "minTransitTimeInDays": 42, # Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `{min,max}TransitTimeInDays` or `transitTimeTable` must be set, but not both.
- "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
- {
- "deadlineHour": 42, # Hour of the day on the deadline date until which the order has to be placed to qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.
- "visibleFromDate": "A String", # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October 2016. Required.
- "holidayId": "A String", # Unique identifier for the holiday. Required.
- "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required.
- "deadlineTimezone": "A String", # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service.
},
],
- "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
- "businessDays": [ # Regular business days. May not be empty.
- "A String",
- ],
- },
- "transitTimeTable": { # Transit time table, number of business days spent in transit based on row and column dimensions. Either `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but not both.
- "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`.
- "A String",
- ],
- "rows": [
- {
- "values": [
- {
- "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
- "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`.
- },
- ],
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- },
- "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
- },
- "active": True or False, # A boolean exposing the active status of the shipping service. Required.
- "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
- "storeCodeSetWithMovs": [
- { # A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
- "value": { # The minimum order value for the given stores.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "storeCodes": [ # A list of unique store codes or empty for the catch all.
+ "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
+ "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required.
+ "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
+ "maxHandlingTimeInDays": 42, # Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `minHandlingTimeInDays`.
+ "transitTimeTable": { # Transit time table, number of business days spent in transit based on row and column dimensions. Either `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but not both.
+ "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`.
+ "A String",
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "rows": [
+ {
+ "values": [
+ {
+ "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`.
+ "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
+ },
+ ],
+ },
+ ],
+ },
+ "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
+ "businessDays": [ # Regular business days. May not be empty.
"A String",
],
},
- ],
- },
- "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required.
- },
- ],
- "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional.
- {
- "postalCodeRanges": [ # A range of postal codes. Required.
- {
- "postalCodeRangeBegin": "A String", # 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.
- "postalCodeRangeEnd": "A String", # 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`.
+ "maxTransitTimeInDays": 42, # 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`.
+ "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
+ {
+ "deadlineHour": 42, # Hour of the day on the deadline date until which the order has to be placed to qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.
+ "visibleFromDate": "A String", # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October 2016. Required.
+ "holidayId": "A String", # Unique identifier for the holiday. Required.
+ "deadlineTimezone": "A String", # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required.
+ },
+ ],
+ "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
+ "timezone": "A String", # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
+ "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
+ },
+ "minTransitTimeInDays": 42, # Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `{min,max}TransitTimeInDays` or `transitTimeTable` must be set, but not both.
+ "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
+ "businessDays": [ # Regular business days. May not be empty.
+ "A String",
+ ],
+ },
},
- ],
- "name": "A String", # The name of the postal code group, referred to in headers. Required.
- "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required.
- },
- ],
- "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
-}
+ },
+ ],
+ "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
+ }
dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).
x__xgafv: string, V1 error format.
@@ -1681,160 +1681,212 @@
An object of the form:
{ # The merchant account's shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
- "services": [ # The target account's list of services. Optional.
- {
- "pickupService": { # The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved via the `getSupportedPickupServices` method. Required if and only if the service delivery type is `pickup`.
- "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required.
- "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required.
+ "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional.
+ {
+ "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required.
+ "name": "A String", # The name of the postal code group, referred to in headers. Required.
+ "postalCodeRanges": [ # A range of postal codes. Required.
+ {
+ "postalCodeRangeEnd": "A String", # 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`.
+ "postalCodeRangeBegin": "A String", # 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.
+ },
+ ],
},
- "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`"
- "rateGroups": [ # 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.
- {
- "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
- "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
- "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
+ ],
+ "services": [ # The target account's list of services. Optional.
+ {
+ "name": "A String", # Free-form name of the service. Must be unique within target account. Required.
+ "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
+ "storeCodeSetWithMovs": [
+ { # A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
+ "storeCodes": [ # A list of unique store codes or empty for the catch all.
+ "A String",
+ ],
+ "value": { # The minimum order value for the given stores.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ ],
+ },
+ "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`"
+ "pickupService": { # The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved via the `getSupportedPickupServices` method. Required if and only if the service delivery type is `pickup`.
+ "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required.
+ "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required.
+ },
+ "active": True or False, # A boolean exposing the active status of the shipping service. Required.
+ "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`"
+ "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required.
+ "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. Cannot be set together with minimum_order_value_table.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ "rateGroups": [ # 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.
+ {
+ "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
{
- "cells": [ # 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.
- { # 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.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
+ "percentageAdjustment": "A String", # 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.
+ "originPostalCode": "A String", # Shipping origin for this carrier rate. Required.
+ "carrierService": "A String", # Carrier service, such as `"ground"` or `"2 days"`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
+ "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
+ "flatAdjustment": { # 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.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required.
+ },
+ ],
+ "singleValue": { # 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. # The value of the rate group (e.g. flat rate $10). Can only be set if `mainTable` and `subtables` are not set.
+ "pricePercentage": "A String", # 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.
+ "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
+ "carrierRateName": "A String", # 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.
+ "subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
+ {
+ "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
"currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
},
- "pricePercentage": "A String", # 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.
- "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
- "carrierRateName": "A String", # 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.
- "subtableName": "A String", # 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.
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
+ },
+ ],
+ },
+ "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
+ {
+ "cells": [ # 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.
+ { # 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.
+ "pricePercentage": "A String", # 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.
+ "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
+ "carrierRateName": "A String", # 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.
+ "subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ },
+ ],
+ },
+ ],
+ "columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
+ },
+ ],
+ },
+ "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
+ },
+ ],
+ "applicableShippingLabels": [ # 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.
+ "A String",
+ ],
+ "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
+ "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ {
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ {
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
+ },
+ ],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
+ "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
+ {
+ "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
+ "A String",
+ ],
},
],
},
- ],
- "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
- "columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
- },
- "singleValue": { # 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. # The value of the rate group (e.g. flat rate $10). Can only be set if `mainTable` and `subtables` are not set.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "pricePercentage": "A String", # 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.
- "noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
- "carrierRateName": "A String", # 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.
- "subtableName": "A String", # 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.
- },
- "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
- {
- "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
"rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
{
"cells": [ # 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.
{ # 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.
- "flatRate": { # A flat rate. Can only be set if all other fields are not set.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
"pricePercentage": "A String", # 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.
"noShipping": True or False, # If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
"carrierRateName": "A String", # 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.
"subtableName": "A String", # 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.
+ "flatRate": { # A flat rate. Can only be set if all other fields are not set.
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
+ },
},
],
},
],
- "rowHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's rows. Required.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
- {
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
- {
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- ],
- "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
- {
- "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
- "A String",
- ],
- },
- ],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
- },
"columnHeaders": { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table's columns. Optional: if not set then the table has only one dimension.
- "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
+ "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
{
- "value": "A String", # Required. The weight represented as a number.
- "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "currency": "A String", # The currency of the price.
+ "value": "A String", # The price represented as a number.
},
],
"postalCodeGroupNames": [ # 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.
"A String",
],
- "prices": [ # A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $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.
+ "weights": [ # A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 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.
{
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
+ "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`"
+ "value": "A String", # Required. The weight represented as a number.
},
],
+ "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
+ "A String",
+ ],
"locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
{
"locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
@@ -1842,117 +1894,65 @@
],
},
],
- "numberOfItems": [ # A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set.
- "A String",
- ],
},
+ "name": "A String", # Name of the table. Required for subtables, ignored for the main table.
},
- ],
- "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service.
- "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
- {
- "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required.
- "originPostalCode": "A String", # Shipping origin for this carrier rate. Required.
- "flatAdjustment": { # 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.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
- "percentageAdjustment": "A String", # 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.
- "carrierService": "A String", # Carrier service, such as `"ground"` or `"2 days"`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
- },
- ],
- "applicableShippingLabels": [ # 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.
- "A String",
- ],
- },
- ],
- "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
- "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. Cannot be set together with minimum_order_value_table.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`"
- "name": "A String", # Free-form name of the service. Must be unique within target account. Required.
- "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required.
- "maxHandlingTimeInDays": 42, # Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `minHandlingTimeInDays`.
- "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
- "businessDays": [ # Regular business days. May not be empty.
- "A String",
- ],
- },
- "maxTransitTimeInDays": 42, # 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`.
- "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
- "timezone": "A String", # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
- "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
- "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
- },
- "minTransitTimeInDays": 42, # Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `{min,max}TransitTimeInDays` or `transitTimeTable` must be set, but not both.
- "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
- {
- "deadlineHour": 42, # Hour of the day on the deadline date until which the order has to be placed to qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.
- "visibleFromDate": "A String", # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October 2016. Required.
- "holidayId": "A String", # Unique identifier for the holiday. Required.
- "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required.
- "deadlineTimezone": "A String", # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service.
},
],
- "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
- "businessDays": [ # Regular business days. May not be empty.
- "A String",
- ],
- },
- "transitTimeTable": { # Transit time table, number of business days spent in transit based on row and column dimensions. Either `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but not both.
- "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`.
- "A String",
- ],
- "rows": [
- {
- "values": [
- {
- "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
- "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`.
- },
- ],
- },
- ],
- "postalCodeGroupNames": [ # 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.
- "A String",
- ],
- },
- "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
- },
- "active": True or False, # A boolean exposing the active status of the shipping service. Required.
- "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
- "storeCodeSetWithMovs": [
- { # A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
- "value": { # The minimum order value for the given stores.
- "value": "A String", # The price represented as a number.
- "currency": "A String", # The currency of the price.
- },
- "storeCodes": [ # A list of unique store codes or empty for the catch all.
+ "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
+ "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required.
+ "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
+ "maxHandlingTimeInDays": 42, # Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `minHandlingTimeInDays`.
+ "transitTimeTable": { # Transit time table, number of business days spent in transit based on row and column dimensions. Either `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but not both.
+ "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`.
+ "A String",
+ ],
+ "postalCodeGroupNames": [ # 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.
+ "A String",
+ ],
+ "rows": [
+ {
+ "values": [
+ {
+ "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`.
+ "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
+ },
+ ],
+ },
+ ],
+ },
+ "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
+ "businessDays": [ # Regular business days. May not be empty.
"A String",
],
},
- ],
- },
- "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required.
- },
- ],
- "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional.
- {
- "postalCodeRanges": [ # A range of postal codes. Required.
- {
- "postalCodeRangeBegin": "A String", # 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.
- "postalCodeRangeEnd": "A String", # 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`.
+ "maxTransitTimeInDays": 42, # 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`.
+ "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
+ {
+ "deadlineHour": 42, # Hour of the day on the deadline date until which the order has to be placed to qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.
+ "visibleFromDate": "A String", # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October 2016. Required.
+ "holidayId": "A String", # Unique identifier for the holiday. Required.
+ "deadlineTimezone": "A String", # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required.
+ },
+ ],
+ "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
+ "timezone": "A String", # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required.
+ "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
+ "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
+ },
+ "minTransitTimeInDays": 42, # Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `{min,max}TransitTimeInDays` or `transitTimeTable` must be set, but not both.
+ "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
+ "businessDays": [ # Regular business days. May not be empty.
+ "A String",
+ ],
+ },
},
- ],
- "name": "A String", # The name of the postal code group, referred to in headers. Required.
- "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required.
- },
- ],
- "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
- }</pre>
+ },
+ ],
+ "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
+ }</pre>
</div>
</body></html>
\ No newline at end of file