Debian Codegraph @

docs/dyn/androidpublisher_v3.monetization.subscriptions.basePlans.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.subscriptions.html">subscriptions</a> . <a href="androidpublisher_v3.monetization.subscriptions.basePlans.html">basePlans</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="androidpublisher_v3.monetization.subscriptions.basePlans.offers.html">offers()</a></code>
79 </p>
80 <p class="firstline">Returns the offers Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#activate">activate(packageName, productId, basePlanId, body=None, x__xgafv=None)</a></code></p>
84 <p class="firstline">Activates a base plan. Once activated, base plans will be available to new subscribers.</p>
85 <p class="toc_element">
86 <code><a href="#batchMigratePrices">batchMigratePrices(packageName, productId, body=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Batch variant of the MigrateBasePlanPrices endpoint. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.</p>
88 <p class="toc_element">
89 <code><a href="#batchUpdateStates">batchUpdateStates(packageName, productId, body=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Activates or deactivates base plans across one or multiple subscriptions. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.</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="#deactivate">deactivate(packageName, productId, basePlanId, body=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Deactivates a base plan. Once deactivated, the base plan will become unavailable to new subscribers, but existing subscribers will maintain their subscription</p>
97 <p class="toc_element">
98 <code><a href="#delete">delete(packageName, productId, basePlanId, x__xgafv=None)</a></code></p>
99 <p class="firstline">Deletes a base plan. Can only be done for draft base plans. This action is irreversible.</p>
100 <p class="toc_element">
101 <code><a href="#migratePrices">migratePrices(packageName, productId, basePlanId, body=None, x__xgafv=None)</a></code></p>
102 <p class="firstline">Migrates subscribers from one or more legacy price cohorts to the current price. Requests result in Google Play notifying affected subscribers. Only up to 250 simultaneous legacy price cohorts are supported.</p>
103 <h3>Method Details</h3>
104 <div class="method">
105 <code class="details" id="activate">activate(packageName, productId, basePlanId, body=None, x__xgafv=None)</code>
106 <pre>Activates a base plan. Once activated, base plans will be available to new subscribers.
107
108 Args:
109 packageName: string, Required. The parent app (package name) of the base plan to activate. (required)
110 productId: string, Required. The parent subscription (ID) of the base plan to activate. (required)
111 basePlanId: string, Required. The unique base plan ID of the base plan to activate. (required)
112 body: object, The request body.
113 The object takes the form of:
114
115 { # Request message for ActivateBasePlan.
116 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The unique base plan ID of the base plan to activate.
117 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
118 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the base plan to activate.
119 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent subscription (ID) of the base plan to activate.
120 }
121
122 x__xgafv: string, V1 error format.
123 Allowed values
124 1 - v1 error format
125 2 - v2 error format
126
127 Returns:
128 An object of the form:
129
130 { # A single subscription for an app.
131 &quot;archived&quot;: True or False, # Output only. Deprecated: subscription archiving is not supported.
132 &quot;basePlans&quot;: [ # The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
133 { # A single base plan for a subscription.
134 &quot;autoRenewingBasePlanType&quot;: { # Represents a base plan that automatically renews at the end of its subscription period. # Set when the base plan automatically renews at a regular interval.
135 &quot;accountHoldDuration&quot;: &quot;A String&quot;, # Optional. Custom account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and P60D. An empty field represents a recommended account hold, calculated as 60 days minus grace period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
136 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center. The duration is immutable after the base plan is created.
137 &quot;gracePeriodDuration&quot;: &quot;A String&quot;, # Grace period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and the lesser of 30D and base plan billing period. If not specified, a default value will be used based on the billing period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
138 &quot;legacyCompatible&quot;: True or False, # Whether the renewing base plan is backward compatible. The backward compatible base plan is returned by the Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one renewing base plan can be marked as legacy compatible for a given subscription.
139 &quot;legacyCompatibleSubscriptionOfferId&quot;: &quot;A String&quot;, # Subscription offer id which is legacy compatible. The backward compatible subscription offer is returned by the Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one subscription offer can be marked as legacy compatible for a given renewing base plan. To have no Subscription offer as legacy compatible set this field as empty string.
140 &quot;prorationMode&quot;: &quot;A String&quot;, # The proration mode for the base plan determines what happens when a user switches to this plan from another base plan. If unspecified, defaults to CHARGE_ON_NEXT_BILLING_DATE.
141 &quot;resubscribeState&quot;: &quot;A String&quot;, # Whether users should be able to resubscribe to this base plan in Google Play surfaces. Defaults to RESUBSCRIBE_STATE_ACTIVE if not specified.
142 },
143 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The unique identifier of this base plan. Must be unique within the subscription, and conform with RFC-1034. That is, this ID can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 63 characters.
144 &quot;installmentsBasePlanType&quot;: { # Represents an installments base plan where a user commits to a specified number of payments. # Set for installments base plans where a user is committed to a specified number of payments.
145 &quot;accountHoldDuration&quot;: &quot;A String&quot;, # Optional. Custom account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and P60D. An empty field represents a recommended account hold, calculated as 60 days minus grace period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
146 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center. The duration is immutable after the base plan is created.
147 &quot;committedPaymentsCount&quot;: 42, # Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created.
148 &quot;gracePeriodDuration&quot;: &quot;A String&quot;, # Grace period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and the lesser of 30D and base plan billing period. If not specified, a default value will be used based on the billing period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
149 &quot;prorationMode&quot;: &quot;A String&quot;, # The proration mode for the base plan determines what happens when a user switches to this plan from another base plan. If unspecified, defaults to CHARGE_ON_NEXT_BILLING_DATE.
150 &quot;renewalType&quot;: &quot;A String&quot;, # Required. Immutable. Installments base plan renewal type. Determines the behavior at the end of the initial commitment. The renewal type is immutable after the base plan is created.
151 &quot;resubscribeState&quot;: &quot;A String&quot;, # Whether users should be able to resubscribe to this base plan in Google Play surfaces. Defaults to RESUBSCRIBE_STATE_ACTIVE if not specified.
152 },
153 &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this base plan, and returned to the app through the billing library. Subscription offers for this base plan will also receive these offer tags in the billing library.
154 { # Represents a custom tag specified for a product offer.
155 &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.
156 },
157 ],
158 &quot;otherRegionsConfig&quot;: { # Pricing information for any new locations Play may launch in. # Pricing information for any new locations Play may launch in the future. If omitted, the BasePlan will not be automatically available any new locations Play may launch in the future.
159 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
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;newSubscriberAvailability&quot;: True or False, # Whether the base plan is available for new subscribers in any new locations Play may launch in. If not specified, this will default to false.
165 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
166 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
167 &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.
168 &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.
169 },
170 },
171 &quot;prepaidBasePlanType&quot;: { # Represents a base plan that does not automatically renew at the end of the base plan, and must be manually renewed by the user. # Set when the base plan does not automatically renew at the end of the billing period.
172 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center. The duration is immutable after the base plan is created.
173 &quot;timeExtension&quot;: &quot;A String&quot;, # Whether users should be able to extend this prepaid base plan in Google Play surfaces. Defaults to TIME_EXTENSION_ACTIVE if not specified.
174 },
175 &quot;regionalConfigs&quot;: [ # Region-specific information for this base plan.
176 { # Configuration for a base plan specific to a region.
177 &quot;newSubscriberAvailability&quot;: True or False, # Whether the base plan in the specified region is available for new subscribers. Existing subscribers will not have their subscription canceled if this value is set to false. If not specified, this will default to false.
178 &quot;price&quot;: { # Represents an amount of money with its currency type. # The price of the base plan in the specified region. Must be set if the base plan is available to new subscribers. Must be set in the currency that is linked to the specified region.
179 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
180 &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.
181 &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.
182 },
183 &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;.
184 },
185 ],
186 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the base plan, i.e. whether it&#x27;s active. Draft and inactive base plans can be activated or deleted. Active base plans can be made inactive. Inactive base plans can be canceled. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
187 },
188 ],
189 &quot;listings&quot;: [ # Required. List of localized listings for this subscription. Must contain at least an entry for the default language of the parent app.
190 { # The consumer-visible metadata of a subscription.
191 &quot;benefits&quot;: [ # A list of benefits shown to the user on platforms such as the Play Store and in restoration flows in the language of this listing. Plain text. Ordered list of at most four benefits.
192 &quot;A String&quot;,
193 ],
194 &quot;description&quot;: &quot;A String&quot;, # The description of this subscription in the language of this listing. Maximum length - 200 characters. Plain text.
195 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g. &quot;en-US&quot;.
196 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this subscription in the language of this listing. Plain text.
197 },
198 ],
199 &quot;packageName&quot;: &quot;A String&quot;, # Immutable. Package name of the parent app.
200 &quot;productId&quot;: &quot;A String&quot;, # Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length.
201 &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 subscription is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed.
202 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
203 &quot;A String&quot;,
204 ],
205 },
206 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy, and legal compliance for subscription products. # Details about taxes and legal compliance.
207 &quot;eeaWithdrawalRightType&quot;: &quot;A String&quot;, # Digital content or service classification for products distributed to users in the European Economic Area (EEA). The withdrawal regime under EEA consumer laws depends on this classification. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information.
208 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this subscription is declared as a product representing a tokenized digital asset.
209 &quot;productTaxCategoryCode&quot;: &quot;A String&quot;, # Product tax category code to assign to the subscription. Product tax category determines the transaction tax rates applied to the subscription. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information.
210 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
211 { # Details about the age rating for a specific geographic region.
212 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
213 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
214 },
215 ],
216 &quot;taxRateInfoByRegionCode&quot;: { # A mapping from region code to tax rate details. The keys are region codes as defined by Unicode&#x27;s &quot;CLDR&quot;.
217 &quot;a_key&quot;: { # Specified details about taxation in a given geographical region.
218 &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.
219 &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).
220 &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).
221 },
222 },
223 },
224 }</pre>
225 </div>
226
227 <div class="method">
228 <code class="details" id="batchMigratePrices">batchMigratePrices(packageName, productId, body=None, x__xgafv=None)</code>
229 <pre>Batch variant of the MigrateBasePlanPrices endpoint. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.
230
231 Args:
232 packageName: string, Required. The parent app (package name) for which the subscriptions should be created or updated. Must be equal to the package_name field on all the Subscription resources. (required)
233 productId: string, Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this batch update spans multiple subscriptions, set this field to &quot;-&quot;. Must be set. (required)
234 body: object, The request body.
235 The object takes the form of:
236
237 { # Request message for BatchMigrateBasePlanPrices.
238 &quot;requests&quot;: [ # Required. Up to 100 price migration requests. All requests must update different base plans.
239 { # Request message for MigrateBasePlanPrices.
240 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The unique base plan ID of the base plan to update prices on.
241 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
242 &quot;packageName&quot;: &quot;A String&quot;, # Required. Package name of the parent app. Must be equal to the package_name field on the Subscription resource.
243 &quot;productId&quot;: &quot;A String&quot;, # Required. The ID of the subscription to update. Must be equal to the product_id field on the Subscription resource.
244 &quot;regionalPriceMigrations&quot;: [ # Required. The regional prices to update.
245 { # Configuration for migration of a legacy price cohort.
246 &quot;oldestAllowedPriceVersionTime&quot;: &quot;A String&quot;, # Required. Subscribers in all legacy price cohorts before this time will be migrated to the current price. Subscribers in any newer price cohorts are unaffected. Affected subscribers will receive one or more notifications from Google Play about the price change. Price decreases occur at the subscriber&#x27;s next billing date. Price increases occur at the subscriber&#x27;s next billing date following a notification period that varies by region and price increase type.
247 &quot;priceIncreaseType&quot;: &quot;A String&quot;, # Optional. The requested type of price increase
248 &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;.
249 },
250 ],
251 &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 regional_price_migrations.
252 &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.
253 },
254 },
255 ],
256 }
257
258 x__xgafv: string, V1 error format.
259 Allowed values
260 1 - v1 error format
261 2 - v2 error format
262
263 Returns:
264 An object of the form:
265
266 { # Response message for BatchMigrateBasePlanPrices.
267 &quot;responses&quot;: [ # Contains one response per requested price migration, in the same order as the request.
268 { # Response message for MigrateBasePlanPrices.
269 },
270 ],
271 }</pre>
272 </div>
273
274 <div class="method">
275 <code class="details" id="batchUpdateStates">batchUpdateStates(packageName, productId, body=None, x__xgafv=None)</code>
276 <pre>Activates or deactivates base plans across one or multiple subscriptions. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.
277
278 Args:
279 packageName: string, Required. The parent app (package name) of the updated base plans. (required)
280 productId: string, Required. The product ID of the parent subscription, if all updated base plans belong to the same subscription. If this batch update spans multiple subscriptions, set this field to &quot;-&quot;. Must be set. (required)
281 body: object, The request body.
282 The object takes the form of:
283
284 { # Request message for BatchUpdateBasePlanStates.
285 &quot;requests&quot;: [ # Required. The update request list of up to 100 elements. All requests must update different base plans.
286 { # Request message to update the state of a subscription base plan.
287 &quot;activateBasePlanRequest&quot;: { # Request message for ActivateBasePlan. # Activates a base plan. Once activated, base plans will be available to new subscribers.
288 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The unique base plan ID of the base plan to activate.
289 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
290 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the base plan to activate.
291 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent subscription (ID) of the base plan to activate.
292 },
293 &quot;deactivateBasePlanRequest&quot;: { # Request message for DeactivateBasePlan. # Deactivates a base plan. Once deactivated, the base plan will become unavailable to new subscribers, but existing subscribers will maintain their subscription
294 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The unique base plan ID of the base plan to deactivate.
295 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
296 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the base plan to deactivate.
297 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent subscription (ID) of the base plan to deactivate.
298 },
299 },
300 ],
301 }
302
303 x__xgafv: string, V1 error format.
304 Allowed values
305 1 - v1 error format
306 2 - v2 error format
307
308 Returns:
309 An object of the form:
310
311 { # Response message for BatchUpdateBasePlanStates.
312 &quot;subscriptions&quot;: [ # The list of updated subscriptions. This list will match the requests one to one, in the same order.
313 { # A single subscription for an app.
314 &quot;archived&quot;: True or False, # Output only. Deprecated: subscription archiving is not supported.
315 &quot;basePlans&quot;: [ # The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
316 { # A single base plan for a subscription.
317 &quot;autoRenewingBasePlanType&quot;: { # Represents a base plan that automatically renews at the end of its subscription period. # Set when the base plan automatically renews at a regular interval.
318 &quot;accountHoldDuration&quot;: &quot;A String&quot;, # Optional. Custom account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and P60D. An empty field represents a recommended account hold, calculated as 60 days minus grace period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
319 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center. The duration is immutable after the base plan is created.
320 &quot;gracePeriodDuration&quot;: &quot;A String&quot;, # Grace period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and the lesser of 30D and base plan billing period. If not specified, a default value will be used based on the billing period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
321 &quot;legacyCompatible&quot;: True or False, # Whether the renewing base plan is backward compatible. The backward compatible base plan is returned by the Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one renewing base plan can be marked as legacy compatible for a given subscription.
322 &quot;legacyCompatibleSubscriptionOfferId&quot;: &quot;A String&quot;, # Subscription offer id which is legacy compatible. The backward compatible subscription offer is returned by the Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one subscription offer can be marked as legacy compatible for a given renewing base plan. To have no Subscription offer as legacy compatible set this field as empty string.
323 &quot;prorationMode&quot;: &quot;A String&quot;, # The proration mode for the base plan determines what happens when a user switches to this plan from another base plan. If unspecified, defaults to CHARGE_ON_NEXT_BILLING_DATE.
324 &quot;resubscribeState&quot;: &quot;A String&quot;, # Whether users should be able to resubscribe to this base plan in Google Play surfaces. Defaults to RESUBSCRIBE_STATE_ACTIVE if not specified.
325 },
326 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The unique identifier of this base plan. Must be unique within the subscription, and conform with RFC-1034. That is, this ID can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 63 characters.
327 &quot;installmentsBasePlanType&quot;: { # Represents an installments base plan where a user commits to a specified number of payments. # Set for installments base plans where a user is committed to a specified number of payments.
328 &quot;accountHoldDuration&quot;: &quot;A String&quot;, # Optional. Custom account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and P60D. An empty field represents a recommended account hold, calculated as 60 days minus grace period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
329 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center. The duration is immutable after the base plan is created.
330 &quot;committedPaymentsCount&quot;: 42, # Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created.
331 &quot;gracePeriodDuration&quot;: &quot;A String&quot;, # Grace period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and the lesser of 30D and base plan billing period. If not specified, a default value will be used based on the billing period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
332 &quot;prorationMode&quot;: &quot;A String&quot;, # The proration mode for the base plan determines what happens when a user switches to this plan from another base plan. If unspecified, defaults to CHARGE_ON_NEXT_BILLING_DATE.
333 &quot;renewalType&quot;: &quot;A String&quot;, # Required. Immutable. Installments base plan renewal type. Determines the behavior at the end of the initial commitment. The renewal type is immutable after the base plan is created.
334 &quot;resubscribeState&quot;: &quot;A String&quot;, # Whether users should be able to resubscribe to this base plan in Google Play surfaces. Defaults to RESUBSCRIBE_STATE_ACTIVE if not specified.
335 },
336 &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this base plan, and returned to the app through the billing library. Subscription offers for this base plan will also receive these offer tags in the billing library.
337 { # Represents a custom tag specified for a product offer.
338 &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.
339 },
340 ],
341 &quot;otherRegionsConfig&quot;: { # Pricing information for any new locations Play may launch in. # Pricing information for any new locations Play may launch in the future. If omitted, the BasePlan will not be automatically available any new locations Play may launch in the future.
342 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
343 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
344 &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.
345 &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.
346 },
347 &quot;newSubscriberAvailability&quot;: True or False, # Whether the base plan is available for new subscribers in any new locations Play may launch in. If not specified, this will default to false.
348 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
349 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
350 &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.
351 &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.
352 },
353 },
354 &quot;prepaidBasePlanType&quot;: { # Represents a base plan that does not automatically renew at the end of the base plan, and must be manually renewed by the user. # Set when the base plan does not automatically renew at the end of the billing period.
355 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center. The duration is immutable after the base plan is created.
356 &quot;timeExtension&quot;: &quot;A String&quot;, # Whether users should be able to extend this prepaid base plan in Google Play surfaces. Defaults to TIME_EXTENSION_ACTIVE if not specified.
357 },
358 &quot;regionalConfigs&quot;: [ # Region-specific information for this base plan.
359 { # Configuration for a base plan specific to a region.
360 &quot;newSubscriberAvailability&quot;: True or False, # Whether the base plan in the specified region is available for new subscribers. Existing subscribers will not have their subscription canceled if this value is set to false. If not specified, this will default to false.
361 &quot;price&quot;: { # Represents an amount of money with its currency type. # The price of the base plan in the specified region. Must be set if the base plan is available to new subscribers. Must be set in the currency that is linked to the specified region.
362 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
363 &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.
364 &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.
365 },
366 &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;.
367 },
368 ],
369 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the base plan, i.e. whether it&#x27;s active. Draft and inactive base plans can be activated or deleted. Active base plans can be made inactive. Inactive base plans can be canceled. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
370 },
371 ],
372 &quot;listings&quot;: [ # Required. List of localized listings for this subscription. Must contain at least an entry for the default language of the parent app.
373 { # The consumer-visible metadata of a subscription.
374 &quot;benefits&quot;: [ # A list of benefits shown to the user on platforms such as the Play Store and in restoration flows in the language of this listing. Plain text. Ordered list of at most four benefits.
375 &quot;A String&quot;,
376 ],
377 &quot;description&quot;: &quot;A String&quot;, # The description of this subscription in the language of this listing. Maximum length - 200 characters. Plain text.
378 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g. &quot;en-US&quot;.
379 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this subscription in the language of this listing. Plain text.
380 },
381 ],
382 &quot;packageName&quot;: &quot;A String&quot;, # Immutable. Package name of the parent app.
383 &quot;productId&quot;: &quot;A String&quot;, # Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length.
384 &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 subscription is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed.
385 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
386 &quot;A String&quot;,
387 ],
388 },
389 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy, and legal compliance for subscription products. # Details about taxes and legal compliance.
390 &quot;eeaWithdrawalRightType&quot;: &quot;A String&quot;, # Digital content or service classification for products distributed to users in the European Economic Area (EEA). The withdrawal regime under EEA consumer laws depends on this classification. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information.
391 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this subscription is declared as a product representing a tokenized digital asset.
392 &quot;productTaxCategoryCode&quot;: &quot;A String&quot;, # Product tax category code to assign to the subscription. Product tax category determines the transaction tax rates applied to the subscription. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information.
393 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
394 { # Details about the age rating for a specific geographic region.
395 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
396 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
397 },
398 ],
399 &quot;taxRateInfoByRegionCode&quot;: { # A mapping from region code to tax rate details. The keys are region codes as defined by Unicode&#x27;s &quot;CLDR&quot;.
400 &quot;a_key&quot;: { # Specified details about taxation in a given geographical region.
401 &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.
402 &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).
403 &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).
404 },
405 },
406 },
407 },
408 ],
409 }</pre>
410 </div>
411
412 <div class="method">
413 <code class="details" id="close">close()</code>
414 <pre>Close httplib2 connections.</pre>
415 </div>
416
417 <div class="method">
418 <code class="details" id="deactivate">deactivate(packageName, productId, basePlanId, body=None, x__xgafv=None)</code>
419 <pre>Deactivates a base plan. Once deactivated, the base plan will become unavailable to new subscribers, but existing subscribers will maintain their subscription
420
421 Args:
422 packageName: string, Required. The parent app (package name) of the base plan to deactivate. (required)
423 productId: string, Required. The parent subscription (ID) of the base plan to deactivate. (required)
424 basePlanId: string, Required. The unique base plan ID of the base plan to deactivate. (required)
425 body: object, The request body.
426 The object takes the form of:
427
428 { # Request message for DeactivateBasePlan.
429 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The unique base plan ID of the base plan to deactivate.
430 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
431 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the base plan to deactivate.
432 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent subscription (ID) of the base plan to deactivate.
433 }
434
435 x__xgafv: string, V1 error format.
436 Allowed values
437 1 - v1 error format
438 2 - v2 error format
439
440 Returns:
441 An object of the form:
442
443 { # A single subscription for an app.
444 &quot;archived&quot;: True or False, # Output only. Deprecated: subscription archiving is not supported.
445 &quot;basePlans&quot;: [ # The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
446 { # A single base plan for a subscription.
447 &quot;autoRenewingBasePlanType&quot;: { # Represents a base plan that automatically renews at the end of its subscription period. # Set when the base plan automatically renews at a regular interval.
448 &quot;accountHoldDuration&quot;: &quot;A String&quot;, # Optional. Custom account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and P60D. An empty field represents a recommended account hold, calculated as 60 days minus grace period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
449 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center. The duration is immutable after the base plan is created.
450 &quot;gracePeriodDuration&quot;: &quot;A String&quot;, # Grace period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and the lesser of 30D and base plan billing period. If not specified, a default value will be used based on the billing period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
451 &quot;legacyCompatible&quot;: True or False, # Whether the renewing base plan is backward compatible. The backward compatible base plan is returned by the Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one renewing base plan can be marked as legacy compatible for a given subscription.
452 &quot;legacyCompatibleSubscriptionOfferId&quot;: &quot;A String&quot;, # Subscription offer id which is legacy compatible. The backward compatible subscription offer is returned by the Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one subscription offer can be marked as legacy compatible for a given renewing base plan. To have no Subscription offer as legacy compatible set this field as empty string.
453 &quot;prorationMode&quot;: &quot;A String&quot;, # The proration mode for the base plan determines what happens when a user switches to this plan from another base plan. If unspecified, defaults to CHARGE_ON_NEXT_BILLING_DATE.
454 &quot;resubscribeState&quot;: &quot;A String&quot;, # Whether users should be able to resubscribe to this base plan in Google Play surfaces. Defaults to RESUBSCRIBE_STATE_ACTIVE if not specified.
455 },
456 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The unique identifier of this base plan. Must be unique within the subscription, and conform with RFC-1034. That is, this ID can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 63 characters.
457 &quot;installmentsBasePlanType&quot;: { # Represents an installments base plan where a user commits to a specified number of payments. # Set for installments base plans where a user is committed to a specified number of payments.
458 &quot;accountHoldDuration&quot;: &quot;A String&quot;, # Optional. Custom account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and P60D. An empty field represents a recommended account hold, calculated as 60 days minus grace period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
459 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center. The duration is immutable after the base plan is created.
460 &quot;committedPaymentsCount&quot;: 42, # Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created.
461 &quot;gracePeriodDuration&quot;: &quot;A String&quot;, # Grace period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and the lesser of 30D and base plan billing period. If not specified, a default value will be used based on the billing period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
462 &quot;prorationMode&quot;: &quot;A String&quot;, # The proration mode for the base plan determines what happens when a user switches to this plan from another base plan. If unspecified, defaults to CHARGE_ON_NEXT_BILLING_DATE.
463 &quot;renewalType&quot;: &quot;A String&quot;, # Required. Immutable. Installments base plan renewal type. Determines the behavior at the end of the initial commitment. The renewal type is immutable after the base plan is created.
464 &quot;resubscribeState&quot;: &quot;A String&quot;, # Whether users should be able to resubscribe to this base plan in Google Play surfaces. Defaults to RESUBSCRIBE_STATE_ACTIVE if not specified.
465 },
466 &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this base plan, and returned to the app through the billing library. Subscription offers for this base plan will also receive these offer tags in the billing library.
467 { # Represents a custom tag specified for a product offer.
468 &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.
469 },
470 ],
471 &quot;otherRegionsConfig&quot;: { # Pricing information for any new locations Play may launch in. # Pricing information for any new locations Play may launch in the future. If omitted, the BasePlan will not be automatically available any new locations Play may launch in the future.
472 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
473 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
474 &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.
475 &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.
476 },
477 &quot;newSubscriberAvailability&quot;: True or False, # Whether the base plan is available for new subscribers in any new locations Play may launch in. If not specified, this will default to false.
478 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
479 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
480 &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.
481 &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.
482 },
483 },
484 &quot;prepaidBasePlanType&quot;: { # Represents a base plan that does not automatically renew at the end of the base plan, and must be manually renewed by the user. # Set when the base plan does not automatically renew at the end of the billing period.
485 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center. The duration is immutable after the base plan is created.
486 &quot;timeExtension&quot;: &quot;A String&quot;, # Whether users should be able to extend this prepaid base plan in Google Play surfaces. Defaults to TIME_EXTENSION_ACTIVE if not specified.
487 },
488 &quot;regionalConfigs&quot;: [ # Region-specific information for this base plan.
489 { # Configuration for a base plan specific to a region.
490 &quot;newSubscriberAvailability&quot;: True or False, # Whether the base plan in the specified region is available for new subscribers. Existing subscribers will not have their subscription canceled if this value is set to false. If not specified, this will default to false.
491 &quot;price&quot;: { # Represents an amount of money with its currency type. # The price of the base plan in the specified region. Must be set if the base plan is available to new subscribers. Must be set in the currency that is linked to the specified region.
492 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
493 &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.
494 &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.
495 },
496 &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;.
497 },
498 ],
499 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the base plan, i.e. whether it&#x27;s active. Draft and inactive base plans can be activated or deleted. Active base plans can be made inactive. Inactive base plans can be canceled. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
500 },
501 ],
502 &quot;listings&quot;: [ # Required. List of localized listings for this subscription. Must contain at least an entry for the default language of the parent app.
503 { # The consumer-visible metadata of a subscription.
504 &quot;benefits&quot;: [ # A list of benefits shown to the user on platforms such as the Play Store and in restoration flows in the language of this listing. Plain text. Ordered list of at most four benefits.
505 &quot;A String&quot;,
506 ],
507 &quot;description&quot;: &quot;A String&quot;, # The description of this subscription in the language of this listing. Maximum length - 200 characters. Plain text.
508 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g. &quot;en-US&quot;.
509 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this subscription in the language of this listing. Plain text.
510 },
511 ],
512 &quot;packageName&quot;: &quot;A String&quot;, # Immutable. Package name of the parent app.
513 &quot;productId&quot;: &quot;A String&quot;, # Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length.
514 &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 subscription is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed.
515 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
516 &quot;A String&quot;,
517 ],
518 },
519 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy, and legal compliance for subscription products. # Details about taxes and legal compliance.
520 &quot;eeaWithdrawalRightType&quot;: &quot;A String&quot;, # Digital content or service classification for products distributed to users in the European Economic Area (EEA). The withdrawal regime under EEA consumer laws depends on this classification. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information.
521 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this subscription is declared as a product representing a tokenized digital asset.
522 &quot;productTaxCategoryCode&quot;: &quot;A String&quot;, # Product tax category code to assign to the subscription. Product tax category determines the transaction tax rates applied to the subscription. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information.
523 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
524 { # Details about the age rating for a specific geographic region.
525 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
526 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
527 },
528 ],
529 &quot;taxRateInfoByRegionCode&quot;: { # A mapping from region code to tax rate details. The keys are region codes as defined by Unicode&#x27;s &quot;CLDR&quot;.
530 &quot;a_key&quot;: { # Specified details about taxation in a given geographical region.
531 &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.
532 &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).
533 &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).
534 },
535 },
536 },
537 }</pre>
538 </div>
539
540 <div class="method">
541 <code class="details" id="delete">delete(packageName, productId, basePlanId, x__xgafv=None)</code>
542 <pre>Deletes a base plan. Can only be done for draft base plans. This action is irreversible.
543
544 Args:
545 packageName: string, Required. The parent app (package name) of the base plan to delete. (required)
546 productId: string, Required. The parent subscription (ID) of the base plan to delete. (required)
547 basePlanId: string, Required. The unique offer ID of the base plan to delete. (required)
548 x__xgafv: string, V1 error format.
549 Allowed values
550 1 - v1 error format
551 2 - v2 error format
552 </pre>
553 </div>
554
555 <div class="method">
556 <code class="details" id="migratePrices">migratePrices(packageName, productId, basePlanId, body=None, x__xgafv=None)</code>
557 <pre>Migrates subscribers from one or more legacy price cohorts to the current price. Requests result in Google Play notifying affected subscribers. Only up to 250 simultaneous legacy price cohorts are supported.
558
559 Args:
560 packageName: string, Required. Package name of the parent app. Must be equal to the package_name field on the Subscription resource. (required)
561 productId: string, Required. The ID of the subscription to update. Must be equal to the product_id field on the Subscription resource. (required)
562 basePlanId: string, Required. The unique base plan ID of the base plan to update prices on. (required)
563 body: object, The request body.
564 The object takes the form of:
565
566 { # Request message for MigrateBasePlanPrices.
567 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The unique base plan ID of the base plan to update prices on.
568 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
569 &quot;packageName&quot;: &quot;A String&quot;, # Required. Package name of the parent app. Must be equal to the package_name field on the Subscription resource.
570 &quot;productId&quot;: &quot;A String&quot;, # Required. The ID of the subscription to update. Must be equal to the product_id field on the Subscription resource.
571 &quot;regionalPriceMigrations&quot;: [ # Required. The regional prices to update.
572 { # Configuration for migration of a legacy price cohort.
573 &quot;oldestAllowedPriceVersionTime&quot;: &quot;A String&quot;, # Required. Subscribers in all legacy price cohorts before this time will be migrated to the current price. Subscribers in any newer price cohorts are unaffected. Affected subscribers will receive one or more notifications from Google Play about the price change. Price decreases occur at the subscriber&#x27;s next billing date. Price increases occur at the subscriber&#x27;s next billing date following a notification period that varies by region and price increase type.
574 &quot;priceIncreaseType&quot;: &quot;A String&quot;, # Optional. The requested type of price increase
575 &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;.
576 },
577 ],
578 &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 regional_price_migrations.
579 &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.
580 },
581 }
582
583 x__xgafv: string, V1 error format.
584 Allowed values
585 1 - v1 error format
586 2 - v2 error format
587
588 Returns:
589 An object of the form:
590
591 { # Response message for MigrateBasePlanPrices.
592 }</pre>
593 </div>
594
595 </body></html>