Debian Codegraph @

docs/dyn/androidpublisher_v3.monetization.onetimeproducts.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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="androidpublisher_v3.html">Google Play Android Developer API</a> . <a href="androidpublisher_v3.monetization.html">monetization</a> . <a href="androidpublisher_v3.monetization.onetimeproducts.html">onetimeproducts</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="androidpublisher_v3.monetization.onetimeproducts.purchaseOptions.html">purchaseOptions()</a></code>
79 </p>
80 <p class="firstline">Returns the purchaseOptions Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#batchDelete">batchDelete(packageName, body=None, x__xgafv=None)</a></code></p>
84 <p class="firstline">Deletes one or more one-time products.</p>
85 <p class="toc_element">
86 <code><a href="#batchGet">batchGet(packageName, productIds=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Reads one or more one-time products.</p>
88 <p class="toc_element">
89 <code><a href="#batchUpdate">batchUpdate(packageName, body=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Creates or updates one or more one-time products.</p>
91 <p class="toc_element">
92 <code><a href="#close">close()</a></code></p>
93 <p class="firstline">Close httplib2 connections.</p>
94 <p class="toc_element">
95 <code><a href="#delete">delete(packageName, productId, latencyTolerance=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Deletes a one-time product.</p>
97 <p class="toc_element">
98 <code><a href="#get">get(packageName, productId, x__xgafv=None)</a></code></p>
99 <p class="firstline">Reads a single one-time product.</p>
100 <p class="toc_element">
101 <code><a href="#list">list(packageName, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
102 <p class="firstline">Lists all one-time products under a given app.</p>
103 <p class="toc_element">
104 <code><a href="#list_next">list_next()</a></code></p>
105 <p class="firstline">Retrieves the next page of results.</p>
106 <p class="toc_element">
107 <code><a href="#patch">patch(packageName, productId, allowMissing=None, body=None, latencyTolerance=None, regionsVersion_version=None, updateMask=None, x__xgafv=None)</a></code></p>
108 <p class="firstline">Creates or updates a one-time product.</p>
109 <h3>Method Details</h3>
110 <div class="method">
111 <code class="details" id="batchDelete">batchDelete(packageName, body=None, x__xgafv=None)</code>
112 <pre>Deletes one or more one-time products.
113
114 Args:
115 packageName: string, Required. The parent app (package name) for which the one-time products should be deleted. Must be equal to the package_name field on all the OneTimeProduct resources. (required)
116 body: object, The request body.
117 The object takes the form of:
118
119 { # Request message for BatchDeleteOneTimeProduct.
120 &quot;requests&quot;: [ # Required. A list of delete requests of up to 100 elements. All requests must delete different one-time products.
121 { # Request message for deleting a one-time product.
122 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
123 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the one-time product to delete.
124 &quot;productId&quot;: &quot;A String&quot;, # Required. The one-time product ID of the one-time product to delete.
125 },
126 ],
127 }
128
129 x__xgafv: string, V1 error format.
130 Allowed values
131 1 - v1 error format
132 2 - v2 error format
133 </pre>
134 </div>
135
136 <div class="method">
137 <code class="details" id="batchGet">batchGet(packageName, productIds=None, x__xgafv=None)</code>
138 <pre>Reads one or more one-time products.
139
140 Args:
141 packageName: string, Required. The parent app (package name) for which the products should be retrieved. Must be equal to the package_name field on all requests. (required)
142 productIds: string, Required. A list of up to 100 product IDs to retrieve. All IDs must be different. (repeated)
143 x__xgafv: string, V1 error format.
144 Allowed values
145 1 - v1 error format
146 2 - v2 error format
147
148 Returns:
149 An object of the form:
150
151 { # Response message for the BatchGetOneTimeProducts endpoint.
152 &quot;oneTimeProducts&quot;: [ # The list of requested one-time products, in the same order as the request.
153 { # A single one-time product for an app.
154 &quot;listings&quot;: [ # Required. Set of localized title and description data. Must not have duplicate entries with the same language_code.
155 { # Regional store listing for a one-time product.
156 &quot;description&quot;: &quot;A String&quot;, # Required. The description of this product in the language of this listing. The maximum length is 200 characters.
157 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g., &quot;en-US&quot;.
158 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this product in the language of this listing. The maximum length is 55 characters.
159 },
160 ],
161 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this one-time product, and returned to the app through the billing library. Purchase options and offers for this product will also receive these tags in the billing library.
162 { # Represents a custom tag specified for a product offer.
163 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
164 },
165 ],
166 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. Package name of the parent app.
167 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.).
168 &quot;purchaseOptions&quot;: [ # Required. The set of purchase options for this one-time product.
169 { # A single purchase option for a one-time product.
170 &quot;buyOption&quot;: { # A purchase option that can be bought. # A purchase option that can be bought.
171 &quot;legacyCompatible&quot;: True or False, # Optional. Whether this purchase option will be available in legacy PBL flows that do not support one-time products model. Up to one &quot;buy&quot; purchase option can be marked as backwards compatible.
172 &quot;multiQuantityEnabled&quot;: True or False, # Optional. Whether this purchase option allows multi-quantity. Multi-quantity allows buyer to purchase more than one item in a single checkout.
173 },
174 &quot;newRegionsConfig&quot;: { # Pricing information for any new regions Play may launch in the future. # Pricing information for any new locations Play may launch in the future. If omitted, the purchase option will not be automatically available in any new locations Play may launch in the future.
175 &quot;availability&quot;: &quot;A String&quot;, # Required. The regional availability for the new regions config. When set to AVAILABLE, the pricing information will be used for any new regions Play may launch in the future.
176 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new regions Play may launch in.
177 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
178 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
179 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
180 },
181 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new regions Play may launch in.
182 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
183 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
184 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
185 },
186 },
187 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this purchase option, and returned to the app through the billing library. Offers for this purchase option will also receive these tags in the billing library.
188 { # Represents a custom tag specified for a product offer.
189 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
190 },
191 ],
192 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. Immutable. The unique identifier of this purchase option. Must be unique within the one-time product. It must start with a number or lower-case letter, and can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-). The maximum length is 63 characters.
193 &quot;regionalPricingAndAvailabilityConfigs&quot;: [ # Regional pricing and availability information for this purchase option.
194 { # Regional pricing and availability configuration for a purchase option.
195 &quot;availability&quot;: &quot;A String&quot;, # The availability of the purchase option.
196 &quot;price&quot;: { # Represents an amount of money with its currency type. # The price of the purchase option in the specified region. Must be set in the currency that is linked to the specified region.
197 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
198 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
199 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
200 },
201 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g., &quot;US&quot;.
202 },
203 ],
204 &quot;rentOption&quot;: { # A purchase option that can be rented. # A purchase option that can be rented.
205 &quot;expirationPeriod&quot;: &quot;A String&quot;, # Optional. The amount of time the user has after starting consuming the entitlement before it is revoked. Specified in ISO 8601 format.
206 &quot;rentalPeriod&quot;: &quot;A String&quot;, # Required. The amount of time a user has the entitlement for. Starts at purchase flow completion. Specified in ISO 8601 format.
207 },
208 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the purchase option, i.e., whether it&#x27;s active. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
209 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy and legal compliance for one-time product purchase options. # Optional. Details about taxes and legal compliance.
210 &quot;withdrawalRightType&quot;: &quot;A String&quot;, # Optional. Digital content or service classification for products distributed to users in eligible regions. If unset, it defaults to `WITHDRAWAL_RIGHT_DIGITAL_CONTENT`. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information.
211 },
212 },
213 ],
214 &quot;regionsVersion&quot;: { # The version of the available regions being used for the specified resource. # Output only. The version of the regions configuration that was used to generate the one-time product.
215 &quot;version&quot;: &quot;A String&quot;, # Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
216 },
217 &quot;restrictedPaymentCountries&quot;: { # Countries where the purchase of this product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed. # Optional. Countries where the purchase of this one-time product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed.
218 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
219 &quot;A String&quot;,
220 ],
221 },
222 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy and legal compliance for one-time products. # Details about taxes and legal compliance.
223 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this one-time product is declared as a product representing a tokenized digital asset.
224 &quot;productTaxCategoryCode&quot;: &quot;A String&quot;, # Product tax category code to assign to the one-time product. Product tax category determines the transaction tax rates applied to the product. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information.
225 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
226 { # Details about the age rating for a specific geographic region.
227 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
228 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
229 },
230 ],
231 &quot;regionalTaxConfigs&quot;: [ # Regional tax configuration.
232 { # Details about taxation in a given geographical region.
233 &quot;eligibleForStreamingServiceTaxRate&quot;: True or False, # You must tell us if your app contains streaming products to correctly charge US state and local sales tax. Field only supported in the United States.
234 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
235 &quot;streamingTaxType&quot;: &quot;A String&quot;, # To collect communications or amusement taxes in the United States, choose the appropriate tax category. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).
236 &quot;taxTier&quot;: &quot;A String&quot;, # Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or audiobooks in various regions may be eligible for reduced tax rates. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498).
237 },
238 ],
239 },
240 },
241 ],
242 }</pre>
243 </div>
244
245 <div class="method">
246 <code class="details" id="batchUpdate">batchUpdate(packageName, body=None, x__xgafv=None)</code>
247 <pre>Creates or updates one or more one-time products.
248
249 Args:
250 packageName: string, Required. The parent app (package name) for which the one-time products should be updated. Must be equal to the package_name field on all the OneTimeProduct resources. (required)
251 body: object, The request body.
252 The object takes the form of:
253
254 { # Request message for BatchUpdateOneTimeProduct.
255 &quot;requests&quot;: [ # Required. A list of update requests of up to 100 elements. All requests must update different one-time products.
256 { # Request message for UpdateOneTimeProduct.
257 &quot;allowMissing&quot;: True or False, # Optional. If set to true, and the one-time product with the given package_name and product_id doesn&#x27;t exist, the one-time product will be created. If a new one-time product is created, update_mask is ignored.
258 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product upsert. Defaults to latency-sensitive.
259 &quot;oneTimeProduct&quot;: { # A single one-time product for an app. # Required. The one-time product to upsert.
260 &quot;listings&quot;: [ # Required. Set of localized title and description data. Must not have duplicate entries with the same language_code.
261 { # Regional store listing for a one-time product.
262 &quot;description&quot;: &quot;A String&quot;, # Required. The description of this product in the language of this listing. The maximum length is 200 characters.
263 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g., &quot;en-US&quot;.
264 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this product in the language of this listing. The maximum length is 55 characters.
265 },
266 ],
267 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this one-time product, and returned to the app through the billing library. Purchase options and offers for this product will also receive these tags in the billing library.
268 { # Represents a custom tag specified for a product offer.
269 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
270 },
271 ],
272 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. Package name of the parent app.
273 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.).
274 &quot;purchaseOptions&quot;: [ # Required. The set of purchase options for this one-time product.
275 { # A single purchase option for a one-time product.
276 &quot;buyOption&quot;: { # A purchase option that can be bought. # A purchase option that can be bought.
277 &quot;legacyCompatible&quot;: True or False, # Optional. Whether this purchase option will be available in legacy PBL flows that do not support one-time products model. Up to one &quot;buy&quot; purchase option can be marked as backwards compatible.
278 &quot;multiQuantityEnabled&quot;: True or False, # Optional. Whether this purchase option allows multi-quantity. Multi-quantity allows buyer to purchase more than one item in a single checkout.
279 },
280 &quot;newRegionsConfig&quot;: { # Pricing information for any new regions Play may launch in the future. # Pricing information for any new locations Play may launch in the future. If omitted, the purchase option will not be automatically available in any new locations Play may launch in the future.
281 &quot;availability&quot;: &quot;A String&quot;, # Required. The regional availability for the new regions config. When set to AVAILABLE, the pricing information will be used for any new regions Play may launch in the future.
282 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new regions Play may launch in.
283 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
284 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
285 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
286 },
287 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new regions Play may launch in.
288 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
289 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
290 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
291 },
292 },
293 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this purchase option, and returned to the app through the billing library. Offers for this purchase option will also receive these tags in the billing library.
294 { # Represents a custom tag specified for a product offer.
295 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
296 },
297 ],
298 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. Immutable. The unique identifier of this purchase option. Must be unique within the one-time product. It must start with a number or lower-case letter, and can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-). The maximum length is 63 characters.
299 &quot;regionalPricingAndAvailabilityConfigs&quot;: [ # Regional pricing and availability information for this purchase option.
300 { # Regional pricing and availability configuration for a purchase option.
301 &quot;availability&quot;: &quot;A String&quot;, # The availability of the purchase option.
302 &quot;price&quot;: { # Represents an amount of money with its currency type. # The price of the purchase option in the specified region. Must be set in the currency that is linked to the specified region.
303 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
304 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
305 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
306 },
307 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g., &quot;US&quot;.
308 },
309 ],
310 &quot;rentOption&quot;: { # A purchase option that can be rented. # A purchase option that can be rented.
311 &quot;expirationPeriod&quot;: &quot;A String&quot;, # Optional. The amount of time the user has after starting consuming the entitlement before it is revoked. Specified in ISO 8601 format.
312 &quot;rentalPeriod&quot;: &quot;A String&quot;, # Required. The amount of time a user has the entitlement for. Starts at purchase flow completion. Specified in ISO 8601 format.
313 },
314 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the purchase option, i.e., whether it&#x27;s active. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
315 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy and legal compliance for one-time product purchase options. # Optional. Details about taxes and legal compliance.
316 &quot;withdrawalRightType&quot;: &quot;A String&quot;, # Optional. Digital content or service classification for products distributed to users in eligible regions. If unset, it defaults to `WITHDRAWAL_RIGHT_DIGITAL_CONTENT`. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information.
317 },
318 },
319 ],
320 &quot;regionsVersion&quot;: { # The version of the available regions being used for the specified resource. # Output only. The version of the regions configuration that was used to generate the one-time product.
321 &quot;version&quot;: &quot;A String&quot;, # Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
322 },
323 &quot;restrictedPaymentCountries&quot;: { # Countries where the purchase of this product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed. # Optional. Countries where the purchase of this one-time product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed.
324 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
325 &quot;A String&quot;,
326 ],
327 },
328 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy and legal compliance for one-time products. # Details about taxes and legal compliance.
329 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this one-time product is declared as a product representing a tokenized digital asset.
330 &quot;productTaxCategoryCode&quot;: &quot;A String&quot;, # Product tax category code to assign to the one-time product. Product tax category determines the transaction tax rates applied to the product. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information.
331 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
332 { # Details about the age rating for a specific geographic region.
333 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
334 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
335 },
336 ],
337 &quot;regionalTaxConfigs&quot;: [ # Regional tax configuration.
338 { # Details about taxation in a given geographical region.
339 &quot;eligibleForStreamingServiceTaxRate&quot;: True or False, # You must tell us if your app contains streaming products to correctly charge US state and local sales tax. Field only supported in the United States.
340 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
341 &quot;streamingTaxType&quot;: &quot;A String&quot;, # To collect communications or amusement taxes in the United States, choose the appropriate tax category. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).
342 &quot;taxTier&quot;: &quot;A String&quot;, # Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or audiobooks in various regions may be eligible for reduced tax rates. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498).
343 },
344 ],
345 },
346 },
347 &quot;regionsVersion&quot;: { # The version of the available regions being used for the specified resource. # Required. The version of the available regions being used for the one-time product.
348 &quot;version&quot;: &quot;A String&quot;, # Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
349 },
350 &quot;updateMask&quot;: &quot;A String&quot;, # Required. The list of fields to be updated.
351 },
352 ],
353 }
354
355 x__xgafv: string, V1 error format.
356 Allowed values
357 1 - v1 error format
358 2 - v2 error format
359
360 Returns:
361 An object of the form:
362
363 { # Response message for BatchUpdateOneTimeProduct.
364 &quot;oneTimeProducts&quot;: [ # The list of updated one-time products list, in the same order as the request.
365 { # A single one-time product for an app.
366 &quot;listings&quot;: [ # Required. Set of localized title and description data. Must not have duplicate entries with the same language_code.
367 { # Regional store listing for a one-time product.
368 &quot;description&quot;: &quot;A String&quot;, # Required. The description of this product in the language of this listing. The maximum length is 200 characters.
369 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g., &quot;en-US&quot;.
370 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this product in the language of this listing. The maximum length is 55 characters.
371 },
372 ],
373 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this one-time product, and returned to the app through the billing library. Purchase options and offers for this product will also receive these tags in the billing library.
374 { # Represents a custom tag specified for a product offer.
375 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
376 },
377 ],
378 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. Package name of the parent app.
379 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.).
380 &quot;purchaseOptions&quot;: [ # Required. The set of purchase options for this one-time product.
381 { # A single purchase option for a one-time product.
382 &quot;buyOption&quot;: { # A purchase option that can be bought. # A purchase option that can be bought.
383 &quot;legacyCompatible&quot;: True or False, # Optional. Whether this purchase option will be available in legacy PBL flows that do not support one-time products model. Up to one &quot;buy&quot; purchase option can be marked as backwards compatible.
384 &quot;multiQuantityEnabled&quot;: True or False, # Optional. Whether this purchase option allows multi-quantity. Multi-quantity allows buyer to purchase more than one item in a single checkout.
385 },
386 &quot;newRegionsConfig&quot;: { # Pricing information for any new regions Play may launch in the future. # Pricing information for any new locations Play may launch in the future. If omitted, the purchase option will not be automatically available in any new locations Play may launch in the future.
387 &quot;availability&quot;: &quot;A String&quot;, # Required. The regional availability for the new regions config. When set to AVAILABLE, the pricing information will be used for any new regions Play may launch in the future.
388 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new regions Play may launch in.
389 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
390 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
391 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
392 },
393 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new regions Play may launch in.
394 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
395 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
396 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
397 },
398 },
399 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this purchase option, and returned to the app through the billing library. Offers for this purchase option will also receive these tags in the billing library.
400 { # Represents a custom tag specified for a product offer.
401 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
402 },
403 ],
404 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. Immutable. The unique identifier of this purchase option. Must be unique within the one-time product. It must start with a number or lower-case letter, and can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-). The maximum length is 63 characters.
405 &quot;regionalPricingAndAvailabilityConfigs&quot;: [ # Regional pricing and availability information for this purchase option.
406 { # Regional pricing and availability configuration for a purchase option.
407 &quot;availability&quot;: &quot;A String&quot;, # The availability of the purchase option.
408 &quot;price&quot;: { # Represents an amount of money with its currency type. # The price of the purchase option in the specified region. Must be set in the currency that is linked to the specified region.
409 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
410 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
411 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
412 },
413 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g., &quot;US&quot;.
414 },
415 ],
416 &quot;rentOption&quot;: { # A purchase option that can be rented. # A purchase option that can be rented.
417 &quot;expirationPeriod&quot;: &quot;A String&quot;, # Optional. The amount of time the user has after starting consuming the entitlement before it is revoked. Specified in ISO 8601 format.
418 &quot;rentalPeriod&quot;: &quot;A String&quot;, # Required. The amount of time a user has the entitlement for. Starts at purchase flow completion. Specified in ISO 8601 format.
419 },
420 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the purchase option, i.e., whether it&#x27;s active. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
421 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy and legal compliance for one-time product purchase options. # Optional. Details about taxes and legal compliance.
422 &quot;withdrawalRightType&quot;: &quot;A String&quot;, # Optional. Digital content or service classification for products distributed to users in eligible regions. If unset, it defaults to `WITHDRAWAL_RIGHT_DIGITAL_CONTENT`. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information.
423 },
424 },
425 ],
426 &quot;regionsVersion&quot;: { # The version of the available regions being used for the specified resource. # Output only. The version of the regions configuration that was used to generate the one-time product.
427 &quot;version&quot;: &quot;A String&quot;, # Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
428 },
429 &quot;restrictedPaymentCountries&quot;: { # Countries where the purchase of this product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed. # Optional. Countries where the purchase of this one-time product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed.
430 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
431 &quot;A String&quot;,
432 ],
433 },
434 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy and legal compliance for one-time products. # Details about taxes and legal compliance.
435 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this one-time product is declared as a product representing a tokenized digital asset.
436 &quot;productTaxCategoryCode&quot;: &quot;A String&quot;, # Product tax category code to assign to the one-time product. Product tax category determines the transaction tax rates applied to the product. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information.
437 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
438 { # Details about the age rating for a specific geographic region.
439 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
440 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
441 },
442 ],
443 &quot;regionalTaxConfigs&quot;: [ # Regional tax configuration.
444 { # Details about taxation in a given geographical region.
445 &quot;eligibleForStreamingServiceTaxRate&quot;: True or False, # You must tell us if your app contains streaming products to correctly charge US state and local sales tax. Field only supported in the United States.
446 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
447 &quot;streamingTaxType&quot;: &quot;A String&quot;, # To collect communications or amusement taxes in the United States, choose the appropriate tax category. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).
448 &quot;taxTier&quot;: &quot;A String&quot;, # Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or audiobooks in various regions may be eligible for reduced tax rates. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498).
449 },
450 ],
451 },
452 },
453 ],
454 }</pre>
455 </div>
456
457 <div class="method">
458 <code class="details" id="close">close()</code>
459 <pre>Close httplib2 connections.</pre>
460 </div>
461
462 <div class="method">
463 <code class="details" id="delete">delete(packageName, productId, latencyTolerance=None, x__xgafv=None)</code>
464 <pre>Deletes a one-time product.
465
466 Args:
467 packageName: string, Required. The parent app (package name) of the one-time product to delete. (required)
468 productId: string, Required. The one-time product ID of the one-time product to delete. (required)
469 latencyTolerance: string, Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
470 Allowed values
471 PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED - Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.
472 PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE - The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.
473 PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT - The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods.
474 x__xgafv: string, V1 error format.
475 Allowed values
476 1 - v1 error format
477 2 - v2 error format
478 </pre>
479 </div>
480
481 <div class="method">
482 <code class="details" id="get">get(packageName, productId, x__xgafv=None)</code>
483 <pre>Reads a single one-time product.
484
485 Args:
486 packageName: string, Required. The parent app (package name) of the product to retrieve. (required)
487 productId: string, Required. The product ID of the product to retrieve. (required)
488 x__xgafv: string, V1 error format.
489 Allowed values
490 1 - v1 error format
491 2 - v2 error format
492
493 Returns:
494 An object of the form:
495
496 { # A single one-time product for an app.
497 &quot;listings&quot;: [ # Required. Set of localized title and description data. Must not have duplicate entries with the same language_code.
498 { # Regional store listing for a one-time product.
499 &quot;description&quot;: &quot;A String&quot;, # Required. The description of this product in the language of this listing. The maximum length is 200 characters.
500 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g., &quot;en-US&quot;.
501 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this product in the language of this listing. The maximum length is 55 characters.
502 },
503 ],
504 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this one-time product, and returned to the app through the billing library. Purchase options and offers for this product will also receive these tags in the billing library.
505 { # Represents a custom tag specified for a product offer.
506 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
507 },
508 ],
509 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. Package name of the parent app.
510 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.).
511 &quot;purchaseOptions&quot;: [ # Required. The set of purchase options for this one-time product.
512 { # A single purchase option for a one-time product.
513 &quot;buyOption&quot;: { # A purchase option that can be bought. # A purchase option that can be bought.
514 &quot;legacyCompatible&quot;: True or False, # Optional. Whether this purchase option will be available in legacy PBL flows that do not support one-time products model. Up to one &quot;buy&quot; purchase option can be marked as backwards compatible.
515 &quot;multiQuantityEnabled&quot;: True or False, # Optional. Whether this purchase option allows multi-quantity. Multi-quantity allows buyer to purchase more than one item in a single checkout.
516 },
517 &quot;newRegionsConfig&quot;: { # Pricing information for any new regions Play may launch in the future. # Pricing information for any new locations Play may launch in the future. If omitted, the purchase option will not be automatically available in any new locations Play may launch in the future.
518 &quot;availability&quot;: &quot;A String&quot;, # Required. The regional availability for the new regions config. When set to AVAILABLE, the pricing information will be used for any new regions Play may launch in the future.
519 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new regions Play may launch in.
520 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
521 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
522 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
523 },
524 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new regions Play may launch in.
525 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
526 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
527 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
528 },
529 },
530 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this purchase option, and returned to the app through the billing library. Offers for this purchase option will also receive these tags in the billing library.
531 { # Represents a custom tag specified for a product offer.
532 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
533 },
534 ],
535 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. Immutable. The unique identifier of this purchase option. Must be unique within the one-time product. It must start with a number or lower-case letter, and can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-). The maximum length is 63 characters.
536 &quot;regionalPricingAndAvailabilityConfigs&quot;: [ # Regional pricing and availability information for this purchase option.
537 { # Regional pricing and availability configuration for a purchase option.
538 &quot;availability&quot;: &quot;A String&quot;, # The availability of the purchase option.
539 &quot;price&quot;: { # Represents an amount of money with its currency type. # The price of the purchase option in the specified region. Must be set in the currency that is linked to the specified region.
540 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
541 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
542 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
543 },
544 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g., &quot;US&quot;.
545 },
546 ],
547 &quot;rentOption&quot;: { # A purchase option that can be rented. # A purchase option that can be rented.
548 &quot;expirationPeriod&quot;: &quot;A String&quot;, # Optional. The amount of time the user has after starting consuming the entitlement before it is revoked. Specified in ISO 8601 format.
549 &quot;rentalPeriod&quot;: &quot;A String&quot;, # Required. The amount of time a user has the entitlement for. Starts at purchase flow completion. Specified in ISO 8601 format.
550 },
551 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the purchase option, i.e., whether it&#x27;s active. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
552 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy and legal compliance for one-time product purchase options. # Optional. Details about taxes and legal compliance.
553 &quot;withdrawalRightType&quot;: &quot;A String&quot;, # Optional. Digital content or service classification for products distributed to users in eligible regions. If unset, it defaults to `WITHDRAWAL_RIGHT_DIGITAL_CONTENT`. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information.
554 },
555 },
556 ],
557 &quot;regionsVersion&quot;: { # The version of the available regions being used for the specified resource. # Output only. The version of the regions configuration that was used to generate the one-time product.
558 &quot;version&quot;: &quot;A String&quot;, # Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
559 },
560 &quot;restrictedPaymentCountries&quot;: { # Countries where the purchase of this product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed. # Optional. Countries where the purchase of this one-time product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed.
561 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
562 &quot;A String&quot;,
563 ],
564 },
565 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy and legal compliance for one-time products. # Details about taxes and legal compliance.
566 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this one-time product is declared as a product representing a tokenized digital asset.
567 &quot;productTaxCategoryCode&quot;: &quot;A String&quot;, # Product tax category code to assign to the one-time product. Product tax category determines the transaction tax rates applied to the product. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information.
568 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
569 { # Details about the age rating for a specific geographic region.
570 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
571 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
572 },
573 ],
574 &quot;regionalTaxConfigs&quot;: [ # Regional tax configuration.
575 { # Details about taxation in a given geographical region.
576 &quot;eligibleForStreamingServiceTaxRate&quot;: True or False, # You must tell us if your app contains streaming products to correctly charge US state and local sales tax. Field only supported in the United States.
577 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
578 &quot;streamingTaxType&quot;: &quot;A String&quot;, # To collect communications or amusement taxes in the United States, choose the appropriate tax category. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).
579 &quot;taxTier&quot;: &quot;A String&quot;, # Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or audiobooks in various regions may be eligible for reduced tax rates. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498).
580 },
581 ],
582 },
583 }</pre>
584 </div>
585
586 <div class="method">
587 <code class="details" id="list">list(packageName, pageSize=None, pageToken=None, x__xgafv=None)</code>
588 <pre>Lists all one-time products under a given app.
589
590 Args:
591 packageName: string, Required. The parent app (package name) for which the one-time product should be read. (required)
592 pageSize: integer, Optional. The maximum number of one-time product to return. The service may return fewer than this value. If unspecified, at most 50 one-time products will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
593 pageToken: string, Optional. A page token, received from a previous `ListOneTimeProducts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListOneTimeProducts` must match the call that provided the page token.
594 x__xgafv: string, V1 error format.
595 Allowed values
596 1 - v1 error format
597 2 - v2 error format
598
599 Returns:
600 An object of the form:
601
602 { # Response message for ListOneTimeProducts.
603 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
604 &quot;oneTimeProducts&quot;: [ # The one-time products from the specified app.
605 { # A single one-time product for an app.
606 &quot;listings&quot;: [ # Required. Set of localized title and description data. Must not have duplicate entries with the same language_code.
607 { # Regional store listing for a one-time product.
608 &quot;description&quot;: &quot;A String&quot;, # Required. The description of this product in the language of this listing. The maximum length is 200 characters.
609 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g., &quot;en-US&quot;.
610 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this product in the language of this listing. The maximum length is 55 characters.
611 },
612 ],
613 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this one-time product, and returned to the app through the billing library. Purchase options and offers for this product will also receive these tags in the billing library.
614 { # Represents a custom tag specified for a product offer.
615 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
616 },
617 ],
618 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. Package name of the parent app.
619 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.).
620 &quot;purchaseOptions&quot;: [ # Required. The set of purchase options for this one-time product.
621 { # A single purchase option for a one-time product.
622 &quot;buyOption&quot;: { # A purchase option that can be bought. # A purchase option that can be bought.
623 &quot;legacyCompatible&quot;: True or False, # Optional. Whether this purchase option will be available in legacy PBL flows that do not support one-time products model. Up to one &quot;buy&quot; purchase option can be marked as backwards compatible.
624 &quot;multiQuantityEnabled&quot;: True or False, # Optional. Whether this purchase option allows multi-quantity. Multi-quantity allows buyer to purchase more than one item in a single checkout.
625 },
626 &quot;newRegionsConfig&quot;: { # Pricing information for any new regions Play may launch in the future. # Pricing information for any new locations Play may launch in the future. If omitted, the purchase option will not be automatically available in any new locations Play may launch in the future.
627 &quot;availability&quot;: &quot;A String&quot;, # Required. The regional availability for the new regions config. When set to AVAILABLE, the pricing information will be used for any new regions Play may launch in the future.
628 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new regions Play may launch in.
629 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
630 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
631 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
632 },
633 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new regions Play may launch in.
634 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
635 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
636 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
637 },
638 },
639 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this purchase option, and returned to the app through the billing library. Offers for this purchase option will also receive these tags in the billing library.
640 { # Represents a custom tag specified for a product offer.
641 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
642 },
643 ],
644 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. Immutable. The unique identifier of this purchase option. Must be unique within the one-time product. It must start with a number or lower-case letter, and can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-). The maximum length is 63 characters.
645 &quot;regionalPricingAndAvailabilityConfigs&quot;: [ # Regional pricing and availability information for this purchase option.
646 { # Regional pricing and availability configuration for a purchase option.
647 &quot;availability&quot;: &quot;A String&quot;, # The availability of the purchase option.
648 &quot;price&quot;: { # Represents an amount of money with its currency type. # The price of the purchase option in the specified region. Must be set in the currency that is linked to the specified region.
649 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
650 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
651 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
652 },
653 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g., &quot;US&quot;.
654 },
655 ],
656 &quot;rentOption&quot;: { # A purchase option that can be rented. # A purchase option that can be rented.
657 &quot;expirationPeriod&quot;: &quot;A String&quot;, # Optional. The amount of time the user has after starting consuming the entitlement before it is revoked. Specified in ISO 8601 format.
658 &quot;rentalPeriod&quot;: &quot;A String&quot;, # Required. The amount of time a user has the entitlement for. Starts at purchase flow completion. Specified in ISO 8601 format.
659 },
660 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the purchase option, i.e., whether it&#x27;s active. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
661 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy and legal compliance for one-time product purchase options. # Optional. Details about taxes and legal compliance.
662 &quot;withdrawalRightType&quot;: &quot;A String&quot;, # Optional. Digital content or service classification for products distributed to users in eligible regions. If unset, it defaults to `WITHDRAWAL_RIGHT_DIGITAL_CONTENT`. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information.
663 },
664 },
665 ],
666 &quot;regionsVersion&quot;: { # The version of the available regions being used for the specified resource. # Output only. The version of the regions configuration that was used to generate the one-time product.
667 &quot;version&quot;: &quot;A String&quot;, # Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
668 },
669 &quot;restrictedPaymentCountries&quot;: { # Countries where the purchase of this product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed. # Optional. Countries where the purchase of this one-time product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed.
670 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
671 &quot;A String&quot;,
672 ],
673 },
674 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy and legal compliance for one-time products. # Details about taxes and legal compliance.
675 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this one-time product is declared as a product representing a tokenized digital asset.
676 &quot;productTaxCategoryCode&quot;: &quot;A String&quot;, # Product tax category code to assign to the one-time product. Product tax category determines the transaction tax rates applied to the product. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information.
677 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
678 { # Details about the age rating for a specific geographic region.
679 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
680 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
681 },
682 ],
683 &quot;regionalTaxConfigs&quot;: [ # Regional tax configuration.
684 { # Details about taxation in a given geographical region.
685 &quot;eligibleForStreamingServiceTaxRate&quot;: True or False, # You must tell us if your app contains streaming products to correctly charge US state and local sales tax. Field only supported in the United States.
686 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
687 &quot;streamingTaxType&quot;: &quot;A String&quot;, # To collect communications or amusement taxes in the United States, choose the appropriate tax category. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).
688 &quot;taxTier&quot;: &quot;A String&quot;, # Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or audiobooks in various regions may be eligible for reduced tax rates. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498).
689 },
690 ],
691 },
692 },
693 ],
694 }</pre>
695 </div>
696
697 <div class="method">
698 <code class="details" id="list_next">list_next()</code>
699 <pre>Retrieves the next page of results.
700
701 Args:
702 previous_request: The request for the previous page. (required)
703 previous_response: The response from the request for the previous page. (required)
704
705 Returns:
706 A request object that you can call &#x27;execute()&#x27; on to request the next
707 page. Returns None if there are no more items in the collection.
708 </pre>
709 </div>
710
711 <div class="method">
712 <code class="details" id="patch">patch(packageName, productId, allowMissing=None, body=None, latencyTolerance=None, regionsVersion_version=None, updateMask=None, x__xgafv=None)</code>
713 <pre>Creates or updates a one-time product.
714
715 Args:
716 packageName: string, Required. Immutable. Package name of the parent app. (required)
717 productId: string, Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.). (required)
718 body: object, The request body.
719 The object takes the form of:
720
721 { # A single one-time product for an app.
722 &quot;listings&quot;: [ # Required. Set of localized title and description data. Must not have duplicate entries with the same language_code.
723 { # Regional store listing for a one-time product.
724 &quot;description&quot;: &quot;A String&quot;, # Required. The description of this product in the language of this listing. The maximum length is 200 characters.
725 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g., &quot;en-US&quot;.
726 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this product in the language of this listing. The maximum length is 55 characters.
727 },
728 ],
729 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this one-time product, and returned to the app through the billing library. Purchase options and offers for this product will also receive these tags in the billing library.
730 { # Represents a custom tag specified for a product offer.
731 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
732 },
733 ],
734 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. Package name of the parent app.
735 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.).
736 &quot;purchaseOptions&quot;: [ # Required. The set of purchase options for this one-time product.
737 { # A single purchase option for a one-time product.
738 &quot;buyOption&quot;: { # A purchase option that can be bought. # A purchase option that can be bought.
739 &quot;legacyCompatible&quot;: True or False, # Optional. Whether this purchase option will be available in legacy PBL flows that do not support one-time products model. Up to one &quot;buy&quot; purchase option can be marked as backwards compatible.
740 &quot;multiQuantityEnabled&quot;: True or False, # Optional. Whether this purchase option allows multi-quantity. Multi-quantity allows buyer to purchase more than one item in a single checkout.
741 },
742 &quot;newRegionsConfig&quot;: { # Pricing information for any new regions Play may launch in the future. # Pricing information for any new locations Play may launch in the future. If omitted, the purchase option will not be automatically available in any new locations Play may launch in the future.
743 &quot;availability&quot;: &quot;A String&quot;, # Required. The regional availability for the new regions config. When set to AVAILABLE, the pricing information will be used for any new regions Play may launch in the future.
744 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new regions Play may launch in.
745 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
746 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
747 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
748 },
749 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new regions Play may launch in.
750 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
751 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
752 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
753 },
754 },
755 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this purchase option, and returned to the app through the billing library. Offers for this purchase option will also receive these tags in the billing library.
756 { # Represents a custom tag specified for a product offer.
757 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
758 },
759 ],
760 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. Immutable. The unique identifier of this purchase option. Must be unique within the one-time product. It must start with a number or lower-case letter, and can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-). The maximum length is 63 characters.
761 &quot;regionalPricingAndAvailabilityConfigs&quot;: [ # Regional pricing and availability information for this purchase option.
762 { # Regional pricing and availability configuration for a purchase option.
763 &quot;availability&quot;: &quot;A String&quot;, # The availability of the purchase option.
764 &quot;price&quot;: { # Represents an amount of money with its currency type. # The price of the purchase option in the specified region. Must be set in the currency that is linked to the specified region.
765 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
766 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
767 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
768 },
769 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g., &quot;US&quot;.
770 },
771 ],
772 &quot;rentOption&quot;: { # A purchase option that can be rented. # A purchase option that can be rented.
773 &quot;expirationPeriod&quot;: &quot;A String&quot;, # Optional. The amount of time the user has after starting consuming the entitlement before it is revoked. Specified in ISO 8601 format.
774 &quot;rentalPeriod&quot;: &quot;A String&quot;, # Required. The amount of time a user has the entitlement for. Starts at purchase flow completion. Specified in ISO 8601 format.
775 },
776 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the purchase option, i.e., whether it&#x27;s active. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
777 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy and legal compliance for one-time product purchase options. # Optional. Details about taxes and legal compliance.
778 &quot;withdrawalRightType&quot;: &quot;A String&quot;, # Optional. Digital content or service classification for products distributed to users in eligible regions. If unset, it defaults to `WITHDRAWAL_RIGHT_DIGITAL_CONTENT`. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information.
779 },
780 },
781 ],
782 &quot;regionsVersion&quot;: { # The version of the available regions being used for the specified resource. # Output only. The version of the regions configuration that was used to generate the one-time product.
783 &quot;version&quot;: &quot;A String&quot;, # Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
784 },
785 &quot;restrictedPaymentCountries&quot;: { # Countries where the purchase of this product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed. # Optional. Countries where the purchase of this one-time product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed.
786 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
787 &quot;A String&quot;,
788 ],
789 },
790 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy and legal compliance for one-time products. # Details about taxes and legal compliance.
791 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this one-time product is declared as a product representing a tokenized digital asset.
792 &quot;productTaxCategoryCode&quot;: &quot;A String&quot;, # Product tax category code to assign to the one-time product. Product tax category determines the transaction tax rates applied to the product. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information.
793 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
794 { # Details about the age rating for a specific geographic region.
795 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
796 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
797 },
798 ],
799 &quot;regionalTaxConfigs&quot;: [ # Regional tax configuration.
800 { # Details about taxation in a given geographical region.
801 &quot;eligibleForStreamingServiceTaxRate&quot;: True or False, # You must tell us if your app contains streaming products to correctly charge US state and local sales tax. Field only supported in the United States.
802 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
803 &quot;streamingTaxType&quot;: &quot;A String&quot;, # To collect communications or amusement taxes in the United States, choose the appropriate tax category. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).
804 &quot;taxTier&quot;: &quot;A String&quot;, # Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or audiobooks in various regions may be eligible for reduced tax rates. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498).
805 },
806 ],
807 },
808 }
809
810 allowMissing: boolean, Optional. If set to true, and the one-time product with the given package_name and product_id doesn&#x27;t exist, the one-time product will be created. If a new one-time product is created, update_mask is ignored.
811 latencyTolerance: string, Optional. The latency tolerance for the propagation of this product upsert. Defaults to latency-sensitive.
812 Allowed values
813 PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED - Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.
814 PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE - The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.
815 PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT - The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods.
816 regionsVersion_version: string, Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
817 updateMask: string, Required. The list of fields to be updated.
818 x__xgafv: string, V1 error format.
819 Allowed values
820 1 - v1 error format
821 2 - v2 error format
822
823 Returns:
824 An object of the form:
825
826 { # A single one-time product for an app.
827 &quot;listings&quot;: [ # Required. Set of localized title and description data. Must not have duplicate entries with the same language_code.
828 { # Regional store listing for a one-time product.
829 &quot;description&quot;: &quot;A String&quot;, # Required. The description of this product in the language of this listing. The maximum length is 200 characters.
830 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g., &quot;en-US&quot;.
831 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this product in the language of this listing. The maximum length is 55 characters.
832 },
833 ],
834 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this one-time product, and returned to the app through the billing library. Purchase options and offers for this product will also receive these tags in the billing library.
835 { # Represents a custom tag specified for a product offer.
836 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
837 },
838 ],
839 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. Package name of the parent app.
840 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.).
841 &quot;purchaseOptions&quot;: [ # Required. The set of purchase options for this one-time product.
842 { # A single purchase option for a one-time product.
843 &quot;buyOption&quot;: { # A purchase option that can be bought. # A purchase option that can be bought.
844 &quot;legacyCompatible&quot;: True or False, # Optional. Whether this purchase option will be available in legacy PBL flows that do not support one-time products model. Up to one &quot;buy&quot; purchase option can be marked as backwards compatible.
845 &quot;multiQuantityEnabled&quot;: True or False, # Optional. Whether this purchase option allows multi-quantity. Multi-quantity allows buyer to purchase more than one item in a single checkout.
846 },
847 &quot;newRegionsConfig&quot;: { # Pricing information for any new regions Play may launch in the future. # Pricing information for any new locations Play may launch in the future. If omitted, the purchase option will not be automatically available in any new locations Play may launch in the future.
848 &quot;availability&quot;: &quot;A String&quot;, # Required. The regional availability for the new regions config. When set to AVAILABLE, the pricing information will be used for any new regions Play may launch in the future.
849 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new regions Play may launch in.
850 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
851 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
852 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
853 },
854 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new regions Play may launch in.
855 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
856 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
857 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
858 },
859 },
860 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this purchase option, and returned to the app through the billing library. Offers for this purchase option will also receive these tags in the billing library.
861 { # Represents a custom tag specified for a product offer.
862 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
863 },
864 ],
865 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. Immutable. The unique identifier of this purchase option. Must be unique within the one-time product. It must start with a number or lower-case letter, and can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-). The maximum length is 63 characters.
866 &quot;regionalPricingAndAvailabilityConfigs&quot;: [ # Regional pricing and availability information for this purchase option.
867 { # Regional pricing and availability configuration for a purchase option.
868 &quot;availability&quot;: &quot;A String&quot;, # The availability of the purchase option.
869 &quot;price&quot;: { # Represents an amount of money with its currency type. # The price of the purchase option in the specified region. Must be set in the currency that is linked to the specified region.
870 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
871 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
872 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
873 },
874 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g., &quot;US&quot;.
875 },
876 ],
877 &quot;rentOption&quot;: { # A purchase option that can be rented. # A purchase option that can be rented.
878 &quot;expirationPeriod&quot;: &quot;A String&quot;, # Optional. The amount of time the user has after starting consuming the entitlement before it is revoked. Specified in ISO 8601 format.
879 &quot;rentalPeriod&quot;: &quot;A String&quot;, # Required. The amount of time a user has the entitlement for. Starts at purchase flow completion. Specified in ISO 8601 format.
880 },
881 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the purchase option, i.e., whether it&#x27;s active. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
882 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy and legal compliance for one-time product purchase options. # Optional. Details about taxes and legal compliance.
883 &quot;withdrawalRightType&quot;: &quot;A String&quot;, # Optional. Digital content or service classification for products distributed to users in eligible regions. If unset, it defaults to `WITHDRAWAL_RIGHT_DIGITAL_CONTENT`. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information.
884 },
885 },
886 ],
887 &quot;regionsVersion&quot;: { # The version of the available regions being used for the specified resource. # Output only. The version of the regions configuration that was used to generate the one-time product.
888 &quot;version&quot;: &quot;A String&quot;, # Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
889 },
890 &quot;restrictedPaymentCountries&quot;: { # Countries where the purchase of this product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed. # Optional. Countries where the purchase of this one-time product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed.
891 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
892 &quot;A String&quot;,
893 ],
894 },
895 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy and legal compliance for one-time products. # Details about taxes and legal compliance.
896 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this one-time product is declared as a product representing a tokenized digital asset.
897 &quot;productTaxCategoryCode&quot;: &quot;A String&quot;, # Product tax category code to assign to the one-time product. Product tax category determines the transaction tax rates applied to the product. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information.
898 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
899 { # Details about the age rating for a specific geographic region.
900 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
901 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
902 },
903 ],
904 &quot;regionalTaxConfigs&quot;: [ # Regional tax configuration.
905 { # Details about taxation in a given geographical region.
906 &quot;eligibleForStreamingServiceTaxRate&quot;: True or False, # You must tell us if your app contains streaming products to correctly charge US state and local sales tax. Field only supported in the United States.
907 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
908 &quot;streamingTaxType&quot;: &quot;A String&quot;, # To collect communications or amusement taxes in the United States, choose the appropriate tax category. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).
909 &quot;taxTier&quot;: &quot;A String&quot;, # Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or audiobooks in various regions may be eligible for reduced tax rates. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498).
910 },
911 ],
912 },
913 }</pre>
914 </div>
915
916 </body></html>