blob: e9b2273f32884a5e8ac57170841a99b15a33a38b [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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070081 <code><a href="#custombatch">custombatch(body=None, dryRun=None, x__xgafv=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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070084 <code><a href="#get">get(merchantId, accountId, x__xgafv=None)</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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070087 <code><a href="#getsupportedcarriers">getsupportedcarriers(merchantId, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070088<p class="firstline">Retrieves supported carriers and carrier services for an account.</p>
89<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070090 <code><a href="#getsupportedholidays">getsupportedholidays(merchantId, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Retrieves supported holidays for an account.</p>
92<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070093 <code><a href="#getsupportedpickupservices">getsupportedpickupservices(merchantId, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070094<p class="firstline">Retrieves supported pickup services for an account.</p>
95<p class="toc_element">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080096 <code><a href="#list">list(merchantId, pageToken=None, maxResults=None, x__xgafv=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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700102 <code><a href="#update">update(merchantId, accountId, body=None, dryRun=None, x__xgafv=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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700111 <code class="details" id="custombatch">custombatch(body=None, dryRun=None, x__xgafv=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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800121 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800123 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
124 {
125 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
126 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
127 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
128 {
129 &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`.
130 &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.
131 },
132 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800133 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800134 ],
135 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
136 {
137 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
138 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
139 &quot;storeCodeSetWithMovs&quot;: [
140 { # 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.
141 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
142 &quot;A String&quot;,
143 ],
144 &quot;value&quot;: { # The minimum order value for the given stores.
145 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
146 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
147 },
148 },
149 ],
150 },
151 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service. Acceptable values are: - &quot;`All scenarios`&quot; - &quot;`All scenarios except Shopping Actions`&quot; - &quot;`Shopping Actions`&quot;
152 &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`.
153 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
154 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
155 },
156 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
157 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
158 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
159 &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.
160 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
161 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
162 },
163 &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.
164 {
165 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800166 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800167 &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.
168 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
169 &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.
170 &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.
171 &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.
172 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
173 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
174 },
175 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
176 },
177 ],
178 &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.
179 &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.
180 &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.
181 &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.
182 &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.
183 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
184 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
185 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
186 },
187 },
188 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
189 {
190 &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.
191 &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;&lt;= $500&quot;, and &quot;&gt; $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.
192 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800193 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800194 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800195 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800196 ],
197 &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.
198 &quot;A String&quot;,
199 ],
200 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
201 {
202 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
203 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
204 },
205 ],
206 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
207 &quot;A String&quot;,
208 ],
209 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
210 {
211 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
212 &quot;A String&quot;,
213 ],
214 },
215 ],
216 },
217 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
218 {
219 &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.
220 { # 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.
221 &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.
222 &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.
223 &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.
224 &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.
225 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
226 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
227 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
228 },
229 },
230 ],
231 },
232 ],
233 &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.
234 &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;&lt;= $500&quot;, and &quot;&gt; $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.
235 {
236 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
237 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
238 },
239 ],
240 &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.
241 &quot;A String&quot;,
242 ],
243 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
244 {
245 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
246 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
247 },
248 ],
249 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
250 &quot;A String&quot;,
251 ],
252 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
253 {
254 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
255 &quot;A String&quot;,
256 ],
257 },
258 ],
259 },
260 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
261 },
262 ],
263 &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.
264 &quot;A String&quot;,
265 ],
266 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
267 &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.
268 &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;&lt;= $500&quot;, and &quot;&gt; $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.
269 {
270 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
271 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
272 },
273 ],
274 &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.
275 &quot;A String&quot;,
276 ],
277 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
278 {
279 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
280 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
281 },
282 ],
283 &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;&lt;= 50 items&quot;, and &quot;&gt; 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;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
287 {
288 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
289 &quot;A String&quot;,
290 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800291 },
292 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800293 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700294 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
295 {
296 &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.
297 { # 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700298 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800299 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800300 &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.
301 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800302 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
303 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
304 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
305 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700306 },
307 ],
308 },
309 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800310 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800311 &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;&lt;= $500&quot;, and &quot;&gt; $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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800312 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800313 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
314 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800315 },
316 ],
317 &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.
318 &quot;A String&quot;,
319 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800320 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800321 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800322 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
323 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800324 },
325 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800326 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
327 &quot;A String&quot;,
328 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700329 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
330 {
331 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
332 &quot;A String&quot;,
333 ],
334 },
335 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700336 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800337 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700338 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800339 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800340 },
341 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800342 &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.
343 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
344 &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.
345 &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`.
346 &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.
347 &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;]`.
348 &quot;A String&quot;,
349 ],
350 &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.
351 &quot;A String&quot;,
352 ],
353 &quot;rows&quot;: [
354 {
355 &quot;values&quot;: [
356 {
357 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
358 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
359 },
360 ],
361 },
362 ],
363 },
364 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
365 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800366 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800367 ],
368 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800369 &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`.
370 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
371 {
372 &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.
373 &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.
374 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
375 &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.
376 &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.
377 },
378 ],
379 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
380 &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.
381 &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.
382 &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.
383 },
384 &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.
385 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
386 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
387 &quot;A String&quot;,
388 ],
389 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800390 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800391 },
392 ],
393 &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.
394 },
395 &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
396 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account for which to get/update account shipping settings.
397 &quot;method&quot;: &quot;A String&quot;, # The method of the batch entry. Acceptable values are: - &quot;`get`&quot; - &quot;`update`&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700398 },
399 ],
400 }
401
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700402 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700403 x__xgafv: string, V1 error format.
404 Allowed values
405 1 - v1 error format
406 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700407
408Returns:
409 An object of the form:
410
411 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800412 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsCustomBatchResponse&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700413 &quot;entries&quot;: [ # The result of the execution of the batch requests.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700414 { # A batch entry encoding a single non-batch shipping settings response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700415 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700416 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800417 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800418 &quot;errors&quot;: [ # A list of errors.
419 { # An error returned by the API.
420 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
421 &quot;reason&quot;: &quot;A String&quot;, # The error code.
422 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
423 },
424 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700425 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800426 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#shippingsettingsCustomBatchResponseEntry`&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700427 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800428 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
429 {
430 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
431 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
432 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
433 {
434 &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`.
435 &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.
436 },
437 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800438 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800439 ],
440 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
441 {
442 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
443 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
444 &quot;storeCodeSetWithMovs&quot;: [
445 { # 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.
446 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
447 &quot;A String&quot;,
448 ],
449 &quot;value&quot;: { # The minimum order value for the given stores.
450 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
451 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
452 },
453 },
454 ],
455 },
456 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service. Acceptable values are: - &quot;`All scenarios`&quot; - &quot;`All scenarios except Shopping Actions`&quot; - &quot;`Shopping Actions`&quot;
457 &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`.
458 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
459 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
460 },
461 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
462 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
463 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
464 &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.
465 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
466 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
467 },
468 &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.
469 {
470 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800471 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800472 &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.
473 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
474 &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.
475 &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.
476 &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.
477 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
478 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
479 },
480 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
481 },
482 ],
483 &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.
484 &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.
485 &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.
486 &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.
487 &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.
488 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
489 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
490 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
491 },
492 },
493 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
494 {
495 &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.
496 &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;&lt;= $500&quot;, and &quot;&gt; $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.
497 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800498 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800499 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800500 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800501 ],
502 &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.
503 &quot;A String&quot;,
504 ],
505 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
506 {
507 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
508 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
509 },
510 ],
511 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
512 &quot;A String&quot;,
513 ],
514 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
515 {
516 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
517 &quot;A String&quot;,
518 ],
519 },
520 ],
521 },
522 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
523 {
524 &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.
525 { # 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.
526 &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.
527 &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.
528 &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.
529 &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.
530 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
531 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
532 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
533 },
534 },
535 ],
536 },
537 ],
538 &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.
539 &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;&lt;= $500&quot;, and &quot;&gt; $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.
540 {
541 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
542 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
543 },
544 ],
545 &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.
546 &quot;A String&quot;,
547 ],
548 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
549 {
550 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
551 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
552 },
553 ],
554 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
555 &quot;A String&quot;,
556 ],
557 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
558 {
559 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
560 &quot;A String&quot;,
561 ],
562 },
563 ],
564 },
565 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
566 },
567 ],
568 &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.
569 &quot;A String&quot;,
570 ],
571 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
572 &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.
573 &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;&lt;= $500&quot;, and &quot;&gt; $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.
574 {
575 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
576 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
577 },
578 ],
579 &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.
580 &quot;A String&quot;,
581 ],
582 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
583 {
584 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
585 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
586 },
587 ],
588 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
589 &quot;A String&quot;,
590 ],
591 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
592 {
593 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
594 &quot;A String&quot;,
595 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800596 },
597 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800598 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700599 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
600 {
601 &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.
602 { # 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700603 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800604 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800605 &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.
606 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800607 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
608 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
609 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
610 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700611 },
612 ],
613 },
614 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800615 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800616 &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;&lt;= $500&quot;, and &quot;&gt; $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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800617 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800618 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
619 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800620 },
621 ],
622 &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.
623 &quot;A String&quot;,
624 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800625 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800626 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800627 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
628 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800629 },
630 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800631 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
632 &quot;A String&quot;,
633 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700634 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
635 {
636 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
637 &quot;A String&quot;,
638 ],
639 },
640 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700641 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800642 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700643 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800644 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800645 },
646 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800647 &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.
648 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
649 &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.
650 &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`.
651 &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.
652 &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;]`.
653 &quot;A String&quot;,
654 ],
655 &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.
656 &quot;A String&quot;,
657 ],
658 &quot;rows&quot;: [
659 {
660 &quot;values&quot;: [
661 {
662 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
663 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
664 },
665 ],
666 },
667 ],
668 },
669 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
670 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800671 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800672 ],
673 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800674 &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`.
675 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
676 {
677 &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.
678 &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.
679 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
680 &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.
681 &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.
682 },
683 ],
684 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
685 &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.
686 &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.
687 &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.
688 },
689 &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.
690 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
691 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
692 &quot;A String&quot;,
693 ],
694 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800695 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800696 },
697 ],
698 &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.
699 },
700 &quot;batchId&quot;: 42, # The ID of the request entry to which this entry responds.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700701 },
702 ],
703 }</pre>
704</div>
705
706<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700707 <code class="details" id="get">get(merchantId, accountId, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700708 <pre>Retrieves the shipping settings of the account.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700709
710Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700711 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 -0700712 accountId: string, The ID of the account for which to get/update shipping settings. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700713 x__xgafv: string, V1 error format.
714 Allowed values
715 1 - v1 error format
716 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700717
718Returns:
719 An object of the form:
720
Bu Sun Kim65020912020-05-20 12:08:20 -0700721 { # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800722 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
723 {
724 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
725 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
726 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
727 {
728 &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`.
729 &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.
730 },
731 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800732 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800733 ],
734 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
735 {
736 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
737 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
738 &quot;storeCodeSetWithMovs&quot;: [
739 { # 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.
740 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
741 &quot;A String&quot;,
742 ],
743 &quot;value&quot;: { # The minimum order value for the given stores.
744 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
745 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
746 },
747 },
748 ],
749 },
750 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service. Acceptable values are: - &quot;`All scenarios`&quot; - &quot;`All scenarios except Shopping Actions`&quot; - &quot;`Shopping Actions`&quot;
751 &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`.
752 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
753 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
754 },
755 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
756 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
757 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
758 &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.
759 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
760 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
761 },
762 &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.
763 {
764 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800765 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800766 &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.
767 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
768 &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.
769 &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.
770 &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.
771 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
772 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
773 },
774 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
775 },
776 ],
777 &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.
778 &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.
779 &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.
780 &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.
781 &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.
782 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
783 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
784 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
785 },
786 },
787 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
788 {
789 &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.
790 &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;&lt;= $500&quot;, and &quot;&gt; $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.
791 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800792 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800793 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800794 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800795 ],
796 &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.
797 &quot;A String&quot;,
798 ],
799 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
800 {
801 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
802 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
803 },
804 ],
805 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
806 &quot;A String&quot;,
807 ],
808 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
809 {
810 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
811 &quot;A String&quot;,
812 ],
813 },
814 ],
815 },
816 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
817 {
818 &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.
819 { # 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.
820 &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.
821 &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.
822 &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.
823 &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.
824 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
825 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
826 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
827 },
828 },
829 ],
830 },
831 ],
832 &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.
833 &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;&lt;= $500&quot;, and &quot;&gt; $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.
834 {
835 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
836 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
837 },
838 ],
839 &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.
840 &quot;A String&quot;,
841 ],
842 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
843 {
844 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
845 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
846 },
847 ],
848 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
849 &quot;A String&quot;,
850 ],
851 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
852 {
853 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
854 &quot;A String&quot;,
855 ],
856 },
857 ],
858 },
859 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
860 },
861 ],
862 &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.
863 &quot;A String&quot;,
864 ],
865 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
866 &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.
867 &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;&lt;= $500&quot;, and &quot;&gt; $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.
868 {
869 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
870 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
871 },
872 ],
873 &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.
874 &quot;A String&quot;,
875 ],
876 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
877 {
878 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
879 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
880 },
881 ],
882 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
883 &quot;A String&quot;,
884 ],
885 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
886 {
887 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
888 &quot;A String&quot;,
889 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800890 },
891 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800892 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700893 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
894 {
895 &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.
896 { # 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700897 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800898 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800899 &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.
900 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800901 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
902 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
903 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
904 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700905 },
906 ],
907 },
908 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800909 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800910 &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;&lt;= $500&quot;, and &quot;&gt; $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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800911 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800912 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
913 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800914 },
915 ],
916 &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.
917 &quot;A String&quot;,
918 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800919 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800920 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800921 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
922 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800923 },
924 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800925 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
926 &quot;A String&quot;,
927 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700928 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
929 {
930 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
931 &quot;A String&quot;,
932 ],
933 },
934 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700935 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800936 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700937 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800938 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800939 },
940 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800941 &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.
942 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
943 &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.
944 &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`.
945 &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.
946 &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;]`.
947 &quot;A String&quot;,
948 ],
949 &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.
950 &quot;A String&quot;,
951 ],
952 &quot;rows&quot;: [
953 {
954 &quot;values&quot;: [
955 {
956 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
957 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
958 },
959 ],
960 },
961 ],
962 },
963 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
964 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800965 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800966 ],
967 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800968 &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`.
969 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
970 {
971 &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.
972 &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.
973 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
974 &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.
975 &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.
976 },
977 ],
978 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
979 &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.
980 &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.
981 &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.
982 },
983 &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.
984 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
985 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
986 &quot;A String&quot;,
987 ],
988 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800989 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800990 },
991 ],
992 &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.
993 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700994</div>
995
996<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700997 <code class="details" id="getsupportedcarriers">getsupportedcarriers(merchantId, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700998 <pre>Retrieves supported carriers and carrier services for an account.
999
1000Args:
1001 merchantId: string, The ID of the account for which to retrieve the supported carriers. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001002 x__xgafv: string, V1 error format.
1003 Allowed values
1004 1 - v1 error format
1005 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001006
1007Returns:
1008 An object of the form:
1009
1010 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001011 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsGetSupportedCarriersResponse&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001012 &quot;carriers&quot;: [ # A list of supported carriers. May be empty.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001013 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001014 &quot;services&quot;: [ # A list of supported services (e.g., `&quot;ground&quot;`) for that carrier. Contains at least one service.
1015 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001016 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001017 &quot;name&quot;: &quot;A String&quot;, # The name of the carrier (e.g., `&quot;UPS&quot;`). Always present.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001018 &quot;country&quot;: &quot;A String&quot;, # The CLDR country code of the carrier (e.g., &quot;US&quot;). Always present.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001019 },
1020 ],
1021 }</pre>
1022</div>
1023
1024<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001025 <code class="details" id="getsupportedholidays">getsupportedholidays(merchantId, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001026 <pre>Retrieves supported holidays for an account.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001027
1028Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001029 merchantId: string, The ID of the account for which to retrieve the supported holidays. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001030 x__xgafv: string, V1 error format.
1031 Allowed values
1032 1 - v1 error format
1033 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001034
1035Returns:
1036 An object of the form:
1037
1038 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001039 &quot;holidays&quot;: [ # A list of holidays applicable for delivery guarantees. May be empty.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001040 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001041 &quot;type&quot;: &quot;A String&quot;, # The holiday type. Always present. Acceptable values are: - &quot;`Christmas`&quot; - &quot;`Easter`&quot; - &quot;`Father&#x27;s Day`&quot; - &quot;`Halloween`&quot; - &quot;`Independence Day (USA)`&quot; - &quot;`Mother&#x27;s Day`&quot; - &quot;`Thanksgiving`&quot; - &quot;`Valentine&#x27;s Day`&quot;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001042 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001043 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the holiday to be used when configuring holiday cutoffs. Always present.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001044 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001045 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001046 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001047 },
1048 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001049 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsGetSupportedHolidaysResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001050 }</pre>
1051</div>
1052
1053<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001054 <code class="details" id="getsupportedpickupservices">getsupportedpickupservices(merchantId, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -07001055 <pre>Retrieves supported pickup services for an account.
1056
1057Args:
1058 merchantId: string, The ID of the account for which to retrieve the supported pickup services. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001059 x__xgafv: string, V1 error format.
1060 Allowed values
1061 1 - v1 error format
1062 2 - v2 error format
Dan O'Mearadd494642020-05-01 07:42:23 -07001063
1064Returns:
1065 An object of the form:
1066
1067 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001068 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsGetSupportedPickupServicesResponse&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001069 &quot;pickupServices&quot;: [ # A list of supported pickup services. May be empty.
Dan O'Mearadd494642020-05-01 07:42:23 -07001070 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001071 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the carrier (e.g., `&quot;UPS&quot;`). Always present.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001072 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Always present.
Bu Sun Kim65020912020-05-20 12:08:20 -07001073 &quot;country&quot;: &quot;A String&quot;, # The CLDR country code of the carrier (e.g., &quot;US&quot;). Always present.
Dan O'Mearadd494642020-05-01 07:42:23 -07001074 },
1075 ],
1076 }</pre>
1077</div>
1078
1079<div class="method">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001080 <code class="details" id="list">list(merchantId, pageToken=None, maxResults=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001081 <pre>Lists the shipping settings of the sub-accounts in your Merchant Center account.
1082
1083Args:
1084 merchantId: string, The ID of the managing account. This must be a multi-client account. (required)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001085 pageToken: string, The token returned by the previous request.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001086 maxResults: integer, The maximum number of shipping settings to return in the response, used for paging.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001087 x__xgafv: string, V1 error format.
1088 Allowed values
1089 1 - v1 error format
1090 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001091
1092Returns:
1093 An object of the form:
1094
1095 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001096 &quot;resources&quot;: [
1097 { # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001098 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
1099 {
1100 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
1101 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
1102 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
1103 {
1104 &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`.
1105 &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.
1106 },
1107 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001108 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001109 ],
1110 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
1111 {
1112 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
1113 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
1114 &quot;storeCodeSetWithMovs&quot;: [
1115 { # 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.
1116 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
1117 &quot;A String&quot;,
1118 ],
1119 &quot;value&quot;: { # The minimum order value for the given stores.
1120 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1121 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1122 },
1123 },
1124 ],
1125 },
1126 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service. Acceptable values are: - &quot;`All scenarios`&quot; - &quot;`All scenarios except Shopping Actions`&quot; - &quot;`Shopping Actions`&quot;
1127 &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`.
1128 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
1129 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
1130 },
1131 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
1132 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
1133 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
1134 &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.
1135 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1136 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1137 },
1138 &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.
1139 {
1140 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001141 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001142 &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.
1143 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
1144 &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.
1145 &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.
1146 &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.
1147 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1148 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1149 },
1150 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
1151 },
1152 ],
1153 &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.
1154 &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.
1155 &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.
1156 &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.
1157 &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.
1158 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1159 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1160 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1161 },
1162 },
1163 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
1164 {
1165 &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.
1166 &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;&lt;= $500&quot;, and &quot;&gt; $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.
1167 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001168 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001169 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001170 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001171 ],
1172 &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.
1173 &quot;A String&quot;,
1174 ],
1175 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
1176 {
1177 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1178 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1179 },
1180 ],
1181 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1182 &quot;A String&quot;,
1183 ],
1184 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1185 {
1186 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1187 &quot;A String&quot;,
1188 ],
1189 },
1190 ],
1191 },
1192 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1193 {
1194 &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.
1195 { # 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.
1196 &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.
1197 &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.
1198 &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.
1199 &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.
1200 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1201 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1202 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1203 },
1204 },
1205 ],
1206 },
1207 ],
1208 &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.
1209 &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;&lt;= $500&quot;, and &quot;&gt; $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.
1210 {
1211 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1212 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1213 },
1214 ],
1215 &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.
1216 &quot;A String&quot;,
1217 ],
1218 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
1219 {
1220 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1221 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1222 },
1223 ],
1224 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1225 &quot;A String&quot;,
1226 ],
1227 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1228 {
1229 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1230 &quot;A String&quot;,
1231 ],
1232 },
1233 ],
1234 },
1235 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1236 },
1237 ],
1238 &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.
1239 &quot;A String&quot;,
1240 ],
1241 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
1242 &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.
1243 &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;&lt;= $500&quot;, and &quot;&gt; $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.
1244 {
1245 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1246 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1247 },
1248 ],
1249 &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.
1250 &quot;A String&quot;,
1251 ],
1252 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
1253 {
1254 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1255 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1256 },
1257 ],
1258 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1259 &quot;A String&quot;,
1260 ],
1261 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1262 {
1263 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1264 &quot;A String&quot;,
1265 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001266 },
1267 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001268 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001269 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1270 {
1271 &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.
1272 { # 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001273 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001274 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001275 &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.
1276 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001277 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1278 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1279 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1280 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001281 },
1282 ],
1283 },
1284 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001285 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001286 &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;&lt;= $500&quot;, and &quot;&gt; $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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001287 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001288 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1289 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001290 },
1291 ],
1292 &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.
1293 &quot;A String&quot;,
1294 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001295 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001296 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001297 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1298 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001299 },
1300 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001301 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1302 &quot;A String&quot;,
1303 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001304 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1305 {
1306 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1307 &quot;A String&quot;,
1308 ],
1309 },
1310 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001311 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001312 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001313 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001314 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001315 },
1316 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001317 &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.
1318 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
1319 &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.
1320 &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`.
1321 &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.
1322 &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;]`.
1323 &quot;A String&quot;,
1324 ],
1325 &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.
1326 &quot;A String&quot;,
1327 ],
1328 &quot;rows&quot;: [
1329 {
1330 &quot;values&quot;: [
1331 {
1332 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
1333 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
1334 },
1335 ],
1336 },
1337 ],
1338 },
1339 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
1340 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001341 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001342 ],
1343 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001344 &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`.
1345 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
1346 {
1347 &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.
1348 &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.
1349 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
1350 &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.
1351 &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.
1352 },
1353 ],
1354 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
1355 &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.
1356 &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.
1357 &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.
1358 },
1359 &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.
1360 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
1361 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1362 &quot;A String&quot;,
1363 ],
1364 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001365 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001366 },
1367 ],
1368 &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.
1369 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001370 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001371 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsListResponse&quot;.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001372 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of shipping settings.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001373 }</pre>
1374</div>
1375
1376<div class="method">
1377 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1378 <pre>Retrieves the next page of results.
1379
1380Args:
1381 previous_request: The request for the previous page. (required)
1382 previous_response: The response from the request for the previous page. (required)
1383
1384Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001385 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001386 page. Returns None if there are no more items in the collection.
1387 </pre>
1388</div>
1389
1390<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001391 <code class="details" id="update">update(merchantId, accountId, body=None, dryRun=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001392 <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 -07001393
1394Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001395 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 -07001396 accountId: string, The ID of the account for which to get/update shipping settings. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001397 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001398 The object takes the form of:
1399
Bu Sun Kim65020912020-05-20 12:08:20 -07001400{ # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001401 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
1402 {
1403 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
1404 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
1405 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
1406 {
1407 &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`.
1408 &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.
1409 },
1410 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001411 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001412 ],
1413 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
1414 {
1415 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
1416 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
1417 &quot;storeCodeSetWithMovs&quot;: [
1418 { # 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.
1419 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
1420 &quot;A String&quot;,
1421 ],
1422 &quot;value&quot;: { # The minimum order value for the given stores.
1423 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1424 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1425 },
1426 },
1427 ],
1428 },
1429 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service. Acceptable values are: - &quot;`All scenarios`&quot; - &quot;`All scenarios except Shopping Actions`&quot; - &quot;`Shopping Actions`&quot;
1430 &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`.
1431 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
1432 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
1433 },
1434 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
1435 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
1436 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
1437 &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.
1438 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1439 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1440 },
1441 &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.
1442 {
1443 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001444 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001445 &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.
1446 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
1447 &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.
1448 &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.
1449 &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.
1450 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1451 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1452 },
1453 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
1454 },
1455 ],
1456 &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.
1457 &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.
1458 &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.
1459 &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.
1460 &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.
1461 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1462 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1463 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1464 },
1465 },
1466 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
1467 {
1468 &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.
1469 &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;&lt;= $500&quot;, and &quot;&gt; $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.
1470 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001471 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001472 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001473 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001474 ],
1475 &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.
1476 &quot;A String&quot;,
1477 ],
1478 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
1479 {
1480 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1481 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1482 },
1483 ],
1484 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1485 &quot;A String&quot;,
1486 ],
1487 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1488 {
1489 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1490 &quot;A String&quot;,
1491 ],
1492 },
1493 ],
1494 },
1495 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1496 {
1497 &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.
1498 { # 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.
1499 &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.
1500 &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.
1501 &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.
1502 &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.
1503 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1504 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1505 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1506 },
1507 },
1508 ],
1509 },
1510 ],
1511 &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.
1512 &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;&lt;= $500&quot;, and &quot;&gt; $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.
1513 {
1514 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1515 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1516 },
1517 ],
1518 &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.
1519 &quot;A String&quot;,
1520 ],
1521 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
1522 {
1523 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1524 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1525 },
1526 ],
1527 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1528 &quot;A String&quot;,
1529 ],
1530 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1531 {
1532 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1533 &quot;A String&quot;,
1534 ],
1535 },
1536 ],
1537 },
1538 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1539 },
1540 ],
1541 &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.
1542 &quot;A String&quot;,
1543 ],
1544 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
1545 &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.
1546 &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;&lt;= $500&quot;, and &quot;&gt; $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.
1547 {
1548 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1549 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1550 },
1551 ],
1552 &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.
1553 &quot;A String&quot;,
1554 ],
1555 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
1556 {
1557 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1558 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1559 },
1560 ],
1561 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1562 &quot;A String&quot;,
1563 ],
1564 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1565 {
1566 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1567 &quot;A String&quot;,
1568 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001569 },
1570 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001571 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001572 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1573 {
1574 &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.
1575 { # 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001576 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001577 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001578 &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.
1579 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001580 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1581 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1582 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1583 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001584 },
1585 ],
1586 },
1587 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001588 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001589 &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;&lt;= $500&quot;, and &quot;&gt; $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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001590 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001591 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1592 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001593 },
1594 ],
1595 &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.
1596 &quot;A String&quot;,
1597 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001598 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001599 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001600 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1601 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001602 },
1603 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001604 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1605 &quot;A String&quot;,
1606 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001607 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1608 {
1609 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1610 &quot;A String&quot;,
1611 ],
1612 },
1613 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001614 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001615 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001616 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001617 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001618 },
1619 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001620 &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.
1621 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
1622 &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.
1623 &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`.
1624 &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.
1625 &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;]`.
1626 &quot;A String&quot;,
1627 ],
1628 &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.
1629 &quot;A String&quot;,
1630 ],
1631 &quot;rows&quot;: [
1632 {
1633 &quot;values&quot;: [
1634 {
1635 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
1636 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
1637 },
1638 ],
1639 },
1640 ],
1641 },
1642 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
1643 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001644 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001645 ],
1646 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001647 &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`.
1648 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
1649 {
1650 &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.
1651 &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.
1652 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
1653 &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.
1654 &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.
1655 },
1656 ],
1657 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
1658 &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.
1659 &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.
1660 &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.
1661 },
1662 &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.
1663 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
1664 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1665 &quot;A String&quot;,
1666 ],
1667 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001668 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001669 },
1670 ],
1671 &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.
1672 }
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001673
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001674 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001675 x__xgafv: string, V1 error format.
1676 Allowed values
1677 1 - v1 error format
1678 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001679
1680Returns:
1681 An object of the form:
1682
Bu Sun Kim65020912020-05-20 12:08:20 -07001683 { # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001684 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
1685 {
1686 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
1687 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
1688 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
1689 {
1690 &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`.
1691 &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.
1692 },
1693 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001694 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001695 ],
1696 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
1697 {
1698 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
1699 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
1700 &quot;storeCodeSetWithMovs&quot;: [
1701 { # 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.
1702 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
1703 &quot;A String&quot;,
1704 ],
1705 &quot;value&quot;: { # The minimum order value for the given stores.
1706 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1707 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1708 },
1709 },
1710 ],
1711 },
1712 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service. Acceptable values are: - &quot;`All scenarios`&quot; - &quot;`All scenarios except Shopping Actions`&quot; - &quot;`Shopping Actions`&quot;
1713 &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`.
1714 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
1715 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
1716 },
1717 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
1718 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
1719 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
1720 &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.
1721 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1722 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1723 },
1724 &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.
1725 {
1726 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001727 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001728 &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.
1729 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
1730 &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.
1731 &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.
1732 &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.
1733 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1734 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1735 },
1736 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
1737 },
1738 ],
1739 &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.
1740 &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.
1741 &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.
1742 &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.
1743 &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.
1744 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
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;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
1750 {
1751 &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.
1752 &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;&lt;= $500&quot;, and &quot;&gt; $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.
1753 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001754 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001755 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001756 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001757 ],
1758 &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.
1759 &quot;A String&quot;,
1760 ],
1761 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
1762 {
1763 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1764 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1765 },
1766 ],
1767 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1768 &quot;A String&quot;,
1769 ],
1770 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1771 {
1772 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1773 &quot;A String&quot;,
1774 ],
1775 },
1776 ],
1777 },
1778 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1779 {
1780 &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.
1781 { # 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.
1782 &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.
1783 &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.
1784 &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.
1785 &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.
1786 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1787 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1788 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1789 },
1790 },
1791 ],
1792 },
1793 ],
1794 &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.
1795 &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;&lt;= $500&quot;, and &quot;&gt; $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.
1796 {
1797 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1798 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1799 },
1800 ],
1801 &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.
1802 &quot;A String&quot;,
1803 ],
1804 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
1805 {
1806 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1807 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1808 },
1809 ],
1810 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1811 &quot;A String&quot;,
1812 ],
1813 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1814 {
1815 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1816 &quot;A String&quot;,
1817 ],
1818 },
1819 ],
1820 },
1821 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1822 },
1823 ],
1824 &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.
1825 &quot;A String&quot;,
1826 ],
1827 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
1828 &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.
1829 &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;&lt;= $500&quot;, and &quot;&gt; $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.
1830 {
1831 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1832 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1833 },
1834 ],
1835 &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.
1836 &quot;A String&quot;,
1837 ],
1838 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
1839 {
1840 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1841 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1842 },
1843 ],
1844 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1845 &quot;A String&quot;,
1846 ],
1847 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1848 {
1849 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1850 &quot;A String&quot;,
1851 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001852 },
1853 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001854 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001855 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1856 {
1857 &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.
1858 { # 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001859 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001860 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001861 &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.
1862 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001863 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1864 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1865 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1866 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001867 },
1868 ],
1869 },
1870 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001871 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001872 &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;&lt;= $500&quot;, and &quot;&gt; $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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001873 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001874 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1875 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001876 },
1877 ],
1878 &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.
1879 &quot;A String&quot;,
1880 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001881 &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;&lt;= 50kg&quot;, and &quot;&gt; 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001882 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001883 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1884 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001885 },
1886 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001887 &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;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1888 &quot;A String&quot;,
1889 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001890 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1891 {
1892 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1893 &quot;A String&quot;,
1894 ],
1895 },
1896 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001897 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001898 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001899 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001900 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001901 },
1902 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001903 &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.
1904 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
1905 &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.
1906 &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`.
1907 &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.
1908 &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;]`.
1909 &quot;A String&quot;,
1910 ],
1911 &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.
1912 &quot;A String&quot;,
1913 ],
1914 &quot;rows&quot;: [
1915 {
1916 &quot;values&quot;: [
1917 {
1918 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
1919 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
1920 },
1921 ],
1922 },
1923 ],
1924 },
1925 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
1926 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001927 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001928 ],
1929 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001930 &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`.
1931 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
1932 {
1933 &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.
1934 &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.
1935 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
1936 &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.
1937 &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.
1938 },
1939 ],
1940 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
1941 &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.
1942 &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.
1943 &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.
1944 },
1945 &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.
1946 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
1947 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1948 &quot;A String&quot;,
1949 ],
1950 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001951 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001952 },
1953 ],
1954 &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.
1955 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001956</div>
1957
1958</body></html>