Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="content_v2.html">Content API for Shopping</a> . <a href="content_v2.shippingsettings.html">shippingsettings</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 78 | <code><a href="#close">close()</a></code></p> |
| 79 | <p class="firstline">Close httplib2 connections.</p> |
| 80 | <p class="toc_element"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 81 | <code><a href="#custombatch">custombatch(body=None, dryRun=None, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 82 | <p class="firstline">Retrieves and updates the shipping settings of multiple accounts in a single request.</p> |
| 83 | <p class="toc_element"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 84 | <code><a href="#get">get(merchantId, accountId, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 85 | <p class="firstline">Retrieves the shipping settings of the account.</p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 86 | <p class="toc_element"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 87 | <code><a href="#getsupportedcarriers">getsupportedcarriers(merchantId, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 88 | <p class="firstline">Retrieves supported carriers and carrier services for an account.</p> |
| 89 | <p class="toc_element"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 90 | <code><a href="#getsupportedholidays">getsupportedholidays(merchantId, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 91 | <p class="firstline">Retrieves supported holidays for an account.</p> |
| 92 | <p class="toc_element"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 93 | <code><a href="#getsupportedpickupservices">getsupportedpickupservices(merchantId, x__xgafv=None)</a></code></p> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 94 | <p class="firstline">Retrieves supported pickup services for an account.</p> |
| 95 | <p class="toc_element"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 96 | <code><a href="#list">list(merchantId, pageToken=None, maxResults=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 97 | <p class="firstline">Lists the shipping settings of the sub-accounts in your Merchant Center account.</p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 98 | <p class="toc_element"> |
| 99 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 100 | <p class="firstline">Retrieves the next page of results.</p> |
| 101 | <p class="toc_element"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 102 | <code><a href="#update">update(merchantId, accountId, body=None, dryRun=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 103 | <p class="firstline">Updates the shipping settings of the account. Any fields that are not provided are deleted from the resource.</p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 104 | <h3>Method Details</h3> |
| 105 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 106 | <code class="details" id="close">close()</code> |
| 107 | <pre>Close httplib2 connections.</pre> |
| 108 | </div> |
| 109 | |
| 110 | <div class="method"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 111 | <code class="details" id="custombatch">custombatch(body=None, dryRun=None, x__xgafv=None)</code> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 112 | <pre>Retrieves and updates the shipping settings of multiple accounts in a single request. |
| 113 | |
| 114 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 115 | body: object, The request body. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 116 | The object takes the form of: |
| 117 | |
| 118 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 119 | "entries": [ # The request entries to be processed in the batch. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 120 | { # A batch entry encoding a single non-batch shippingsettings request. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 121 | "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`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 122 | "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 123 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 124 | "postalCodeRanges": [ # A range of postal codes. Required. |
| 125 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 126 | "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`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 127 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 128 | }, |
| 129 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 130 | "name": "A String", # The name of the postal code group, referred to in headers. Required. |
| 131 | "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 132 | }, |
| 133 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 134 | "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 135 | "services": [ # The target account's list of services. Optional. |
| 136 | { |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 137 | "name": "A String", # Free-form name of the service. Must be unique within target account. Required. |
| 138 | "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. |
| 139 | "currency": "A String", # The currency of the price. |
| 140 | "value": "A String", # The price represented as a number. |
| 141 | }, |
| 142 | "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`. |
| 143 | "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required. |
| 144 | "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required. |
| 145 | }, |
| 146 | "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 147 | "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 148 | "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. |
| 149 | { |
| 150 | "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. |
| 151 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 152 | "currency": "A String", # The currency of the price. |
| 153 | "value": "A String", # The price represented as a number. |
| 154 | }, |
| 155 | "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. |
| 156 | "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. |
| 157 | "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. |
| 158 | "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. |
| 159 | }, |
| 160 | "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. |
| 161 | "A String", |
| 162 | ], |
| 163 | "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service. |
| 164 | "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set. |
| 165 | { |
| 166 | "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required. |
| 167 | { |
| 168 | "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. |
| 169 | { # 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. |
| 170 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 171 | "currency": "A String", # The currency of the price. |
| 172 | "value": "A String", # The price represented as a number. |
| 173 | }, |
| 174 | "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. |
| 175 | "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. |
| 176 | "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. |
| 177 | "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. |
| 178 | }, |
| 179 | ], |
| 180 | }, |
| 181 | ], |
| 182 | "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. |
| 183 | "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. |
| 184 | { |
| 185 | "currency": "A String", # The currency of the price. |
| 186 | "value": "A String", # The price represented as a number. |
| 187 | }, |
| 188 | ], |
| 189 | "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. |
| 190 | { |
| 191 | "value": "A String", # Required. The weight represented as a number. |
| 192 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 193 | }, |
| 194 | ], |
| 195 | "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. |
| 196 | "A String", |
| 197 | ], |
| 198 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 199 | { |
| 200 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 201 | "A String", |
| 202 | ], |
| 203 | }, |
| 204 | ], |
| 205 | "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. |
| 206 | "A String", |
| 207 | ], |
| 208 | }, |
| 209 | "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. |
| 210 | "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. |
| 211 | { |
| 212 | "currency": "A String", # The currency of the price. |
| 213 | "value": "A String", # The price represented as a number. |
| 214 | }, |
| 215 | ], |
| 216 | "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. |
| 217 | { |
| 218 | "value": "A String", # Required. The weight represented as a number. |
| 219 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 220 | }, |
| 221 | ], |
| 222 | "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. |
| 223 | "A String", |
| 224 | ], |
| 225 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 226 | { |
| 227 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 228 | "A String", |
| 229 | ], |
| 230 | }, |
| 231 | ], |
| 232 | "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. |
| 233 | "A String", |
| 234 | ], |
| 235 | }, |
| 236 | "name": "A String", # Name of the table. Required for subtables, ignored for the main table. |
| 237 | }, |
| 238 | ], |
| 239 | "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`. |
| 240 | { |
| 241 | "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required. |
| 242 | "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required. |
| 243 | "originPostalCode": "A String", # Shipping origin for this carrier rate. Required. |
| 244 | "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. |
| 245 | "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. |
| 246 | "currency": "A String", # The currency of the price. |
| 247 | "value": "A String", # The price represented as a number. |
| 248 | }, |
| 249 | "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. |
| 250 | }, |
| 251 | ], |
| 252 | "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set. |
| 253 | "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required. |
| 254 | { |
| 255 | "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. |
| 256 | { # 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. |
| 257 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 258 | "currency": "A String", # The currency of the price. |
| 259 | "value": "A String", # The price represented as a number. |
| 260 | }, |
| 261 | "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. |
| 262 | "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. |
| 263 | "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. |
| 264 | "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. |
| 265 | }, |
| 266 | ], |
| 267 | }, |
| 268 | ], |
| 269 | "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. |
| 270 | "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. |
| 271 | { |
| 272 | "currency": "A String", # The currency of the price. |
| 273 | "value": "A String", # The price represented as a number. |
| 274 | }, |
| 275 | ], |
| 276 | "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. |
| 277 | { |
| 278 | "value": "A String", # Required. The weight represented as a number. |
| 279 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 280 | }, |
| 281 | ], |
| 282 | "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. |
| 283 | "A String", |
| 284 | ], |
| 285 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 286 | { |
| 287 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 288 | "A String", |
| 289 | ], |
| 290 | }, |
| 291 | ], |
| 292 | "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. |
| 293 | "A String", |
| 294 | ], |
| 295 | }, |
| 296 | "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. |
| 297 | "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. |
| 298 | { |
| 299 | "currency": "A String", # The currency of the price. |
| 300 | "value": "A String", # The price represented as a number. |
| 301 | }, |
| 302 | ], |
| 303 | "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. |
| 304 | { |
| 305 | "value": "A String", # Required. The weight represented as a number. |
| 306 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 307 | }, |
| 308 | ], |
| 309 | "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. |
| 310 | "A String", |
| 311 | ], |
| 312 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 313 | { |
| 314 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 315 | "A String", |
| 316 | ], |
| 317 | }, |
| 318 | ], |
| 319 | "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. |
| 320 | "A String", |
| 321 | ], |
| 322 | }, |
| 323 | "name": "A String", # Name of the table. Required for subtables, ignored for the main table. |
| 324 | }, |
| 325 | }, |
| 326 | ], |
| 327 | "active": True or False, # A boolean exposing the active status of the shipping service. Required. |
| 328 | "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value. |
| 329 | "storeCodeSetWithMovs": [ |
| 330 | { # 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. |
| 331 | "value": { # The minimum order value for the given stores. |
| 332 | "currency": "A String", # The currency of the price. |
| 333 | "value": "A String", # The price represented as a number. |
| 334 | }, |
| 335 | "storeCodes": [ # A list of unique store codes or empty for the catch all. |
| 336 | "A String", |
| 337 | ], |
| 338 | }, |
| 339 | ], |
| 340 | }, |
| 341 | "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 342 | "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required. |
| 343 | "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 344 | "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed. |
| 345 | "businessDays": [ # Regular business days. May not be empty. |
| 346 | "A String", |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 347 | ], |
| 348 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 349 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 350 | "rows": [ |
| 351 | { |
| 352 | "values": [ |
| 353 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 354 | "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 355 | "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 356 | }, |
| 357 | ], |
| 358 | }, |
| 359 | ], |
| 360 | "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`. |
| 361 | "A String", |
| 362 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 363 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 364 | "A String", |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 365 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 366 | }, |
| 367 | "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`. |
| 368 | "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`. |
| 369 | "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. |
| 370 | "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed. |
| 371 | "businessDays": [ # Regular business days. May not be empty. |
| 372 | "A String", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 373 | ], |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 374 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 375 | "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping. |
| 376 | { |
| 377 | "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. |
| 378 | "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. |
| 379 | "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required. |
| 380 | "holidayId": "A String", # Unique identifier for the holiday. Required. |
| 381 | "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. |
| 382 | }, |
| 383 | ], |
| 384 | "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST. |
| 385 | "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required. |
| 386 | "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. |
| 387 | "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required. |
| 388 | }, |
| 389 | "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. |
| 390 | }, |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 391 | }, |
| 392 | ], |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 393 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 394 | "batchId": 42, # An entry ID, unique within the batch request. |
| 395 | "method": "A String", # The method of the batch entry. Acceptable values are: - "`get`" - "`update`" |
| 396 | "merchantId": "A String", # The ID of the managing account. |
| 397 | "accountId": "A String", # The ID of the account for which to get/update account shipping settings. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 398 | }, |
| 399 | ], |
| 400 | } |
| 401 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 402 | 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). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 403 | x__xgafv: string, V1 error format. |
| 404 | Allowed values |
| 405 | 1 - v1 error format |
| 406 | 2 - v2 error format |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 407 | |
| 408 | Returns: |
| 409 | An object of the form: |
| 410 | |
| 411 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 412 | "entries": [ # The result of the execution of the batch requests. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 413 | { # A batch entry encoding a single non-batch shipping settings response. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 414 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#shippingsettingsCustomBatchResponseEntry`" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 415 | "batchId": 42, # The ID of the request entry to which this entry responds. |
| 416 | "errors": { # A list of errors returned by a failed batch entry. # A list of errors defined if, and only if, the request failed. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 417 | "errors": [ # A list of errors. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 418 | { # An error returned by the API. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 419 | "domain": "A String", # The domain of the error. |
| 420 | "message": "A String", # A description of the error. |
| 421 | "reason": "A String", # The error code. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 422 | }, |
| 423 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 424 | "message": "A String", # The message of the first error in `errors`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 425 | "code": 42, # The HTTP status of the first error in `errors`. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 426 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 427 | "shippingSettings": { # The merchant account's shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role. # The retrieved or updated account shipping settings. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 428 | "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 429 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 430 | "postalCodeRanges": [ # A range of postal codes. Required. |
| 431 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 432 | "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`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 433 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 434 | }, |
| 435 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 436 | "name": "A String", # The name of the postal code group, referred to in headers. Required. |
| 437 | "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 438 | }, |
| 439 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 440 | "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 441 | "services": [ # The target account's list of services. Optional. |
| 442 | { |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 443 | "name": "A String", # Free-form name of the service. Must be unique within target account. Required. |
| 444 | "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. |
| 445 | "currency": "A String", # The currency of the price. |
| 446 | "value": "A String", # The price represented as a number. |
| 447 | }, |
| 448 | "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`. |
| 449 | "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required. |
| 450 | "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required. |
| 451 | }, |
| 452 | "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 453 | "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 454 | "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. |
| 455 | { |
| 456 | "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. |
| 457 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 458 | "currency": "A String", # The currency of the price. |
| 459 | "value": "A String", # The price represented as a number. |
| 460 | }, |
| 461 | "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. |
| 462 | "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. |
| 463 | "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. |
| 464 | "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. |
| 465 | }, |
| 466 | "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. |
| 467 | "A String", |
| 468 | ], |
| 469 | "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service. |
| 470 | "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set. |
| 471 | { |
| 472 | "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required. |
| 473 | { |
| 474 | "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. |
| 475 | { # 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. |
| 476 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 477 | "currency": "A String", # The currency of the price. |
| 478 | "value": "A String", # The price represented as a number. |
| 479 | }, |
| 480 | "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. |
| 481 | "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. |
| 482 | "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. |
| 483 | "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. |
| 484 | }, |
| 485 | ], |
| 486 | }, |
| 487 | ], |
| 488 | "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. |
| 489 | "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. |
| 490 | { |
| 491 | "currency": "A String", # The currency of the price. |
| 492 | "value": "A String", # The price represented as a number. |
| 493 | }, |
| 494 | ], |
| 495 | "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. |
| 496 | { |
| 497 | "value": "A String", # Required. The weight represented as a number. |
| 498 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 499 | }, |
| 500 | ], |
| 501 | "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. |
| 502 | "A String", |
| 503 | ], |
| 504 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 505 | { |
| 506 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 507 | "A String", |
| 508 | ], |
| 509 | }, |
| 510 | ], |
| 511 | "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. |
| 512 | "A String", |
| 513 | ], |
| 514 | }, |
| 515 | "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. |
| 516 | "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. |
| 517 | { |
| 518 | "currency": "A String", # The currency of the price. |
| 519 | "value": "A String", # The price represented as a number. |
| 520 | }, |
| 521 | ], |
| 522 | "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. |
| 523 | { |
| 524 | "value": "A String", # Required. The weight represented as a number. |
| 525 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 526 | }, |
| 527 | ], |
| 528 | "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. |
| 529 | "A String", |
| 530 | ], |
| 531 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 532 | { |
| 533 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 534 | "A String", |
| 535 | ], |
| 536 | }, |
| 537 | ], |
| 538 | "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. |
| 539 | "A String", |
| 540 | ], |
| 541 | }, |
| 542 | "name": "A String", # Name of the table. Required for subtables, ignored for the main table. |
| 543 | }, |
| 544 | ], |
| 545 | "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`. |
| 546 | { |
| 547 | "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required. |
| 548 | "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required. |
| 549 | "originPostalCode": "A String", # Shipping origin for this carrier rate. Required. |
| 550 | "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. |
| 551 | "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. |
| 552 | "currency": "A String", # The currency of the price. |
| 553 | "value": "A String", # The price represented as a number. |
| 554 | }, |
| 555 | "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. |
| 556 | }, |
| 557 | ], |
| 558 | "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set. |
| 559 | "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required. |
| 560 | { |
| 561 | "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. |
| 562 | { # 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. |
| 563 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 564 | "currency": "A String", # The currency of the price. |
| 565 | "value": "A String", # The price represented as a number. |
| 566 | }, |
| 567 | "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. |
| 568 | "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. |
| 569 | "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. |
| 570 | "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. |
| 571 | }, |
| 572 | ], |
| 573 | }, |
| 574 | ], |
| 575 | "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. |
| 576 | "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. |
| 577 | { |
| 578 | "currency": "A String", # The currency of the price. |
| 579 | "value": "A String", # The price represented as a number. |
| 580 | }, |
| 581 | ], |
| 582 | "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. |
| 583 | { |
| 584 | "value": "A String", # Required. The weight represented as a number. |
| 585 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 586 | }, |
| 587 | ], |
| 588 | "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. |
| 589 | "A String", |
| 590 | ], |
| 591 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 592 | { |
| 593 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 594 | "A String", |
| 595 | ], |
| 596 | }, |
| 597 | ], |
| 598 | "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. |
| 599 | "A String", |
| 600 | ], |
| 601 | }, |
| 602 | "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. |
| 603 | "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. |
| 604 | { |
| 605 | "currency": "A String", # The currency of the price. |
| 606 | "value": "A String", # The price represented as a number. |
| 607 | }, |
| 608 | ], |
| 609 | "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. |
| 610 | { |
| 611 | "value": "A String", # Required. The weight represented as a number. |
| 612 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 613 | }, |
| 614 | ], |
| 615 | "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. |
| 616 | "A String", |
| 617 | ], |
| 618 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 619 | { |
| 620 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 621 | "A String", |
| 622 | ], |
| 623 | }, |
| 624 | ], |
| 625 | "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. |
| 626 | "A String", |
| 627 | ], |
| 628 | }, |
| 629 | "name": "A String", # Name of the table. Required for subtables, ignored for the main table. |
| 630 | }, |
| 631 | }, |
| 632 | ], |
| 633 | "active": True or False, # A boolean exposing the active status of the shipping service. Required. |
| 634 | "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value. |
| 635 | "storeCodeSetWithMovs": [ |
| 636 | { # 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. |
| 637 | "value": { # The minimum order value for the given stores. |
| 638 | "currency": "A String", # The currency of the price. |
| 639 | "value": "A String", # The price represented as a number. |
| 640 | }, |
| 641 | "storeCodes": [ # A list of unique store codes or empty for the catch all. |
| 642 | "A String", |
| 643 | ], |
| 644 | }, |
| 645 | ], |
| 646 | }, |
| 647 | "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 648 | "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required. |
| 649 | "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 650 | "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed. |
| 651 | "businessDays": [ # Regular business days. May not be empty. |
| 652 | "A String", |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 653 | ], |
| 654 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 655 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 656 | "rows": [ |
| 657 | { |
| 658 | "values": [ |
| 659 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 660 | "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 661 | "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 662 | }, |
| 663 | ], |
| 664 | }, |
| 665 | ], |
| 666 | "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`. |
| 667 | "A String", |
| 668 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 669 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 670 | "A String", |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 671 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 672 | }, |
| 673 | "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`. |
| 674 | "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`. |
| 675 | "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. |
| 676 | "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed. |
| 677 | "businessDays": [ # Regular business days. May not be empty. |
| 678 | "A String", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 679 | ], |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 680 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 681 | "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping. |
| 682 | { |
| 683 | "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. |
| 684 | "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. |
| 685 | "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required. |
| 686 | "holidayId": "A String", # Unique identifier for the holiday. Required. |
| 687 | "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. |
| 688 | }, |
| 689 | ], |
| 690 | "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST. |
| 691 | "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required. |
| 692 | "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. |
| 693 | "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required. |
| 694 | }, |
| 695 | "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. |
| 696 | }, |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 697 | }, |
| 698 | ], |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 699 | }, |
| 700 | }, |
| 701 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 702 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#shippingsettingsCustomBatchResponse". |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 703 | }</pre> |
| 704 | </div> |
| 705 | |
| 706 | <div class="method"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 707 | <code class="details" id="get">get(merchantId, accountId, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 708 | <pre>Retrieves the shipping settings of the account. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 709 | |
| 710 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 711 | merchantId: string, The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. (required) |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 712 | accountId: string, The ID of the account for which to get/update shipping settings. (required) |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 713 | x__xgafv: string, V1 error format. |
| 714 | Allowed values |
| 715 | 1 - v1 error format |
| 716 | 2 - v2 error format |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 717 | |
| 718 | Returns: |
| 719 | An object of the form: |
| 720 | |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 721 | { # The merchant account's shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 722 | "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 723 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 724 | "postalCodeRanges": [ # A range of postal codes. Required. |
| 725 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 726 | "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`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 727 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 728 | }, |
| 729 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 730 | "name": "A String", # The name of the postal code group, referred to in headers. Required. |
| 731 | "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 732 | }, |
| 733 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 734 | "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 735 | "services": [ # The target account's list of services. Optional. |
| 736 | { |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 737 | "name": "A String", # Free-form name of the service. Must be unique within target account. Required. |
| 738 | "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. |
| 739 | "currency": "A String", # The currency of the price. |
| 740 | "value": "A String", # The price represented as a number. |
| 741 | }, |
| 742 | "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`. |
| 743 | "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required. |
| 744 | "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required. |
| 745 | }, |
| 746 | "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 747 | "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 748 | "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. |
| 749 | { |
| 750 | "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. |
| 751 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 752 | "currency": "A String", # The currency of the price. |
| 753 | "value": "A String", # The price represented as a number. |
| 754 | }, |
| 755 | "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. |
| 756 | "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. |
| 757 | "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. |
| 758 | "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. |
| 759 | }, |
| 760 | "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. |
| 761 | "A String", |
| 762 | ], |
| 763 | "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service. |
| 764 | "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set. |
| 765 | { |
| 766 | "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required. |
| 767 | { |
| 768 | "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. |
| 769 | { # 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. |
| 770 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 771 | "currency": "A String", # The currency of the price. |
| 772 | "value": "A String", # The price represented as a number. |
| 773 | }, |
| 774 | "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. |
| 775 | "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. |
| 776 | "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. |
| 777 | "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. |
| 778 | }, |
| 779 | ], |
| 780 | }, |
| 781 | ], |
| 782 | "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. |
| 783 | "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. |
| 784 | { |
| 785 | "currency": "A String", # The currency of the price. |
| 786 | "value": "A String", # The price represented as a number. |
| 787 | }, |
| 788 | ], |
| 789 | "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. |
| 790 | { |
| 791 | "value": "A String", # Required. The weight represented as a number. |
| 792 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 793 | }, |
| 794 | ], |
| 795 | "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. |
| 796 | "A String", |
| 797 | ], |
| 798 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 799 | { |
| 800 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 801 | "A String", |
| 802 | ], |
| 803 | }, |
| 804 | ], |
| 805 | "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. |
| 806 | "A String", |
| 807 | ], |
| 808 | }, |
| 809 | "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. |
| 810 | "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. |
| 811 | { |
| 812 | "currency": "A String", # The currency of the price. |
| 813 | "value": "A String", # The price represented as a number. |
| 814 | }, |
| 815 | ], |
| 816 | "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. |
| 817 | { |
| 818 | "value": "A String", # Required. The weight represented as a number. |
| 819 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 820 | }, |
| 821 | ], |
| 822 | "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. |
| 823 | "A String", |
| 824 | ], |
| 825 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 826 | { |
| 827 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 828 | "A String", |
| 829 | ], |
| 830 | }, |
| 831 | ], |
| 832 | "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. |
| 833 | "A String", |
| 834 | ], |
| 835 | }, |
| 836 | "name": "A String", # Name of the table. Required for subtables, ignored for the main table. |
| 837 | }, |
| 838 | ], |
| 839 | "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`. |
| 840 | { |
| 841 | "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required. |
| 842 | "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required. |
| 843 | "originPostalCode": "A String", # Shipping origin for this carrier rate. Required. |
| 844 | "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. |
| 845 | "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. |
| 846 | "currency": "A String", # The currency of the price. |
| 847 | "value": "A String", # The price represented as a number. |
| 848 | }, |
| 849 | "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. |
| 850 | }, |
| 851 | ], |
| 852 | "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set. |
| 853 | "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required. |
| 854 | { |
| 855 | "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. |
| 856 | { # 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. |
| 857 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 858 | "currency": "A String", # The currency of the price. |
| 859 | "value": "A String", # The price represented as a number. |
| 860 | }, |
| 861 | "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. |
| 862 | "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. |
| 863 | "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. |
| 864 | "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. |
| 865 | }, |
| 866 | ], |
| 867 | }, |
| 868 | ], |
| 869 | "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. |
| 870 | "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. |
| 871 | { |
| 872 | "currency": "A String", # The currency of the price. |
| 873 | "value": "A String", # The price represented as a number. |
| 874 | }, |
| 875 | ], |
| 876 | "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. |
| 877 | { |
| 878 | "value": "A String", # Required. The weight represented as a number. |
| 879 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 880 | }, |
| 881 | ], |
| 882 | "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. |
| 883 | "A String", |
| 884 | ], |
| 885 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 886 | { |
| 887 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 888 | "A String", |
| 889 | ], |
| 890 | }, |
| 891 | ], |
| 892 | "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. |
| 893 | "A String", |
| 894 | ], |
| 895 | }, |
| 896 | "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. |
| 897 | "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. |
| 898 | { |
| 899 | "currency": "A String", # The currency of the price. |
| 900 | "value": "A String", # The price represented as a number. |
| 901 | }, |
| 902 | ], |
| 903 | "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. |
| 904 | { |
| 905 | "value": "A String", # Required. The weight represented as a number. |
| 906 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 907 | }, |
| 908 | ], |
| 909 | "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. |
| 910 | "A String", |
| 911 | ], |
| 912 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 913 | { |
| 914 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 915 | "A String", |
| 916 | ], |
| 917 | }, |
| 918 | ], |
| 919 | "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. |
| 920 | "A String", |
| 921 | ], |
| 922 | }, |
| 923 | "name": "A String", # Name of the table. Required for subtables, ignored for the main table. |
| 924 | }, |
| 925 | }, |
| 926 | ], |
| 927 | "active": True or False, # A boolean exposing the active status of the shipping service. Required. |
| 928 | "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value. |
| 929 | "storeCodeSetWithMovs": [ |
| 930 | { # 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. |
| 931 | "value": { # The minimum order value for the given stores. |
| 932 | "currency": "A String", # The currency of the price. |
| 933 | "value": "A String", # The price represented as a number. |
| 934 | }, |
| 935 | "storeCodes": [ # A list of unique store codes or empty for the catch all. |
| 936 | "A String", |
| 937 | ], |
| 938 | }, |
| 939 | ], |
| 940 | }, |
| 941 | "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 942 | "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required. |
| 943 | "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 944 | "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed. |
| 945 | "businessDays": [ # Regular business days. May not be empty. |
| 946 | "A String", |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 947 | ], |
| 948 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 949 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 950 | "rows": [ |
| 951 | { |
| 952 | "values": [ |
| 953 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 954 | "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 955 | "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 956 | }, |
| 957 | ], |
| 958 | }, |
| 959 | ], |
| 960 | "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`. |
| 961 | "A String", |
| 962 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 963 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 964 | "A String", |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 965 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 966 | }, |
| 967 | "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`. |
| 968 | "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`. |
| 969 | "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. |
| 970 | "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed. |
| 971 | "businessDays": [ # Regular business days. May not be empty. |
| 972 | "A String", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 973 | ], |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 974 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 975 | "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping. |
| 976 | { |
| 977 | "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. |
| 978 | "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. |
| 979 | "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required. |
| 980 | "holidayId": "A String", # Unique identifier for the holiday. Required. |
| 981 | "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. |
| 982 | }, |
| 983 | ], |
| 984 | "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST. |
| 985 | "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required. |
| 986 | "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. |
| 987 | "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required. |
| 988 | }, |
| 989 | "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. |
| 990 | }, |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 991 | }, |
| 992 | ], |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 993 | }</pre> |
| 994 | </div> |
| 995 | |
| 996 | <div class="method"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 997 | <code class="details" id="getsupportedcarriers">getsupportedcarriers(merchantId, x__xgafv=None)</code> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 998 | <pre>Retrieves supported carriers and carrier services for an account. |
| 999 | |
| 1000 | Args: |
| 1001 | merchantId: string, The ID of the account for which to retrieve the supported carriers. (required) |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1002 | x__xgafv: string, V1 error format. |
| 1003 | Allowed values |
| 1004 | 1 - v1 error format |
| 1005 | 2 - v2 error format |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1006 | |
| 1007 | Returns: |
| 1008 | An object of the form: |
| 1009 | |
| 1010 | { |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1011 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#shippingsettingsGetSupportedCarriersResponse". |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1012 | "carriers": [ # A list of supported carriers. May be empty. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1013 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1014 | "services": [ # A list of supported services (e.g., `"ground"`) for that carrier. Contains at least one service. |
| 1015 | "A String", |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1016 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1017 | "name": "A String", # The name of the carrier (e.g., `"UPS"`). Always present. |
| 1018 | "country": "A String", # The CLDR country code of the carrier (e.g., "US"). Always present. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1019 | }, |
| 1020 | ], |
| 1021 | }</pre> |
| 1022 | </div> |
| 1023 | |
| 1024 | <div class="method"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1025 | <code class="details" id="getsupportedholidays">getsupportedholidays(merchantId, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1026 | <pre>Retrieves supported holidays for an account. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1027 | |
| 1028 | Args: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1029 | merchantId: string, The ID of the account for which to retrieve the supported holidays. (required) |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1030 | x__xgafv: string, V1 error format. |
| 1031 | Allowed values |
| 1032 | 1 - v1 error format |
| 1033 | 2 - v2 error format |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1034 | |
| 1035 | Returns: |
| 1036 | An object of the form: |
| 1037 | |
| 1038 | { |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1039 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#shippingsettingsGetSupportedHolidaysResponse". |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1040 | "holidays": [ # A list of holidays applicable for delivery guarantees. May be empty. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1041 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1042 | "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. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1043 | "date": "A String", # Date of the holiday, in ISO 8601 format. E.g. "2016-12-25" for Christmas 2016. Always present. |
| 1044 | "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`" |
| 1045 | "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. |
| 1046 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1047 | "id": "A String", # Unique identifier for the holiday to be used when configuring holiday cutoffs. Always present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1048 | }, |
| 1049 | ], |
| 1050 | }</pre> |
| 1051 | </div> |
| 1052 | |
| 1053 | <div class="method"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1054 | <code class="details" id="getsupportedpickupservices">getsupportedpickupservices(merchantId, x__xgafv=None)</code> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1055 | <pre>Retrieves supported pickup services for an account. |
| 1056 | |
| 1057 | Args: |
| 1058 | merchantId: string, The ID of the account for which to retrieve the supported pickup services. (required) |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1059 | x__xgafv: string, V1 error format. |
| 1060 | Allowed values |
| 1061 | 1 - v1 error format |
| 1062 | 2 - v2 error format |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1063 | |
| 1064 | Returns: |
| 1065 | An object of the form: |
| 1066 | |
| 1067 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1068 | "pickupServices": [ # A list of supported pickup services. May be empty. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1069 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1070 | "country": "A String", # The CLDR country code of the carrier (e.g., "US"). Always present. |
| 1071 | "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Always present. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1072 | "carrierName": "A String", # The name of the carrier (e.g., `"UPS"`). Always present. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1073 | }, |
| 1074 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1075 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#shippingsettingsGetSupportedPickupServicesResponse". |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1076 | }</pre> |
| 1077 | </div> |
| 1078 | |
| 1079 | <div class="method"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1080 | <code class="details" id="list">list(merchantId, pageToken=None, maxResults=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1081 | <pre>Lists the shipping settings of the sub-accounts in your Merchant Center account. |
| 1082 | |
| 1083 | Args: |
| 1084 | merchantId: string, The ID of the managing account. This must be a multi-client account. (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1085 | pageToken: string, The token returned by the previous request. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1086 | maxResults: integer, The maximum number of shipping settings to return in the response, used for paging. |
| 1087 | x__xgafv: string, V1 error format. |
| 1088 | Allowed values |
| 1089 | 1 - v1 error format |
| 1090 | 2 - v2 error format |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1091 | |
| 1092 | Returns: |
| 1093 | An object of the form: |
| 1094 | |
| 1095 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1096 | "nextPageToken": "A String", # The token for the retrieval of the next page of shipping settings. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1097 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#shippingsettingsListResponse". |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1098 | "resources": [ |
| 1099 | { # The merchant account's shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1100 | "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1101 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1102 | "postalCodeRanges": [ # A range of postal codes. Required. |
| 1103 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1104 | "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`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1105 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1106 | }, |
| 1107 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1108 | "name": "A String", # The name of the postal code group, referred to in headers. Required. |
| 1109 | "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1110 | }, |
| 1111 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1112 | "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1113 | "services": [ # The target account's list of services. Optional. |
| 1114 | { |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1115 | "name": "A String", # Free-form name of the service. Must be unique within target account. Required. |
| 1116 | "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. |
| 1117 | "currency": "A String", # The currency of the price. |
| 1118 | "value": "A String", # The price represented as a number. |
| 1119 | }, |
| 1120 | "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`. |
| 1121 | "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required. |
| 1122 | "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required. |
| 1123 | }, |
| 1124 | "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1125 | "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1126 | "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. |
| 1127 | { |
| 1128 | "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. |
| 1129 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 1130 | "currency": "A String", # The currency of the price. |
| 1131 | "value": "A String", # The price represented as a number. |
| 1132 | }, |
| 1133 | "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. |
| 1134 | "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. |
| 1135 | "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. |
| 1136 | "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. |
| 1137 | }, |
| 1138 | "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. |
| 1139 | "A String", |
| 1140 | ], |
| 1141 | "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service. |
| 1142 | "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set. |
| 1143 | { |
| 1144 | "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required. |
| 1145 | { |
| 1146 | "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. |
| 1147 | { # 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. |
| 1148 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 1149 | "currency": "A String", # The currency of the price. |
| 1150 | "value": "A String", # The price represented as a number. |
| 1151 | }, |
| 1152 | "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. |
| 1153 | "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. |
| 1154 | "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. |
| 1155 | "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. |
| 1156 | }, |
| 1157 | ], |
| 1158 | }, |
| 1159 | ], |
| 1160 | "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. |
| 1161 | "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. |
| 1162 | { |
| 1163 | "currency": "A String", # The currency of the price. |
| 1164 | "value": "A String", # The price represented as a number. |
| 1165 | }, |
| 1166 | ], |
| 1167 | "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. |
| 1168 | { |
| 1169 | "value": "A String", # Required. The weight represented as a number. |
| 1170 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 1171 | }, |
| 1172 | ], |
| 1173 | "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. |
| 1174 | "A String", |
| 1175 | ], |
| 1176 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 1177 | { |
| 1178 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 1179 | "A String", |
| 1180 | ], |
| 1181 | }, |
| 1182 | ], |
| 1183 | "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. |
| 1184 | "A String", |
| 1185 | ], |
| 1186 | }, |
| 1187 | "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. |
| 1188 | "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. |
| 1189 | { |
| 1190 | "currency": "A String", # The currency of the price. |
| 1191 | "value": "A String", # The price represented as a number. |
| 1192 | }, |
| 1193 | ], |
| 1194 | "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. |
| 1195 | { |
| 1196 | "value": "A String", # Required. The weight represented as a number. |
| 1197 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 1198 | }, |
| 1199 | ], |
| 1200 | "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. |
| 1201 | "A String", |
| 1202 | ], |
| 1203 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 1204 | { |
| 1205 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 1206 | "A String", |
| 1207 | ], |
| 1208 | }, |
| 1209 | ], |
| 1210 | "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. |
| 1211 | "A String", |
| 1212 | ], |
| 1213 | }, |
| 1214 | "name": "A String", # Name of the table. Required for subtables, ignored for the main table. |
| 1215 | }, |
| 1216 | ], |
| 1217 | "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`. |
| 1218 | { |
| 1219 | "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required. |
| 1220 | "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required. |
| 1221 | "originPostalCode": "A String", # Shipping origin for this carrier rate. Required. |
| 1222 | "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. |
| 1223 | "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. |
| 1224 | "currency": "A String", # The currency of the price. |
| 1225 | "value": "A String", # The price represented as a number. |
| 1226 | }, |
| 1227 | "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. |
| 1228 | }, |
| 1229 | ], |
| 1230 | "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set. |
| 1231 | "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required. |
| 1232 | { |
| 1233 | "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. |
| 1234 | { # 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. |
| 1235 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 1236 | "currency": "A String", # The currency of the price. |
| 1237 | "value": "A String", # The price represented as a number. |
| 1238 | }, |
| 1239 | "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. |
| 1240 | "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. |
| 1241 | "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. |
| 1242 | "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. |
| 1243 | }, |
| 1244 | ], |
| 1245 | }, |
| 1246 | ], |
| 1247 | "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. |
| 1248 | "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. |
| 1249 | { |
| 1250 | "currency": "A String", # The currency of the price. |
| 1251 | "value": "A String", # The price represented as a number. |
| 1252 | }, |
| 1253 | ], |
| 1254 | "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. |
| 1255 | { |
| 1256 | "value": "A String", # Required. The weight represented as a number. |
| 1257 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 1258 | }, |
| 1259 | ], |
| 1260 | "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. |
| 1261 | "A String", |
| 1262 | ], |
| 1263 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 1264 | { |
| 1265 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 1266 | "A String", |
| 1267 | ], |
| 1268 | }, |
| 1269 | ], |
| 1270 | "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. |
| 1271 | "A String", |
| 1272 | ], |
| 1273 | }, |
| 1274 | "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. |
| 1275 | "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. |
| 1276 | { |
| 1277 | "currency": "A String", # The currency of the price. |
| 1278 | "value": "A String", # The price represented as a number. |
| 1279 | }, |
| 1280 | ], |
| 1281 | "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. |
| 1282 | { |
| 1283 | "value": "A String", # Required. The weight represented as a number. |
| 1284 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 1285 | }, |
| 1286 | ], |
| 1287 | "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. |
| 1288 | "A String", |
| 1289 | ], |
| 1290 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 1291 | { |
| 1292 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 1293 | "A String", |
| 1294 | ], |
| 1295 | }, |
| 1296 | ], |
| 1297 | "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. |
| 1298 | "A String", |
| 1299 | ], |
| 1300 | }, |
| 1301 | "name": "A String", # Name of the table. Required for subtables, ignored for the main table. |
| 1302 | }, |
| 1303 | }, |
| 1304 | ], |
| 1305 | "active": True or False, # A boolean exposing the active status of the shipping service. Required. |
| 1306 | "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value. |
| 1307 | "storeCodeSetWithMovs": [ |
| 1308 | { # 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. |
| 1309 | "value": { # The minimum order value for the given stores. |
| 1310 | "currency": "A String", # The currency of the price. |
| 1311 | "value": "A String", # The price represented as a number. |
| 1312 | }, |
| 1313 | "storeCodes": [ # A list of unique store codes or empty for the catch all. |
| 1314 | "A String", |
| 1315 | ], |
| 1316 | }, |
| 1317 | ], |
| 1318 | }, |
| 1319 | "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1320 | "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required. |
| 1321 | "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1322 | "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed. |
| 1323 | "businessDays": [ # Regular business days. May not be empty. |
| 1324 | "A String", |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1325 | ], |
| 1326 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1327 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1328 | "rows": [ |
| 1329 | { |
| 1330 | "values": [ |
| 1331 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1332 | "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1333 | "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1334 | }, |
| 1335 | ], |
| 1336 | }, |
| 1337 | ], |
| 1338 | "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`. |
| 1339 | "A String", |
| 1340 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1341 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1342 | "A String", |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1343 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1344 | }, |
| 1345 | "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`. |
| 1346 | "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`. |
| 1347 | "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. |
| 1348 | "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed. |
| 1349 | "businessDays": [ # Regular business days. May not be empty. |
| 1350 | "A String", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1351 | ], |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1352 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1353 | "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping. |
| 1354 | { |
| 1355 | "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. |
| 1356 | "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. |
| 1357 | "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required. |
| 1358 | "holidayId": "A String", # Unique identifier for the holiday. Required. |
| 1359 | "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. |
| 1360 | }, |
| 1361 | ], |
| 1362 | "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST. |
| 1363 | "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required. |
| 1364 | "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. |
| 1365 | "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required. |
| 1366 | }, |
| 1367 | "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. |
| 1368 | }, |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1369 | }, |
| 1370 | ], |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1371 | }, |
| 1372 | ], |
| 1373 | }</pre> |
| 1374 | </div> |
| 1375 | |
| 1376 | <div class="method"> |
| 1377 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 1378 | <pre>Retrieves the next page of results. |
| 1379 | |
| 1380 | Args: |
| 1381 | previous_request: The request for the previous page. (required) |
| 1382 | previous_response: The response from the request for the previous page. (required) |
| 1383 | |
| 1384 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1385 | A request object that you can call 'execute()' on to request the next |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1386 | page. Returns None if there are no more items in the collection. |
| 1387 | </pre> |
| 1388 | </div> |
| 1389 | |
| 1390 | <div class="method"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1391 | <code class="details" id="update">update(merchantId, accountId, body=None, dryRun=None, x__xgafv=None)</code> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1392 | <pre>Updates the shipping settings of the account. Any fields that are not provided are deleted from the resource. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1393 | |
| 1394 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1395 | merchantId: string, The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. (required) |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1396 | accountId: string, The ID of the account for which to get/update shipping settings. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1397 | body: object, The request body. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1398 | The object takes the form of: |
| 1399 | |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1400 | { # The merchant account's shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1401 | "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1402 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1403 | "postalCodeRanges": [ # A range of postal codes. Required. |
| 1404 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1405 | "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`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1406 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1407 | }, |
| 1408 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1409 | "name": "A String", # The name of the postal code group, referred to in headers. Required. |
| 1410 | "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1411 | }, |
| 1412 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1413 | "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1414 | "services": [ # The target account's list of services. Optional. |
| 1415 | { |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1416 | "name": "A String", # Free-form name of the service. Must be unique within target account. Required. |
| 1417 | "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. |
| 1418 | "currency": "A String", # The currency of the price. |
| 1419 | "value": "A String", # The price represented as a number. |
| 1420 | }, |
| 1421 | "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`. |
| 1422 | "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required. |
| 1423 | "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required. |
| 1424 | }, |
| 1425 | "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1426 | "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1427 | "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. |
| 1428 | { |
| 1429 | "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. |
| 1430 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 1431 | "currency": "A String", # The currency of the price. |
| 1432 | "value": "A String", # The price represented as a number. |
| 1433 | }, |
| 1434 | "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. |
| 1435 | "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. |
| 1436 | "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. |
| 1437 | "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. |
| 1438 | }, |
| 1439 | "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. |
| 1440 | "A String", |
| 1441 | ], |
| 1442 | "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service. |
| 1443 | "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set. |
| 1444 | { |
| 1445 | "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required. |
| 1446 | { |
| 1447 | "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. |
| 1448 | { # 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. |
| 1449 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 1450 | "currency": "A String", # The currency of the price. |
| 1451 | "value": "A String", # The price represented as a number. |
| 1452 | }, |
| 1453 | "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. |
| 1454 | "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. |
| 1455 | "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. |
| 1456 | "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. |
| 1457 | }, |
| 1458 | ], |
| 1459 | }, |
| 1460 | ], |
| 1461 | "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. |
| 1462 | "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. |
| 1463 | { |
| 1464 | "currency": "A String", # The currency of the price. |
| 1465 | "value": "A String", # The price represented as a number. |
| 1466 | }, |
| 1467 | ], |
| 1468 | "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. |
| 1469 | { |
| 1470 | "value": "A String", # Required. The weight represented as a number. |
| 1471 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 1472 | }, |
| 1473 | ], |
| 1474 | "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. |
| 1475 | "A String", |
| 1476 | ], |
| 1477 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 1478 | { |
| 1479 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 1480 | "A String", |
| 1481 | ], |
| 1482 | }, |
| 1483 | ], |
| 1484 | "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. |
| 1485 | "A String", |
| 1486 | ], |
| 1487 | }, |
| 1488 | "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. |
| 1489 | "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. |
| 1490 | { |
| 1491 | "currency": "A String", # The currency of the price. |
| 1492 | "value": "A String", # The price represented as a number. |
| 1493 | }, |
| 1494 | ], |
| 1495 | "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. |
| 1496 | { |
| 1497 | "value": "A String", # Required. The weight represented as a number. |
| 1498 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 1499 | }, |
| 1500 | ], |
| 1501 | "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. |
| 1502 | "A String", |
| 1503 | ], |
| 1504 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 1505 | { |
| 1506 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 1507 | "A String", |
| 1508 | ], |
| 1509 | }, |
| 1510 | ], |
| 1511 | "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. |
| 1512 | "A String", |
| 1513 | ], |
| 1514 | }, |
| 1515 | "name": "A String", # Name of the table. Required for subtables, ignored for the main table. |
| 1516 | }, |
| 1517 | ], |
| 1518 | "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`. |
| 1519 | { |
| 1520 | "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required. |
| 1521 | "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required. |
| 1522 | "originPostalCode": "A String", # Shipping origin for this carrier rate. Required. |
| 1523 | "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. |
| 1524 | "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. |
| 1525 | "currency": "A String", # The currency of the price. |
| 1526 | "value": "A String", # The price represented as a number. |
| 1527 | }, |
| 1528 | "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. |
| 1529 | }, |
| 1530 | ], |
| 1531 | "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set. |
| 1532 | "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required. |
| 1533 | { |
| 1534 | "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. |
| 1535 | { # 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. |
| 1536 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 1537 | "currency": "A String", # The currency of the price. |
| 1538 | "value": "A String", # The price represented as a number. |
| 1539 | }, |
| 1540 | "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. |
| 1541 | "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. |
| 1542 | "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. |
| 1543 | "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. |
| 1544 | }, |
| 1545 | ], |
| 1546 | }, |
| 1547 | ], |
| 1548 | "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. |
| 1549 | "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. |
| 1550 | { |
| 1551 | "currency": "A String", # The currency of the price. |
| 1552 | "value": "A String", # The price represented as a number. |
| 1553 | }, |
| 1554 | ], |
| 1555 | "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. |
| 1556 | { |
| 1557 | "value": "A String", # Required. The weight represented as a number. |
| 1558 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 1559 | }, |
| 1560 | ], |
| 1561 | "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. |
| 1562 | "A String", |
| 1563 | ], |
| 1564 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 1565 | { |
| 1566 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 1567 | "A String", |
| 1568 | ], |
| 1569 | }, |
| 1570 | ], |
| 1571 | "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. |
| 1572 | "A String", |
| 1573 | ], |
| 1574 | }, |
| 1575 | "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. |
| 1576 | "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. |
| 1577 | { |
| 1578 | "currency": "A String", # The currency of the price. |
| 1579 | "value": "A String", # The price represented as a number. |
| 1580 | }, |
| 1581 | ], |
| 1582 | "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. |
| 1583 | { |
| 1584 | "value": "A String", # Required. The weight represented as a number. |
| 1585 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 1586 | }, |
| 1587 | ], |
| 1588 | "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. |
| 1589 | "A String", |
| 1590 | ], |
| 1591 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 1592 | { |
| 1593 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 1594 | "A String", |
| 1595 | ], |
| 1596 | }, |
| 1597 | ], |
| 1598 | "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. |
| 1599 | "A String", |
| 1600 | ], |
| 1601 | }, |
| 1602 | "name": "A String", # Name of the table. Required for subtables, ignored for the main table. |
| 1603 | }, |
| 1604 | }, |
| 1605 | ], |
| 1606 | "active": True or False, # A boolean exposing the active status of the shipping service. Required. |
| 1607 | "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value. |
| 1608 | "storeCodeSetWithMovs": [ |
| 1609 | { # 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. |
| 1610 | "value": { # The minimum order value for the given stores. |
| 1611 | "currency": "A String", # The currency of the price. |
| 1612 | "value": "A String", # The price represented as a number. |
| 1613 | }, |
| 1614 | "storeCodes": [ # A list of unique store codes or empty for the catch all. |
| 1615 | "A String", |
| 1616 | ], |
| 1617 | }, |
| 1618 | ], |
| 1619 | }, |
| 1620 | "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1621 | "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required. |
| 1622 | "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1623 | "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed. |
| 1624 | "businessDays": [ # Regular business days. May not be empty. |
| 1625 | "A String", |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1626 | ], |
| 1627 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1628 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1629 | "rows": [ |
| 1630 | { |
| 1631 | "values": [ |
| 1632 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1633 | "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1634 | "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1635 | }, |
| 1636 | ], |
| 1637 | }, |
| 1638 | ], |
| 1639 | "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`. |
| 1640 | "A String", |
| 1641 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1642 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1643 | "A String", |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1644 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1645 | }, |
| 1646 | "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`. |
| 1647 | "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`. |
| 1648 | "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. |
| 1649 | "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed. |
| 1650 | "businessDays": [ # Regular business days. May not be empty. |
| 1651 | "A String", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1652 | ], |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1653 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1654 | "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping. |
| 1655 | { |
| 1656 | "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. |
| 1657 | "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. |
| 1658 | "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required. |
| 1659 | "holidayId": "A String", # Unique identifier for the holiday. Required. |
| 1660 | "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. |
| 1661 | }, |
| 1662 | ], |
| 1663 | "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST. |
| 1664 | "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required. |
| 1665 | "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. |
| 1666 | "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required. |
| 1667 | }, |
| 1668 | "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. |
| 1669 | }, |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1670 | }, |
| 1671 | ], |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1672 | } |
| 1673 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1674 | 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). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1675 | x__xgafv: string, V1 error format. |
| 1676 | Allowed values |
| 1677 | 1 - v1 error format |
| 1678 | 2 - v2 error format |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1679 | |
| 1680 | Returns: |
| 1681 | An object of the form: |
| 1682 | |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1683 | { # The merchant account's shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1684 | "postalCodeGroups": [ # A list of postal code groups that can be referred to in `services`. Optional. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1685 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1686 | "postalCodeRanges": [ # A range of postal codes. Required. |
| 1687 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1688 | "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`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1689 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1690 | }, |
| 1691 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1692 | "name": "A String", # The name of the postal code group, referred to in headers. Required. |
| 1693 | "country": "A String", # The CLDR territory code of the country the postal code group applies to. Required. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1694 | }, |
| 1695 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1696 | "accountId": "A String", # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1697 | "services": [ # The target account's list of services. Optional. |
| 1698 | { |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1699 | "name": "A String", # Free-form name of the service. Must be unique within target account. Required. |
| 1700 | "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. |
| 1701 | "currency": "A String", # The currency of the price. |
| 1702 | "value": "A String", # The price represented as a number. |
| 1703 | }, |
| 1704 | "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`. |
| 1705 | "serviceName": "A String", # The name of the pickup service (e.g., `"Access point"`). Required. |
| 1706 | "carrierName": "A String", # The name of the pickup carrier (e.g., `"UPS"`). Required. |
| 1707 | }, |
| 1708 | "eligibility": "A String", # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1709 | "currency": "A String", # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1710 | "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. |
| 1711 | { |
| 1712 | "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. |
| 1713 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 1714 | "currency": "A String", # The currency of the price. |
| 1715 | "value": "A String", # The price represented as a number. |
| 1716 | }, |
| 1717 | "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. |
| 1718 | "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. |
| 1719 | "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. |
| 1720 | "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. |
| 1721 | }, |
| 1722 | "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. |
| 1723 | "A String", |
| 1724 | ], |
| 1725 | "name": "A String", # Name of the rate group. Optional. If set has to be unique within shipping service. |
| 1726 | "subtables": [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set. |
| 1727 | { |
| 1728 | "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required. |
| 1729 | { |
| 1730 | "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. |
| 1731 | { # 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. |
| 1732 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 1733 | "currency": "A String", # The currency of the price. |
| 1734 | "value": "A String", # The price represented as a number. |
| 1735 | }, |
| 1736 | "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. |
| 1737 | "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. |
| 1738 | "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. |
| 1739 | "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. |
| 1740 | }, |
| 1741 | ], |
| 1742 | }, |
| 1743 | ], |
| 1744 | "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. |
| 1745 | "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. |
| 1746 | { |
| 1747 | "currency": "A String", # The currency of the price. |
| 1748 | "value": "A String", # The price represented as a number. |
| 1749 | }, |
| 1750 | ], |
| 1751 | "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. |
| 1752 | { |
| 1753 | "value": "A String", # Required. The weight represented as a number. |
| 1754 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 1755 | }, |
| 1756 | ], |
| 1757 | "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. |
| 1758 | "A String", |
| 1759 | ], |
| 1760 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 1761 | { |
| 1762 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 1763 | "A String", |
| 1764 | ], |
| 1765 | }, |
| 1766 | ], |
| 1767 | "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. |
| 1768 | "A String", |
| 1769 | ], |
| 1770 | }, |
| 1771 | "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. |
| 1772 | "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. |
| 1773 | { |
| 1774 | "currency": "A String", # The currency of the price. |
| 1775 | "value": "A String", # The price represented as a number. |
| 1776 | }, |
| 1777 | ], |
| 1778 | "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. |
| 1779 | { |
| 1780 | "value": "A String", # Required. The weight represented as a number. |
| 1781 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 1782 | }, |
| 1783 | ], |
| 1784 | "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. |
| 1785 | "A String", |
| 1786 | ], |
| 1787 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 1788 | { |
| 1789 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 1790 | "A String", |
| 1791 | ], |
| 1792 | }, |
| 1793 | ], |
| 1794 | "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. |
| 1795 | "A String", |
| 1796 | ], |
| 1797 | }, |
| 1798 | "name": "A String", # Name of the table. Required for subtables, ignored for the main table. |
| 1799 | }, |
| 1800 | ], |
| 1801 | "carrierRates": [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`. |
| 1802 | { |
| 1803 | "carrierName": "A String", # Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required. |
| 1804 | "name": "A String", # Name of the carrier rate. Must be unique per rate group. Required. |
| 1805 | "originPostalCode": "A String", # Shipping origin for this carrier rate. Required. |
| 1806 | "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. |
| 1807 | "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. |
| 1808 | "currency": "A String", # The currency of the price. |
| 1809 | "value": "A String", # The price represented as a number. |
| 1810 | }, |
| 1811 | "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. |
| 1812 | }, |
| 1813 | ], |
| 1814 | "mainTable": { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set. |
| 1815 | "rows": [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required. |
| 1816 | { |
| 1817 | "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. |
| 1818 | { # 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. |
| 1819 | "flatRate": { # A flat rate. Can only be set if all other fields are not set. |
| 1820 | "currency": "A String", # The currency of the price. |
| 1821 | "value": "A String", # The price represented as a number. |
| 1822 | }, |
| 1823 | "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. |
| 1824 | "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. |
| 1825 | "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. |
| 1826 | "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. |
| 1827 | }, |
| 1828 | ], |
| 1829 | }, |
| 1830 | ], |
| 1831 | "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. |
| 1832 | "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. |
| 1833 | { |
| 1834 | "currency": "A String", # The currency of the price. |
| 1835 | "value": "A String", # The price represented as a number. |
| 1836 | }, |
| 1837 | ], |
| 1838 | "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. |
| 1839 | { |
| 1840 | "value": "A String", # Required. The weight represented as a number. |
| 1841 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 1842 | }, |
| 1843 | ], |
| 1844 | "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. |
| 1845 | "A String", |
| 1846 | ], |
| 1847 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 1848 | { |
| 1849 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 1850 | "A String", |
| 1851 | ], |
| 1852 | }, |
| 1853 | ], |
| 1854 | "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. |
| 1855 | "A String", |
| 1856 | ], |
| 1857 | }, |
| 1858 | "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. |
| 1859 | "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. |
| 1860 | { |
| 1861 | "currency": "A String", # The currency of the price. |
| 1862 | "value": "A String", # The price represented as a number. |
| 1863 | }, |
| 1864 | ], |
| 1865 | "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. |
| 1866 | { |
| 1867 | "value": "A String", # Required. The weight represented as a number. |
| 1868 | "unit": "A String", # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" |
| 1869 | }, |
| 1870 | ], |
| 1871 | "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. |
| 1872 | "A String", |
| 1873 | ], |
| 1874 | "locations": [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
| 1875 | { |
| 1876 | "locationIds": [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
| 1877 | "A String", |
| 1878 | ], |
| 1879 | }, |
| 1880 | ], |
| 1881 | "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. |
| 1882 | "A String", |
| 1883 | ], |
| 1884 | }, |
| 1885 | "name": "A String", # Name of the table. Required for subtables, ignored for the main table. |
| 1886 | }, |
| 1887 | }, |
| 1888 | ], |
| 1889 | "active": True or False, # A boolean exposing the active status of the shipping service. Required. |
| 1890 | "minimumOrderValueTable": { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value. |
| 1891 | "storeCodeSetWithMovs": [ |
| 1892 | { # 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. |
| 1893 | "value": { # The minimum order value for the given stores. |
| 1894 | "currency": "A String", # The currency of the price. |
| 1895 | "value": "A String", # The price represented as a number. |
| 1896 | }, |
| 1897 | "storeCodes": [ # A list of unique store codes or empty for the catch all. |
| 1898 | "A String", |
| 1899 | ], |
| 1900 | }, |
| 1901 | ], |
| 1902 | }, |
| 1903 | "shipmentType": "A String", # Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1904 | "deliveryCountry": "A String", # The CLDR territory code of the country to which the service applies. Required. |
| 1905 | "deliveryTime": { # Time spent in various aspects from order to the delivery of the product. Required. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1906 | "handlingBusinessDayConfig": { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed. |
| 1907 | "businessDays": [ # Regular business days. May not be empty. |
| 1908 | "A String", |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1909 | ], |
| 1910 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1911 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1912 | "rows": [ |
| 1913 | { |
| 1914 | "values": [ |
| 1915 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1916 | "minTransitTimeInDays": 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1917 | "maxTransitTimeInDays": 42, # Must be greater than or equal to `minTransitTimeInDays`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1918 | }, |
| 1919 | ], |
| 1920 | }, |
| 1921 | ], |
| 1922 | "transitTimeLabels": [ # A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`. |
| 1923 | "A String", |
| 1924 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1925 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1926 | "A String", |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1927 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1928 | }, |
| 1929 | "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`. |
| 1930 | "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`. |
| 1931 | "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. |
| 1932 | "transitBusinessDayConfig": { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed. |
| 1933 | "businessDays": [ # Regular business days. May not be empty. |
| 1934 | "A String", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1935 | ], |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1936 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame^] | 1937 | "holidayCutoffs": [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping. |
| 1938 | { |
| 1939 | "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. |
| 1940 | "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. |
| 1941 | "deadlineDate": "A String", # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required. |
| 1942 | "holidayId": "A String", # Unique identifier for the holiday. Required. |
| 1943 | "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. |
| 1944 | }, |
| 1945 | ], |
| 1946 | "cutoffTime": { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST. |
| 1947 | "minute": 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required. |
| 1948 | "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. |
| 1949 | "hour": 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required. |
| 1950 | }, |
| 1951 | "minHandlingTimeInDays": 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. |
| 1952 | }, |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1953 | }, |
| 1954 | ], |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1955 | }</pre> |
| 1956 | </div> |
| 1957 | |
| 1958 | </body></html> |