blob: fcd7a7d00f59db8c18081f2395bd295728bb11d1 [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-code-bot64143a02021-04-27 05:08:04 -0700191 &quot;warehouseBasedDeliveryTimes&quot;: [ # Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in DeliveryTime should be set.
192 {
193 &quot;carrier&quot;: &quot;A String&quot;, # Required. Carrier, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`. The list of supported carriers can be retrieved via the `listSupportedCarriers` method.
194 &quot;carrierService&quot;: &quot;A String&quot;, # Required. 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 `listSupportedCarriers` method. The name of the service must be in the eddSupportedServices list.
195 &quot;originAdministrativeArea&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s state.
196 &quot;originCity&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s city.
197 &quot;originCountry&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s country represented as a [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml).
198 &quot;originPostalCode&quot;: &quot;A String&quot;, # Required. Shipping origin.
199 &quot;originStreetAddress&quot;: &quot;A String&quot;, # Shipping origin&#x27;s street address
200 },
201 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800202 },
203 &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;
204 &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.
205 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
206 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
207 },
208 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
209 &quot;storeCodeSetWithMovs&quot;: [
210 { # 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.
211 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
212 &quot;A String&quot;,
213 ],
214 &quot;value&quot;: { # The minimum order value for the given stores.
215 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
216 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
217 },
218 },
219 ],
220 },
221 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
222 &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`.
223 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
224 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
225 },
226 &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.
227 {
228 &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.
229 &quot;A String&quot;,
230 ],
231 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
232 {
233 &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.
234 &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.
235 &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 -0800236 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
237 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
238 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800239 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
240 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
241 &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 -0800242 },
243 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800244 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
245 &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.
246 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
247 {
248 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
249 &quot;A String&quot;,
250 ],
251 },
252 ],
253 &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.
254 &quot;A String&quot;,
255 ],
256 &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.
257 &quot;A String&quot;,
258 ],
259 &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.
260 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800261 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
262 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
263 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800264 ],
265 &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.
266 {
267 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
268 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
269 },
270 ],
271 },
272 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
273 &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.
274 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
275 {
276 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
277 &quot;A String&quot;,
278 ],
279 },
280 ],
281 &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.
282 &quot;A String&quot;,
283 ],
284 &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.
285 &quot;A String&quot;,
286 ],
287 &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.
288 {
289 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
290 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
291 },
292 ],
293 &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.
294 {
295 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
296 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
297 },
298 ],
299 },
300 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
301 {
302 &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.
303 { # 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.
304 &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.
305 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
306 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
307 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
308 },
309 &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.
310 &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.
311 &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.
312 },
313 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800314 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800315 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800316 },
317 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
318 &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.
319 &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.
320 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
321 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
322 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
323 },
324 &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.
325 &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.
326 &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.
327 },
328 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
329 {
330 &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.
331 &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 -0700332 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800333 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
334 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700335 ],
336 },
337 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800338 &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.
339 &quot;A String&quot;,
340 ],
341 &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.
342 &quot;A String&quot;,
343 ],
344 &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.
345 {
346 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
347 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
348 },
349 ],
350 &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.
351 {
352 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
353 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
354 },
355 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800356 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800357 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
358 &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.
359 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
360 {
361 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
362 &quot;A String&quot;,
363 ],
364 },
365 ],
366 &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.
367 &quot;A String&quot;,
368 ],
369 &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.
370 &quot;A String&quot;,
371 ],
372 &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.
373 {
374 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
375 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
376 },
377 ],
378 &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.
379 {
380 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
381 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
382 },
383 ],
384 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800385 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
386 {
387 &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.
388 { # 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 -0800389 &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 -0800390 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
391 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
392 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
393 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800394 &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.
395 &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 -0800396 &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 -0800397 },
398 ],
399 },
400 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800401 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800402 ],
403 },
404 ],
405 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
406 },
407 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700408 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800409 },
410 ],
411}
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700412
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700413 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 -0700414 x__xgafv: string, V1 error format.
415 Allowed values
416 1 - v1 error format
417 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700418
419Returns:
420 An object of the form:
421
422 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800423 &quot;entries&quot;: [ # The result of the execution of the batch requests.
424 { # A batch entry encoding a single non-batch shipping settings response.
425 &quot;batchId&quot;: 42, # The ID of the request entry to which this entry responds.
426 &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.
427 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
428 &quot;errors&quot;: [ # A list of errors.
429 { # An error returned by the API.
430 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
431 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
432 &quot;reason&quot;: &quot;A String&quot;, # The error code.
433 },
434 ],
435 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
436 },
437 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#shippingsettingsCustomBatchResponseEntry`&quot;
438 &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.
439 &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.
440 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
441 {
442 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
443 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
444 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
445 {
446 &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.
447 &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 -0800448 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800449 ],
450 },
451 ],
452 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
453 {
454 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
455 &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.
456 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
457 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
458 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
459 &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.
460 &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.
461 &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.
462 },
463 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
464 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
465 &quot;A String&quot;,
466 ],
467 },
468 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
469 {
470 &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.
471 &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.
472 &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.
473 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
474 &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 -0800475 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800476 ],
477 &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`.
478 &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`.
479 &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.
480 &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.
481 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
482 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
483 &quot;A String&quot;,
484 ],
485 },
486 &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.
487 &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.
488 &quot;A String&quot;,
489 ],
490 &quot;rows&quot;: [
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800491 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800492 &quot;values&quot;: [
493 {
494 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
495 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
496 },
497 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800498 },
499 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800500 &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;]`.
501 &quot;A String&quot;,
502 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800503 },
yoshi-code-bot64143a02021-04-27 05:08:04 -0700504 &quot;warehouseBasedDeliveryTimes&quot;: [ # Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in DeliveryTime should be set.
505 {
506 &quot;carrier&quot;: &quot;A String&quot;, # Required. Carrier, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`. The list of supported carriers can be retrieved via the `listSupportedCarriers` method.
507 &quot;carrierService&quot;: &quot;A String&quot;, # Required. 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 `listSupportedCarriers` method. The name of the service must be in the eddSupportedServices list.
508 &quot;originAdministrativeArea&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s state.
509 &quot;originCity&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s city.
510 &quot;originCountry&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s country represented as a [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml).
511 &quot;originPostalCode&quot;: &quot;A String&quot;, # Required. Shipping origin.
512 &quot;originStreetAddress&quot;: &quot;A String&quot;, # Shipping origin&#x27;s street address
513 },
514 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800515 },
516 &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;
517 &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.
518 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
519 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
520 },
521 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
522 &quot;storeCodeSetWithMovs&quot;: [
523 { # 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.
524 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
525 &quot;A String&quot;,
526 ],
527 &quot;value&quot;: { # The minimum order value for the given stores.
528 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
529 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
530 },
531 },
532 ],
533 },
534 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
535 &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`.
536 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
537 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
538 },
539 &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.
540 {
541 &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.
542 &quot;A String&quot;,
543 ],
544 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
545 {
546 &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.
547 &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.
548 &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 -0800549 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
550 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
551 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800552 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
553 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
554 &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 -0800555 },
556 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800557 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
558 &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.
559 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
560 {
561 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
562 &quot;A String&quot;,
563 ],
564 },
565 ],
566 &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.
567 &quot;A String&quot;,
568 ],
569 &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.
570 &quot;A String&quot;,
571 ],
572 &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.
573 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800574 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
575 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
576 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800577 ],
578 &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.
579 {
580 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
581 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
582 },
583 ],
584 },
585 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
586 &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.
587 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
588 {
589 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
590 &quot;A String&quot;,
591 ],
592 },
593 ],
594 &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.
595 &quot;A String&quot;,
596 ],
597 &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.
598 &quot;A String&quot;,
599 ],
600 &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.
601 {
602 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
603 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
604 },
605 ],
606 &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.
607 {
608 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
609 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
610 },
611 ],
612 },
613 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
614 {
615 &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.
616 { # 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.
617 &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.
618 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
619 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
620 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
621 },
622 &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.
623 &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.
624 &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.
625 },
626 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800627 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800628 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800629 },
630 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
631 &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.
632 &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.
633 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
634 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
635 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
636 },
637 &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.
638 &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.
639 &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.
640 },
641 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
642 {
643 &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.
644 &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 -0700645 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800646 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
647 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700648 ],
649 },
650 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800651 &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.
652 &quot;A String&quot;,
653 ],
654 &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.
655 &quot;A String&quot;,
656 ],
657 &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.
658 {
659 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
660 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
661 },
662 ],
663 &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.
664 {
665 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
666 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
667 },
668 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800669 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800670 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
671 &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.
672 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
673 {
674 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
675 &quot;A String&quot;,
676 ],
677 },
678 ],
679 &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.
680 &quot;A String&quot;,
681 ],
682 &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.
683 &quot;A String&quot;,
684 ],
685 &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.
686 {
687 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
688 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
689 },
690 ],
691 &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.
692 {
693 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
694 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
695 },
696 ],
697 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800698 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
699 {
700 &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.
701 { # 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 -0800702 &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 -0800703 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
704 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
705 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
706 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800707 &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.
708 &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 -0800709 &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 -0800710 },
711 ],
712 },
713 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800714 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800715 ],
716 },
717 ],
718 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
719 },
720 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700721 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800722 },
723 ],
724 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsCustomBatchResponse&quot;.
725}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700726</div>
727
728<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700729 <code class="details" id="get">get(merchantId, accountId, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700730 <pre>Retrieves the shipping settings of the account.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700731
732Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700733 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 -0700734 accountId: string, The ID of the account for which to get/update shipping settings. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700735 x__xgafv: string, V1 error format.
736 Allowed values
737 1 - v1 error format
738 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700739
740Returns:
741 An object of the form:
742
Bu Sun Kim65020912020-05-20 12:08:20 -0700743 { # 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 -0800744 &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.
745 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
746 {
747 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
748 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
749 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
750 {
751 &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.
752 &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 -0800753 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800754 ],
755 },
756 ],
757 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
758 {
759 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
760 &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.
761 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
762 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
763 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
764 &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.
765 &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.
766 &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.
767 },
768 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
769 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
770 &quot;A String&quot;,
771 ],
772 },
773 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
774 {
775 &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.
776 &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.
777 &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.
778 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
779 &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 -0800780 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800781 ],
782 &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`.
783 &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`.
784 &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.
785 &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.
786 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
787 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
788 &quot;A String&quot;,
789 ],
790 },
791 &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.
792 &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.
793 &quot;A String&quot;,
794 ],
795 &quot;rows&quot;: [
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800796 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800797 &quot;values&quot;: [
798 {
799 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
800 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
801 },
802 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800803 },
804 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800805 &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;]`.
806 &quot;A String&quot;,
807 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800808 },
yoshi-code-bot64143a02021-04-27 05:08:04 -0700809 &quot;warehouseBasedDeliveryTimes&quot;: [ # Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in DeliveryTime should be set.
810 {
811 &quot;carrier&quot;: &quot;A String&quot;, # Required. Carrier, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`. The list of supported carriers can be retrieved via the `listSupportedCarriers` method.
812 &quot;carrierService&quot;: &quot;A String&quot;, # Required. 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 `listSupportedCarriers` method. The name of the service must be in the eddSupportedServices list.
813 &quot;originAdministrativeArea&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s state.
814 &quot;originCity&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s city.
815 &quot;originCountry&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s country represented as a [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml).
816 &quot;originPostalCode&quot;: &quot;A String&quot;, # Required. Shipping origin.
817 &quot;originStreetAddress&quot;: &quot;A String&quot;, # Shipping origin&#x27;s street address
818 },
819 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800820 },
821 &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;
822 &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.
823 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
824 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
825 },
826 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
827 &quot;storeCodeSetWithMovs&quot;: [
828 { # 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.
829 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
830 &quot;A String&quot;,
831 ],
832 &quot;value&quot;: { # The minimum order value for the given stores.
833 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
834 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
835 },
836 },
837 ],
838 },
839 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
840 &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`.
841 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
842 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
843 },
844 &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.
845 {
846 &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.
847 &quot;A String&quot;,
848 ],
849 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
850 {
851 &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.
852 &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.
853 &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 -0800854 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
855 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
856 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800857 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
858 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
859 &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 -0800860 },
861 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800862 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
863 &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.
864 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
865 {
866 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
867 &quot;A String&quot;,
868 ],
869 },
870 ],
871 &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.
872 &quot;A String&quot;,
873 ],
874 &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.
875 &quot;A String&quot;,
876 ],
877 &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.
878 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800879 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
880 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
881 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800882 ],
883 &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.
884 {
885 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
886 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
887 },
888 ],
889 },
890 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
891 &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.
892 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
893 {
894 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
895 &quot;A String&quot;,
896 ],
897 },
898 ],
899 &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.
900 &quot;A String&quot;,
901 ],
902 &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.
903 &quot;A String&quot;,
904 ],
905 &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.
906 {
907 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
908 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
909 },
910 ],
911 &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.
912 {
913 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
914 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
915 },
916 ],
917 },
918 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
919 {
920 &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.
921 { # 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.
922 &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.
923 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
924 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
925 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
926 },
927 &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.
928 &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.
929 &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.
930 },
931 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800932 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800933 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800934 },
935 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
936 &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.
937 &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.
938 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
939 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
940 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
941 },
942 &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.
943 &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.
944 &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.
945 },
946 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
947 {
948 &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.
949 &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 -0700950 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800951 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
952 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700953 ],
954 },
955 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800956 &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.
957 &quot;A String&quot;,
958 ],
959 &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.
960 &quot;A String&quot;,
961 ],
962 &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.
963 {
964 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
965 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
966 },
967 ],
968 &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.
969 {
970 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
971 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
972 },
973 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800974 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800975 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
976 &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.
977 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
978 {
979 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
980 &quot;A String&quot;,
981 ],
982 },
983 ],
984 &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.
985 &quot;A String&quot;,
986 ],
987 &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.
988 &quot;A String&quot;,
989 ],
990 &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.
991 {
992 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
993 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
994 },
995 ],
996 &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.
997 {
998 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
999 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1000 },
1001 ],
1002 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001003 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1004 {
1005 &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.
1006 { # 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 -08001007 &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 -08001008 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1009 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1010 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1011 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001012 &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.
1013 &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 -08001014 &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 -08001015 },
1016 ],
1017 },
1018 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001019 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001020 ],
1021 },
1022 ],
1023 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
1024 },
1025 ],
1026}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001027</div>
1028
1029<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001030 <code class="details" id="getsupportedcarriers">getsupportedcarriers(merchantId, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001031 <pre>Retrieves supported carriers and carrier services for an account.
1032
1033Args:
1034 merchantId: string, The ID of the account for which to retrieve the supported carriers. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001035 x__xgafv: string, V1 error format.
1036 Allowed values
1037 1 - v1 error format
1038 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001039
1040Returns:
1041 An object of the form:
1042
1043 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001044 &quot;carriers&quot;: [ # A list of supported carriers. May be empty.
1045 {
1046 &quot;country&quot;: &quot;A String&quot;, # The CLDR country code of the carrier (e.g., &quot;US&quot;). Always present.
yoshi-code-bot64143a02021-04-27 05:08:04 -07001047 &quot;eddServices&quot;: [ # A list of services supported for EDD (Estimated Delivery Date) calculation. This is the list of valid values for WarehouseBasedDeliveryTime.carrierService.
1048 &quot;A String&quot;,
1049 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001050 &quot;name&quot;: &quot;A String&quot;, # The name of the carrier (e.g., `&quot;UPS&quot;`). Always present.
yoshi-code-bot64143a02021-04-27 05:08:04 -07001051 &quot;services&quot;: [ # A list of supported services (e.g., `&quot;ground&quot;`) for that carrier. Contains at least one service. This is the list of valid values for CarrierRate.carrierService.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001052 &quot;A String&quot;,
1053 ],
1054 },
1055 ],
1056 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsGetSupportedCarriersResponse&quot;.
1057}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001058</div>
1059
1060<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001061 <code class="details" id="getsupportedholidays">getsupportedholidays(merchantId, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001062 <pre>Retrieves supported holidays for an account.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001063
1064Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001065 merchantId: string, The ID of the account for which to retrieve the supported holidays. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001066 x__xgafv: string, V1 error format.
1067 Allowed values
1068 1 - v1 error format
1069 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001070
1071Returns:
1072 An object of the form:
1073
1074 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001075 &quot;holidays&quot;: [ # A list of holidays applicable for delivery guarantees. May be empty.
1076 {
1077 &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.
1078 &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.
1079 &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.
1080 &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.
1081 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the holiday to be used when configuring holiday cutoffs. Always present.
1082 &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;
1083 },
1084 ],
1085 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsGetSupportedHolidaysResponse&quot;.
1086}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001087</div>
1088
1089<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001090 <code class="details" id="getsupportedpickupservices">getsupportedpickupservices(merchantId, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -07001091 <pre>Retrieves supported pickup services for an account.
1092
1093Args:
1094 merchantId: string, The ID of the account for which to retrieve the supported pickup services. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001095 x__xgafv: string, V1 error format.
1096 Allowed values
1097 1 - v1 error format
1098 2 - v2 error format
Dan O'Mearadd494642020-05-01 07:42:23 -07001099
1100Returns:
1101 An object of the form:
1102
1103 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001104 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsGetSupportedPickupServicesResponse&quot;.
1105 &quot;pickupServices&quot;: [ # A list of supported pickup services. May be empty.
1106 {
1107 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the carrier (e.g., `&quot;UPS&quot;`). Always present.
1108 &quot;country&quot;: &quot;A String&quot;, # The CLDR country code of the carrier (e.g., &quot;US&quot;). Always present.
1109 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Always present.
1110 },
1111 ],
1112}</pre>
Dan O'Mearadd494642020-05-01 07:42:23 -07001113</div>
1114
1115<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001116 <code class="details" id="list">list(merchantId, maxResults=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001117 <pre>Lists the shipping settings of the sub-accounts in your Merchant Center account.
1118
1119Args:
1120 merchantId: string, The ID of the managing account. This must be a multi-client account. (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001121 maxResults: integer, The maximum number of shipping settings to return in the response, used for paging.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001122 pageToken: string, The token returned by the previous request.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001123 x__xgafv: string, V1 error format.
1124 Allowed values
1125 1 - v1 error format
1126 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001127
1128Returns:
1129 An object of the form:
1130
1131 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001132 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsListResponse&quot;.
1133 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of shipping settings.
1134 &quot;resources&quot;: [
1135 { # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
1136 &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.
1137 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
1138 {
1139 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
1140 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
1141 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
1142 {
1143 &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.
1144 &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 -08001145 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001146 ],
1147 },
1148 ],
1149 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
1150 {
1151 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
1152 &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.
1153 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
1154 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
1155 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
1156 &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.
1157 &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.
1158 &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.
1159 },
1160 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
1161 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1162 &quot;A String&quot;,
1163 ],
1164 },
1165 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
1166 {
1167 &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.
1168 &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.
1169 &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.
1170 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
1171 &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 -08001172 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001173 ],
1174 &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`.
1175 &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`.
1176 &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.
1177 &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.
1178 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
1179 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1180 &quot;A String&quot;,
1181 ],
1182 },
1183 &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.
1184 &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.
1185 &quot;A String&quot;,
1186 ],
1187 &quot;rows&quot;: [
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001188 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001189 &quot;values&quot;: [
1190 {
1191 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
1192 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
1193 },
1194 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001195 },
1196 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001197 &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;]`.
1198 &quot;A String&quot;,
1199 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001200 },
yoshi-code-bot64143a02021-04-27 05:08:04 -07001201 &quot;warehouseBasedDeliveryTimes&quot;: [ # Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in DeliveryTime should be set.
1202 {
1203 &quot;carrier&quot;: &quot;A String&quot;, # Required. Carrier, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`. The list of supported carriers can be retrieved via the `listSupportedCarriers` method.
1204 &quot;carrierService&quot;: &quot;A String&quot;, # Required. 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 `listSupportedCarriers` method. The name of the service must be in the eddSupportedServices list.
1205 &quot;originAdministrativeArea&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s state.
1206 &quot;originCity&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s city.
1207 &quot;originCountry&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s country represented as a [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml).
1208 &quot;originPostalCode&quot;: &quot;A String&quot;, # Required. Shipping origin.
1209 &quot;originStreetAddress&quot;: &quot;A String&quot;, # Shipping origin&#x27;s street address
1210 },
1211 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001212 },
1213 &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;
1214 &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.
1215 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1216 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1217 },
1218 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
1219 &quot;storeCodeSetWithMovs&quot;: [
1220 { # 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.
1221 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
1222 &quot;A String&quot;,
1223 ],
1224 &quot;value&quot;: { # The minimum order value for the given stores.
1225 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1226 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1227 },
1228 },
1229 ],
1230 },
1231 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
1232 &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`.
1233 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
1234 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
1235 },
1236 &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.
1237 {
1238 &quot;applicableShippingLabels&quot;: [ # A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service. Required.
1239 &quot;A String&quot;,
1240 ],
1241 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
1242 {
1243 &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.
1244 &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.
1245 &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 -08001246 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1247 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1248 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001249 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
1250 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
1251 &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 -08001252 },
1253 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001254 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
1255 &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.
1256 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1257 {
1258 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1259 &quot;A String&quot;,
1260 ],
1261 },
1262 ],
1263 &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.
1264 &quot;A String&quot;,
1265 ],
1266 &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.
1267 &quot;A String&quot;,
1268 ],
1269 &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.
1270 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001271 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1272 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1273 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001274 ],
1275 &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.
1276 {
1277 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1278 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1279 },
1280 ],
1281 },
1282 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1283 &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.
1284 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1285 {
1286 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1287 &quot;A String&quot;,
1288 ],
1289 },
1290 ],
1291 &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.
1292 &quot;A String&quot;,
1293 ],
1294 &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.
1295 &quot;A String&quot;,
1296 ],
1297 &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.
1298 {
1299 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1300 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1301 },
1302 ],
1303 &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.
1304 {
1305 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1306 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1307 },
1308 ],
1309 },
1310 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1311 {
1312 &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.
1313 { # 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.
1314 &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.
1315 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1316 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1317 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1318 },
1319 &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.
1320 &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.
1321 &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.
1322 },
1323 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001324 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001325 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001326 },
1327 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
1328 &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.
1329 &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.
1330 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1331 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1332 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1333 },
1334 &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.
1335 &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.
1336 &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.
1337 },
1338 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
1339 {
1340 &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.
1341 &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 -07001342 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001343 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1344 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001345 ],
1346 },
1347 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001348 &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.
1349 &quot;A String&quot;,
1350 ],
1351 &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.
1352 &quot;A String&quot;,
1353 ],
1354 &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.
1355 {
1356 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1357 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1358 },
1359 ],
1360 &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.
1361 {
1362 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1363 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1364 },
1365 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001366 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001367 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1368 &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.
1369 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1370 {
1371 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1372 &quot;A String&quot;,
1373 ],
1374 },
1375 ],
1376 &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.
1377 &quot;A String&quot;,
1378 ],
1379 &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.
1380 &quot;A String&quot;,
1381 ],
1382 &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.
1383 {
1384 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1385 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1386 },
1387 ],
1388 &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.
1389 {
1390 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1391 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1392 },
1393 ],
1394 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001395 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1396 {
1397 &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.
1398 { # 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 -08001399 &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 -08001400 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1401 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1402 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1403 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001404 &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.
1405 &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 -08001406 &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 -08001407 },
1408 ],
1409 },
1410 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001411 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001412 ],
1413 },
1414 ],
1415 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
1416 },
1417 ],
1418 },
1419 ],
1420}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001421</div>
1422
1423<div class="method">
1424 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1425 <pre>Retrieves the next page of results.
1426
1427Args:
1428 previous_request: The request for the previous page. (required)
1429 previous_response: The response from the request for the previous page. (required)
1430
1431Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001432 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001433 page. Returns None if there are no more items in the collection.
1434 </pre>
1435</div>
1436
1437<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001438 <code class="details" id="update">update(merchantId, accountId, body=None, dryRun=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001439 <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 -07001440
1441Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001442 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 -07001443 accountId: string, The ID of the account for which to get/update shipping settings. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001444 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001445 The object takes the form of:
1446
Bu Sun Kim65020912020-05-20 12:08:20 -07001447{ # 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 -08001448 &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.
1449 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
1450 {
1451 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
1452 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
1453 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
1454 {
1455 &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.
1456 &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`.
1457 },
1458 ],
1459 },
1460 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001461 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
1462 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001463 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
1464 &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.
1465 &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 -08001466 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
1467 &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 -08001468 &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 -08001469 &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.
1470 &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 -08001471 },
1472 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
1473 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1474 &quot;A String&quot;,
1475 ],
1476 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001477 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
1478 {
1479 &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.
1480 &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.
1481 &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.
1482 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
1483 &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.
1484 },
1485 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001486 &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 -08001487 &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 -08001488 &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 -08001489 &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 -08001490 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
1491 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1492 &quot;A String&quot;,
1493 ],
1494 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001495 &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.
1496 &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.
1497 &quot;A String&quot;,
1498 ],
1499 &quot;rows&quot;: [
1500 {
1501 &quot;values&quot;: [
1502 {
1503 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
1504 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
1505 },
1506 ],
1507 },
1508 ],
1509 &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;]`.
1510 &quot;A String&quot;,
1511 ],
1512 },
yoshi-code-bot64143a02021-04-27 05:08:04 -07001513 &quot;warehouseBasedDeliveryTimes&quot;: [ # Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in DeliveryTime should be set.
1514 {
1515 &quot;carrier&quot;: &quot;A String&quot;, # Required. Carrier, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`. The list of supported carriers can be retrieved via the `listSupportedCarriers` method.
1516 &quot;carrierService&quot;: &quot;A String&quot;, # Required. 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 `listSupportedCarriers` method. The name of the service must be in the eddSupportedServices list.
1517 &quot;originAdministrativeArea&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s state.
1518 &quot;originCity&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s city.
1519 &quot;originCountry&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s country represented as a [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml).
1520 &quot;originPostalCode&quot;: &quot;A String&quot;, # Required. Shipping origin.
1521 &quot;originStreetAddress&quot;: &quot;A String&quot;, # Shipping origin&#x27;s street address
1522 },
1523 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001524 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001525 &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;
1526 &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.
1527 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1528 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001529 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001530 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
1531 &quot;storeCodeSetWithMovs&quot;: [
1532 { # 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.
1533 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
1534 &quot;A String&quot;,
1535 ],
1536 &quot;value&quot;: { # The minimum order value for the given stores.
1537 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1538 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1539 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001540 },
1541 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001542 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001543 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
1544 &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`.
1545 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
1546 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
1547 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001548 &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.
1549 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001550 &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.
1551 &quot;A String&quot;,
1552 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001553 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
1554 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001555 &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.
1556 &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 -08001557 &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.
1558 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1559 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1560 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001561 &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 -08001562 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001563 &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 -08001564 },
1565 ],
1566 &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 -08001567 &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.
1568 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1569 {
1570 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1571 &quot;A String&quot;,
1572 ],
1573 },
1574 ],
1575 &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.
1576 &quot;A String&quot;,
1577 ],
1578 &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.
1579 &quot;A String&quot;,
1580 ],
1581 &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.
1582 {
1583 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1584 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1585 },
1586 ],
1587 &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.
1588 {
1589 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1590 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1591 },
1592 ],
1593 },
1594 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1595 &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.
1596 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1597 {
1598 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1599 &quot;A String&quot;,
1600 ],
1601 },
1602 ],
1603 &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.
1604 &quot;A String&quot;,
1605 ],
1606 &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.
1607 &quot;A String&quot;,
1608 ],
1609 &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.
1610 {
1611 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1612 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1613 },
1614 ],
1615 &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.
1616 {
1617 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1618 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1619 },
1620 ],
1621 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001622 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1623 {
1624 &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.
1625 { # 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 -08001626 &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 -08001627 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1628 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1629 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1630 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001631 &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.
1632 &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 -08001633 &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.
1634 },
1635 ],
1636 },
1637 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001638 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001639 &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 -08001640 &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 -08001641 &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 -08001642 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1643 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1644 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1645 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001646 &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.
1647 &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 -08001648 &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.
1649 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001650 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
1651 {
1652 &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.
1653 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1654 {
1655 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1656 &quot;A String&quot;,
1657 ],
1658 },
1659 ],
1660 &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.
1661 &quot;A String&quot;,
1662 ],
1663 &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.
1664 &quot;A String&quot;,
1665 ],
1666 &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.
1667 {
1668 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1669 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1670 },
1671 ],
1672 &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.
1673 {
1674 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1675 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1676 },
1677 ],
1678 },
1679 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1680 &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.
1681 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1682 {
1683 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1684 &quot;A String&quot;,
1685 ],
1686 },
1687 ],
1688 &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.
1689 &quot;A String&quot;,
1690 ],
1691 &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.
1692 &quot;A String&quot;,
1693 ],
1694 &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.
1695 {
1696 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1697 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1698 },
1699 ],
1700 &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.
1701 {
1702 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1703 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1704 },
1705 ],
1706 },
1707 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1708 {
1709 &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.
1710 { # 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.
1711 &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.
1712 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1713 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1714 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1715 },
1716 &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.
1717 &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.
1718 &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.
1719 },
1720 ],
1721 },
1722 ],
1723 },
1724 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001725 },
1726 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001727 &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 -08001728 },
1729 ],
1730}
1731
1732 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).
1733 x__xgafv: string, V1 error format.
1734 Allowed values
1735 1 - v1 error format
1736 2 - v2 error format
1737
1738Returns:
1739 An object of the form:
1740
1741 { # 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 -08001742 &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.
1743 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
1744 {
1745 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
1746 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
1747 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
1748 {
1749 &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.
1750 &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 -08001751 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001752 ],
1753 },
1754 ],
1755 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
1756 {
1757 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
1758 &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.
1759 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
1760 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
1761 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
1762 &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.
1763 &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.
1764 &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.
1765 },
1766 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
1767 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1768 &quot;A String&quot;,
1769 ],
1770 },
1771 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
1772 {
1773 &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.
1774 &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.
1775 &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.
1776 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
1777 &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 -08001778 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001779 ],
1780 &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`.
1781 &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`.
1782 &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.
1783 &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.
1784 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
1785 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1786 &quot;A String&quot;,
1787 ],
1788 },
1789 &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.
1790 &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.
1791 &quot;A String&quot;,
1792 ],
1793 &quot;rows&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001794 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001795 &quot;values&quot;: [
1796 {
1797 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
1798 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
1799 },
1800 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001801 },
1802 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001803 &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;]`.
1804 &quot;A String&quot;,
1805 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001806 },
yoshi-code-bot64143a02021-04-27 05:08:04 -07001807 &quot;warehouseBasedDeliveryTimes&quot;: [ # Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in DeliveryTime should be set.
1808 {
1809 &quot;carrier&quot;: &quot;A String&quot;, # Required. Carrier, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`. The list of supported carriers can be retrieved via the `listSupportedCarriers` method.
1810 &quot;carrierService&quot;: &quot;A String&quot;, # Required. 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 `listSupportedCarriers` method. The name of the service must be in the eddSupportedServices list.
1811 &quot;originAdministrativeArea&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s state.
1812 &quot;originCity&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s city.
1813 &quot;originCountry&quot;: &quot;A String&quot;, # Required. Shipping origin&#x27;s country represented as a [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml).
1814 &quot;originPostalCode&quot;: &quot;A String&quot;, # Required. Shipping origin.
1815 &quot;originStreetAddress&quot;: &quot;A String&quot;, # Shipping origin&#x27;s street address
1816 },
1817 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001818 },
1819 &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;
1820 &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.
1821 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1822 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1823 },
1824 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
1825 &quot;storeCodeSetWithMovs&quot;: [
1826 { # 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.
1827 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
1828 &quot;A String&quot;,
1829 ],
1830 &quot;value&quot;: { # The minimum order value for the given stores.
1831 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1832 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1833 },
1834 },
1835 ],
1836 },
1837 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
1838 &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`.
1839 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
1840 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
1841 },
1842 &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.
1843 {
1844 &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.
1845 &quot;A String&quot;,
1846 ],
1847 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
1848 {
1849 &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.
1850 &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.
1851 &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 -08001852 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1853 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1854 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001855 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
1856 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
1857 &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 -08001858 },
1859 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001860 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
1861 &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.
1862 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1863 {
1864 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1865 &quot;A String&quot;,
1866 ],
1867 },
1868 ],
1869 &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.
1870 &quot;A String&quot;,
1871 ],
1872 &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.
1873 &quot;A String&quot;,
1874 ],
1875 &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.
1876 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001877 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1878 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1879 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001880 ],
1881 &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.
1882 {
1883 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1884 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1885 },
1886 ],
1887 },
1888 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1889 &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.
1890 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1891 {
1892 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1893 &quot;A String&quot;,
1894 ],
1895 },
1896 ],
1897 &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.
1898 &quot;A String&quot;,
1899 ],
1900 &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.
1901 &quot;A String&quot;,
1902 ],
1903 &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.
1904 {
1905 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1906 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1907 },
1908 ],
1909 &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.
1910 {
1911 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1912 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1913 },
1914 ],
1915 },
1916 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
1917 {
1918 &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.
1919 { # 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.
1920 &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.
1921 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1922 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1923 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1924 },
1925 &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.
1926 &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.
1927 &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.
1928 },
1929 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001930 },
1931 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001932 },
1933 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
1934 &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.
1935 &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.
1936 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1937 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1938 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1939 },
1940 &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.
1941 &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.
1942 &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.
1943 },
1944 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
1945 {
1946 &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.
1947 &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 -08001948 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001949 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1950 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001951 ],
1952 },
1953 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001954 &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.
1955 &quot;A String&quot;,
1956 ],
1957 &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.
1958 &quot;A String&quot;,
1959 ],
1960 &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.
1961 {
1962 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1963 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1964 },
1965 ],
1966 &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.
1967 {
1968 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1969 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1970 },
1971 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001972 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001973 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1974 &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.
1975 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1976 {
1977 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1978 &quot;A String&quot;,
1979 ],
1980 },
1981 ],
1982 &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.
1983 &quot;A String&quot;,
1984 ],
1985 &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.
1986 &quot;A String&quot;,
1987 ],
1988 &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.
1989 {
1990 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1991 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1992 },
1993 ],
1994 &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.
1995 {
1996 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: - &quot;`kg`&quot; - &quot;`lb`&quot;
1997 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1998 },
1999 ],
2000 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002001 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
2002 {
2003 &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.
2004 { # 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 -08002005 &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 -08002006 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
2007 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2008 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2009 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002010 &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.
2011 &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 -08002012 &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 -07002013 },
2014 ],
2015 },
2016 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002017 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002018 ],
2019 },
2020 ],
2021 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to. Acceptable values are: - &quot;`delivery`&quot; - &quot;`pickup`&quot;
2022 },
2023 ],
2024}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002025</div>
2026
2027</body></html>