blob: 468e7d52e08400c8060aa18c5d14a68117cd01bc [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 Bot0bf565c2020-12-09 08:56:03 -080096 <code><a href="#list">list(merchantId, maxResults=None, pageToken=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{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800119 &quot;entries&quot;: [ # The request entries to be processed in the batch.
120 { # A batch entry encoding a single non-batch shippingsettings request.
121 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account for which to get/update account shipping settings.
122 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
123 &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
124 &quot;method&quot;: &quot;A String&quot;, # The method of the batch entry. Acceptable values are: - &quot;`get`&quot; - &quot;`update`&quot;
125 &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`.
126 &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.
127 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
128 {
129 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
130 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
131 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
132 {
133 &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.
134 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800135 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800136 ],
137 },
138 ],
139 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
140 {
141 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
142 &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.
143 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
144 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
145 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
146 &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.
147 &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.
148 &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.
149 },
150 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
151 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
152 &quot;A String&quot;,
153 ],
154 },
155 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
156 {
157 &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.
158 &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.
159 &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.
160 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
161 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800162 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800163 ],
164 &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`.
165 &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`.
166 &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.
167 &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.
168 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
169 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
170 &quot;A String&quot;,
171 ],
172 },
173 &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.
174 &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.
175 &quot;A String&quot;,
176 ],
177 &quot;rows&quot;: [
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800178 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800179 &quot;values&quot;: [
180 {
181 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
182 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
183 },
184 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800185 },
186 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800187 &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;]`.
188 &quot;A String&quot;,
189 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800190 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800191 },
192 &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;
193 &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.
194 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
195 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
196 },
197 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
198 &quot;storeCodeSetWithMovs&quot;: [
199 { # 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.
200 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
201 &quot;A String&quot;,
202 ],
203 &quot;value&quot;: { # The minimum order value for the given stores.
204 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
205 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
206 },
207 },
208 ],
209 },
210 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
211 &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`.
212 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
213 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
214 },
215 &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.
216 {
217 &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.
218 &quot;A String&quot;,
219 ],
220 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
221 {
222 &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.
223 &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.
224 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800225 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
226 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
227 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800228 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
229 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
230 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800231 },
232 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800233 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
234 &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.
235 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
236 {
237 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
238 &quot;A String&quot;,
239 ],
240 },
241 ],
242 &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.
243 &quot;A String&quot;,
244 ],
245 &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.
246 &quot;A String&quot;,
247 ],
248 &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.
249 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800250 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
251 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
252 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800253 ],
254 &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.
255 {
256 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
257 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
258 },
259 ],
260 },
261 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
262 &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.
263 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
264 {
265 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
266 &quot;A String&quot;,
267 ],
268 },
269 ],
270 &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.
271 &quot;A String&quot;,
272 ],
273 &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.
274 &quot;A String&quot;,
275 ],
276 &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.
277 {
278 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
279 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
280 },
281 ],
282 &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.
283 {
284 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
285 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
286 },
287 ],
288 },
289 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
290 {
291 &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.
292 { # 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.
293 &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.
294 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
295 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
296 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
297 },
298 &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.
299 &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.
300 &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.
301 },
302 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800303 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800304 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800305 },
306 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
307 &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.
308 &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.
309 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
310 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
311 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
312 },
313 &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.
314 &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.
315 &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.
316 },
317 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
318 {
319 &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.
320 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700321 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800322 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
323 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700324 ],
325 },
326 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800327 &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.
328 &quot;A String&quot;,
329 ],
330 &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.
331 &quot;A String&quot;,
332 ],
333 &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.
334 {
335 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
336 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
337 },
338 ],
339 &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.
340 {
341 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
342 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
343 },
344 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800345 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800346 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
347 &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.
348 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
349 {
350 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
351 &quot;A String&quot;,
352 ],
353 },
354 ],
355 &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.
356 &quot;A String&quot;,
357 ],
358 &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.
359 &quot;A String&quot;,
360 ],
361 &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.
362 {
363 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
364 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
365 },
366 ],
367 &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.
368 {
369 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
370 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
371 },
372 ],
373 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800374 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
375 {
376 &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.
377 { # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800378 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800379 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
380 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
381 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
382 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800383 &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.
384 &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 Bot0bf565c2020-12-09 08:56:03 -0800385 &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 -0800386 },
387 ],
388 },
389 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800390 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800391 ],
392 },
393 ],
394 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
395 },
396 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700397 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800398 },
399 ],
400}
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700401
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 Botcc94ec82021-01-15 07:10:04 -0800412 &quot;entries&quot;: [ # The result of the execution of the batch requests.
413 { # A batch entry encoding a single non-batch shipping settings response.
414 &quot;batchId&quot;: 42, # The ID of the request entry to which this entry responds.
415 &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.
416 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
417 &quot;errors&quot;: [ # A list of errors.
418 { # An error returned by the API.
419 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
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 },
423 ],
424 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
425 },
426 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#shippingsettingsCustomBatchResponseEntry`&quot;
427 &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.
428 &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.
429 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
430 {
431 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
432 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
433 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
434 {
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 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800437 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800438 ],
439 },
440 ],
441 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
442 {
443 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
444 &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.
445 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
446 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
447 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
448 &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.
449 &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.
450 &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.
451 },
452 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
453 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
454 &quot;A String&quot;,
455 ],
456 },
457 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
458 {
459 &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.
460 &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.
461 &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.
462 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
463 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800464 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800465 ],
466 &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`.
467 &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`.
468 &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.
469 &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.
470 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
471 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
472 &quot;A String&quot;,
473 ],
474 },
475 &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.
476 &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.
477 &quot;A String&quot;,
478 ],
479 &quot;rows&quot;: [
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800480 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800481 &quot;values&quot;: [
482 {
483 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
484 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
485 },
486 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800487 },
488 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800489 &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;]`.
490 &quot;A String&quot;,
491 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800492 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800493 },
494 &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;
495 &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.
496 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
497 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
498 },
499 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
500 &quot;storeCodeSetWithMovs&quot;: [
501 { # 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.
502 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
503 &quot;A String&quot;,
504 ],
505 &quot;value&quot;: { # The minimum order value for the given stores.
506 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
507 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
508 },
509 },
510 ],
511 },
512 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
513 &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`.
514 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
515 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
516 },
517 &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.
518 {
519 &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.
520 &quot;A String&quot;,
521 ],
522 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
523 {
524 &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.
525 &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.
526 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800527 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
528 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
529 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800530 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
531 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
532 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800533 },
534 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800535 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
536 &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.
537 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
538 {
539 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
540 &quot;A String&quot;,
541 ],
542 },
543 ],
544 &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.
545 &quot;A String&quot;,
546 ],
547 &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.
548 &quot;A String&quot;,
549 ],
550 &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.
551 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800552 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
553 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
554 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800555 ],
556 &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.
557 {
558 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
559 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
560 },
561 ],
562 },
563 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
564 &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.
565 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
566 {
567 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
568 &quot;A String&quot;,
569 ],
570 },
571 ],
572 &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.
573 &quot;A String&quot;,
574 ],
575 &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.
576 &quot;A String&quot;,
577 ],
578 &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.
579 {
580 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
581 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
582 },
583 ],
584 &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.
585 {
586 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
587 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
588 },
589 ],
590 },
591 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
592 {
593 &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.
594 { # 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.
595 &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.
596 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
597 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
598 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
599 },
600 &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.
601 &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.
602 &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.
603 },
604 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800605 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800606 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800607 },
608 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
609 &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.
610 &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.
611 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
612 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
613 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
614 },
615 &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.
616 &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.
617 &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.
618 },
619 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
620 {
621 &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.
622 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700623 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800624 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
625 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700626 ],
627 },
628 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800629 &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.
630 &quot;A String&quot;,
631 ],
632 &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.
633 &quot;A String&quot;,
634 ],
635 &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.
636 {
637 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
638 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
639 },
640 ],
641 &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.
642 {
643 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
644 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
645 },
646 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800647 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800648 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
649 &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.
650 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
651 {
652 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
653 &quot;A String&quot;,
654 ],
655 },
656 ],
657 &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.
658 &quot;A String&quot;,
659 ],
660 &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.
661 &quot;A String&quot;,
662 ],
663 &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.
664 {
665 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
666 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
667 },
668 ],
669 &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.
670 {
671 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
672 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
673 },
674 ],
675 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800676 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
677 {
678 &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.
679 { # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800680 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800681 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
682 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
683 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
684 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800685 &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.
686 &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 Bot0bf565c2020-12-09 08:56:03 -0800687 &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 -0800688 },
689 ],
690 },
691 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800692 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800693 ],
694 },
695 ],
696 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
697 },
698 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700699 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800700 },
701 ],
702 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsCustomBatchResponse&quot;.
703}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700704</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 Botcc94ec82021-01-15 07:10:04 -0800722 &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.
723 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
724 {
725 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
726 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
727 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
728 {
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 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800731 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800732 ],
733 },
734 ],
735 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
736 {
737 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
738 &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.
739 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
740 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
741 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
742 &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.
743 &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.
744 &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.
745 },
746 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
747 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
748 &quot;A String&quot;,
749 ],
750 },
751 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
752 {
753 &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.
754 &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.
755 &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.
756 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
757 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800758 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800759 ],
760 &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`.
761 &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`.
762 &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.
763 &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.
764 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
765 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
766 &quot;A String&quot;,
767 ],
768 },
769 &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.
770 &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.
771 &quot;A String&quot;,
772 ],
773 &quot;rows&quot;: [
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800774 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800775 &quot;values&quot;: [
776 {
777 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
778 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
779 },
780 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800781 },
782 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800783 &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;]`.
784 &quot;A String&quot;,
785 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800786 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800787 },
788 &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;
789 &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.
790 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
791 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
792 },
793 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
794 &quot;storeCodeSetWithMovs&quot;: [
795 { # 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.
796 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
797 &quot;A String&quot;,
798 ],
799 &quot;value&quot;: { # The minimum order value for the given stores.
800 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
801 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
802 },
803 },
804 ],
805 },
806 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
807 &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`.
808 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
809 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
810 },
811 &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.
812 {
813 &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.
814 &quot;A String&quot;,
815 ],
816 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
817 {
818 &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.
819 &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.
820 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800821 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
822 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
823 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800824 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
825 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
826 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800827 },
828 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800829 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
830 &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.
831 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
832 {
833 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
834 &quot;A String&quot;,
835 ],
836 },
837 ],
838 &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.
839 &quot;A String&quot;,
840 ],
841 &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.
842 &quot;A String&quot;,
843 ],
844 &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.
845 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800846 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
847 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
848 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800849 ],
850 &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.
851 {
852 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
853 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
854 },
855 ],
856 },
857 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
858 &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.
859 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
860 {
861 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
862 &quot;A String&quot;,
863 ],
864 },
865 ],
866 &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.
867 &quot;A String&quot;,
868 ],
869 &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.
870 &quot;A String&quot;,
871 ],
872 &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.
873 {
874 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
875 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
876 },
877 ],
878 &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.
879 {
880 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
881 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
882 },
883 ],
884 },
885 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
886 {
887 &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.
888 { # 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.
889 &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.
890 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
891 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
892 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
893 },
894 &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.
895 &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.
896 &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.
897 },
898 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800899 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800900 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800901 },
902 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
903 &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.
904 &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.
905 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
906 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
907 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
908 },
909 &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.
910 &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.
911 &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.
912 },
913 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
914 {
915 &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.
916 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700917 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800918 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
919 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700920 ],
921 },
922 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800923 &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.
924 &quot;A String&quot;,
925 ],
926 &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.
927 &quot;A String&quot;,
928 ],
929 &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.
930 {
931 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
932 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
933 },
934 ],
935 &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.
936 {
937 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
938 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
939 },
940 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800941 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800942 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
943 &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.
944 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
945 {
946 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
947 &quot;A String&quot;,
948 ],
949 },
950 ],
951 &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.
952 &quot;A String&quot;,
953 ],
954 &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.
955 &quot;A String&quot;,
956 ],
957 &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.
958 {
959 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
960 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
961 },
962 ],
963 &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.
964 {
965 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
966 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
967 },
968 ],
969 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800970 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
971 {
972 &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.
973 { # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800974 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800975 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
976 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
977 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
978 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800979 &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.
980 &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 Bot0bf565c2020-12-09 08:56:03 -0800981 &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 -0800982 },
983 ],
984 },
985 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800986 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800987 ],
988 },
989 ],
990 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
991 },
992 ],
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 Botcc94ec82021-01-15 07:10:04 -08001011 &quot;carriers&quot;: [ # A list of supported carriers. May be empty.
1012 {
1013 &quot;country&quot;: &quot;A String&quot;, # The CLDR country code of the carrier (e.g., &quot;US&quot;). Always present.
1014 &quot;name&quot;: &quot;A String&quot;, # The name of the carrier (e.g., `&quot;UPS&quot;`). Always present.
1015 &quot;services&quot;: [ # A list of supported services (e.g., `&quot;ground&quot;`) for that carrier. Contains at least one service.
1016 &quot;A String&quot;,
1017 ],
1018 },
1019 ],
1020 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsGetSupportedCarriersResponse&quot;.
1021}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001022</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 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001039 &quot;holidays&quot;: [ # A list of holidays applicable for delivery guarantees. May be empty.
1040 {
1041 &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.
1042 &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.
1043 &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.
1044 &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.
1045 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the holiday to be used when configuring holiday cutoffs. Always present.
1046 &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;
1047 },
1048 ],
1049 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsGetSupportedHolidaysResponse&quot;.
1050}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001051</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 Botcc94ec82021-01-15 07:10:04 -08001068 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsGetSupportedPickupServicesResponse&quot;.
1069 &quot;pickupServices&quot;: [ # A list of supported pickup services. May be empty.
1070 {
1071 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the carrier (e.g., `&quot;UPS&quot;`). Always present.
1072 &quot;country&quot;: &quot;A String&quot;, # The CLDR country code of the carrier (e.g., &quot;US&quot;). Always present.
1073 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Always present.
1074 },
1075 ],
1076}</pre>
Dan O'Mearadd494642020-05-01 07:42:23 -07001077</div>
1078
1079<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001080 <code class="details" id="list">list(merchantId, maxResults=None, pageToken=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 Botb6971b02020-11-26 17:16:03 -08001085 maxResults: integer, The maximum number of shipping settings to return in the response, used for paging.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001086 pageToken: string, The token returned by the previous request.
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 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001096 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsListResponse&quot;.
1097 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of shipping settings.
1098 &quot;resources&quot;: [
1099 { # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
1100 &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.
1101 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
1102 {
1103 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
1104 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
1105 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
1106 {
1107 &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.
1108 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001109 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001110 ],
1111 },
1112 ],
1113 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
1114 {
1115 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
1116 &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.
1117 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
1118 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
1119 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
1120 &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.
1121 &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.
1122 &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.
1123 },
1124 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
1125 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1126 &quot;A String&quot;,
1127 ],
1128 },
1129 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
1130 {
1131 &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.
1132 &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.
1133 &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.
1134 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
1135 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001136 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001137 ],
1138 &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`.
1139 &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`.
1140 &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.
1141 &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.
1142 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
1143 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1144 &quot;A String&quot;,
1145 ],
1146 },
1147 &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.
1148 &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.
1149 &quot;A String&quot;,
1150 ],
1151 &quot;rows&quot;: [
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001152 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001153 &quot;values&quot;: [
1154 {
1155 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
1156 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
1157 },
1158 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001159 },
1160 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001161 &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;]`.
1162 &quot;A String&quot;,
1163 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001164 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001165 },
1166 &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;
1167 &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.
1168 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1169 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1170 },
1171 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
1172 &quot;storeCodeSetWithMovs&quot;: [
1173 { # 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.
1174 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
1175 &quot;A String&quot;,
1176 ],
1177 &quot;value&quot;: { # The minimum order value for the given stores.
1178 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1179 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1180 },
1181 },
1182 ],
1183 },
1184 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
1185 &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`.
1186 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
1187 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
1188 },
1189 &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.
1190 {
1191 &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.
1192 &quot;A String&quot;,
1193 ],
1194 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
1195 {
1196 &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.
1197 &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.
1198 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001199 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1200 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1201 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001202 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
1203 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
1204 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001205 },
1206 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001207 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
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;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1210 {
1211 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1212 &quot;A String&quot;,
1213 ],
1214 },
1215 ],
1216 &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.
1217 &quot;A String&quot;,
1218 ],
1219 &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.
1220 &quot;A String&quot;,
1221 ],
1222 &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.
1223 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001224 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1225 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1226 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001227 ],
1228 &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.
1229 {
1230 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1231 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1232 },
1233 ],
1234 },
1235 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1236 &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.
1237 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1238 {
1239 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1240 &quot;A String&quot;,
1241 ],
1242 },
1243 ],
1244 &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.
1245 &quot;A String&quot;,
1246 ],
1247 &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.
1248 &quot;A String&quot;,
1249 ],
1250 &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.
1251 {
1252 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1253 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1254 },
1255 ],
1256 &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.
1257 {
1258 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1259 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1260 },
1261 ],
1262 },
1263 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1264 {
1265 &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.
1266 { # 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.
1267 &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.
1268 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1269 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1270 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1271 },
1272 &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.
1273 &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.
1274 &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.
1275 },
1276 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001277 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001278 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001279 },
1280 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
1281 &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.
1282 &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.
1283 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1284 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1285 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1286 },
1287 &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.
1288 &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.
1289 &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.
1290 },
1291 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
1292 {
1293 &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.
1294 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001295 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001296 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1297 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001298 ],
1299 },
1300 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -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 ],
1304 &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.
1305 &quot;A String&quot;,
1306 ],
1307 &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.
1308 {
1309 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1310 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1311 },
1312 ],
1313 &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.
1314 {
1315 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1316 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1317 },
1318 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001319 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001320 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1321 &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.
1322 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1323 {
1324 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1325 &quot;A String&quot;,
1326 ],
1327 },
1328 ],
1329 &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.
1330 &quot;A String&quot;,
1331 ],
1332 &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.
1333 &quot;A String&quot;,
1334 ],
1335 &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.
1336 {
1337 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1338 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1339 },
1340 ],
1341 &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.
1342 {
1343 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1344 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1345 },
1346 ],
1347 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001348 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1349 {
1350 &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.
1351 { # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001352 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001353 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1354 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1355 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1356 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001357 &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.
1358 &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 Bot0bf565c2020-12-09 08:56:03 -08001359 &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 -08001360 },
1361 ],
1362 },
1363 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001364 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001365 ],
1366 },
1367 ],
1368 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
1369 },
1370 ],
1371 },
1372 ],
1373}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001374</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 Botcc94ec82021-01-15 07:10:04 -08001401 &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.
1402 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
1403 {
1404 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
1405 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
1406 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
1407 {
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 &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`.
1410 },
1411 ],
1412 },
1413 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001414 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
1415 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001416 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
1417 &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.
1418 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001419 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
1420 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001421 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001422 &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.
1423 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001424 },
1425 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
1426 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1427 &quot;A String&quot;,
1428 ],
1429 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001430 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
1431 {
1432 &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.
1433 &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.
1434 &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.
1435 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
1436 &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.
1437 },
1438 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001439 &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`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001440 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001441 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001442 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001443 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
1444 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1445 &quot;A String&quot;,
1446 ],
1447 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001448 &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.
1449 &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.
1450 &quot;A String&quot;,
1451 ],
1452 &quot;rows&quot;: [
1453 {
1454 &quot;values&quot;: [
1455 {
1456 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
1457 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
1458 },
1459 ],
1460 },
1461 ],
1462 &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;]`.
1463 &quot;A String&quot;,
1464 ],
1465 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001466 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001467 &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;
1468 &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.
1469 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1470 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001471 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001472 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
1473 &quot;storeCodeSetWithMovs&quot;: [
1474 { # 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.
1475 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
1476 &quot;A String&quot;,
1477 ],
1478 &quot;value&quot;: { # The minimum order value for the given stores.
1479 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1480 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1481 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001482 },
1483 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001484 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001485 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
1486 &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`.
1487 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
1488 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
1489 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001490 &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.
1491 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001492 &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.
1493 &quot;A String&quot;,
1494 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001495 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
1496 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001497 &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.
1498 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001499 &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.
1500 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1501 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1502 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001503 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001504 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001505 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001506 },
1507 ],
1508 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001509 &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.
1510 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1511 {
1512 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1513 &quot;A String&quot;,
1514 ],
1515 },
1516 ],
1517 &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.
1518 &quot;A String&quot;,
1519 ],
1520 &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.
1521 &quot;A String&quot;,
1522 ],
1523 &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.
1524 {
1525 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1526 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1527 },
1528 ],
1529 &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.
1530 {
1531 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1532 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1533 },
1534 ],
1535 },
1536 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1537 &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.
1538 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1539 {
1540 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1541 &quot;A String&quot;,
1542 ],
1543 },
1544 ],
1545 &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.
1546 &quot;A String&quot;,
1547 ],
1548 &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.
1549 &quot;A String&quot;,
1550 ],
1551 &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.
1552 {
1553 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1554 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1555 },
1556 ],
1557 &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.
1558 {
1559 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1560 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1561 },
1562 ],
1563 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001564 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1565 {
1566 &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.
1567 { # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001568 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001569 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1570 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1571 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1572 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001573 &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.
1574 &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 Bot0bf565c2020-12-09 08:56:03 -08001575 &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.
1576 },
1577 ],
1578 },
1579 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001580 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001581 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001582 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001583 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001584 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1585 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1586 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1587 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001588 &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.
1589 &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 Bot0bf565c2020-12-09 08:56:03 -08001590 &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.
1591 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001592 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
1593 {
1594 &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.
1595 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1596 {
1597 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1598 &quot;A String&quot;,
1599 ],
1600 },
1601 ],
1602 &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.
1603 &quot;A String&quot;,
1604 ],
1605 &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.
1606 &quot;A String&quot;,
1607 ],
1608 &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.
1609 {
1610 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1611 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1612 },
1613 ],
1614 &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.
1615 {
1616 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1617 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1618 },
1619 ],
1620 },
1621 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1622 &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.
1623 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1624 {
1625 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1626 &quot;A String&quot;,
1627 ],
1628 },
1629 ],
1630 &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.
1631 &quot;A String&quot;,
1632 ],
1633 &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.
1634 &quot;A String&quot;,
1635 ],
1636 &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.
1637 {
1638 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1639 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1640 },
1641 ],
1642 &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.
1643 {
1644 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1645 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1646 },
1647 ],
1648 },
1649 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1650 {
1651 &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.
1652 { # 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.
1653 &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.
1654 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1655 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1656 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1657 },
1658 &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.
1659 &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.
1660 &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.
1661 },
1662 ],
1663 },
1664 ],
1665 },
1666 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001667 },
1668 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001669 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001670 },
1671 ],
1672}
1673
1674 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).
1675 x__xgafv: string, V1 error format.
1676 Allowed values
1677 1 - v1 error format
1678 2 - v2 error format
1679
1680Returns:
1681 An object of the form:
1682
1683 { # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001684 &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.
1685 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
1686 {
1687 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
1688 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
1689 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
1690 {
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 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001693 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001694 ],
1695 },
1696 ],
1697 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
1698 {
1699 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
1700 &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.
1701 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
1702 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
1703 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
1704 &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.
1705 &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.
1706 &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.
1707 },
1708 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
1709 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1710 &quot;A String&quot;,
1711 ],
1712 },
1713 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
1714 {
1715 &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.
1716 &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.
1717 &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.
1718 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
1719 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001720 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001721 ],
1722 &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`.
1723 &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`.
1724 &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.
1725 &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.
1726 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
1727 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1728 &quot;A String&quot;,
1729 ],
1730 },
1731 &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.
1732 &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.
1733 &quot;A String&quot;,
1734 ],
1735 &quot;rows&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001736 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001737 &quot;values&quot;: [
1738 {
1739 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
1740 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
1741 },
1742 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001743 },
1744 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001745 &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;]`.
1746 &quot;A String&quot;,
1747 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001748 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001749 },
1750 &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;
1751 &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.
1752 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1753 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1754 },
1755 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
1756 &quot;storeCodeSetWithMovs&quot;: [
1757 { # 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.
1758 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
1759 &quot;A String&quot;,
1760 ],
1761 &quot;value&quot;: { # The minimum order value for the given stores.
1762 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1763 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1764 },
1765 },
1766 ],
1767 },
1768 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
1769 &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`.
1770 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
1771 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
1772 },
1773 &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.
1774 {
1775 &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.
1776 &quot;A String&quot;,
1777 ],
1778 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
1779 {
1780 &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.
1781 &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.
1782 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001783 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1784 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1785 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001786 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
1787 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
1788 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001789 },
1790 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001791 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
1792 &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.
1793 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1794 {
1795 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1796 &quot;A String&quot;,
1797 ],
1798 },
1799 ],
1800 &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.
1801 &quot;A String&quot;,
1802 ],
1803 &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.
1804 &quot;A String&quot;,
1805 ],
1806 &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.
1807 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001808 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1809 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1810 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001811 ],
1812 &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.
1813 {
1814 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1815 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1816 },
1817 ],
1818 },
1819 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1820 &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.
1821 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1822 {
1823 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1824 &quot;A String&quot;,
1825 ],
1826 },
1827 ],
1828 &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.
1829 &quot;A String&quot;,
1830 ],
1831 &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.
1832 &quot;A String&quot;,
1833 ],
1834 &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.
1835 {
1836 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1837 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1838 },
1839 ],
1840 &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.
1841 {
1842 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1843 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1844 },
1845 ],
1846 },
1847 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1848 {
1849 &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.
1850 { # 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.
1851 &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.
1852 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1853 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1854 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1855 },
1856 &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.
1857 &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.
1858 &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.
1859 },
1860 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001861 },
1862 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001863 },
1864 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
1865 &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.
1866 &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.
1867 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1868 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1869 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1870 },
1871 &quot;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.
1872 &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.
1873 &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.
1874 },
1875 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
1876 {
1877 &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.
1878 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001879 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001880 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1881 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001882 ],
1883 },
1884 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001885 &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.
1886 &quot;A String&quot;,
1887 ],
1888 &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.
1889 &quot;A String&quot;,
1890 ],
1891 &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.
1892 {
1893 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1894 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1895 },
1896 ],
1897 &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.
1898 {
1899 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1900 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1901 },
1902 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001903 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001904 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1905 &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.
1906 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1907 {
1908 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1909 &quot;A String&quot;,
1910 ],
1911 },
1912 ],
1913 &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.
1914 &quot;A String&quot;,
1915 ],
1916 &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.
1917 &quot;A String&quot;,
1918 ],
1919 &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.
1920 {
1921 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1922 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1923 },
1924 ],
1925 &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.
1926 {
1927 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1928 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1929 },
1930 ],
1931 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001932 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1933 {
1934 &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.
1935 { # 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001936 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001937 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1938 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1939 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1940 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001941 &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.
1942 &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 Bot0bf565c2020-12-09 08:56:03 -08001943 &quot;subtableName&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (i.e., not for single values), and only if all other fields are not set.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001944 },
1945 ],
1946 },
1947 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001948 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001949 ],
1950 },
1951 ],
1952 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
1953 },
1954 ],
1955}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001956</div>
1957
1958</body></html>