blob: cc9746a00a5e7f60b591bdacc4a118ec658fb695 [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">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#custombatch">custombatch(body=None, dryRun=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070079<p class="firstline">Retrieves and updates the shipping settings of multiple accounts in a single request.</p>
80<p class="toc_element">
81 <code><a href="#get">get(merchantId, accountId)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Retrieves the shipping settings of the account.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070083<p class="toc_element">
84 <code><a href="#getsupportedcarriers">getsupportedcarriers(merchantId)</a></code></p>
85<p class="firstline">Retrieves supported carriers and carrier services for an account.</p>
86<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087 <code><a href="#getsupportedholidays">getsupportedholidays(merchantId)</a></code></p>
88<p class="firstline">Retrieves supported holidays for an account.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#getsupportedpickupservices">getsupportedpickupservices(merchantId)</a></code></p>
91<p class="firstline">Retrieves supported pickup services for an account.</p>
92<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070093 <code><a href="#list">list(merchantId, maxResults=None, pageToken=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<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 -070095<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#update">update(merchantId, accountId, body=None, dryRun=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700100<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 -0700101<h3>Method Details</h3>
102<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700103 <code class="details" id="custombatch">custombatch(body=None, dryRun=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700104 <pre>Retrieves and updates the shipping settings of multiple accounts in a single request.
105
106Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700108 The object takes the form of:
109
110{
Bu Sun Kim65020912020-05-20 12:08:20 -0700111 &quot;entries&quot;: [ # The request entries to be processed in the batch.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400112 { # A batch entry encoding a single non-batch shippingsettings request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700113 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account for which to get/update account shipping settings.
114 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
115 &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
116 &quot;method&quot;: &quot;A String&quot;, # The method of the batch entry.
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 #
118 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700119 # - &quot;`get`&quot;
120 # - &quot;`update`&quot;
121 &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`.
122 &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.
123 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700124 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
126 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
127 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
128 {
129 &quot;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.
130 &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`.
131 },
132 ],
133 },
134 ],
135 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
136 {
137 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
138 &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.
139 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
140 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
141 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
142 &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.
143 &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.
144 &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.
145 },
146 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
147 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
148 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700149 ],
150 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700151 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700152 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 &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.
154 &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.
155 &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.
156 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
157 &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.
158 },
159 ],
160 &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`.
161 &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`.
162 &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.
163 &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.
164 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
165 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
166 &quot;A String&quot;,
167 ],
168 },
169 &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.
170 &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.
171 &quot;A String&quot;,
172 ],
173 &quot;rows&quot;: [
174 {
175 &quot;values&quot;: [
176 {
177 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
178 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
179 },
180 ],
181 },
182 ],
183 &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;]`.
184 &quot;A String&quot;,
185 ],
186 },
187 },
188 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service.
189 #
190 # Acceptable values are:
191 # - &quot;`All scenarios`&quot;
192 # - &quot;`All scenarios except Shopping Actions`&quot;
193 # - &quot;`Shopping Actions`&quot;
194 &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.
195 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
196 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
197 },
198 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
199 &quot;storeCodeSetWithMovs&quot;: [
200 { # 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.
201 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
202 &quot;A String&quot;,
203 ],
204 &quot;value&quot;: { # The minimum order value for the given stores.
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 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700208 },
209 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700210 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700211 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
212 &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`.
213 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
214 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
215 },
216 &quot;rateGroups&quot;: [ # Shipping rate group definitions. Only the last one is allowed to have an empty `applicableShippingLabels`, which means &quot;everything else&quot;. The other `applicableShippingLabels` must not overlap.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700217 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700218 &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.
219 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700220 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700221 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700222 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700223 &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.
224 &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.
225 &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.
226 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
227 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700228 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
230 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
231 &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.
232 },
233 ],
234 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
235 &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.
236 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700237 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
239 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700240 ],
241 },
242 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700243 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
244 &quot;A String&quot;,
245 ],
246 &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.
247 &quot;A String&quot;,
248 ],
249 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700250 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
252 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700253 },
254 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700255 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700256 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
Dan O'Mearadd494642020-05-01 07:42:23 -0700258 #
259 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 # - &quot;`kg`&quot;
261 # - &quot;`lb`&quot;
262 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700263 },
264 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700265 },
266 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
267 &quot;rowHeaders&quot;: { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. # Headers of the table&#x27;s rows. Required.
268 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700269 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700270 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
271 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700272 ],
273 },
274 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700275 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
276 &quot;A String&quot;,
277 ],
278 &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.
279 &quot;A String&quot;,
280 ],
281 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
282 {
283 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
284 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
285 },
286 ],
287 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
288 {
289 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
290 #
291 # Acceptable values are:
292 # - &quot;`kg`&quot;
293 # - &quot;`lb`&quot;
294 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
295 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700296 ],
297 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700298 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700299 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 &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.
301 { # 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.
302 &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.
303 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
304 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
305 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700306 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 &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.
308 &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.
309 &quot;subtableName&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (i.e., not for single values), and only if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700310 },
311 ],
312 },
313 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700314 },
315 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
316 &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.
317 &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.
318 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
319 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
320 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
321 },
322 &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.
323 &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.
324 &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.
325 },
326 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
327 {
328 &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.
329 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
330 {
331 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
332 &quot;A String&quot;,
333 ],
334 },
335 ],
336 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
337 &quot;A String&quot;,
338 ],
339 &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.
340 &quot;A String&quot;,
341 ],
342 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
343 {
344 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
345 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
346 },
347 ],
348 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
349 {
350 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
351 #
352 # Acceptable values are:
353 # - &quot;`kg`&quot;
354 # - &quot;`lb`&quot;
355 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
356 },
357 ],
358 },
359 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
360 &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.
361 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
362 {
363 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
364 &quot;A String&quot;,
365 ],
366 },
367 ],
368 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
369 &quot;A String&quot;,
370 ],
371 &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.
372 &quot;A String&quot;,
373 ],
374 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
375 {
376 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
377 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
378 },
379 ],
380 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
381 {
382 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
383 #
384 # Acceptable values are:
385 # - &quot;`kg`&quot;
386 # - &quot;`lb`&quot;
387 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
388 },
389 ],
390 },
391 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700392 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700393 &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.
394 { # 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.
395 &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.
396 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
397 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
398 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
399 },
400 &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.
401 &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.
402 &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.
403 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700404 ],
405 },
406 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700407 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700408 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700409 },
410 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700411 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to.
Dan O'Mearadd494642020-05-01 07:42:23 -0700412 #
413 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700414 # - &quot;`delivery`&quot;
415 # - &quot;`pickup`&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700416 },
417 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700418 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700419 },
420 ],
421 }
422
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700423 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700424
425Returns:
426 An object of the form:
427
428 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700429 &quot;entries&quot;: [ # The result of the execution of the batch requests.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700430 { # A batch entry encoding a single non-batch shipping settings response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700431 &quot;batchId&quot;: 42, # The ID of the request entry to which this entry responds.
432 &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.
433 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
434 &quot;errors&quot;: [ # A list of errors.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700435 { # An error returned by the API.
Bu Sun Kim65020912020-05-20 12:08:20 -0700436 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
437 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
438 &quot;reason&quot;: &quot;A String&quot;, # The error code.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700439 },
440 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700441 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700442 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700443 &quot;kind&quot;: &quot;content#shippingsettingsCustomBatchResponseEntry&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#shippingsettingsCustomBatchResponseEntry`&quot;
444 &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.
445 &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.
446 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700447 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700448 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
449 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
450 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
451 {
452 &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.
453 &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`.
454 },
455 ],
456 },
457 ],
458 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
459 {
460 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
461 &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.
462 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
463 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
464 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
465 &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.
466 &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.
467 &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.
468 },
469 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
470 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
471 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700472 ],
473 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700474 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700475 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700476 &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.
477 &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.
478 &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.
479 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
480 &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.
481 },
482 ],
483 &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`.
484 &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`.
485 &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.
486 &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.
487 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
488 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
489 &quot;A String&quot;,
490 ],
491 },
492 &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.
493 &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.
494 &quot;A String&quot;,
495 ],
496 &quot;rows&quot;: [
497 {
498 &quot;values&quot;: [
499 {
500 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
501 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
502 },
503 ],
504 },
505 ],
506 &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;]`.
507 &quot;A String&quot;,
508 ],
509 },
510 },
511 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service.
512 #
513 # Acceptable values are:
514 # - &quot;`All scenarios`&quot;
515 # - &quot;`All scenarios except Shopping Actions`&quot;
516 # - &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 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700531 },
532 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700533 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700534 &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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700540 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700541 &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;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700543 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700544 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700545 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700546 &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.
549 &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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700551 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700552 &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.
555 },
556 ],
557 &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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700560 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700561 &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;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700563 ],
564 },
565 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700566 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
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; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700573 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700574 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700576 },
577 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700578 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700579 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700580 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
Dan O'Mearadd494642020-05-01 07:42:23 -0700581 #
582 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700583 # - &quot;`kg`&quot;
584 # - &quot;`lb`&quot;
585 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700586 },
587 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700588 },
589 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
590 &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.
591 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700592 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700593 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
594 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700595 ],
596 },
597 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700598 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
599 &quot;A String&quot;,
600 ],
601 &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.
602 &quot;A String&quot;,
603 ],
604 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
605 {
606 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
607 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
608 },
609 ],
610 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
611 {
612 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
613 #
614 # Acceptable values are:
615 # - &quot;`kg`&quot;
616 # - &quot;`lb`&quot;
617 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
618 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700619 ],
620 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700621 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700622 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700623 &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.
624 { # 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.
625 &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.
626 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
627 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
628 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700629 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 &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.
631 &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.
632 &quot;subtableName&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (i.e., not for single values), and only if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700633 },
634 ],
635 },
636 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700637 },
638 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
639 &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.
640 &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.
641 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
642 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
643 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
644 },
645 &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.
646 &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.
647 &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.
648 },
649 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
650 {
651 &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.
652 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
653 {
654 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
655 &quot;A String&quot;,
656 ],
657 },
658 ],
659 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
660 &quot;A String&quot;,
661 ],
662 &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.
663 &quot;A String&quot;,
664 ],
665 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
666 {
667 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
668 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
669 },
670 ],
671 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
672 {
673 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
674 #
675 # Acceptable values are:
676 # - &quot;`kg`&quot;
677 # - &quot;`lb`&quot;
678 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
679 },
680 ],
681 },
682 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
683 &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.
684 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
685 {
686 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
687 &quot;A String&quot;,
688 ],
689 },
690 ],
691 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
692 &quot;A String&quot;,
693 ],
694 &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.
695 &quot;A String&quot;,
696 ],
697 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
698 {
699 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
700 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
701 },
702 ],
703 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
704 {
705 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
706 #
707 # Acceptable values are:
708 # - &quot;`kg`&quot;
709 # - &quot;`lb`&quot;
710 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
711 },
712 ],
713 },
714 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700715 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700716 &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.
717 { # 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.
718 &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.
719 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
720 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
721 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
722 },
723 &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.
724 &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.
725 &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.
726 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700727 ],
728 },
729 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700730 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700731 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700732 },
733 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700734 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to.
Dan O'Mearadd494642020-05-01 07:42:23 -0700735 #
736 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700737 # - &quot;`delivery`&quot;
738 # - &quot;`pickup`&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700739 },
740 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700741 },
742 },
743 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700744 &quot;kind&quot;: &quot;content#shippingsettingsCustomBatchResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsCustomBatchResponse&quot;.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700745 }</pre>
746</div>
747
748<div class="method">
749 <code class="details" id="get">get(merchantId, accountId)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700750 <pre>Retrieves the shipping settings of the account.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700751
752Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700753 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 -0700754 accountId: string, The ID of the account for which to get/update shipping settings. (required)
755
756Returns:
757 An object of the form:
758
Bu Sun Kim65020912020-05-20 12:08:20 -0700759 { # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
760 &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.
761 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700762 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700763 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
764 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
765 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
766 {
767 &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.
768 &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`.
769 },
770 ],
771 },
772 ],
773 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
774 {
775 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
776 &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.
777 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
778 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
779 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
780 &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.
781 &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.
782 &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.
783 },
784 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
785 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
786 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700787 ],
788 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700789 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700790 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700791 &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.
792 &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.
793 &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.
794 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
795 &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.
796 },
797 ],
798 &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`.
799 &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`.
800 &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.
801 &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.
802 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
803 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
804 &quot;A String&quot;,
805 ],
806 },
807 &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.
808 &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.
809 &quot;A String&quot;,
810 ],
811 &quot;rows&quot;: [
812 {
813 &quot;values&quot;: [
814 {
815 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
816 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
817 },
818 ],
819 },
820 ],
821 &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;]`.
822 &quot;A String&quot;,
823 ],
824 },
825 },
826 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service.
827 #
828 # Acceptable values are:
829 # - &quot;`All scenarios`&quot;
830 # - &quot;`All scenarios except Shopping Actions`&quot;
831 # - &quot;`Shopping Actions`&quot;
832 &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.
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 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
837 &quot;storeCodeSetWithMovs&quot;: [
838 { # 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.
839 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
840 &quot;A String&quot;,
841 ],
842 &quot;value&quot;: { # The minimum order value for the given stores.
843 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
844 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
845 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700846 },
847 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700848 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700849 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
850 &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`.
851 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
852 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
853 },
854 &quot;rateGroups&quot;: [ # Shipping rate group definitions. Only the last one is allowed to have an empty `applicableShippingLabels`, which means &quot;everything else&quot;. The other `applicableShippingLabels` must not overlap.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700855 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700856 &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.
857 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700858 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700859 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700860 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700861 &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.
862 &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.
863 &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.
864 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
865 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700866 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700867 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
868 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
869 &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.
870 },
871 ],
872 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
873 &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.
874 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700875 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700876 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
877 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700878 ],
879 },
880 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700881 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
882 &quot;A String&quot;,
883 ],
884 &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.
885 &quot;A String&quot;,
886 ],
887 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700888 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700889 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
890 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700891 },
892 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700893 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700894 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700895 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
Dan O'Mearadd494642020-05-01 07:42:23 -0700896 #
897 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700898 # - &quot;`kg`&quot;
899 # - &quot;`lb`&quot;
900 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700901 },
902 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700903 },
904 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
905 &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.
906 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700907 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700908 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
909 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700910 ],
911 },
912 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700913 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
914 &quot;A String&quot;,
915 ],
916 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
917 &quot;A String&quot;,
918 ],
919 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
920 {
921 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
922 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
923 },
924 ],
925 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
926 {
927 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
928 #
929 # Acceptable values are:
930 # - &quot;`kg`&quot;
931 # - &quot;`lb`&quot;
932 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
933 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700934 ],
935 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700936 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700937 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700938 &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.
939 { # 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.
940 &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.
941 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
942 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
943 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700944 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700945 &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.
946 &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.
947 &quot;subtableName&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (i.e., not for single values), and only if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700948 },
949 ],
950 },
951 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700952 },
953 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
954 &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.
955 &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.
956 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
957 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
958 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
959 },
960 &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.
961 &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.
962 &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.
963 },
964 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
965 {
966 &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.
967 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
968 {
969 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
970 &quot;A String&quot;,
971 ],
972 },
973 ],
974 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
975 &quot;A String&quot;,
976 ],
977 &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.
978 &quot;A String&quot;,
979 ],
980 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
981 {
982 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
983 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
984 },
985 ],
986 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
987 {
988 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
989 #
990 # Acceptable values are:
991 # - &quot;`kg`&quot;
992 # - &quot;`lb`&quot;
993 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
994 },
995 ],
996 },
997 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
998 &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.
999 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1000 {
1001 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1002 &quot;A String&quot;,
1003 ],
1004 },
1005 ],
1006 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1007 &quot;A String&quot;,
1008 ],
1009 &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.
1010 &quot;A String&quot;,
1011 ],
1012 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
1013 {
1014 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1015 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1016 },
1017 ],
1018 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
1019 {
1020 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1021 #
1022 # Acceptable values are:
1023 # - &quot;`kg`&quot;
1024 # - &quot;`lb`&quot;
1025 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1026 },
1027 ],
1028 },
1029 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001030 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001031 &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.
1032 { # 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.
1033 &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.
1034 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1035 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1036 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1037 },
1038 &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.
1039 &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.
1040 &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.
1041 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001042 ],
1043 },
1044 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001045 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001046 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001047 },
1048 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001049 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to.
Dan O'Mearadd494642020-05-01 07:42:23 -07001050 #
1051 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001052 # - &quot;`delivery`&quot;
1053 # - &quot;`pickup`&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001054 },
1055 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001056 }</pre>
1057</div>
1058
1059<div class="method">
1060 <code class="details" id="getsupportedcarriers">getsupportedcarriers(merchantId)</code>
1061 <pre>Retrieves supported carriers and carrier services for an account.
1062
1063Args:
1064 merchantId: string, The ID of the account for which to retrieve the supported carriers. (required)
1065
1066Returns:
1067 An object of the form:
1068
1069 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001070 &quot;carriers&quot;: [ # A list of supported carriers. May be empty.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001071 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001072 &quot;country&quot;: &quot;A String&quot;, # The CLDR country code of the carrier (e.g., &quot;US&quot;). Always present.
1073 &quot;name&quot;: &quot;A String&quot;, # The name of the carrier (e.g., `&quot;UPS&quot;`). Always present.
1074 &quot;services&quot;: [ # A list of supported services (e.g., `&quot;ground&quot;`) for that carrier. Contains at least one service.
1075 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001076 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001077 },
1078 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001079 &quot;kind&quot;: &quot;content#shippingsettingsGetSupportedCarriersResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsGetSupportedCarriersResponse&quot;.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001080 }</pre>
1081</div>
1082
1083<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001084 <code class="details" id="getsupportedholidays">getsupportedholidays(merchantId)</code>
1085 <pre>Retrieves supported holidays for an account.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001086
1087Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001088 merchantId: string, The ID of the account for which to retrieve the supported holidays. (required)
1089
1090Returns:
1091 An object of the form:
1092
1093 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001094 &quot;holidays&quot;: [ # A list of holidays applicable for delivery guarantees. May be empty.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001095 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001096 &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.
1097 &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.
1098 &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.
1099 &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.
1100 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the holiday to be used when configuring holiday cutoffs. Always present.
1101 &quot;type&quot;: &quot;A String&quot;, # The holiday type. Always present.
Dan O'Mearadd494642020-05-01 07:42:23 -07001102 #
1103 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001104 # - &quot;`Christmas`&quot;
1105 # - &quot;`Easter`&quot;
1106 # - &quot;`Father&#x27;s Day`&quot;
1107 # - &quot;`Halloween`&quot;
1108 # - &quot;`Independence Day (USA)`&quot;
1109 # - &quot;`Mother&#x27;s Day`&quot;
1110 # - &quot;`Thanksgiving`&quot;
1111 # - &quot;`Valentine&#x27;s Day`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001112 },
1113 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001114 &quot;kind&quot;: &quot;content#shippingsettingsGetSupportedHolidaysResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsGetSupportedHolidaysResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001115 }</pre>
1116</div>
1117
1118<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001119 <code class="details" id="getsupportedpickupservices">getsupportedpickupservices(merchantId)</code>
1120 <pre>Retrieves supported pickup services for an account.
1121
1122Args:
1123 merchantId: string, The ID of the account for which to retrieve the supported pickup services. (required)
1124
1125Returns:
1126 An object of the form:
1127
1128 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001129 &quot;kind&quot;: &quot;content#shippingsettingsGetSupportedPickupServicesResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsGetSupportedPickupServicesResponse&quot;.
1130 &quot;pickupServices&quot;: [ # A list of supported pickup services. May be empty.
Dan O'Mearadd494642020-05-01 07:42:23 -07001131 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001132 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the carrier (e.g., `&quot;UPS&quot;`). Always present.
1133 &quot;country&quot;: &quot;A String&quot;, # The CLDR country code of the carrier (e.g., &quot;US&quot;). Always present.
1134 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Always present.
Dan O'Mearadd494642020-05-01 07:42:23 -07001135 },
1136 ],
1137 }</pre>
1138</div>
1139
1140<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001141 <code class="details" id="list">list(merchantId, maxResults=None, pageToken=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001142 <pre>Lists the shipping settings of the sub-accounts in your Merchant Center account.
1143
1144Args:
1145 merchantId: string, The ID of the managing account. This must be a multi-client account. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001146 maxResults: integer, The maximum number of shipping settings to return in the response, used for paging.
Bu Sun Kim65020912020-05-20 12:08:20 -07001147 pageToken: string, The token returned by the previous request.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001148
1149Returns:
1150 An object of the form:
1151
1152 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001153 &quot;kind&quot;: &quot;content#shippingsettingsListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#shippingsettingsListResponse&quot;.
1154 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of shipping settings.
1155 &quot;resources&quot;: [
1156 { # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
1157 &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.
1158 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001159 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001160 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
1161 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
1162 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
1163 {
1164 &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.
1165 &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`.
1166 },
1167 ],
1168 },
1169 ],
1170 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
1171 {
1172 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
1173 &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.
1174 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
1175 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
1176 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
1177 &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.
1178 &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.
1179 &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.
1180 },
1181 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
1182 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1183 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001184 ],
1185 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001186 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001187 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001188 &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.
1189 &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.
1190 &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.
1191 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
1192 &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.
1193 },
1194 ],
1195 &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`.
1196 &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`.
1197 &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.
1198 &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.
1199 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
1200 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1201 &quot;A String&quot;,
1202 ],
1203 },
1204 &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.
1205 &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.
1206 &quot;A String&quot;,
1207 ],
1208 &quot;rows&quot;: [
1209 {
1210 &quot;values&quot;: [
1211 {
1212 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
1213 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
1214 },
1215 ],
1216 },
1217 ],
1218 &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;]`.
1219 &quot;A String&quot;,
1220 ],
1221 },
1222 },
1223 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service.
1224 #
1225 # Acceptable values are:
1226 # - &quot;`All scenarios`&quot;
1227 # - &quot;`All scenarios except Shopping Actions`&quot;
1228 # - &quot;`Shopping Actions`&quot;
1229 &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.
1230 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1231 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1232 },
1233 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
1234 &quot;storeCodeSetWithMovs&quot;: [
1235 { # 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.
1236 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
1237 &quot;A String&quot;,
1238 ],
1239 &quot;value&quot;: { # The minimum order value for the given stores.
1240 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1241 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1242 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001243 },
1244 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001245 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001246 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
1247 &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`.
1248 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
1249 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
1250 },
1251 &quot;rateGroups&quot;: [ # Shipping rate group definitions. Only the last one is allowed to have an empty `applicableShippingLabels`, which means &quot;everything else&quot;. The other `applicableShippingLabels` must not overlap.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001252 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001253 &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.
1254 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001255 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001256 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001257 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001258 &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.
1259 &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.
1260 &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.
1261 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1262 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001263 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001264 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
1265 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
1266 &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.
1267 },
1268 ],
1269 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
1270 &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.
1271 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001272 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001273 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1274 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001275 ],
1276 },
1277 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001278 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1279 &quot;A String&quot;,
1280 ],
1281 &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.
1282 &quot;A String&quot;,
1283 ],
1284 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001285 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001286 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1287 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001288 },
1289 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001290 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001291 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001292 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
Dan O'Mearadd494642020-05-01 07:42:23 -07001293 #
1294 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001295 # - &quot;`kg`&quot;
1296 # - &quot;`lb`&quot;
1297 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001298 },
1299 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001300 },
1301 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1302 &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.
1303 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001304 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001305 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1306 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001307 ],
1308 },
1309 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001310 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1311 &quot;A String&quot;,
1312 ],
1313 &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.
1314 &quot;A String&quot;,
1315 ],
1316 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
1317 {
1318 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1319 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1320 },
1321 ],
1322 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
1323 {
1324 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1325 #
1326 # Acceptable values are:
1327 # - &quot;`kg`&quot;
1328 # - &quot;`lb`&quot;
1329 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1330 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001331 ],
1332 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001333 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001334 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001335 &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.
1336 { # 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.
1337 &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.
1338 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1339 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1340 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001341 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001342 &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.
1343 &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.
1344 &quot;subtableName&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (i.e., not for single values), and only if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001345 },
1346 ],
1347 },
1348 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001349 },
1350 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
1351 &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.
1352 &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.
1353 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1354 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1355 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1356 },
1357 &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t ship. Must be true when set, can only be set if all other fields are not set.
1358 &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (e.g., `&quot;5.4&quot;`). Can only be set if all other fields are not set.
1359 &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.
1360 },
1361 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
1362 {
1363 &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.
1364 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1365 {
1366 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1367 &quot;A String&quot;,
1368 ],
1369 },
1370 ],
1371 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1372 &quot;A String&quot;,
1373 ],
1374 &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.
1375 &quot;A String&quot;,
1376 ],
1377 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
1378 {
1379 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1380 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1381 },
1382 ],
1383 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
1384 {
1385 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1386 #
1387 # Acceptable values are:
1388 # - &quot;`kg`&quot;
1389 # - &quot;`lb`&quot;
1390 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1391 },
1392 ],
1393 },
1394 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1395 &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.
1396 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1397 {
1398 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1399 &quot;A String&quot;,
1400 ],
1401 },
1402 ],
1403 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1404 &quot;A String&quot;,
1405 ],
1406 &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.
1407 &quot;A String&quot;,
1408 ],
1409 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
1410 {
1411 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1412 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1413 },
1414 ],
1415 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
1416 {
1417 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1418 #
1419 # Acceptable values are:
1420 # - &quot;`kg`&quot;
1421 # - &quot;`lb`&quot;
1422 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1423 },
1424 ],
1425 },
1426 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001427 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001428 &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.
1429 { # 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.
1430 &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.
1431 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1432 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1433 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1434 },
1435 &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.
1436 &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.
1437 &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.
1438 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001439 ],
1440 },
1441 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001442 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001443 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001444 },
1445 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001446 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to.
Dan O'Mearadd494642020-05-01 07:42:23 -07001447 #
1448 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001449 # - &quot;`delivery`&quot;
1450 # - &quot;`pickup`&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001451 },
1452 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001453 },
1454 ],
1455 }</pre>
1456</div>
1457
1458<div class="method">
1459 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1460 <pre>Retrieves the next page of results.
1461
1462Args:
1463 previous_request: The request for the previous page. (required)
1464 previous_response: The response from the request for the previous page. (required)
1465
1466Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001467 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001468 page. Returns None if there are no more items in the collection.
1469 </pre>
1470</div>
1471
1472<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001473 <code class="details" id="update">update(merchantId, accountId, body=None, dryRun=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001474 <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 -07001475
1476Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001477 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 -07001478 accountId: string, The ID of the account for which to get/update shipping settings. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001479 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001480 The object takes the form of:
1481
Bu Sun Kim65020912020-05-20 12:08:20 -07001482{ # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
1483 &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.
1484 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001485 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001486 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
1487 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
1488 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
1489 {
1490 &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.
1491 &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`.
1492 },
1493 ],
1494 },
1495 ],
1496 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
1497 {
1498 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
1499 &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.
1500 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
1501 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
1502 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
1503 &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.
1504 &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.
1505 &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.
1506 },
1507 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
1508 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1509 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001510 ],
1511 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001512 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001513 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001514 &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.
1515 &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.
1516 &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.
1517 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
1518 &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.
1519 },
1520 ],
1521 &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`.
1522 &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`.
1523 &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.
1524 &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.
1525 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
1526 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1527 &quot;A String&quot;,
1528 ],
1529 },
1530 &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.
1531 &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.
1532 &quot;A String&quot;,
1533 ],
1534 &quot;rows&quot;: [
1535 {
1536 &quot;values&quot;: [
1537 {
1538 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
1539 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
1540 },
1541 ],
1542 },
1543 ],
1544 &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;]`.
1545 &quot;A String&quot;,
1546 ],
1547 },
1548 },
1549 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service.
1550 #
1551 # Acceptable values are:
1552 # - &quot;`All scenarios`&quot;
1553 # - &quot;`All scenarios except Shopping Actions`&quot;
1554 # - &quot;`Shopping Actions`&quot;
1555 &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.
1556 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1557 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1558 },
1559 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
1560 &quot;storeCodeSetWithMovs&quot;: [
1561 { # 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.
1562 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
1563 &quot;A String&quot;,
1564 ],
1565 &quot;value&quot;: { # The minimum order value for the given stores.
1566 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1567 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1568 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001569 },
1570 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001571 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001572 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
1573 &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`.
1574 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
1575 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
1576 },
1577 &quot;rateGroups&quot;: [ # Shipping rate group definitions. Only the last one is allowed to have an empty `applicableShippingLabels`, which means &quot;everything else&quot;. The other `applicableShippingLabels` must not overlap.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001578 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001579 &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.
1580 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001581 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001582 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001583 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001584 &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.
1585 &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.
1586 &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.
1587 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1588 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001589 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001590 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
1591 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
1592 &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.
1593 },
1594 ],
1595 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
1596 &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.
1597 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001598 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001599 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1600 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001601 ],
1602 },
1603 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001604 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1605 &quot;A String&quot;,
1606 ],
1607 &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.
1608 &quot;A String&quot;,
1609 ],
1610 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001611 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001612 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1613 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001614 },
1615 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001616 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001617 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001618 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
Dan O'Mearadd494642020-05-01 07:42:23 -07001619 #
1620 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001621 # - &quot;`kg`&quot;
1622 # - &quot;`lb`&quot;
1623 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001624 },
1625 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001626 },
1627 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1628 &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.
1629 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001630 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001631 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1632 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001633 ],
1634 },
1635 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001636 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1637 &quot;A String&quot;,
1638 ],
1639 &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.
1640 &quot;A String&quot;,
1641 ],
1642 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
1643 {
1644 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1645 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1646 },
1647 ],
1648 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
1649 {
1650 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1651 #
1652 # Acceptable values are:
1653 # - &quot;`kg`&quot;
1654 # - &quot;`lb`&quot;
1655 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1656 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001657 ],
1658 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001659 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001660 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001661 &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.
1662 { # 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.
1663 &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.
1664 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1665 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1666 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001667 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001668 &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.
1669 &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.
1670 &quot;subtableName&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (i.e., not for single values), and only if all other fields are not set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001671 },
1672 ],
1673 },
1674 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001675 },
1676 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
1677 &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.
1678 &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.
1679 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1680 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1681 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1682 },
1683 &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.
1684 &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.
1685 &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.
1686 },
1687 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
1688 {
1689 &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.
1690 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1691 {
1692 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1693 &quot;A String&quot;,
1694 ],
1695 },
1696 ],
1697 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1698 &quot;A String&quot;,
1699 ],
1700 &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.
1701 &quot;A String&quot;,
1702 ],
1703 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
1704 {
1705 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1706 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1707 },
1708 ],
1709 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
1710 {
1711 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1712 #
1713 # Acceptable values are:
1714 # - &quot;`kg`&quot;
1715 # - &quot;`lb`&quot;
1716 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1717 },
1718 ],
1719 },
1720 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1721 &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.
1722 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1723 {
1724 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1725 &quot;A String&quot;,
1726 ],
1727 },
1728 ],
1729 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1730 &quot;A String&quot;,
1731 ],
1732 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
1733 &quot;A String&quot;,
1734 ],
1735 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
1736 {
1737 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1738 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1739 },
1740 ],
1741 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
1742 {
1743 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1744 #
1745 # Acceptable values are:
1746 # - &quot;`kg`&quot;
1747 # - &quot;`lb`&quot;
1748 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1749 },
1750 ],
1751 },
1752 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001753 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001754 &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.
1755 { # 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.
1756 &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.
1757 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1758 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1759 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1760 },
1761 &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.
1762 &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.
1763 &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.
1764 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001765 ],
1766 },
1767 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001768 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001769 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001770 },
1771 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001772 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to.
Dan O'Mearadd494642020-05-01 07:42:23 -07001773 #
1774 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001775 # - &quot;`delivery`&quot;
1776 # - &quot;`pickup`&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001777 },
1778 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001779}
1780
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001781 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001782
1783Returns:
1784 An object of the form:
1785
Bu Sun Kim65020912020-05-20 12:08:20 -07001786 { # The merchant account&#x27;s shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
1787 &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.
1788 &quot;postalCodeGroups&quot;: [ # A list of postal code groups that can be referred to in `services`. Optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001789 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001790 &quot;country&quot;: &quot;A String&quot;, # The CLDR territory code of the country the postal code group applies to. Required.
1791 &quot;name&quot;: &quot;A String&quot;, # The name of the postal code group, referred to in headers. Required.
1792 &quot;postalCodeRanges&quot;: [ # A range of postal codes. Required.
1793 {
1794 &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.
1795 &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`.
1796 },
1797 ],
1798 },
1799 ],
1800 &quot;services&quot;: [ # The target account&#x27;s list of services. Optional.
1801 {
1802 &quot;active&quot;: True or False, # A boolean exposing the active status of the shipping service. Required.
1803 &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.
1804 &quot;deliveryCountry&quot;: &quot;A String&quot;, # The CLDR territory code of the country to which the service applies. Required.
1805 &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. Required.
1806 &quot;cutoffTime&quot;: { # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
1807 &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.
1808 &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.
1809 &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.
1810 },
1811 &quot;handlingBusinessDayConfig&quot;: { # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
1812 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1813 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001814 ],
1815 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001816 &quot;holidayCutoffs&quot;: [ # Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001817 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001818 &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.
1819 &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.
1820 &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.
1821 &quot;holidayId&quot;: &quot;A String&quot;, # Unique identifier for the holiday. Required.
1822 &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.
1823 },
1824 ],
1825 &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`.
1826 &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`.
1827 &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.
1828 &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.
1829 &quot;transitBusinessDayConfig&quot;: { # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
1830 &quot;businessDays&quot;: [ # Regular business days. May not be empty.
1831 &quot;A String&quot;,
1832 ],
1833 },
1834 &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.
1835 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service.
1836 &quot;A String&quot;,
1837 ],
1838 &quot;rows&quot;: [
1839 {
1840 &quot;values&quot;: [
1841 {
1842 &quot;maxTransitTimeInDays&quot;: 42, # Must be greater than or equal to `minTransitTimeInDays`.
1843 &quot;minTransitTimeInDays&quot;: 42, # Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery.
1844 },
1845 ],
1846 },
1847 ],
1848 &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;]`.
1849 &quot;A String&quot;,
1850 ],
1851 },
1852 },
1853 &quot;eligibility&quot;: &quot;A String&quot;, # Eligibility for this service.
1854 #
1855 # Acceptable values are:
1856 # - &quot;`All scenarios`&quot;
1857 # - &quot;`All scenarios except Shopping Actions`&quot;
1858 # - &quot;`Shopping Actions`&quot;
1859 &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.
1860 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1861 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1862 },
1863 &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
1864 &quot;storeCodeSetWithMovs&quot;: [
1865 { # 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.
1866 &quot;storeCodes&quot;: [ # A list of unique store codes or empty for the catch all.
1867 &quot;A String&quot;,
1868 ],
1869 &quot;value&quot;: { # The minimum order value for the given stores.
1870 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1871 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1872 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001873 },
1874 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001875 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001876 &quot;name&quot;: &quot;A String&quot;, # Free-form name of the service. Must be unique within target account. Required.
1877 &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`.
1878 &quot;carrierName&quot;: &quot;A String&quot;, # The name of the pickup carrier (e.g., `&quot;UPS&quot;`). Required.
1879 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the pickup service (e.g., `&quot;Access point&quot;`). Required.
1880 },
1881 &quot;rateGroups&quot;: [ # Shipping rate group definitions. Only the last one is allowed to have an empty `applicableShippingLabels`, which means &quot;everything else&quot;. The other `applicableShippingLabels` must not overlap.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001882 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001883 &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.
1884 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001885 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001886 &quot;carrierRates&quot;: [ # A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001887 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001888 &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.
1889 &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.
1890 &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.
1891 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1892 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001893 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001894 &quot;name&quot;: &quot;A String&quot;, # Name of the carrier rate. Must be unique per rate group. Required.
1895 &quot;originPostalCode&quot;: &quot;A String&quot;, # Shipping origin for this carrier rate. Required.
1896 &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.
1897 },
1898 ],
1899 &quot;mainTable&quot;: { # A table defining the rate group, when `singleValue` is not expressive enough. Can only be set if `singleValue` is not set.
1900 &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.
1901 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001902 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001903 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1904 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001905 ],
1906 },
1907 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001908 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1909 &quot;A String&quot;,
1910 ],
1911 &quot;postalCodeGroupNames&quot;: [ # A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
1912 &quot;A String&quot;,
1913 ],
1914 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001915 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001916 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1917 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001918 },
1919 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001920 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001921 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001922 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
Dan O'Mearadd494642020-05-01 07:42:23 -07001923 #
1924 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07001925 # - &quot;`kg`&quot;
1926 # - &quot;`lb`&quot;
1927 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001928 },
1929 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001930 },
1931 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
1932 &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.
1933 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001934 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001935 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1936 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001937 ],
1938 },
1939 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001940 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
1941 &quot;A String&quot;,
1942 ],
1943 &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.
1944 &quot;A String&quot;,
1945 ],
1946 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
1947 {
1948 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1949 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1950 },
1951 ],
1952 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
1953 {
1954 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
1955 #
1956 # Acceptable values are:
1957 # - &quot;`kg`&quot;
1958 # - &quot;`lb`&quot;
1959 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
1960 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001961 ],
1962 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001963 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001964 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001965 &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.
1966 { # 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.
1967 &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.
1968 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1969 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1970 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001971 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001972 &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.
1973 &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.
1974 &quot;subtableName&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (i.e., not for single values), and only if all other fields are not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001975 },
1976 ],
1977 },
1978 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001979 },
1980 &quot;name&quot;: &quot;A String&quot;, # Name of the rate group. Optional. If set has to be unique within shipping service.
1981 &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.
1982 &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.
1983 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
1984 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
1985 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
1986 },
1987 &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.
1988 &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.
1989 &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.
1990 },
1991 &quot;subtables&quot;: [ # A list of subtables referred to by `mainTable`. Can only be set if `mainTable` is set.
1992 {
1993 &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.
1994 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
1995 {
1996 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
1997 &quot;A String&quot;,
1998 ],
1999 },
2000 ],
2001 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
2002 &quot;A String&quot;,
2003 ],
2004 &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.
2005 &quot;A String&quot;,
2006 ],
2007 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
2008 {
2009 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2010 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2011 },
2012 ],
2013 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
2014 {
2015 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
2016 #
2017 # Acceptable values are:
2018 # - &quot;`kg`&quot;
2019 # - &quot;`lb`&quot;
2020 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
2021 },
2022 ],
2023 },
2024 &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
2025 &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.
2026 &quot;locations&quot;: [ # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
2027 {
2028 &quot;locationIds&quot;: [ # A non-empty list of location IDs. They must all be of the same location type (e.g., state).
2029 &quot;A String&quot;,
2030 ],
2031 },
2032 ],
2033 &quot;numberOfItems&quot;: [ # A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
2034 &quot;A String&quot;,
2035 ],
2036 &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.
2037 &quot;A String&quot;,
2038 ],
2039 &quot;prices&quot;: [ # A list of inclusive order price upper bounds. The last price&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;500&quot;, &quot;currency&quot;: &quot;USD&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;currency&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.
2040 {
2041 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2042 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2043 },
2044 ],
2045 &quot;weights&quot;: [ # A list of inclusive order weight upper bounds. The last weight&#x27;s value can be `&quot;infinity&quot;`. For example `[{&quot;value&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;50&quot;, &quot;unit&quot;: &quot;kg&quot;}, {&quot;value&quot;: &quot;infinity&quot;, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.
2046 {
2047 &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit.
2048 #
2049 # Acceptable values are:
2050 # - &quot;`kg`&quot;
2051 # - &quot;`lb`&quot;
2052 &quot;value&quot;: &quot;A String&quot;, # Required. The weight represented as a number.
2053 },
2054 ],
2055 },
2056 &quot;rows&quot;: [ # The list of rows that constitute the table. Must have the same length as `rowHeaders`. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002057 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002058 &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.
2059 { # 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.
2060 &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.
2061 &quot;flatRate&quot;: { # A flat rate. Can only be set if all other fields are not set.
2062 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
2063 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
2064 },
2065 &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.
2066 &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.
2067 &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.
2068 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002069 ],
2070 },
2071 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002072 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002073 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002074 },
2075 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002076 &quot;shipmentType&quot;: &quot;A String&quot;, # Type of locations this service ships orders to.
Dan O'Mearadd494642020-05-01 07:42:23 -07002077 #
2078 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -07002079 # - &quot;`delivery`&quot;
2080 # - &quot;`pickup`&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002081 },
2082 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002083 }</pre>
2084</div>
2085
2086</body></html>