blob: f6adb4606a04c1da2db2b88a4b5fb4670ff0da83 [file] [log] [blame]
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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 Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#custombatch">custombatch(body=None, dryRun=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070082<p class="firstline">Retrieves and updates the shipping settings of multiple accounts in a single request.</p>
83<p class="toc_element">
84 <code><a href="#get">get(merchantId, accountId)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Retrieves the shipping settings of the account.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070086<p class="toc_element">
87 <code><a href="#getsupportedcarriers">getsupportedcarriers(merchantId)</a></code></p>
88<p class="firstline">Retrieves supported carriers and carrier services for an account.</p>
89<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090 <code><a href="#getsupportedholidays">getsupportedholidays(merchantId)</a></code></p>
91<p class="firstline">Retrieves supported holidays for an account.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#getsupportedpickupservices">getsupportedpickupservices(merchantId)</a></code></p>
94<p class="firstline">Retrieves supported pickup services for an account.</p>
95<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070096 <code><a href="#list">list(merchantId, maxResults=None, pageToken=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Lists the shipping settings of the sub-accounts in your Merchant Center account.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070098<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">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#update">update(merchantId, accountId, body=None, dryRun=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700103<p class="firstline">Updates the shipping settings of the account. Any fields that are not provided are deleted from the resource.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700104<h3>Method Details</h3>
105<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108</div>
109
110<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code class="details" id="custombatch">custombatch(body=None, dryRun=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700112 <pre>Retrieves and updates the shipping settings of multiple accounts in a single request.
113
114Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700116 The object takes the form of:
117
118{
Bu Sun Kim65020912020-05-20 12:08:20 -0700119 &quot;entries&quot;: [ # The request entries to be processed in the batch.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400120 { # A batch entry encoding a single non-batch shippingsettings request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700121 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account for which to get/update account shipping settings.
122 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
123 &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
124 &quot;method&quot;: &quot;A String&quot;, # The method of the batch entry.
Dan O'Mearadd494642020-05-01 07:42:23 -0700125 #
126 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700127 # - &quot;`get`&quot;
128 # - &quot;`update`&quot;
129 &quot;shippingSettings&quot;: { # The merchant account&#x27;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`.
130 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
131 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700132 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700133 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
134 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
135 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
136 {
137 &quot;postalCodeRangeBegin&quot;: &quot;A String&quot;, # A postal code or a pattern of the form `prefix*` denoting the inclusive lower bound of the range defining the area. Examples values: `&quot;94108&quot;`, `&quot;9410*&quot;`, `&quot;9*&quot;`. Required.
138 &quot;postalCodeRangeEnd&quot;: &quot;A String&quot;, # 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`.
139 },
140 ],
141 },
142 ],
143 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
144 {
145 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
146 &quot;currency&quot;: &quot;A String&quot;, # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
147 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
148 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
149 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
150 &quot;hour&quot;: 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
151 &quot;minute&quot;: 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
152 &quot;timezone&quot;: &quot;A String&quot;, # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. &quot;Europe/Zurich&quot;. Required.
153 },
154 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
155 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
156 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700157 ],
158 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700159 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700160 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 &quot;deadlineDate&quot;: &quot;A String&quot;, # Date of the order deadline, in ISO 8601 format. E.g. &quot;2016-11-29&quot; for 29th November 2016. Required.
162 &quot;deadlineHour&quot;: 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.
163 &quot;deadlineTimezone&quot;: &quot;A String&quot;, # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. &quot;Europe/Zurich&quot;. Required.
164 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
165 &quot;visibleFromDate&quot;: &quot;A String&quot;, # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. &quot;2016-10-31&quot; for 31st October 2016. Required.
166 },
167 ],
168 &quot;maxHandlingTimeInDays&quot;: 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`.
169 &quot;maxTransitTimeInDays&quot;: 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`.
170 &quot;minHandlingTimeInDays&quot;: 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
171 &quot;minTransitTimeInDays&quot;: 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.
172 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
173 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
174 &quot;A String&quot;,
175 ],
176 },
177 &quot;transitTimeTable&quot;: { # 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.
178 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service.
179 &quot;A String&quot;,
180 ],
181 &quot;rows&quot;: [
182 {
183 &quot;values&quot;: [
184 {
185 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
186 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
187 },
188 ],
189 },
190 ],
191 &quot;transitTimeLabels&quot;: [ # A list of transit time labels. The last value can be `&quot;all other labels&quot;`. Example: `[&quot;food&quot;, &quot;electronics&quot;, &quot;all other labels&quot;]`.
192 &quot;A String&quot;,
193 ],
194 },
195 },
196 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service.
197 #
198 # Acceptable values are:
199 # - &quot;`All scenarios`&quot;
200 # - &quot;`All scenarios except Shopping Actions`&quot;
201 # - &quot;`Shopping Actions`&quot;
202 &quot;minimumOrderValue&quot;: { # 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.
203 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
204 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
205 },
206 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
207 &quot;storeCodeSetWithMovs&quot;: [
208 { # 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 &#x27;MOV for all other stores&#x27;. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
209 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
210 &quot;A String&quot;,
211 ],
212 &quot;value&quot;: { # The minimum order value for the given stores.
213 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
214 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
215 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700216 },
217 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700218 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
220 &quot;pickupService&quot;: { # 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`.
221 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
222 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
223 },
224 &quot;rateGroups&quot;: [ # Shipping rate group definitions. Only the last one is allowed to have an empty `applicableShippingLabels`, which means &quot;everything else&quot;. The other `applicableShippingLabels` must not overlap.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700225 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700226 &quot;applicableShippingLabels&quot;: [ # 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.
227 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700228 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700230 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700231 &quot;carrierName&quot;: &quot;A String&quot;, # Carrier service, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
232 &quot;carrierService&quot;: &quot;A String&quot;, # Carrier service, such as `&quot;ground&quot;` or `&quot;2 days&quot;`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
233 &quot;flatAdjustment&quot;: { # Additive shipping rate modifier. Can be negative. For example `{ &quot;value&quot;: &quot;1&quot;, &quot;currency&quot; : &quot;USD&quot; }` adds $1 to the rate, `{ &quot;value&quot;: &quot;-3&quot;, &quot;currency&quot; : &quot;USD&quot; }` removes $3 from the rate. Optional.
234 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
235 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700236 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
238 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
239 &quot;percentageAdjustment&quot;: &quot;A String&quot;, # Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example `&quot;5.4&quot;` increases the rate by 5.4%, `&quot;-3&quot;` decreases the rate by 3%. Optional.
240 },
241 ],
242 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
243 &quot;columnHeaders&quot;: { # 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&#x27;s columns. Optional: if not set then the table has only one dimension.
244 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700245 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700246 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
247 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700248 ],
249 },
250 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
252 &quot;A String&quot;,
253 ],
254 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
255 &quot;A String&quot;,
256 ],
257 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700258 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700259 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
260 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700261 },
262 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700263 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700264 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700265 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
Dan O'Mearadd494642020-05-01 07:42:23 -0700266 #
267 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700268 # - &quot;`kg`&quot;
269 # - &quot;`lb`&quot;
270 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700271 },
272 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700273 },
274 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
275 &quot;rowHeaders&quot;: { # 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&#x27;s rows. Required.
276 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700277 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700278 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
279 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700280 ],
281 },
282 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700283 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
284 &quot;A String&quot;,
285 ],
286 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
287 &quot;A String&quot;,
288 ],
289 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
290 {
291 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
292 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
293 },
294 ],
295 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
296 {
297 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
298 #
299 # Acceptable values are:
300 # - &quot;`kg`&quot;
301 # - &quot;`lb`&quot;
302 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
303 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700304 ],
305 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700307 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700308 &quot;cells&quot;: [ # 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.
309 { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `noShipping`, `flatRate`, `pricePercentage`, `carrierRateName`, `subtableName` must be set.
310 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
311 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
312 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
313 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700314 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
316 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
317 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700318 },
319 ],
320 },
321 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700322 },
323 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
324 &quot;singleValue&quot;: { # The single value of a rate group or the value of a rate group table&#x27;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.
325 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
326 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
327 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
328 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
329 },
330 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
331 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
332 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
333 },
334 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
335 {
336 &quot;columnHeaders&quot;: { # 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&#x27;s columns. Optional: if not set then the table has only one dimension.
337 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
338 {
339 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
340 &quot;A String&quot;,
341 ],
342 },
343 ],
344 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
345 &quot;A String&quot;,
346 ],
347 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
348 &quot;A String&quot;,
349 ],
350 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
351 {
352 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
353 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
354 },
355 ],
356 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
357 {
358 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
359 #
360 # Acceptable values are:
361 # - &quot;`kg`&quot;
362 # - &quot;`lb`&quot;
363 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
364 },
365 ],
366 },
367 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
368 &quot;rowHeaders&quot;: { # 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&#x27;s rows. Required.
369 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
370 {
371 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
372 &quot;A String&quot;,
373 ],
374 },
375 ],
376 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
377 &quot;A String&quot;,
378 ],
379 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
380 &quot;A String&quot;,
381 ],
382 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
383 {
384 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
385 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
386 },
387 ],
388 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
389 {
390 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
391 #
392 # Acceptable values are:
393 # - &quot;`kg`&quot;
394 # - &quot;`lb`&quot;
395 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
396 },
397 ],
398 },
399 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700400 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700401 &quot;cells&quot;: [ # 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.
402 { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `noShipping`, `flatRate`, `pricePercentage`, `carrierRateName`, `subtableName` must be set.
403 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
404 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
405 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
406 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
407 },
408 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
409 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
410 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
411 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700412 ],
413 },
414 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700415 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700416 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700417 },
418 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700419 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to.
Dan O'Mearadd494642020-05-01 07:42:23 -0700420 #
421 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700422 # - &quot;`delivery`&quot;
423 # - &quot;`pickup`&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700424 },
425 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700426 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700427 },
428 ],
429 }
430
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700431 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).
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700432
433Returns:
434 An object of the form:
435
436 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700437 &quot;entries&quot;: [ # The result of the execution of the batch requests.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700438 { # A batch entry encoding a single non-batch shipping settings response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700439 &quot;batchId&quot;: 42, # The ID of the request entry to which this entry responds.
440 &quot;errors&quot;: { # A list of errors returned by a failed batch entry. # A list of errors defined if, and only if, the request failed.
441 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
442 &quot;errors&quot;: [ # A list of errors.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700443 { # An error returned by the API.
Bu Sun Kim65020912020-05-20 12:08:20 -0700444 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
445 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
446 &quot;reason&quot;: &quot;A String&quot;, # The error code.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700447 },
448 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700449 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700450 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700451 &quot;kind&quot;: &quot;content#shippingsettingsCustomBatchResponseEntry&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#shippingsettingsCustomBatchResponseEntry`&quot;
452 &quot;shippingSettings&quot;: { # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role. # The retrieved or updated account shipping settings.
453 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
454 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700455 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700456 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
457 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
458 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
459 {
460 &quot;postalCodeRangeBegin&quot;: &quot;A String&quot;, # A postal code or a pattern of the form `prefix*` denoting the inclusive lower bound of the range defining the area. Examples values: `&quot;94108&quot;`, `&quot;9410*&quot;`, `&quot;9*&quot;`. Required.
461 &quot;postalCodeRangeEnd&quot;: &quot;A String&quot;, # 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`.
462 },
463 ],
464 },
465 ],
466 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
467 {
468 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
469 &quot;currency&quot;: &quot;A String&quot;, # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
470 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
471 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
472 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
473 &quot;hour&quot;: 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
474 &quot;minute&quot;: 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
475 &quot;timezone&quot;: &quot;A String&quot;, # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. &quot;Europe/Zurich&quot;. Required.
476 },
477 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
478 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
479 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700480 ],
481 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700482 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700483 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700484 &quot;deadlineDate&quot;: &quot;A String&quot;, # Date of the order deadline, in ISO 8601 format. E.g. &quot;2016-11-29&quot; for 29th November 2016. Required.
485 &quot;deadlineHour&quot;: 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.
486 &quot;deadlineTimezone&quot;: &quot;A String&quot;, # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. &quot;Europe/Zurich&quot;. Required.
487 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
488 &quot;visibleFromDate&quot;: &quot;A String&quot;, # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. &quot;2016-10-31&quot; for 31st October 2016. Required.
489 },
490 ],
491 &quot;maxHandlingTimeInDays&quot;: 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`.
492 &quot;maxTransitTimeInDays&quot;: 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`.
493 &quot;minHandlingTimeInDays&quot;: 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
494 &quot;minTransitTimeInDays&quot;: 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.
495 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
496 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
497 &quot;A String&quot;,
498 ],
499 },
500 &quot;transitTimeTable&quot;: { # 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.
501 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service.
502 &quot;A String&quot;,
503 ],
504 &quot;rows&quot;: [
505 {
506 &quot;values&quot;: [
507 {
508 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
509 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
510 },
511 ],
512 },
513 ],
514 &quot;transitTimeLabels&quot;: [ # A list of transit time labels. The last value can be `&quot;all other labels&quot;`. Example: `[&quot;food&quot;, &quot;electronics&quot;, &quot;all other labels&quot;]`.
515 &quot;A String&quot;,
516 ],
517 },
518 },
519 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service.
520 #
521 # Acceptable values are:
522 # - &quot;`All scenarios`&quot;
523 # - &quot;`All scenarios except Shopping Actions`&quot;
524 # - &quot;`Shopping Actions`&quot;
525 &quot;minimumOrderValue&quot;: { # 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.
526 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
527 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
528 },
529 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
530 &quot;storeCodeSetWithMovs&quot;: [
531 { # 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 &#x27;MOV for all other stores&#x27;. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
532 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
533 &quot;A String&quot;,
534 ],
535 &quot;value&quot;: { # The minimum order value for the given stores.
536 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
537 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
538 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700539 },
540 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700541 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700542 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
543 &quot;pickupService&quot;: { # 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`.
544 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
545 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
546 },
547 &quot;rateGroups&quot;: [ # Shipping rate group definitions. Only the last one is allowed to have an empty `applicableShippingLabels`, which means &quot;everything else&quot;. The other `applicableShippingLabels` must not overlap.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700548 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700549 &quot;applicableShippingLabels&quot;: [ # 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.
550 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700551 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700552 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700553 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700554 &quot;carrierName&quot;: &quot;A String&quot;, # Carrier service, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
555 &quot;carrierService&quot;: &quot;A String&quot;, # Carrier service, such as `&quot;ground&quot;` or `&quot;2 days&quot;`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
556 &quot;flatAdjustment&quot;: { # Additive shipping rate modifier. Can be negative. For example `{ &quot;value&quot;: &quot;1&quot;, &quot;currency&quot; : &quot;USD&quot; }` adds $1 to the rate, `{ &quot;value&quot;: &quot;-3&quot;, &quot;currency&quot; : &quot;USD&quot; }` removes $3 from the rate. Optional.
557 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
558 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700559 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700560 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
561 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
562 &quot;percentageAdjustment&quot;: &quot;A String&quot;, # Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example `&quot;5.4&quot;` increases the rate by 5.4%, `&quot;-3&quot;` decreases the rate by 3%. Optional.
563 },
564 ],
565 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
566 &quot;columnHeaders&quot;: { # 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&#x27;s columns. Optional: if not set then the table has only one dimension.
567 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700568 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700569 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
570 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700571 ],
572 },
573 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700574 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
575 &quot;A String&quot;,
576 ],
577 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
578 &quot;A String&quot;,
579 ],
580 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700581 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700582 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
583 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700584 },
585 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700586 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700587 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700588 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
Dan O'Mearadd494642020-05-01 07:42:23 -0700589 #
590 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700591 # - &quot;`kg`&quot;
592 # - &quot;`lb`&quot;
593 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700594 },
595 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700596 },
597 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
598 &quot;rowHeaders&quot;: { # 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&#x27;s rows. Required.
599 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700600 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700601 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
602 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700603 ],
604 },
605 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700606 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
607 &quot;A String&quot;,
608 ],
609 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
610 &quot;A String&quot;,
611 ],
612 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
613 {
614 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
615 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
616 },
617 ],
618 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
619 {
620 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
621 #
622 # Acceptable values are:
623 # - &quot;`kg`&quot;
624 # - &quot;`lb`&quot;
625 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
626 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700627 ],
628 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700629 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700630 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700631 &quot;cells&quot;: [ # 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.
632 { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `noShipping`, `flatRate`, `pricePercentage`, `carrierRateName`, `subtableName` must be set.
633 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
634 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
635 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
636 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700637 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700638 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
639 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
640 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700641 },
642 ],
643 },
644 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700645 },
646 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
647 &quot;singleValue&quot;: { # The single value of a rate group or the value of a rate group table&#x27;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.
648 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
649 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
650 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
651 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
652 },
653 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
654 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
655 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
656 },
657 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
658 {
659 &quot;columnHeaders&quot;: { # 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&#x27;s columns. Optional: if not set then the table has only one dimension.
660 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
661 {
662 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
663 &quot;A String&quot;,
664 ],
665 },
666 ],
667 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
668 &quot;A String&quot;,
669 ],
670 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
671 &quot;A String&quot;,
672 ],
673 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
674 {
675 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
676 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
677 },
678 ],
679 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
680 {
681 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
682 #
683 # Acceptable values are:
684 # - &quot;`kg`&quot;
685 # - &quot;`lb`&quot;
686 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
687 },
688 ],
689 },
690 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
691 &quot;rowHeaders&quot;: { # 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&#x27;s rows. Required.
692 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
693 {
694 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
695 &quot;A String&quot;,
696 ],
697 },
698 ],
699 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
700 &quot;A String&quot;,
701 ],
702 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
703 &quot;A String&quot;,
704 ],
705 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
706 {
707 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
708 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
709 },
710 ],
711 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
712 {
713 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
714 #
715 # Acceptable values are:
716 # - &quot;`kg`&quot;
717 # - &quot;`lb`&quot;
718 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
719 },
720 ],
721 },
722 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700723 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700724 &quot;cells&quot;: [ # 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.
725 { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `noShipping`, `flatRate`, `pricePercentage`, `carrierRateName`, `subtableName` must be set.
726 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
727 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
728 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
729 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
730 },
731 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
732 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
733 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
734 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700735 ],
736 },
737 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700738 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700739 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700740 },
741 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700742 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to.
Dan O'Mearadd494642020-05-01 07:42:23 -0700743 #
744 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700745 # - &quot;`delivery`&quot;
746 # - &quot;`pickup`&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700747 },
748 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700749 },
750 },
751 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700752 &quot;kind&quot;: &quot;content#shippingsettingsCustomBatchResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsCustomBatchResponse&quot;.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700753 }</pre>
754</div>
755
756<div class="method">
757 <code class="details" id="get">get(merchantId, accountId)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700758 <pre>Retrieves the shipping settings of the account.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700759
760Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700761 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 Parrott7d5badb2016-08-16 12:44:29 -0700762 accountId: string, The ID of the account for which to get/update shipping settings. (required)
763
764Returns:
765 An object of the form:
766
Bu Sun Kim65020912020-05-20 12:08:20 -0700767 { # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
768 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
769 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700770 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700771 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
772 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
773 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
774 {
775 &quot;postalCodeRangeBegin&quot;: &quot;A String&quot;, # A postal code or a pattern of the form `prefix*` denoting the inclusive lower bound of the range defining the area. Examples values: `&quot;94108&quot;`, `&quot;9410*&quot;`, `&quot;9*&quot;`. Required.
776 &quot;postalCodeRangeEnd&quot;: &quot;A String&quot;, # 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`.
777 },
778 ],
779 },
780 ],
781 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
782 {
783 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
784 &quot;currency&quot;: &quot;A String&quot;, # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
785 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
786 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
787 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
788 &quot;hour&quot;: 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
789 &quot;minute&quot;: 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
790 &quot;timezone&quot;: &quot;A String&quot;, # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. &quot;Europe/Zurich&quot;. Required.
791 },
792 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
793 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
794 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700795 ],
796 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700797 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700798 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700799 &quot;deadlineDate&quot;: &quot;A String&quot;, # Date of the order deadline, in ISO 8601 format. E.g. &quot;2016-11-29&quot; for 29th November 2016. Required.
800 &quot;deadlineHour&quot;: 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.
801 &quot;deadlineTimezone&quot;: &quot;A String&quot;, # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. &quot;Europe/Zurich&quot;. Required.
802 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
803 &quot;visibleFromDate&quot;: &quot;A String&quot;, # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. &quot;2016-10-31&quot; for 31st October 2016. Required.
804 },
805 ],
806 &quot;maxHandlingTimeInDays&quot;: 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`.
807 &quot;maxTransitTimeInDays&quot;: 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`.
808 &quot;minHandlingTimeInDays&quot;: 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
809 &quot;minTransitTimeInDays&quot;: 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.
810 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
811 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
812 &quot;A String&quot;,
813 ],
814 },
815 &quot;transitTimeTable&quot;: { # 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.
816 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service.
817 &quot;A String&quot;,
818 ],
819 &quot;rows&quot;: [
820 {
821 &quot;values&quot;: [
822 {
823 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
824 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
825 },
826 ],
827 },
828 ],
829 &quot;transitTimeLabels&quot;: [ # A list of transit time labels. The last value can be `&quot;all other labels&quot;`. Example: `[&quot;food&quot;, &quot;electronics&quot;, &quot;all other labels&quot;]`.
830 &quot;A String&quot;,
831 ],
832 },
833 },
834 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service.
835 #
836 # Acceptable values are:
837 # - &quot;`All scenarios`&quot;
838 # - &quot;`All scenarios except Shopping Actions`&quot;
839 # - &quot;`Shopping Actions`&quot;
840 &quot;minimumOrderValue&quot;: { # 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.
841 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
842 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
843 },
844 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
845 &quot;storeCodeSetWithMovs&quot;: [
846 { # 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 &#x27;MOV for all other stores&#x27;. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
847 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
848 &quot;A String&quot;,
849 ],
850 &quot;value&quot;: { # The minimum order value for the given stores.
851 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
852 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
853 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700854 },
855 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700856 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700857 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
858 &quot;pickupService&quot;: { # 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`.
859 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
860 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
861 },
862 &quot;rateGroups&quot;: [ # Shipping rate group definitions. Only the last one is allowed to have an empty `applicableShippingLabels`, which means &quot;everything else&quot;. The other `applicableShippingLabels` must not overlap.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700863 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700864 &quot;applicableShippingLabels&quot;: [ # 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.
865 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700866 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700867 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700868 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700869 &quot;carrierName&quot;: &quot;A String&quot;, # Carrier service, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
870 &quot;carrierService&quot;: &quot;A String&quot;, # Carrier service, such as `&quot;ground&quot;` or `&quot;2 days&quot;`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
871 &quot;flatAdjustment&quot;: { # Additive shipping rate modifier. Can be negative. For example `{ &quot;value&quot;: &quot;1&quot;, &quot;currency&quot; : &quot;USD&quot; }` adds $1 to the rate, `{ &quot;value&quot;: &quot;-3&quot;, &quot;currency&quot; : &quot;USD&quot; }` removes $3 from the rate. Optional.
872 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
873 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700874 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700875 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
876 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
877 &quot;percentageAdjustment&quot;: &quot;A String&quot;, # Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example `&quot;5.4&quot;` increases the rate by 5.4%, `&quot;-3&quot;` decreases the rate by 3%. Optional.
878 },
879 ],
880 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
881 &quot;columnHeaders&quot;: { # 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&#x27;s columns. Optional: if not set then the table has only one dimension.
882 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700883 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700884 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
885 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700886 ],
887 },
888 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700889 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
890 &quot;A String&quot;,
891 ],
892 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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 &quot;A String&quot;,
894 ],
895 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700896 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700897 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
898 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700899 },
900 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700901 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700902 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700903 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
Dan O'Mearadd494642020-05-01 07:42:23 -0700904 #
905 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700906 # - &quot;`kg`&quot;
907 # - &quot;`lb`&quot;
908 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700909 },
910 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700911 },
912 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
913 &quot;rowHeaders&quot;: { # 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&#x27;s rows. Required.
914 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700915 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700916 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
917 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700918 ],
919 },
920 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700921 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
922 &quot;A String&quot;,
923 ],
924 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
925 &quot;A String&quot;,
926 ],
927 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
928 {
929 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
930 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
931 },
932 ],
933 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
934 {
935 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
936 #
937 # Acceptable values are:
938 # - &quot;`kg`&quot;
939 # - &quot;`lb`&quot;
940 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
941 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700942 ],
943 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700944 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700945 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700946 &quot;cells&quot;: [ # 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.
947 { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `noShipping`, `flatRate`, `pricePercentage`, `carrierRateName`, `subtableName` must be set.
948 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
949 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
950 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
951 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700952 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700953 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
954 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
955 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700956 },
957 ],
958 },
959 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700960 },
961 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
962 &quot;singleValue&quot;: { # The single value of a rate group or the value of a rate group table&#x27;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.
963 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
964 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
965 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
966 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
967 },
968 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
969 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
970 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
971 },
972 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
973 {
974 &quot;columnHeaders&quot;: { # 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&#x27;s columns. Optional: if not set then the table has only one dimension.
975 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
976 {
977 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
978 &quot;A String&quot;,
979 ],
980 },
981 ],
982 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
983 &quot;A String&quot;,
984 ],
985 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
986 &quot;A String&quot;,
987 ],
988 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
989 {
990 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
991 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
992 },
993 ],
994 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
995 {
996 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
997 #
998 # Acceptable values are:
999 # - &quot;`kg`&quot;
1000 # - &quot;`lb`&quot;
1001 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1002 },
1003 ],
1004 },
1005 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1006 &quot;rowHeaders&quot;: { # 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&#x27;s rows. Required.
1007 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1008 {
1009 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1010 &quot;A String&quot;,
1011 ],
1012 },
1013 ],
1014 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1015 &quot;A String&quot;,
1016 ],
1017 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
1018 &quot;A String&quot;,
1019 ],
1020 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
1021 {
1022 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1023 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1024 },
1025 ],
1026 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
1027 {
1028 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1029 #
1030 # Acceptable values are:
1031 # - &quot;`kg`&quot;
1032 # - &quot;`lb`&quot;
1033 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1034 },
1035 ],
1036 },
1037 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001038 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001039 &quot;cells&quot;: [ # 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.
1040 { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `noShipping`, `flatRate`, `pricePercentage`, `carrierRateName`, `subtableName` must be set.
1041 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
1042 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1043 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1044 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1045 },
1046 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
1047 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
1048 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
1049 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001050 ],
1051 },
1052 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001053 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001054 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001055 },
1056 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001057 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to.
Dan O'Mearadd494642020-05-01 07:42:23 -07001058 #
1059 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001060 # - &quot;`delivery`&quot;
1061 # - &quot;`pickup`&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001062 },
1063 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001064 }</pre>
1065</div>
1066
1067<div class="method">
1068 <code class="details" id="getsupportedcarriers">getsupportedcarriers(merchantId)</code>
1069 <pre>Retrieves supported carriers and carrier services for an account.
1070
1071Args:
1072 merchantId: string, The ID of the account for which to retrieve the supported carriers. (required)
1073
1074Returns:
1075 An object of the form:
1076
1077 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001078 &quot;carriers&quot;: [ # A list of supported carriers. May be empty.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001079 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001080 &quot;country&quot;: &quot;A String&quot;, # The CLDR country code of the carrier (e.g., &quot;US&quot;). Always present.
1081 &quot;name&quot;: &quot;A String&quot;, # The name of the carrier (e.g., `&quot;UPS&quot;`). Always present.
1082 &quot;services&quot;: [ # A list of supported services (e.g., `&quot;ground&quot;`) for that carrier. Contains at least one service.
1083 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001084 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001085 },
1086 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001087 &quot;kind&quot;: &quot;content#shippingsettingsGetSupportedCarriersResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsGetSupportedCarriersResponse&quot;.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001088 }</pre>
1089</div>
1090
1091<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001092 <code class="details" id="getsupportedholidays">getsupportedholidays(merchantId)</code>
1093 <pre>Retrieves supported holidays for an account.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001094
1095Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001096 merchantId: string, The ID of the account for which to retrieve the supported holidays. (required)
1097
1098Returns:
1099 An object of the form:
1100
1101 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001102 &quot;holidays&quot;: [ # A list of holidays applicable for delivery guarantees. May be empty.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001103 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001104 &quot;countryCode&quot;: &quot;A String&quot;, # The CLDR territory code of the country in which the holiday is available. E.g. &quot;US&quot;, &quot;DE&quot;, &quot;GB&quot;. A holiday cutoff can only be configured in a shipping settings service with matching delivery country. Always present.
1105 &quot;date&quot;: &quot;A String&quot;, # Date of the holiday, in ISO 8601 format. E.g. &quot;2016-12-25&quot; for Christmas 2016. Always present.
1106 &quot;deliveryGuaranteeDate&quot;: &quot;A String&quot;, # Date on which the order has to arrive at the customer&#x27;s, in ISO 8601 format. E.g. &quot;2016-12-24&quot; for 24th December 2016. Always present.
1107 &quot;deliveryGuaranteeHour&quot;: &quot;A String&quot;, # Hour of the day in the delivery location&#x27;s timezone on the guaranteed delivery date by which the order has to arrive at the customer&#x27;s. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Always present.
1108 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the holiday to be used when configuring holiday cutoffs. Always present.
1109 &quot;type&quot;: &quot;A String&quot;, # The holiday type. Always present.
Dan O'Mearadd494642020-05-01 07:42:23 -07001110 #
1111 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001112 # - &quot;`Christmas`&quot;
1113 # - &quot;`Easter`&quot;
1114 # - &quot;`Father&#x27;s Day`&quot;
1115 # - &quot;`Halloween`&quot;
1116 # - &quot;`Independence Day (USA)`&quot;
1117 # - &quot;`Mother&#x27;s Day`&quot;
1118 # - &quot;`Thanksgiving`&quot;
1119 # - &quot;`Valentine&#x27;s Day`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001120 },
1121 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001122 &quot;kind&quot;: &quot;content#shippingsettingsGetSupportedHolidaysResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsGetSupportedHolidaysResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001123 }</pre>
1124</div>
1125
1126<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001127 <code class="details" id="getsupportedpickupservices">getsupportedpickupservices(merchantId)</code>
1128 <pre>Retrieves supported pickup services for an account.
1129
1130Args:
1131 merchantId: string, The ID of the account for which to retrieve the supported pickup services. (required)
1132
1133Returns:
1134 An object of the form:
1135
1136 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001137 &quot;kind&quot;: &quot;content#shippingsettingsGetSupportedPickupServicesResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsGetSupportedPickupServicesResponse&quot;.
1138 &quot;pickupServices&quot;: [ # A list of supported pickup services. May be empty.
Dan O'Mearadd494642020-05-01 07:42:23 -07001139 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001140 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the carrier (e.g., `&quot;UPS&quot;`). Always present.
1141 &quot;country&quot;: &quot;A String&quot;, # The CLDR country code of the carrier (e.g., &quot;US&quot;). Always present.
1142 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Always present.
Dan O'Mearadd494642020-05-01 07:42:23 -07001143 },
1144 ],
1145 }</pre>
1146</div>
1147
1148<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001149 <code class="details" id="list">list(merchantId, maxResults=None, pageToken=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001150 <pre>Lists the shipping settings of the sub-accounts in your Merchant Center account.
1151
1152Args:
1153 merchantId: string, The ID of the managing account. This must be a multi-client account. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001154 maxResults: integer, The maximum number of shipping settings to return in the response, used for paging.
Bu Sun Kim65020912020-05-20 12:08:20 -07001155 pageToken: string, The token returned by the previous request.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001156
1157Returns:
1158 An object of the form:
1159
1160 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001161 &quot;kind&quot;: &quot;content#shippingsettingsListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsListResponse&quot;.
1162 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of shipping settings.
1163 &quot;resources&quot;: [
1164 { # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
1165 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
1166 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001167 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001168 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
1169 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
1170 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
1171 {
1172 &quot;postalCodeRangeBegin&quot;: &quot;A String&quot;, # A postal code or a pattern of the form `prefix*` denoting the inclusive lower bound of the range defining the area. Examples values: `&quot;94108&quot;`, `&quot;9410*&quot;`, `&quot;9*&quot;`. Required.
1173 &quot;postalCodeRangeEnd&quot;: &quot;A String&quot;, # 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`.
1174 },
1175 ],
1176 },
1177 ],
1178 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
1179 {
1180 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
1181 &quot;currency&quot;: &quot;A String&quot;, # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
1182 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
1183 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
1184 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
1185 &quot;hour&quot;: 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
1186 &quot;minute&quot;: 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
1187 &quot;timezone&quot;: &quot;A String&quot;, # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. &quot;Europe/Zurich&quot;. Required.
1188 },
1189 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
1190 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1191 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001192 ],
1193 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001194 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001195 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001196 &quot;deadlineDate&quot;: &quot;A String&quot;, # Date of the order deadline, in ISO 8601 format. E.g. &quot;2016-11-29&quot; for 29th November 2016. Required.
1197 &quot;deadlineHour&quot;: 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.
1198 &quot;deadlineTimezone&quot;: &quot;A String&quot;, # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. &quot;Europe/Zurich&quot;. Required.
1199 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
1200 &quot;visibleFromDate&quot;: &quot;A String&quot;, # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. &quot;2016-10-31&quot; for 31st October 2016. Required.
1201 },
1202 ],
1203 &quot;maxHandlingTimeInDays&quot;: 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`.
1204 &quot;maxTransitTimeInDays&quot;: 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`.
1205 &quot;minHandlingTimeInDays&quot;: 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
1206 &quot;minTransitTimeInDays&quot;: 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.
1207 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
1208 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1209 &quot;A String&quot;,
1210 ],
1211 },
1212 &quot;transitTimeTable&quot;: { # 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.
1213 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service.
1214 &quot;A String&quot;,
1215 ],
1216 &quot;rows&quot;: [
1217 {
1218 &quot;values&quot;: [
1219 {
1220 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
1221 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
1222 },
1223 ],
1224 },
1225 ],
1226 &quot;transitTimeLabels&quot;: [ # A list of transit time labels. The last value can be `&quot;all other labels&quot;`. Example: `[&quot;food&quot;, &quot;electronics&quot;, &quot;all other labels&quot;]`.
1227 &quot;A String&quot;,
1228 ],
1229 },
1230 },
1231 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service.
1232 #
1233 # Acceptable values are:
1234 # - &quot;`All scenarios`&quot;
1235 # - &quot;`All scenarios except Shopping Actions`&quot;
1236 # - &quot;`Shopping Actions`&quot;
1237 &quot;minimumOrderValue&quot;: { # 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.
1238 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1239 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1240 },
1241 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
1242 &quot;storeCodeSetWithMovs&quot;: [
1243 { # 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 &#x27;MOV for all other stores&#x27;. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
1244 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
1245 &quot;A String&quot;,
1246 ],
1247 &quot;value&quot;: { # The minimum order value for the given stores.
1248 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1249 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1250 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001251 },
1252 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001253 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001254 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
1255 &quot;pickupService&quot;: { # 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`.
1256 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
1257 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
1258 },
1259 &quot;rateGroups&quot;: [ # Shipping rate group definitions. Only the last one is allowed to have an empty `applicableShippingLabels`, which means &quot;everything else&quot;. The other `applicableShippingLabels` must not overlap.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001260 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001261 &quot;applicableShippingLabels&quot;: [ # 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.
1262 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001263 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001264 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001265 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001266 &quot;carrierName&quot;: &quot;A String&quot;, # Carrier service, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
1267 &quot;carrierService&quot;: &quot;A String&quot;, # Carrier service, such as `&quot;ground&quot;` or `&quot;2 days&quot;`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
1268 &quot;flatAdjustment&quot;: { # Additive shipping rate modifier. Can be negative. For example `{ &quot;value&quot;: &quot;1&quot;, &quot;currency&quot; : &quot;USD&quot; }` adds $1 to the rate, `{ &quot;value&quot;: &quot;-3&quot;, &quot;currency&quot; : &quot;USD&quot; }` removes $3 from the rate. Optional.
1269 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1270 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001271 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001272 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
1273 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
1274 &quot;percentageAdjustment&quot;: &quot;A String&quot;, # Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example `&quot;5.4&quot;` increases the rate by 5.4%, `&quot;-3&quot;` decreases the rate by 3%. Optional.
1275 },
1276 ],
1277 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
1278 &quot;columnHeaders&quot;: { # 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&#x27;s columns. Optional: if not set then the table has only one dimension.
1279 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001280 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001281 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1282 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001283 ],
1284 },
1285 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001286 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1287 &quot;A String&quot;,
1288 ],
1289 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
1290 &quot;A String&quot;,
1291 ],
1292 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001293 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001294 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1295 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001296 },
1297 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001298 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001299 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001300 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
Dan O'Mearadd494642020-05-01 07:42:23 -07001301 #
1302 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001303 # - &quot;`kg`&quot;
1304 # - &quot;`lb`&quot;
1305 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001306 },
1307 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001308 },
1309 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1310 &quot;rowHeaders&quot;: { # 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&#x27;s rows. Required.
1311 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001312 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001313 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1314 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001315 ],
1316 },
1317 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001318 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1319 &quot;A String&quot;,
1320 ],
1321 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
1322 &quot;A String&quot;,
1323 ],
1324 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
1325 {
1326 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1327 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1328 },
1329 ],
1330 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
1331 {
1332 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1333 #
1334 # Acceptable values are:
1335 # - &quot;`kg`&quot;
1336 # - &quot;`lb`&quot;
1337 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1338 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001339 ],
1340 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001341 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001342 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001343 &quot;cells&quot;: [ # 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.
1344 { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `noShipping`, `flatRate`, `pricePercentage`, `carrierRateName`, `subtableName` must be set.
1345 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
1346 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1347 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1348 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001349 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001350 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
1351 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
1352 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001353 },
1354 ],
1355 },
1356 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001357 },
1358 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
1359 &quot;singleValue&quot;: { # The single value of a rate group or the value of a rate group table&#x27;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.
1360 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
1361 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1362 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1363 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1364 },
1365 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
1366 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
1367 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
1368 },
1369 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
1370 {
1371 &quot;columnHeaders&quot;: { # 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&#x27;s columns. Optional: if not set then the table has only one dimension.
1372 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1373 {
1374 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1375 &quot;A String&quot;,
1376 ],
1377 },
1378 ],
1379 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1380 &quot;A String&quot;,
1381 ],
1382 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
1383 &quot;A String&quot;,
1384 ],
1385 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
1386 {
1387 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1388 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1389 },
1390 ],
1391 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
1392 {
1393 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1394 #
1395 # Acceptable values are:
1396 # - &quot;`kg`&quot;
1397 # - &quot;`lb`&quot;
1398 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1399 },
1400 ],
1401 },
1402 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1403 &quot;rowHeaders&quot;: { # 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&#x27;s rows. Required.
1404 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1405 {
1406 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1407 &quot;A String&quot;,
1408 ],
1409 },
1410 ],
1411 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1412 &quot;A String&quot;,
1413 ],
1414 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
1415 &quot;A String&quot;,
1416 ],
1417 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
1418 {
1419 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1420 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1421 },
1422 ],
1423 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
1424 {
1425 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1426 #
1427 # Acceptable values are:
1428 # - &quot;`kg`&quot;
1429 # - &quot;`lb`&quot;
1430 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1431 },
1432 ],
1433 },
1434 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001435 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001436 &quot;cells&quot;: [ # 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.
1437 { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `noShipping`, `flatRate`, `pricePercentage`, `carrierRateName`, `subtableName` must be set.
1438 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
1439 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1440 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1441 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1442 },
1443 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
1444 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
1445 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
1446 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001447 ],
1448 },
1449 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001450 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001451 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001452 },
1453 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001454 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to.
Dan O'Mearadd494642020-05-01 07:42:23 -07001455 #
1456 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001457 # - &quot;`delivery`&quot;
1458 # - &quot;`pickup`&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001459 },
1460 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001461 },
1462 ],
1463 }</pre>
1464</div>
1465
1466<div class="method">
1467 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1468 <pre>Retrieves the next page of results.
1469
1470Args:
1471 previous_request: The request for the previous page. (required)
1472 previous_response: The response from the request for the previous page. (required)
1473
1474Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001475 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001476 page. Returns None if there are no more items in the collection.
1477 </pre>
1478</div>
1479
1480<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001481 <code class="details" id="update">update(merchantId, accountId, body=None, dryRun=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001482 <pre>Updates the shipping settings of the account. Any fields that are not provided are deleted from the resource.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001483
1484Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001485 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 Parrott7d5badb2016-08-16 12:44:29 -07001486 accountId: string, The ID of the account for which to get/update shipping settings. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001487 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001488 The object takes the form of:
1489
Bu Sun Kim65020912020-05-20 12:08:20 -07001490{ # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
1491 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
1492 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001493 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001494 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
1495 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
1496 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
1497 {
1498 &quot;postalCodeRangeBegin&quot;: &quot;A String&quot;, # A postal code or a pattern of the form `prefix*` denoting the inclusive lower bound of the range defining the area. Examples values: `&quot;94108&quot;`, `&quot;9410*&quot;`, `&quot;9*&quot;`. Required.
1499 &quot;postalCodeRangeEnd&quot;: &quot;A String&quot;, # 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`.
1500 },
1501 ],
1502 },
1503 ],
1504 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
1505 {
1506 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
1507 &quot;currency&quot;: &quot;A String&quot;, # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
1508 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
1509 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
1510 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
1511 &quot;hour&quot;: 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
1512 &quot;minute&quot;: 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
1513 &quot;timezone&quot;: &quot;A String&quot;, # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. &quot;Europe/Zurich&quot;. Required.
1514 },
1515 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
1516 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1517 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001518 ],
1519 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001520 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001521 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001522 &quot;deadlineDate&quot;: &quot;A String&quot;, # Date of the order deadline, in ISO 8601 format. E.g. &quot;2016-11-29&quot; for 29th November 2016. Required.
1523 &quot;deadlineHour&quot;: 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.
1524 &quot;deadlineTimezone&quot;: &quot;A String&quot;, # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. &quot;Europe/Zurich&quot;. Required.
1525 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
1526 &quot;visibleFromDate&quot;: &quot;A String&quot;, # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. &quot;2016-10-31&quot; for 31st October 2016. Required.
1527 },
1528 ],
1529 &quot;maxHandlingTimeInDays&quot;: 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`.
1530 &quot;maxTransitTimeInDays&quot;: 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`.
1531 &quot;minHandlingTimeInDays&quot;: 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
1532 &quot;minTransitTimeInDays&quot;: 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.
1533 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
1534 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1535 &quot;A String&quot;,
1536 ],
1537 },
1538 &quot;transitTimeTable&quot;: { # 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.
1539 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service.
1540 &quot;A String&quot;,
1541 ],
1542 &quot;rows&quot;: [
1543 {
1544 &quot;values&quot;: [
1545 {
1546 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
1547 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
1548 },
1549 ],
1550 },
1551 ],
1552 &quot;transitTimeLabels&quot;: [ # A list of transit time labels. The last value can be `&quot;all other labels&quot;`. Example: `[&quot;food&quot;, &quot;electronics&quot;, &quot;all other labels&quot;]`.
1553 &quot;A String&quot;,
1554 ],
1555 },
1556 },
1557 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service.
1558 #
1559 # Acceptable values are:
1560 # - &quot;`All scenarios`&quot;
1561 # - &quot;`All scenarios except Shopping Actions`&quot;
1562 # - &quot;`Shopping Actions`&quot;
1563 &quot;minimumOrderValue&quot;: { # 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.
1564 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1565 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1566 },
1567 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
1568 &quot;storeCodeSetWithMovs&quot;: [
1569 { # 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 &#x27;MOV for all other stores&#x27;. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
1570 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
1571 &quot;A String&quot;,
1572 ],
1573 &quot;value&quot;: { # The minimum order value for the given stores.
1574 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1575 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1576 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001577 },
1578 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001579 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001580 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
1581 &quot;pickupService&quot;: { # 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`.
1582 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
1583 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
1584 },
1585 &quot;rateGroups&quot;: [ # Shipping rate group definitions. Only the last one is allowed to have an empty `applicableShippingLabels`, which means &quot;everything else&quot;. The other `applicableShippingLabels` must not overlap.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001586 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001587 &quot;applicableShippingLabels&quot;: [ # 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.
1588 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001589 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001590 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001591 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001592 &quot;carrierName&quot;: &quot;A String&quot;, # Carrier service, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
1593 &quot;carrierService&quot;: &quot;A String&quot;, # Carrier service, such as `&quot;ground&quot;` or `&quot;2 days&quot;`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
1594 &quot;flatAdjustment&quot;: { # Additive shipping rate modifier. Can be negative. For example `{ &quot;value&quot;: &quot;1&quot;, &quot;currency&quot; : &quot;USD&quot; }` adds $1 to the rate, `{ &quot;value&quot;: &quot;-3&quot;, &quot;currency&quot; : &quot;USD&quot; }` removes $3 from the rate. Optional.
1595 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1596 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001597 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001598 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
1599 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
1600 &quot;percentageAdjustment&quot;: &quot;A String&quot;, # Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example `&quot;5.4&quot;` increases the rate by 5.4%, `&quot;-3&quot;` decreases the rate by 3%. Optional.
1601 },
1602 ],
1603 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
1604 &quot;columnHeaders&quot;: { # 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&#x27;s columns. Optional: if not set then the table has only one dimension.
1605 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001606 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001607 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1608 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001609 ],
1610 },
1611 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001612 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1613 &quot;A String&quot;,
1614 ],
1615 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
1616 &quot;A String&quot;,
1617 ],
1618 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001619 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001620 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1621 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001622 },
1623 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001624 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001625 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001626 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
Dan O'Mearadd494642020-05-01 07:42:23 -07001627 #
1628 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001629 # - &quot;`kg`&quot;
1630 # - &quot;`lb`&quot;
1631 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001632 },
1633 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001634 },
1635 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1636 &quot;rowHeaders&quot;: { # 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&#x27;s rows. Required.
1637 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001638 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001639 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1640 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001641 ],
1642 },
1643 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001644 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1645 &quot;A String&quot;,
1646 ],
1647 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
1648 &quot;A String&quot;,
1649 ],
1650 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
1651 {
1652 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1653 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1654 },
1655 ],
1656 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
1657 {
1658 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1659 #
1660 # Acceptable values are:
1661 # - &quot;`kg`&quot;
1662 # - &quot;`lb`&quot;
1663 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1664 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001665 ],
1666 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001667 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001668 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001669 &quot;cells&quot;: [ # 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.
1670 { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `noShipping`, `flatRate`, `pricePercentage`, `carrierRateName`, `subtableName` must be set.
1671 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
1672 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1673 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1674 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001675 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001676 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
1677 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
1678 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001679 },
1680 ],
1681 },
1682 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001683 },
1684 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
1685 &quot;singleValue&quot;: { # The single value of a rate group or the value of a rate group table&#x27;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.
1686 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
1687 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1688 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1689 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1690 },
1691 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
1692 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
1693 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
1694 },
1695 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
1696 {
1697 &quot;columnHeaders&quot;: { # 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&#x27;s columns. Optional: if not set then the table has only one dimension.
1698 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1699 {
1700 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1701 &quot;A String&quot;,
1702 ],
1703 },
1704 ],
1705 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1706 &quot;A String&quot;,
1707 ],
1708 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
1709 &quot;A String&quot;,
1710 ],
1711 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
1712 {
1713 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1714 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1715 },
1716 ],
1717 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
1718 {
1719 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1720 #
1721 # Acceptable values are:
1722 # - &quot;`kg`&quot;
1723 # - &quot;`lb`&quot;
1724 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1725 },
1726 ],
1727 },
1728 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1729 &quot;rowHeaders&quot;: { # 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&#x27;s rows. Required.
1730 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1731 {
1732 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1733 &quot;A String&quot;,
1734 ],
1735 },
1736 ],
1737 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1738 &quot;A String&quot;,
1739 ],
1740 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
1741 &quot;A String&quot;,
1742 ],
1743 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
1744 {
1745 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1746 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1747 },
1748 ],
1749 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
1750 {
1751 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1752 #
1753 # Acceptable values are:
1754 # - &quot;`kg`&quot;
1755 # - &quot;`lb`&quot;
1756 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1757 },
1758 ],
1759 },
1760 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001761 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001762 &quot;cells&quot;: [ # 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.
1763 { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `noShipping`, `flatRate`, `pricePercentage`, `carrierRateName`, `subtableName` must be set.
1764 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
1765 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1766 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1767 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1768 },
1769 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
1770 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
1771 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
1772 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001773 ],
1774 },
1775 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001776 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001777 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001778 },
1779 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001780 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to.
Dan O'Mearadd494642020-05-01 07:42:23 -07001781 #
1782 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001783 # - &quot;`delivery`&quot;
1784 # - &quot;`pickup`&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001785 },
1786 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001787}
1788
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001789 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).
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001790
1791Returns:
1792 An object of the form:
1793
Bu Sun Kim65020912020-05-20 12:08:20 -07001794 { # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
1795 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses.
1796 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001797 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001798 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
1799 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
1800 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
1801 {
1802 &quot;postalCodeRangeBegin&quot;: &quot;A String&quot;, # A postal code or a pattern of the form `prefix*` denoting the inclusive lower bound of the range defining the area. Examples values: `&quot;94108&quot;`, `&quot;9410*&quot;`, `&quot;9*&quot;`. Required.
1803 &quot;postalCodeRangeEnd&quot;: &quot;A String&quot;, # 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`.
1804 },
1805 ],
1806 },
1807 ],
1808 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
1809 {
1810 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
1811 &quot;currency&quot;: &quot;A String&quot;, # The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
1812 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
1813 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
1814 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
1815 &quot;hour&quot;: 42, # Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required.
1816 &quot;minute&quot;: 42, # Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required.
1817 &quot;timezone&quot;: &quot;A String&quot;, # Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. &quot;Europe/Zurich&quot;. Required.
1818 },
1819 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
1820 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1821 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001822 ],
1823 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001824 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001825 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001826 &quot;deadlineDate&quot;: &quot;A String&quot;, # Date of the order deadline, in ISO 8601 format. E.g. &quot;2016-11-29&quot; for 29th November 2016. Required.
1827 &quot;deadlineHour&quot;: 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.
1828 &quot;deadlineTimezone&quot;: &quot;A String&quot;, # Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. &quot;Europe/Zurich&quot;. Required.
1829 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
1830 &quot;visibleFromDate&quot;: &quot;A String&quot;, # Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. &quot;2016-10-31&quot; for 31st October 2016. Required.
1831 },
1832 ],
1833 &quot;maxHandlingTimeInDays&quot;: 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`.
1834 &quot;maxTransitTimeInDays&quot;: 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`.
1835 &quot;minHandlingTimeInDays&quot;: 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
1836 &quot;minTransitTimeInDays&quot;: 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.
1837 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
1838 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1839 &quot;A String&quot;,
1840 ],
1841 },
1842 &quot;transitTimeTable&quot;: { # 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.
1843 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service.
1844 &quot;A String&quot;,
1845 ],
1846 &quot;rows&quot;: [
1847 {
1848 &quot;values&quot;: [
1849 {
1850 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
1851 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
1852 },
1853 ],
1854 },
1855 ],
1856 &quot;transitTimeLabels&quot;: [ # A list of transit time labels. The last value can be `&quot;all other labels&quot;`. Example: `[&quot;food&quot;, &quot;electronics&quot;, &quot;all other labels&quot;]`.
1857 &quot;A String&quot;,
1858 ],
1859 },
1860 },
1861 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service.
1862 #
1863 # Acceptable values are:
1864 # - &quot;`All scenarios`&quot;
1865 # - &quot;`All scenarios except Shopping Actions`&quot;
1866 # - &quot;`Shopping Actions`&quot;
1867 &quot;minimumOrderValue&quot;: { # 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.
1868 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1869 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1870 },
1871 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
1872 &quot;storeCodeSetWithMovs&quot;: [
1873 { # 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 &#x27;MOV for all other stores&#x27;. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
1874 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
1875 &quot;A String&quot;,
1876 ],
1877 &quot;value&quot;: { # The minimum order value for the given stores.
1878 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1879 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1880 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001881 },
1882 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001883 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001884 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
1885 &quot;pickupService&quot;: { # 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`.
1886 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
1887 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
1888 },
1889 &quot;rateGroups&quot;: [ # Shipping rate group definitions. Only the last one is allowed to have an empty `applicableShippingLabels`, which means &quot;everything else&quot;. The other `applicableShippingLabels` must not overlap.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001890 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001891 &quot;applicableShippingLabels&quot;: [ # 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.
1892 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001893 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001894 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001895 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001896 &quot;carrierName&quot;: &quot;A String&quot;, # Carrier service, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
1897 &quot;carrierService&quot;: &quot;A String&quot;, # Carrier service, such as `&quot;ground&quot;` or `&quot;2 days&quot;`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
1898 &quot;flatAdjustment&quot;: { # Additive shipping rate modifier. Can be negative. For example `{ &quot;value&quot;: &quot;1&quot;, &quot;currency&quot; : &quot;USD&quot; }` adds $1 to the rate, `{ &quot;value&quot;: &quot;-3&quot;, &quot;currency&quot; : &quot;USD&quot; }` removes $3 from the rate. Optional.
1899 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1900 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001901 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001902 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
1903 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
1904 &quot;percentageAdjustment&quot;: &quot;A String&quot;, # Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example `&quot;5.4&quot;` increases the rate by 5.4%, `&quot;-3&quot;` decreases the rate by 3%. Optional.
1905 },
1906 ],
1907 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
1908 &quot;columnHeaders&quot;: { # 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&#x27;s columns. Optional: if not set then the table has only one dimension.
1909 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001910 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001911 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1912 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001913 ],
1914 },
1915 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001916 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1917 &quot;A String&quot;,
1918 ],
1919 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
1920 &quot;A String&quot;,
1921 ],
1922 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001923 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001924 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1925 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001926 },
1927 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001928 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001929 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001930 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
Dan O'Mearadd494642020-05-01 07:42:23 -07001931 #
1932 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001933 # - &quot;`kg`&quot;
1934 # - &quot;`lb`&quot;
1935 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001936 },
1937 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001938 },
1939 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1940 &quot;rowHeaders&quot;: { # 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&#x27;s rows. Required.
1941 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001942 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001943 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1944 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001945 ],
1946 },
1947 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001948 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1949 &quot;A String&quot;,
1950 ],
1951 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
1952 &quot;A String&quot;,
1953 ],
1954 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
1955 {
1956 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1957 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1958 },
1959 ],
1960 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
1961 {
1962 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1963 #
1964 # Acceptable values are:
1965 # - &quot;`kg`&quot;
1966 # - &quot;`lb`&quot;
1967 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1968 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001969 ],
1970 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001971 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001972 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001973 &quot;cells&quot;: [ # 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.
1974 { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `noShipping`, `flatRate`, `pricePercentage`, `carrierRateName`, `subtableName` must be set.
1975 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
1976 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1977 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1978 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001979 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001980 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
1981 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
1982 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001983 },
1984 ],
1985 },
1986 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001987 },
1988 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
1989 &quot;singleValue&quot;: { # The single value of a rate group or the value of a rate group table&#x27;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.
1990 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
1991 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1992 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1993 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1994 },
1995 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
1996 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
1997 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
1998 },
1999 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
2000 {
2001 &quot;columnHeaders&quot;: { # 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&#x27;s columns. Optional: if not set then the table has only one dimension.
2002 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
2003 {
2004 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
2005 &quot;A String&quot;,
2006 ],
2007 },
2008 ],
2009 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
2010 &quot;A String&quot;,
2011 ],
2012 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
2013 &quot;A String&quot;,
2014 ],
2015 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
2016 {
2017 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2018 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2019 },
2020 ],
2021 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
2022 {
2023 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
2024 #
2025 # Acceptable values are:
2026 # - &quot;`kg`&quot;
2027 # - &quot;`lb`&quot;
2028 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
2029 },
2030 ],
2031 },
2032 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
2033 &quot;rowHeaders&quot;: { # 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&#x27;s rows. Required.
2034 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
2035 {
2036 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
2037 &quot;A String&quot;,
2038 ],
2039 },
2040 ],
2041 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
2042 &quot;A String&quot;,
2043 ],
2044 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. 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.
2045 &quot;A String&quot;,
2046 ],
2047 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. 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.
2048 {
2049 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2050 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2051 },
2052 ],
2053 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. 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.
2054 {
2055 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
2056 #
2057 # Acceptable values are:
2058 # - &quot;`kg`&quot;
2059 # - &quot;`lb`&quot;
2060 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
2061 },
2062 ],
2063 },
2064 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002065 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002066 &quot;cells&quot;: [ # 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.
2067 { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `noShipping`, `flatRate`, `pricePercentage`, `carrierRateName`, `subtableName` must be set.
2068 &quot;carrierRateName&quot;: &quot;A String&quot;, # 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.
2069 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
2070 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2071 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2072 },
2073 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
2074 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
2075 &quot;subtableName&quot;: &quot;A String&quot;, # 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.
2076 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002077 ],
2078 },
2079 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002080 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002081 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002082 },
2083 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002084 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to.
Dan O'Mearadd494642020-05-01 07:42:23 -07002085 #
2086 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002087 # - &quot;`delivery`&quot;
2088 # - &quot;`pickup`&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002089 },
2090 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002091 }</pre>
2092</div>
2093
2094</body></html>