Debian Codegraph @

docs/dyn/androidpublisher_v3.monetization.onetimeproducts.purchaseOptions.offers.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> . <a href="androidpublisher_v3.monetization.onetimeproducts.purchaseOptions.html">purchaseOptions</a> . <a href="androidpublisher_v3.monetization.onetimeproducts.purchaseOptions.offers.html">offers</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#activate">activate(packageName, productId, purchaseOptionId, offerId, body=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Activates a one-time product offer.</p>
80 <p class="toc_element">
81 <code><a href="#batchDelete">batchDelete(packageName, productId, purchaseOptionId, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Deletes one or more one-time product offers.</p>
83 <p class="toc_element">
84 <code><a href="#batchGet">batchGet(packageName, productId, purchaseOptionId, body=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Reads one or more one-time product offers.</p>
86 <p class="toc_element">
87 <code><a href="#batchUpdate">batchUpdate(packageName, productId, purchaseOptionId, body=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Creates or updates one or more one-time product offers.</p>
89 <p class="toc_element">
90 <code><a href="#batchUpdateStates">batchUpdateStates(packageName, productId, purchaseOptionId, body=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Updates a batch of one-time product offer states.</p>
92 <p class="toc_element">
93 <code><a href="#cancel">cancel(packageName, productId, purchaseOptionId, offerId, body=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Cancels a one-time product offer.</p>
95 <p class="toc_element">
96 <code><a href="#close">close()</a></code></p>
97 <p class="firstline">Close httplib2 connections.</p>
98 <p class="toc_element">
99 <code><a href="#deactivate">deactivate(packageName, productId, purchaseOptionId, offerId, body=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Deactivates a one-time product offer.</p>
101 <p class="toc_element">
102 <code><a href="#list">list(packageName, productId, purchaseOptionId, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Lists all offers under a given app, product, or purchase option.</p>
104 <p class="toc_element">
105 <code><a href="#list_next">list_next()</a></code></p>
106 <p class="firstline">Retrieves the next page of results.</p>
107 <h3>Method Details</h3>
108 <div class="method">
109 <code class="details" id="activate">activate(packageName, productId, purchaseOptionId, offerId, body=None, x__xgafv=None)</code>
110 <pre>Activates a one-time product offer.
111
112 Args:
113 packageName: string, Required. The parent app (package name) of the offer to activate. (required)
114 productId: string, Required. The parent one-time product (ID) of the offer to activate. (required)
115 purchaseOptionId: string, Required. The parent purchase option (ID) of the offer to activate. (required)
116 offerId: string, Required. The offer ID of the offer to activate. (required)
117 body: object, The request body.
118 The object takes the form of:
119
120 { # Request message for ActivateOneTimeProductOffer.
121 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this update. Defaults to latency-sensitive.
122 &quot;offerId&quot;: &quot;A String&quot;, # Required. The offer ID of the offer to activate.
123 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to activate.
124 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent one-time product (ID) of the offer to activate.
125 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. The parent purchase option (ID) of the offer to activate.
126 }
127
128 x__xgafv: string, V1 error format.
129 Allowed values
130 1 - v1 error format
131 2 - v2 error format
132
133 Returns:
134 An object of the form:
135
136 { # A single offer for a one-time product.
137 &quot;discountedOffer&quot;: { # Configuration specific to discounted offers. # A discounted offer.
138 &quot;endTime&quot;: &quot;A String&quot;, # Time when the offer will stop being available.
139 &quot;redemptionLimit&quot;: &quot;A String&quot;, # Optional. The number of times this offer can be redeemed. If unset or set to 0, allows for unlimited offer redemptions. Otherwise must be a number between 1 and 50 inclusive.
140 &quot;startTime&quot;: &quot;A String&quot;, # Time when the offer will start being available.
141 },
142 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of this product offer. Must be unique within the purchase option. 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.
143 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
144 { # Represents a custom tag specified for a product offer.
145 &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.
146 },
147 ],
148 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent product belongs to.
149 &quot;preOrderOffer&quot;: { # Configuration specific to pre-order offers. # A pre-order offer.
150 &quot;endTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will stop being available.
151 &quot;priceChangeBehavior&quot;: &quot;A String&quot;, # Required. Immutable. Specifies how price changes affect pre-existing pre-orders.
152 &quot;releaseTime&quot;: &quot;A String&quot;, # Required. Time on which the product associated with the pre-order will be released and the pre-order orders fulfilled.
153 &quot;startTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will start being available.
154 },
155 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent product this offer belongs to.
156 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the purchase option to which this offer is an extension.
157 &quot;regionalPricingAndAvailabilityConfigs&quot;: [ # Set of regional pricing and availability information for this offer. Must not have duplicate entries with the same region_code.
158 { # Regional pricing and availability configuration for a one-time product offer.
159 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute value of the discount that is subtracted from the purchase option price. It should be between 0 and the purchase option price.
160 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
161 &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.
162 &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.
163 },
164 &quot;availability&quot;: &quot;A String&quot;, # Required. The availability for this region.
165 &quot;noOverride&quot;: { # Options for one-time product offers without a regional price override. # The price defined in the purchase option for this region will be used.
166 },
167 &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;.
168 &quot;relativeDiscount&quot;: 3.14, # The fraction of the purchase option price that the user pays for this offer. For example, if the purchase option price for this region is $12, then a 50% discount would correspond to a price of $6. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
169 },
170 ],
171 &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 offer.
172 &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.
173 },
174 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
175 }</pre>
176 </div>
177
178 <div class="method">
179 <code class="details" id="batchDelete">batchDelete(packageName, productId, purchaseOptionId, body=None, x__xgafv=None)</code>
180 <pre>Deletes one or more one-time product offers.
181
182 Args:
183 packageName: string, Required. The parent app (package name) of the offers to delete. Must be equal to the package_name field on all the OneTimeProductOffer resources. (required)
184 productId: string, Required. The product ID of the parent one-time product, if all offers to delete belong to the same product. If this request spans multiple one-time products, set this field to &quot;-&quot;. (required)
185 purchaseOptionId: string, Required. The parent purchase option (ID) for which the offers should be deleted. May be specified as &#x27;-&#x27; to update offers from multiple purchase options. (required)
186 body: object, The request body.
187 The object takes the form of:
188
189 { # Request message for BatchDeleteOneTimeProductOffers.
190 &quot;requests&quot;: [ # Required. A list of update requests of up to 100 elements. All requests must correspond to different offers.
191 { # Request message for deleting an one-time product offer.
192 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
193 &quot;offerId&quot;: &quot;A String&quot;, # Required. The unique offer ID of the offer to delete.
194 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to delete.
195 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent one-time product (ID) of the offer to delete.
196 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. The parent purchase option (ID) of the offer to delete.
197 },
198 ],
199 }
200
201 x__xgafv: string, V1 error format.
202 Allowed values
203 1 - v1 error format
204 2 - v2 error format
205 </pre>
206 </div>
207
208 <div class="method">
209 <code class="details" id="batchGet">batchGet(packageName, productId, purchaseOptionId, body=None, x__xgafv=None)</code>
210 <pre>Reads one or more one-time product offers.
211
212 Args:
213 packageName: string, Required. The parent app (package name) of the updated offers. Must be equal to the package_name field on all the updated OneTimeProductOffer resources. (required)
214 productId: string, Required. The product ID of the parent one-time product, if all updated offers belong to the same product. If this request spans multiple one-time products, set this field to &quot;-&quot;. (required)
215 purchaseOptionId: string, Required. The parent purchase option (ID) for which the offers should be updated. May be specified as &#x27;-&#x27; to update offers from multiple purchase options. (required)
216 body: object, The request body.
217 The object takes the form of:
218
219 { # Request message for the BatchGetOneTimeProductOffers endpoint.
220 &quot;requests&quot;: [ # Required. A list of get requests of up to 100 elements. All requests must retrieve different offers.
221 { # Request message for GetOneTimeProductOffers.
222 &quot;offerId&quot;: &quot;A String&quot;, # Required. The unique offer ID of the offer to get.
223 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to get.
224 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent one-time product (ID) of the offer to get.
225 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. The parent purchase option (ID) of the offer to get.
226 },
227 ],
228 }
229
230 x__xgafv: string, V1 error format.
231 Allowed values
232 1 - v1 error format
233 2 - v2 error format
234
235 Returns:
236 An object of the form:
237
238 { # Response message for the BatchGetOneTimeProductOffers endpoint.
239 &quot;oneTimeProductOffers&quot;: [ # The list of updated one-time product offers, in the same order as the request.
240 { # A single offer for a one-time product.
241 &quot;discountedOffer&quot;: { # Configuration specific to discounted offers. # A discounted offer.
242 &quot;endTime&quot;: &quot;A String&quot;, # Time when the offer will stop being available.
243 &quot;redemptionLimit&quot;: &quot;A String&quot;, # Optional. The number of times this offer can be redeemed. If unset or set to 0, allows for unlimited offer redemptions. Otherwise must be a number between 1 and 50 inclusive.
244 &quot;startTime&quot;: &quot;A String&quot;, # Time when the offer will start being available.
245 },
246 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of this product offer. Must be unique within the purchase option. 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.
247 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
248 { # Represents a custom tag specified for a product offer.
249 &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.
250 },
251 ],
252 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent product belongs to.
253 &quot;preOrderOffer&quot;: { # Configuration specific to pre-order offers. # A pre-order offer.
254 &quot;endTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will stop being available.
255 &quot;priceChangeBehavior&quot;: &quot;A String&quot;, # Required. Immutable. Specifies how price changes affect pre-existing pre-orders.
256 &quot;releaseTime&quot;: &quot;A String&quot;, # Required. Time on which the product associated with the pre-order will be released and the pre-order orders fulfilled.
257 &quot;startTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will start being available.
258 },
259 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent product this offer belongs to.
260 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the purchase option to which this offer is an extension.
261 &quot;regionalPricingAndAvailabilityConfigs&quot;: [ # Set of regional pricing and availability information for this offer. Must not have duplicate entries with the same region_code.
262 { # Regional pricing and availability configuration for a one-time product offer.
263 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute value of the discount that is subtracted from the purchase option price. It should be between 0 and the purchase option price.
264 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
265 &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.
266 &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.
267 },
268 &quot;availability&quot;: &quot;A String&quot;, # Required. The availability for this region.
269 &quot;noOverride&quot;: { # Options for one-time product offers without a regional price override. # The price defined in the purchase option for this region will be used.
270 },
271 &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;.
272 &quot;relativeDiscount&quot;: 3.14, # The fraction of the purchase option price that the user pays for this offer. For example, if the purchase option price for this region is $12, then a 50% discount would correspond to a price of $6. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
273 },
274 ],
275 &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 offer.
276 &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.
277 },
278 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
279 },
280 ],
281 }</pre>
282 </div>
283
284 <div class="method">
285 <code class="details" id="batchUpdate">batchUpdate(packageName, productId, purchaseOptionId, body=None, x__xgafv=None)</code>
286 <pre>Creates or updates one or more one-time product offers.
287
288 Args:
289 packageName: string, Required. The parent app (package name) of the updated offers. Must be equal to the package_name field on all the updated OneTimeProductOffer resources. (required)
290 productId: string, Required. The product ID of the parent one-time product, if all updated offers belong to the same product. If this request spans multiple one-time products, set this field to &quot;-&quot;. (required)
291 purchaseOptionId: string, Required. The parent purchase option (ID) for which the offers should be updated. May be specified as &#x27;-&#x27; to update offers from multiple purchase options. (required)
292 body: object, The request body.
293 The object takes the form of:
294
295 { # Request message for BatchUpdateOneTimeProductOffers.
296 &quot;requests&quot;: [ # Required. A list of update requests of up to 100 elements. All requests must update different offers.
297 { # Request message for UpdateOneTimeProductOffer.
298 &quot;allowMissing&quot;: True or False, # Optional. If set to true, and the offer with the given package_name, product_id, purchase_option_id and offer_id doesn&#x27;t exist, an offer will be created. If a new offer is created, the update_mask is ignored.
299 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this offer update. Defaults to latency-sensitive.
300 &quot;oneTimeProductOffer&quot;: { # A single offer for a one-time product. # Required. The one-time product offer to update.
301 &quot;discountedOffer&quot;: { # Configuration specific to discounted offers. # A discounted offer.
302 &quot;endTime&quot;: &quot;A String&quot;, # Time when the offer will stop being available.
303 &quot;redemptionLimit&quot;: &quot;A String&quot;, # Optional. The number of times this offer can be redeemed. If unset or set to 0, allows for unlimited offer redemptions. Otherwise must be a number between 1 and 50 inclusive.
304 &quot;startTime&quot;: &quot;A String&quot;, # Time when the offer will start being available.
305 },
306 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of this product offer. Must be unique within the purchase option. 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.
307 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
308 { # Represents a custom tag specified for a product offer.
309 &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.
310 },
311 ],
312 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent product belongs to.
313 &quot;preOrderOffer&quot;: { # Configuration specific to pre-order offers. # A pre-order offer.
314 &quot;endTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will stop being available.
315 &quot;priceChangeBehavior&quot;: &quot;A String&quot;, # Required. Immutable. Specifies how price changes affect pre-existing pre-orders.
316 &quot;releaseTime&quot;: &quot;A String&quot;, # Required. Time on which the product associated with the pre-order will be released and the pre-order orders fulfilled.
317 &quot;startTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will start being available.
318 },
319 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent product this offer belongs to.
320 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the purchase option to which this offer is an extension.
321 &quot;regionalPricingAndAvailabilityConfigs&quot;: [ # Set of regional pricing and availability information for this offer. Must not have duplicate entries with the same region_code.
322 { # Regional pricing and availability configuration for a one-time product offer.
323 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute value of the discount that is subtracted from the purchase option price. It should be between 0 and the purchase option price.
324 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
325 &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.
326 &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.
327 },
328 &quot;availability&quot;: &quot;A String&quot;, # Required. The availability for this region.
329 &quot;noOverride&quot;: { # Options for one-time product offers without a regional price override. # The price defined in the purchase option for this region will be used.
330 },
331 &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;.
332 &quot;relativeDiscount&quot;: 3.14, # The fraction of the purchase option price that the user pays for this offer. For example, if the purchase option price for this region is $12, then a 50% discount would correspond to a price of $6. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
333 },
334 ],
335 &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 offer.
336 &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.
337 },
338 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
339 },
340 &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 offer.
341 &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.
342 },
343 &quot;updateMask&quot;: &quot;A String&quot;, # Required. The list of fields to be updated.
344 },
345 ],
346 }
347
348 x__xgafv: string, V1 error format.
349 Allowed values
350 1 - v1 error format
351 2 - v2 error format
352
353 Returns:
354 An object of the form:
355
356 { # Response message for BatchUpdateOneTimeProductOffers.
357 &quot;oneTimeProductOffers&quot;: [ # The list of updated one-time product offers, in the same order as the request.
358 { # A single offer for a one-time product.
359 &quot;discountedOffer&quot;: { # Configuration specific to discounted offers. # A discounted offer.
360 &quot;endTime&quot;: &quot;A String&quot;, # Time when the offer will stop being available.
361 &quot;redemptionLimit&quot;: &quot;A String&quot;, # Optional. The number of times this offer can be redeemed. If unset or set to 0, allows for unlimited offer redemptions. Otherwise must be a number between 1 and 50 inclusive.
362 &quot;startTime&quot;: &quot;A String&quot;, # Time when the offer will start being available.
363 },
364 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of this product offer. Must be unique within the purchase option. 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.
365 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
366 { # Represents a custom tag specified for a product offer.
367 &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.
368 },
369 ],
370 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent product belongs to.
371 &quot;preOrderOffer&quot;: { # Configuration specific to pre-order offers. # A pre-order offer.
372 &quot;endTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will stop being available.
373 &quot;priceChangeBehavior&quot;: &quot;A String&quot;, # Required. Immutable. Specifies how price changes affect pre-existing pre-orders.
374 &quot;releaseTime&quot;: &quot;A String&quot;, # Required. Time on which the product associated with the pre-order will be released and the pre-order orders fulfilled.
375 &quot;startTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will start being available.
376 },
377 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent product this offer belongs to.
378 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the purchase option to which this offer is an extension.
379 &quot;regionalPricingAndAvailabilityConfigs&quot;: [ # Set of regional pricing and availability information for this offer. Must not have duplicate entries with the same region_code.
380 { # Regional pricing and availability configuration for a one-time product offer.
381 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute value of the discount that is subtracted from the purchase option price. It should be between 0 and the purchase option price.
382 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
383 &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.
384 &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.
385 },
386 &quot;availability&quot;: &quot;A String&quot;, # Required. The availability for this region.
387 &quot;noOverride&quot;: { # Options for one-time product offers without a regional price override. # The price defined in the purchase option for this region will be used.
388 },
389 &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;.
390 &quot;relativeDiscount&quot;: 3.14, # The fraction of the purchase option price that the user pays for this offer. For example, if the purchase option price for this region is $12, then a 50% discount would correspond to a price of $6. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
391 },
392 ],
393 &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 offer.
394 &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.
395 },
396 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
397 },
398 ],
399 }</pre>
400 </div>
401
402 <div class="method">
403 <code class="details" id="batchUpdateStates">batchUpdateStates(packageName, productId, purchaseOptionId, body=None, x__xgafv=None)</code>
404 <pre>Updates a batch of one-time product offer states.
405
406 Args:
407 packageName: string, Required. The parent app (package name) of the updated one-time product offers. (required)
408 productId: string, Required. The product ID of the parent one-time product, if all updated offers belong to the same one-time product. If this batch update spans multiple one-time products, set this field to &quot;-&quot;. (required)
409 purchaseOptionId: string, Required. The purchase option ID of the parent purchase option, if all updated offers belong to the same purchase option. If this batch update spans multiple purchase options, set this field to &quot;-&quot;. (required)
410 body: object, The request body.
411 The object takes the form of:
412
413 { # Request message for BatchUpdateOneTimeProductOfferStates.
414 &quot;requests&quot;: [ # Required. The update request list of up to 100 elements. All requests must update different offers.
415 { # Request message to update the state of a one-time product offer.
416 &quot;activateOneTimeProductOfferRequest&quot;: { # Request message for ActivateOneTimeProductOffer. # Activates an offer. Once activated, the offer is available to users, as long as its conditions are met.
417 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this update. Defaults to latency-sensitive.
418 &quot;offerId&quot;: &quot;A String&quot;, # Required. The offer ID of the offer to activate.
419 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to activate.
420 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent one-time product (ID) of the offer to activate.
421 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. The parent purchase option (ID) of the offer to activate.
422 },
423 &quot;cancelOneTimeProductOfferRequest&quot;: { # Request message for CancelOneTimeProductOffer. # Cancels an offer. Once cancelled, the offer is not available to users. Any pending orders related to this offer will be cancelled. This state transition is specific to pre-orders.
424 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this update. Defaults to latency-sensitive.
425 &quot;offerId&quot;: &quot;A String&quot;, # Required. The offer ID of the offer to cancel.
426 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to cancel.
427 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent one-time product (ID) of the offer to cancel.
428 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. The parent purchase option (ID) of the offer to cancel.
429 },
430 &quot;deactivateOneTimeProductOfferRequest&quot;: { # Request message for DeactivateOneTimeProductOffer. # Deactivates an offer. Once deactivated, the offer is no longer available to users. This state transition is specific to discounted offers.
431 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this update. Defaults to latency-sensitive.
432 &quot;offerId&quot;: &quot;A String&quot;, # Required. The offer ID of the offer to deactivate.
433 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to deactivate.
434 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent one-time product (ID) of the offer to deactivate.
435 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. The parent purchase option (ID) of the offer to deactivate.
436 },
437 },
438 ],
439 }
440
441 x__xgafv: string, V1 error format.
442 Allowed values
443 1 - v1 error format
444 2 - v2 error format
445
446 Returns:
447 An object of the form:
448
449 { # Response message for BatchUpdateOneTimeProductOfferStates.
450 &quot;oneTimeProductOffers&quot;: [ # The updated one-time product offers list, in the same order as the request.
451 { # A single offer for a one-time product.
452 &quot;discountedOffer&quot;: { # Configuration specific to discounted offers. # A discounted offer.
453 &quot;endTime&quot;: &quot;A String&quot;, # Time when the offer will stop being available.
454 &quot;redemptionLimit&quot;: &quot;A String&quot;, # Optional. The number of times this offer can be redeemed. If unset or set to 0, allows for unlimited offer redemptions. Otherwise must be a number between 1 and 50 inclusive.
455 &quot;startTime&quot;: &quot;A String&quot;, # Time when the offer will start being available.
456 },
457 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of this product offer. Must be unique within the purchase option. 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.
458 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
459 { # Represents a custom tag specified for a product offer.
460 &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.
461 },
462 ],
463 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent product belongs to.
464 &quot;preOrderOffer&quot;: { # Configuration specific to pre-order offers. # A pre-order offer.
465 &quot;endTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will stop being available.
466 &quot;priceChangeBehavior&quot;: &quot;A String&quot;, # Required. Immutable. Specifies how price changes affect pre-existing pre-orders.
467 &quot;releaseTime&quot;: &quot;A String&quot;, # Required. Time on which the product associated with the pre-order will be released and the pre-order orders fulfilled.
468 &quot;startTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will start being available.
469 },
470 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent product this offer belongs to.
471 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the purchase option to which this offer is an extension.
472 &quot;regionalPricingAndAvailabilityConfigs&quot;: [ # Set of regional pricing and availability information for this offer. Must not have duplicate entries with the same region_code.
473 { # Regional pricing and availability configuration for a one-time product offer.
474 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute value of the discount that is subtracted from the purchase option price. It should be between 0 and the purchase option price.
475 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
476 &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.
477 &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.
478 },
479 &quot;availability&quot;: &quot;A String&quot;, # Required. The availability for this region.
480 &quot;noOverride&quot;: { # Options for one-time product offers without a regional price override. # The price defined in the purchase option for this region will be used.
481 },
482 &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;.
483 &quot;relativeDiscount&quot;: 3.14, # The fraction of the purchase option price that the user pays for this offer. For example, if the purchase option price for this region is $12, then a 50% discount would correspond to a price of $6. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
484 },
485 ],
486 &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 offer.
487 &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.
488 },
489 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
490 },
491 ],
492 }</pre>
493 </div>
494
495 <div class="method">
496 <code class="details" id="cancel">cancel(packageName, productId, purchaseOptionId, offerId, body=None, x__xgafv=None)</code>
497 <pre>Cancels a one-time product offer.
498
499 Args:
500 packageName: string, Required. The parent app (package name) of the offer to cancel. (required)
501 productId: string, Required. The parent one-time product (ID) of the offer to cancel. (required)
502 purchaseOptionId: string, Required. The parent purchase option (ID) of the offer to cancel. (required)
503 offerId: string, Required. The offer ID of the offer to cancel. (required)
504 body: object, The request body.
505 The object takes the form of:
506
507 { # Request message for CancelOneTimeProductOffer.
508 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this update. Defaults to latency-sensitive.
509 &quot;offerId&quot;: &quot;A String&quot;, # Required. The offer ID of the offer to cancel.
510 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to cancel.
511 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent one-time product (ID) of the offer to cancel.
512 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. The parent purchase option (ID) of the offer to cancel.
513 }
514
515 x__xgafv: string, V1 error format.
516 Allowed values
517 1 - v1 error format
518 2 - v2 error format
519
520 Returns:
521 An object of the form:
522
523 { # A single offer for a one-time product.
524 &quot;discountedOffer&quot;: { # Configuration specific to discounted offers. # A discounted offer.
525 &quot;endTime&quot;: &quot;A String&quot;, # Time when the offer will stop being available.
526 &quot;redemptionLimit&quot;: &quot;A String&quot;, # Optional. The number of times this offer can be redeemed. If unset or set to 0, allows for unlimited offer redemptions. Otherwise must be a number between 1 and 50 inclusive.
527 &quot;startTime&quot;: &quot;A String&quot;, # Time when the offer will start being available.
528 },
529 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of this product offer. Must be unique within the purchase option. 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.
530 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this offer, and returned to the app through 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;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent product belongs to.
536 &quot;preOrderOffer&quot;: { # Configuration specific to pre-order offers. # A pre-order offer.
537 &quot;endTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will stop being available.
538 &quot;priceChangeBehavior&quot;: &quot;A String&quot;, # Required. Immutable. Specifies how price changes affect pre-existing pre-orders.
539 &quot;releaseTime&quot;: &quot;A String&quot;, # Required. Time on which the product associated with the pre-order will be released and the pre-order orders fulfilled.
540 &quot;startTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will start being available.
541 },
542 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent product this offer belongs to.
543 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the purchase option to which this offer is an extension.
544 &quot;regionalPricingAndAvailabilityConfigs&quot;: [ # Set of regional pricing and availability information for this offer. Must not have duplicate entries with the same region_code.
545 { # Regional pricing and availability configuration for a one-time product offer.
546 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute value of the discount that is subtracted from the purchase option price. It should be between 0 and the purchase option price.
547 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
548 &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.
549 &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.
550 },
551 &quot;availability&quot;: &quot;A String&quot;, # Required. The availability for this region.
552 &quot;noOverride&quot;: { # Options for one-time product offers without a regional price override. # The price defined in the purchase option for this region will be used.
553 },
554 &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;.
555 &quot;relativeDiscount&quot;: 3.14, # The fraction of the purchase option price that the user pays for this offer. For example, if the purchase option price for this region is $12, then a 50% discount would correspond to a price of $6. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
556 },
557 ],
558 &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 offer.
559 &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.
560 },
561 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
562 }</pre>
563 </div>
564
565 <div class="method">
566 <code class="details" id="close">close()</code>
567 <pre>Close httplib2 connections.</pre>
568 </div>
569
570 <div class="method">
571 <code class="details" id="deactivate">deactivate(packageName, productId, purchaseOptionId, offerId, body=None, x__xgafv=None)</code>
572 <pre>Deactivates a one-time product offer.
573
574 Args:
575 packageName: string, Required. The parent app (package name) of the offer to deactivate. (required)
576 productId: string, Required. The parent one-time product (ID) of the offer to deactivate. (required)
577 purchaseOptionId: string, Required. The parent purchase option (ID) of the offer to deactivate. (required)
578 offerId: string, Required. The offer ID of the offer to deactivate. (required)
579 body: object, The request body.
580 The object takes the form of:
581
582 { # Request message for DeactivateOneTimeProductOffer.
583 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this update. Defaults to latency-sensitive.
584 &quot;offerId&quot;: &quot;A String&quot;, # Required. The offer ID of the offer to deactivate.
585 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to deactivate.
586 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent one-time product (ID) of the offer to deactivate.
587 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. The parent purchase option (ID) of the offer to deactivate.
588 }
589
590 x__xgafv: string, V1 error format.
591 Allowed values
592 1 - v1 error format
593 2 - v2 error format
594
595 Returns:
596 An object of the form:
597
598 { # A single offer for a one-time product.
599 &quot;discountedOffer&quot;: { # Configuration specific to discounted offers. # A discounted offer.
600 &quot;endTime&quot;: &quot;A String&quot;, # Time when the offer will stop being available.
601 &quot;redemptionLimit&quot;: &quot;A String&quot;, # Optional. The number of times this offer can be redeemed. If unset or set to 0, allows for unlimited offer redemptions. Otherwise must be a number between 1 and 50 inclusive.
602 &quot;startTime&quot;: &quot;A String&quot;, # Time when the offer will start being available.
603 },
604 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of this product offer. Must be unique within the purchase option. 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.
605 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
606 { # Represents a custom tag specified for a product offer.
607 &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.
608 },
609 ],
610 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent product belongs to.
611 &quot;preOrderOffer&quot;: { # Configuration specific to pre-order offers. # A pre-order offer.
612 &quot;endTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will stop being available.
613 &quot;priceChangeBehavior&quot;: &quot;A String&quot;, # Required. Immutable. Specifies how price changes affect pre-existing pre-orders.
614 &quot;releaseTime&quot;: &quot;A String&quot;, # Required. Time on which the product associated with the pre-order will be released and the pre-order orders fulfilled.
615 &quot;startTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will start being available.
616 },
617 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent product this offer belongs to.
618 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the purchase option to which this offer is an extension.
619 &quot;regionalPricingAndAvailabilityConfigs&quot;: [ # Set of regional pricing and availability information for this offer. Must not have duplicate entries with the same region_code.
620 { # Regional pricing and availability configuration for a one-time product offer.
621 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute value of the discount that is subtracted from the purchase option price. It should be between 0 and the purchase option price.
622 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
623 &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.
624 &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.
625 },
626 &quot;availability&quot;: &quot;A String&quot;, # Required. The availability for this region.
627 &quot;noOverride&quot;: { # Options for one-time product offers without a regional price override. # The price defined in the purchase option for this region will be used.
628 },
629 &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;.
630 &quot;relativeDiscount&quot;: 3.14, # The fraction of the purchase option price that the user pays for this offer. For example, if the purchase option price for this region is $12, then a 50% discount would correspond to a price of $6. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
631 },
632 ],
633 &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 offer.
634 &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.
635 },
636 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
637 }</pre>
638 </div>
639
640 <div class="method">
641 <code class="details" id="list">list(packageName, productId, purchaseOptionId, pageSize=None, pageToken=None, x__xgafv=None)</code>
642 <pre>Lists all offers under a given app, product, or purchase option.
643
644 Args:
645 packageName: string, Required. The parent app (package name) for which the offers should be read. (required)
646 productId: string, Required. The parent one-time product (ID) for which the offers should be read. May be specified as &#x27;-&#x27; to read all offers under an app. (required)
647 purchaseOptionId: string, Required. The parent purchase option (ID) for which the offers should be read. May be specified as &#x27;-&#x27; to read all offers under a one-time product or an app. Must be specified as &#x27;-&#x27; if product_id is specified as &#x27;-&#x27;. (required)
648 pageSize: integer, Optional. The maximum number of offers to return. The service may return fewer than this value. If unspecified, at most 50 offers will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
649 pageToken: string, Optional. A page token, received from a previous `ListOneTimeProductsOffers` call. Provide this to retrieve the subsequent page. When paginating, product_id, package_name and purchase_option_id provided to `ListOneTimeProductsOffersRequest` must match the call that provided the page token.
650 x__xgafv: string, V1 error format.
651 Allowed values
652 1 - v1 error format
653 2 - v2 error format
654
655 Returns:
656 An object of the form:
657
658 { # Response message for ListOneTimeProductOffers.
659 &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.
660 &quot;oneTimeProductOffers&quot;: [ # The one_time_product offers from the specified request.
661 { # A single offer for a one-time product.
662 &quot;discountedOffer&quot;: { # Configuration specific to discounted offers. # A discounted offer.
663 &quot;endTime&quot;: &quot;A String&quot;, # Time when the offer will stop being available.
664 &quot;redemptionLimit&quot;: &quot;A String&quot;, # Optional. The number of times this offer can be redeemed. If unset or set to 0, allows for unlimited offer redemptions. Otherwise must be a number between 1 and 50 inclusive.
665 &quot;startTime&quot;: &quot;A String&quot;, # Time when the offer will start being available.
666 },
667 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of this product offer. Must be unique within the purchase option. 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.
668 &quot;offerTags&quot;: [ # Optional. List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
669 { # Represents a custom tag specified for a product offer.
670 &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.
671 },
672 ],
673 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent product belongs to.
674 &quot;preOrderOffer&quot;: { # Configuration specific to pre-order offers. # A pre-order offer.
675 &quot;endTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will stop being available.
676 &quot;priceChangeBehavior&quot;: &quot;A String&quot;, # Required. Immutable. Specifies how price changes affect pre-existing pre-orders.
677 &quot;releaseTime&quot;: &quot;A String&quot;, # Required. Time on which the product associated with the pre-order will be released and the pre-order orders fulfilled.
678 &quot;startTime&quot;: &quot;A String&quot;, # Required. Time when the pre-order will start being available.
679 },
680 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent product this offer belongs to.
681 &quot;purchaseOptionId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the purchase option to which this offer is an extension.
682 &quot;regionalPricingAndAvailabilityConfigs&quot;: [ # Set of regional pricing and availability information for this offer. Must not have duplicate entries with the same region_code.
683 { # Regional pricing and availability configuration for a one-time product offer.
684 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute value of the discount that is subtracted from the purchase option price. It should be between 0 and the purchase option price.
685 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
686 &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.
687 &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.
688 },
689 &quot;availability&quot;: &quot;A String&quot;, # Required. The availability for this region.
690 &quot;noOverride&quot;: { # Options for one-time product offers without a regional price override. # The price defined in the purchase option for this region will be used.
691 },
692 &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;.
693 &quot;relativeDiscount&quot;: 3.14, # The fraction of the purchase option price that the user pays for this offer. For example, if the purchase option price for this region is $12, then a 50% discount would correspond to a price of $6. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
694 },
695 ],
696 &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 offer.
697 &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.
698 },
699 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
700 },
701 ],
702 }</pre>
703 </div>
704
705 <div class="method">
706 <code class="details" id="list_next">list_next()</code>
707 <pre>Retrieves the next page of results.
708
709 Args:
710 previous_request: The request for the previous page. (required)
711 previous_response: The response from the request for the previous page. (required)
712
713 Returns:
714 A request object that you can call &#x27;execute()&#x27; on to request the next
715 page. Returns None if there are no more items in the collection.
716 </pre>
717 </div>
718
719 </body></html>