Debian Codegraph @

docs/dyn/androidpublisher_v3.monetization.subscriptions.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></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="androidpublisher_v3.monetization.subscriptions.basePlans.html">basePlans()</a></code>
79 </p>
80 <p class="firstline">Returns the basePlans Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#archive">archive(packageName, productId, body=None, x__xgafv=None)</a></code></p>
84 <p class="firstline">Deprecated: subscription archiving is not supported.</p>
85 <p class="toc_element">
86 <code><a href="#batchGet">batchGet(packageName, productIds=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Reads one or more subscriptions.</p>
88 <p class="toc_element">
89 <code><a href="#batchUpdate">batchUpdate(packageName, body=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Updates a batch of 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="#create">create(packageName, body=None, productId=None, regionsVersion_version=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Creates a new subscription. Newly added base plans will remain in draft state until activated.</p>
97 <p class="toc_element">
98 <code><a href="#delete">delete(packageName, productId, x__xgafv=None)</a></code></p>
99 <p class="firstline">Deletes a subscription. A subscription can only be deleted if it has never had a base plan published.</p>
100 <p class="toc_element">
101 <code><a href="#get">get(packageName, productId, x__xgafv=None)</a></code></p>
102 <p class="firstline">Reads a single subscription.</p>
103 <p class="toc_element">
104 <code><a href="#list">list(packageName, pageSize=None, pageToken=None, showArchived=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Lists all subscriptions under a given app.</p>
106 <p class="toc_element">
107 <code><a href="#list_next">list_next()</a></code></p>
108 <p class="firstline">Retrieves the next page of results.</p>
109 <p class="toc_element">
110 <code><a href="#patch">patch(packageName, productId, allowMissing=None, body=None, latencyTolerance=None, regionsVersion_version=None, updateMask=None, x__xgafv=None)</a></code></p>
111 <p class="firstline">Updates an existing subscription.</p>
112 <h3>Method Details</h3>
113 <div class="method">
114 <code class="details" id="archive">archive(packageName, productId, body=None, x__xgafv=None)</code>
115 <pre>Deprecated: subscription archiving is not supported.
116
117 Args:
118 packageName: string, Required. The parent app (package name) of the app of the subscription to delete. (required)
119 productId: string, Required. The unique product ID of the subscription to delete. (required)
120 body: object, The request body.
121 The object takes the form of:
122
123 { # Deprecated: subscription archiving is not supported.
124 }
125
126 x__xgafv: string, V1 error format.
127 Allowed values
128 1 - v1 error format
129 2 - v2 error format
130
131 Returns:
132 An object of the form:
133
134 { # A single subscription for an app.
135 &quot;archived&quot;: True or False, # Output only. Deprecated: subscription archiving is not supported.
136 &quot;basePlans&quot;: [ # The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
137 { # A single base plan for a subscription.
138 &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.
139 &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.
140 &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.
141 &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.
142 &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.
143 &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.
144 &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.
145 &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.
146 },
147 &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.
148 &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.
149 &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.
150 &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.
151 &quot;committedPaymentsCount&quot;: 42, # Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created.
152 &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.
153 &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.
154 &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.
155 &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.
156 },
157 &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.
158 { # Represents a custom tag specified for a product offer.
159 &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.
160 },
161 ],
162 &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.
163 &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.
164 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
165 &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.
166 &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.
167 },
168 &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.
169 &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.
170 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
171 &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.
172 &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.
173 },
174 },
175 &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.
176 &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.
177 &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.
178 },
179 &quot;regionalConfigs&quot;: [ # Region-specific information for this base plan.
180 { # Configuration for a base plan specific to a region.
181 &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.
182 &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.
183 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
184 &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.
185 &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.
186 },
187 &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;.
188 },
189 ],
190 &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.
191 },
192 ],
193 &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.
194 { # The consumer-visible metadata of a subscription.
195 &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.
196 &quot;A String&quot;,
197 ],
198 &quot;description&quot;: &quot;A String&quot;, # The description of this subscription in the language of this listing. Maximum length - 200 characters. Plain text.
199 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g. &quot;en-US&quot;.
200 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this subscription in the language of this listing. Plain text.
201 },
202 ],
203 &quot;packageName&quot;: &quot;A String&quot;, # Immutable. Package name of the parent app.
204 &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.
205 &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.
206 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
207 &quot;A String&quot;,
208 ],
209 },
210 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy, and legal compliance for subscription products. # Details about taxes and legal compliance.
211 &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.
212 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this subscription is declared as a product representing a tokenized digital asset.
213 &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.
214 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
215 { # Details about the age rating for a specific geographic region.
216 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
217 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
218 },
219 ],
220 &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;.
221 &quot;a_key&quot;: { # Specified details about taxation in a given geographical region.
222 &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.
223 &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).
224 &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).
225 },
226 },
227 },
228 }</pre>
229 </div>
230
231 <div class="method">
232 <code class="details" id="batchGet">batchGet(packageName, productIds=None, x__xgafv=None)</code>
233 <pre>Reads one or more subscriptions.
234
235 Args:
236 packageName: string, Required. The parent app (package name) for which the subscriptions should be retrieved. Must be equal to the package_name field on all the requests. (required)
237 productIds: string, Required. A list of up to 100 subscription product IDs to retrieve. All the IDs must be different. (repeated)
238 x__xgafv: string, V1 error format.
239 Allowed values
240 1 - v1 error format
241 2 - v2 error format
242
243 Returns:
244 An object of the form:
245
246 { # Response message for BatchGetSubscriptions endpoint.
247 &quot;subscriptions&quot;: [ # The list of requested subscriptions, in the same order as the request.
248 { # A single subscription for an app.
249 &quot;archived&quot;: True or False, # Output only. Deprecated: subscription archiving is not supported.
250 &quot;basePlans&quot;: [ # The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
251 { # A single base plan for a subscription.
252 &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.
253 &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.
254 &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.
255 &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.
256 &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.
257 &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.
258 &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.
259 &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.
260 },
261 &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.
262 &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.
263 &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.
264 &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.
265 &quot;committedPaymentsCount&quot;: 42, # Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created.
266 &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.
267 &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.
268 &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.
269 &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.
270 },
271 &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.
272 { # Represents a custom tag specified for a product offer.
273 &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.
274 },
275 ],
276 &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.
277 &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.
278 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
279 &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.
280 &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.
281 },
282 &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.
283 &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.
284 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
285 &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.
286 &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.
287 },
288 },
289 &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.
290 &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.
291 &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.
292 },
293 &quot;regionalConfigs&quot;: [ # Region-specific information for this base plan.
294 { # Configuration for a base plan specific to a region.
295 &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.
296 &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.
297 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
298 &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.
299 &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.
300 },
301 &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;.
302 },
303 ],
304 &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.
305 },
306 ],
307 &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.
308 { # The consumer-visible metadata of a subscription.
309 &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.
310 &quot;A String&quot;,
311 ],
312 &quot;description&quot;: &quot;A String&quot;, # The description of this subscription in the language of this listing. Maximum length - 200 characters. Plain text.
313 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g. &quot;en-US&quot;.
314 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this subscription in the language of this listing. Plain text.
315 },
316 ],
317 &quot;packageName&quot;: &quot;A String&quot;, # Immutable. Package name of the parent app.
318 &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.
319 &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.
320 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
321 &quot;A String&quot;,
322 ],
323 },
324 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy, and legal compliance for subscription products. # Details about taxes and legal compliance.
325 &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.
326 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this subscription is declared as a product representing a tokenized digital asset.
327 &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.
328 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
329 { # Details about the age rating for a specific geographic region.
330 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
331 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
332 },
333 ],
334 &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;.
335 &quot;a_key&quot;: { # Specified details about taxation in a given geographical region.
336 &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.
337 &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).
338 &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).
339 },
340 },
341 },
342 },
343 ],
344 }</pre>
345 </div>
346
347 <div class="method">
348 <code class="details" id="batchUpdate">batchUpdate(packageName, body=None, x__xgafv=None)</code>
349 <pre>Updates a batch of subscriptions. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.
350
351 Args:
352 packageName: string, Required. The parent app (package name) for which the subscriptions should be updated. Must be equal to the package_name field on all the Subscription resources. (required)
353 body: object, The request body.
354 The object takes the form of:
355
356 { # Request message for BatchUpdateSubscription.
357 &quot;requests&quot;: [ # Required. A list of update requests of up to 100 elements. All requests must update different subscriptions.
358 { # Request message for UpdateSubscription.
359 &quot;allowMissing&quot;: True or False, # Optional. If set to true, and the subscription with the given package_name and product_id doesn&#x27;t exist, the subscription will be created. If a new subscription is created, update_mask is ignored.
360 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
361 &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 subscription.
362 &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.
363 },
364 &quot;subscription&quot;: { # A single subscription for an app. # Required. The subscription to update.
365 &quot;archived&quot;: True or False, # Output only. Deprecated: subscription archiving is not supported.
366 &quot;basePlans&quot;: [ # The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
367 { # A single base plan for a subscription.
368 &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.
369 &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.
370 &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.
371 &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.
372 &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.
373 &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.
374 &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.
375 &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.
376 },
377 &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.
378 &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.
379 &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.
380 &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.
381 &quot;committedPaymentsCount&quot;: 42, # Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created.
382 &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.
383 &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.
384 &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.
385 &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.
386 },
387 &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.
388 { # Represents a custom tag specified for a product offer.
389 &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.
390 },
391 ],
392 &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.
393 &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.
394 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
395 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
396 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
397 },
398 &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.
399 &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.
400 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
401 &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.
402 &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.
403 },
404 },
405 &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.
406 &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.
407 &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.
408 },
409 &quot;regionalConfigs&quot;: [ # Region-specific information for this base plan.
410 { # Configuration for a base plan specific to a region.
411 &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.
412 &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.
413 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
414 &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.
415 &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.
416 },
417 &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;.
418 },
419 ],
420 &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.
421 },
422 ],
423 &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.
424 { # The consumer-visible metadata of a subscription.
425 &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.
426 &quot;A String&quot;,
427 ],
428 &quot;description&quot;: &quot;A String&quot;, # The description of this subscription in the language of this listing. Maximum length - 200 characters. Plain text.
429 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g. &quot;en-US&quot;.
430 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this subscription in the language of this listing. Plain text.
431 },
432 ],
433 &quot;packageName&quot;: &quot;A String&quot;, # Immutable. Package name of the parent app.
434 &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.
435 &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.
436 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
437 &quot;A String&quot;,
438 ],
439 },
440 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy, and legal compliance for subscription products. # Details about taxes and legal compliance.
441 &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.
442 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this subscription is declared as a product representing a tokenized digital asset.
443 &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.
444 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
445 { # Details about the age rating for a specific geographic region.
446 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
447 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
448 },
449 ],
450 &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;.
451 &quot;a_key&quot;: { # Specified details about taxation in a given geographical region.
452 &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.
453 &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).
454 &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).
455 },
456 },
457 },
458 },
459 &quot;updateMask&quot;: &quot;A String&quot;, # Required. The list of fields to be updated.
460 },
461 ],
462 }
463
464 x__xgafv: string, V1 error format.
465 Allowed values
466 1 - v1 error format
467 2 - v2 error format
468
469 Returns:
470 An object of the form:
471
472 { # Response message for BatchUpdateSubscription.
473 &quot;subscriptions&quot;: [ # The updated subscriptions list.
474 { # A single subscription for an app.
475 &quot;archived&quot;: True or False, # Output only. Deprecated: subscription archiving is not supported.
476 &quot;basePlans&quot;: [ # The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
477 { # A single base plan for a subscription.
478 &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.
479 &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.
480 &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.
481 &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.
482 &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.
483 &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.
484 &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.
485 &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.
486 },
487 &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.
488 &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.
489 &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.
490 &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.
491 &quot;committedPaymentsCount&quot;: 42, # Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created.
492 &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.
493 &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.
494 &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.
495 &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.
496 },
497 &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.
498 { # Represents a custom tag specified for a product offer.
499 &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.
500 },
501 ],
502 &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.
503 &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.
504 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
505 &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.
506 &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.
507 },
508 &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.
509 &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.
510 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
511 &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.
512 &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.
513 },
514 },
515 &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.
516 &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.
517 &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.
518 },
519 &quot;regionalConfigs&quot;: [ # Region-specific information for this base plan.
520 { # Configuration for a base plan specific to a region.
521 &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.
522 &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.
523 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
524 &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.
525 &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.
526 },
527 &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;.
528 },
529 ],
530 &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.
531 },
532 ],
533 &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.
534 { # The consumer-visible metadata of a subscription.
535 &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.
536 &quot;A String&quot;,
537 ],
538 &quot;description&quot;: &quot;A String&quot;, # The description of this subscription in the language of this listing. Maximum length - 200 characters. Plain text.
539 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g. &quot;en-US&quot;.
540 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this subscription in the language of this listing. Plain text.
541 },
542 ],
543 &quot;packageName&quot;: &quot;A String&quot;, # Immutable. Package name of the parent app.
544 &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.
545 &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.
546 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
547 &quot;A String&quot;,
548 ],
549 },
550 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy, and legal compliance for subscription products. # Details about taxes and legal compliance.
551 &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.
552 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this subscription is declared as a product representing a tokenized digital asset.
553 &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.
554 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
555 { # Details about the age rating for a specific geographic region.
556 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
557 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
558 },
559 ],
560 &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;.
561 &quot;a_key&quot;: { # Specified details about taxation in a given geographical region.
562 &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.
563 &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).
564 &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).
565 },
566 },
567 },
568 },
569 ],
570 }</pre>
571 </div>
572
573 <div class="method">
574 <code class="details" id="close">close()</code>
575 <pre>Close httplib2 connections.</pre>
576 </div>
577
578 <div class="method">
579 <code class="details" id="create">create(packageName, body=None, productId=None, regionsVersion_version=None, x__xgafv=None)</code>
580 <pre>Creates a new subscription. Newly added base plans will remain in draft state until activated.
581
582 Args:
583 packageName: string, Required. The parent app (package name) for which the subscription should be created. Must be equal to the package_name field on the Subscription resource. (required)
584 body: object, The request body.
585 The object takes the form of:
586
587 { # A single subscription for an app.
588 &quot;archived&quot;: True or False, # Output only. Deprecated: subscription archiving is not supported.
589 &quot;basePlans&quot;: [ # The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
590 { # A single base plan for a subscription.
591 &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.
592 &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.
593 &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.
594 &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.
595 &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.
596 &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.
597 &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.
598 &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.
599 },
600 &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.
601 &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.
602 &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.
603 &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.
604 &quot;committedPaymentsCount&quot;: 42, # Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created.
605 &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.
606 &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.
607 &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.
608 &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.
609 },
610 &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.
611 { # Represents a custom tag specified for a product offer.
612 &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.
613 },
614 ],
615 &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.
616 &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.
617 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
618 &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.
619 &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.
620 },
621 &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.
622 &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.
623 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
624 &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.
625 &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.
626 },
627 },
628 &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.
629 &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.
630 &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.
631 },
632 &quot;regionalConfigs&quot;: [ # Region-specific information for this base plan.
633 { # Configuration for a base plan specific to a region.
634 &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.
635 &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.
636 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
637 &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.
638 &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.
639 },
640 &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;.
641 },
642 ],
643 &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.
644 },
645 ],
646 &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.
647 { # The consumer-visible metadata of a subscription.
648 &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.
649 &quot;A String&quot;,
650 ],
651 &quot;description&quot;: &quot;A String&quot;, # The description of this subscription in the language of this listing. Maximum length - 200 characters. Plain text.
652 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g. &quot;en-US&quot;.
653 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this subscription in the language of this listing. Plain text.
654 },
655 ],
656 &quot;packageName&quot;: &quot;A String&quot;, # Immutable. Package name of the parent app.
657 &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.
658 &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.
659 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
660 &quot;A String&quot;,
661 ],
662 },
663 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy, and legal compliance for subscription products. # Details about taxes and legal compliance.
664 &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.
665 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this subscription is declared as a product representing a tokenized digital asset.
666 &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.
667 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
668 { # Details about the age rating for a specific geographic region.
669 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
670 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
671 },
672 ],
673 &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;.
674 &quot;a_key&quot;: { # Specified details about taxation in a given geographical region.
675 &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.
676 &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).
677 &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).
678 },
679 },
680 },
681 }
682
683 productId: string, Required. The ID to use for the subscription. For the requirements on this format, see the documentation of the product_id field on the Subscription resource.
684 regionsVersion_version: string, Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
685 x__xgafv: string, V1 error format.
686 Allowed values
687 1 - v1 error format
688 2 - v2 error format
689
690 Returns:
691 An object of the form:
692
693 { # A single subscription for an app.
694 &quot;archived&quot;: True or False, # Output only. Deprecated: subscription archiving is not supported.
695 &quot;basePlans&quot;: [ # The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
696 { # A single base plan for a subscription.
697 &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.
698 &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.
699 &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.
700 &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.
701 &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.
702 &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.
703 &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.
704 &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.
705 },
706 &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.
707 &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.
708 &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.
709 &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.
710 &quot;committedPaymentsCount&quot;: 42, # Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created.
711 &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.
712 &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.
713 &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.
714 &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.
715 },
716 &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.
717 { # Represents a custom tag specified for a product offer.
718 &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.
719 },
720 ],
721 &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.
722 &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.
723 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
724 &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.
725 &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.
726 },
727 &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.
728 &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.
729 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
730 &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.
731 &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.
732 },
733 },
734 &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.
735 &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.
736 &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.
737 },
738 &quot;regionalConfigs&quot;: [ # Region-specific information for this base plan.
739 { # Configuration for a base plan specific to a region.
740 &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.
741 &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.
742 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
743 &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.
744 &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.
745 },
746 &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;.
747 },
748 ],
749 &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.
750 },
751 ],
752 &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.
753 { # The consumer-visible metadata of a subscription.
754 &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.
755 &quot;A String&quot;,
756 ],
757 &quot;description&quot;: &quot;A String&quot;, # The description of this subscription in the language of this listing. Maximum length - 200 characters. Plain text.
758 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g. &quot;en-US&quot;.
759 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this subscription in the language of this listing. Plain text.
760 },
761 ],
762 &quot;packageName&quot;: &quot;A String&quot;, # Immutable. Package name of the parent app.
763 &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.
764 &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.
765 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
766 &quot;A String&quot;,
767 ],
768 },
769 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy, and legal compliance for subscription products. # Details about taxes and legal compliance.
770 &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.
771 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this subscription is declared as a product representing a tokenized digital asset.
772 &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.
773 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
774 { # Details about the age rating for a specific geographic region.
775 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
776 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
777 },
778 ],
779 &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;.
780 &quot;a_key&quot;: { # Specified details about taxation in a given geographical region.
781 &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.
782 &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).
783 &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).
784 },
785 },
786 },
787 }</pre>
788 </div>
789
790 <div class="method">
791 <code class="details" id="delete">delete(packageName, productId, x__xgafv=None)</code>
792 <pre>Deletes a subscription. A subscription can only be deleted if it has never had a base plan published.
793
794 Args:
795 packageName: string, Required. The parent app (package name) of the app of the subscription to delete. (required)
796 productId: string, Required. The unique product ID of the subscription to delete. (required)
797 x__xgafv: string, V1 error format.
798 Allowed values
799 1 - v1 error format
800 2 - v2 error format
801 </pre>
802 </div>
803
804 <div class="method">
805 <code class="details" id="get">get(packageName, productId, x__xgafv=None)</code>
806 <pre>Reads a single subscription.
807
808 Args:
809 packageName: string, Required. The parent app (package name) of the subscription to get. (required)
810 productId: string, Required. The unique product ID of the subscription to get. (required)
811 x__xgafv: string, V1 error format.
812 Allowed values
813 1 - v1 error format
814 2 - v2 error format
815
816 Returns:
817 An object of the form:
818
819 { # A single subscription for an app.
820 &quot;archived&quot;: True or False, # Output only. Deprecated: subscription archiving is not supported.
821 &quot;basePlans&quot;: [ # The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
822 { # A single base plan for a subscription.
823 &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.
824 &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.
825 &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.
826 &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.
827 &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.
828 &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.
829 &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.
830 &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.
831 },
832 &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.
833 &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.
834 &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.
835 &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.
836 &quot;committedPaymentsCount&quot;: 42, # Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created.
837 &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.
838 &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.
839 &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.
840 &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.
841 },
842 &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.
843 { # Represents a custom tag specified for a product offer.
844 &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.
845 },
846 ],
847 &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.
848 &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.
849 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
850 &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.
851 &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.
852 },
853 &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.
854 &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.
855 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
856 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
857 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
858 },
859 },
860 &quot;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.
861 &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.
862 &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.
863 },
864 &quot;regionalConfigs&quot;: [ # Region-specific information for this base plan.
865 { # Configuration for a base plan specific to a region.
866 &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.
867 &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.
868 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
869 &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.
870 &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.
871 },
872 &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;.
873 },
874 ],
875 &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.
876 },
877 ],
878 &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.
879 { # The consumer-visible metadata of a subscription.
880 &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.
881 &quot;A String&quot;,
882 ],
883 &quot;description&quot;: &quot;A String&quot;, # The description of this subscription in the language of this listing. Maximum length - 200 characters. Plain text.
884 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g. &quot;en-US&quot;.
885 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this subscription in the language of this listing. Plain text.
886 },
887 ],
888 &quot;packageName&quot;: &quot;A String&quot;, # Immutable. Package name of the parent app.
889 &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.
890 &quot;restrictedPaymentCountries&quot;: { # Countries where the purchase of this product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed. # Optional. Countries where the purchase of this subscription is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed.
891 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
892 &quot;A String&quot;,
893 ],
894 },
895 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy, and legal compliance for subscription products. # Details about taxes and legal compliance.
896 &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.
897 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this subscription is declared as a product representing a tokenized digital asset.
898 &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.
899 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
900 { # Details about the age rating for a specific geographic region.
901 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
902 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
903 },
904 ],
905 &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;.
906 &quot;a_key&quot;: { # Specified details about taxation in a given geographical region.
907 &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.
908 &quot;streamingTaxType&quot;: &quot;A String&quot;, # To collect communications or amusement taxes in the United States, choose the appropriate tax category. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).
909 &quot;taxTier&quot;: &quot;A String&quot;, # Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or audiobooks in various regions may be eligible for reduced tax rates. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498).
910 },
911 },
912 },
913 }</pre>
914 </div>
915
916 <div class="method">
917 <code class="details" id="list">list(packageName, pageSize=None, pageToken=None, showArchived=None, x__xgafv=None)</code>
918 <pre>Lists all subscriptions under a given app.
919
920 Args:
921 packageName: string, Required. The parent app (package name) for which the subscriptions should be read. (required)
922 pageSize: integer, The maximum number of subscriptions to return. The service may return fewer than this value. If unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
923 pageToken: string, A page token, received from a previous `ListSubscriptions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSubscriptions` must match the call that provided the page token.
924 showArchived: boolean, Deprecated: subscription archiving is not supported.
925 x__xgafv: string, V1 error format.
926 Allowed values
927 1 - v1 error format
928 2 - v2 error format
929
930 Returns:
931 An object of the form:
932
933 { # Response message for ListSubscriptions.
934 &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.
935 &quot;subscriptions&quot;: [ # The subscriptions from the specified app.
936 { # A single subscription for an app.
937 &quot;archived&quot;: True or False, # Output only. Deprecated: subscription archiving is not supported.
938 &quot;basePlans&quot;: [ # The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
939 { # A single base plan for a subscription.
940 &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.
941 &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.
942 &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.
943 &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.
944 &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.
945 &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.
946 &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.
947 &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.
948 },
949 &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.
950 &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.
951 &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.
952 &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.
953 &quot;committedPaymentsCount&quot;: 42, # Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created.
954 &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.
955 &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.
956 &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.
957 &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.
958 },
959 &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.
960 { # Represents a custom tag specified for a product offer.
961 &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.
962 },
963 ],
964 &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.
965 &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.
966 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
967 &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.
968 &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.
969 },
970 &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.
971 &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.
972 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
973 &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.
974 &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.
975 },
976 },
977 &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.
978 &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.
979 &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.
980 },
981 &quot;regionalConfigs&quot;: [ # Region-specific information for this base plan.
982 { # Configuration for a base plan specific to a region.
983 &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.
984 &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.
985 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
986 &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.
987 &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.
988 },
989 &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;.
990 },
991 ],
992 &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.
993 },
994 ],
995 &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.
996 { # The consumer-visible metadata of a subscription.
997 &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.
998 &quot;A String&quot;,
999 ],
1000 &quot;description&quot;: &quot;A String&quot;, # The description of this subscription in the language of this listing. Maximum length - 200 characters. Plain text.
1001 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g. &quot;en-US&quot;.
1002 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this subscription in the language of this listing. Plain text.
1003 },
1004 ],
1005 &quot;packageName&quot;: &quot;A String&quot;, # Immutable. Package name of the parent app.
1006 &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.
1007 &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.
1008 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
1009 &quot;A String&quot;,
1010 ],
1011 },
1012 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy, and legal compliance for subscription products. # Details about taxes and legal compliance.
1013 &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.
1014 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this subscription is declared as a product representing a tokenized digital asset.
1015 &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.
1016 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
1017 { # Details about the age rating for a specific geographic region.
1018 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
1019 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
1020 },
1021 ],
1022 &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;.
1023 &quot;a_key&quot;: { # Specified details about taxation in a given geographical region.
1024 &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.
1025 &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).
1026 &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).
1027 },
1028 },
1029 },
1030 },
1031 ],
1032 }</pre>
1033 </div>
1034
1035 <div class="method">
1036 <code class="details" id="list_next">list_next()</code>
1037 <pre>Retrieves the next page of results.
1038
1039 Args:
1040 previous_request: The request for the previous page. (required)
1041 previous_response: The response from the request for the previous page. (required)
1042
1043 Returns:
1044 A request object that you can call &#x27;execute()&#x27; on to request the next
1045 page. Returns None if there are no more items in the collection.
1046 </pre>
1047 </div>
1048
1049 <div class="method">
1050 <code class="details" id="patch">patch(packageName, productId, allowMissing=None, body=None, latencyTolerance=None, regionsVersion_version=None, updateMask=None, x__xgafv=None)</code>
1051 <pre>Updates an existing subscription.
1052
1053 Args:
1054 packageName: string, Immutable. Package name of the parent app. (required)
1055 productId: string, 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. (required)
1056 body: object, The request body.
1057 The object takes the form of:
1058
1059 { # A single subscription for an app.
1060 &quot;archived&quot;: True or False, # Output only. Deprecated: subscription archiving is not supported.
1061 &quot;basePlans&quot;: [ # The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
1062 { # A single base plan for a subscription.
1063 &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.
1064 &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.
1065 &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.
1066 &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.
1067 &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.
1068 &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.
1069 &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.
1070 &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.
1071 },
1072 &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.
1073 &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.
1074 &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.
1075 &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.
1076 &quot;committedPaymentsCount&quot;: 42, # Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created.
1077 &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.
1078 &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.
1079 &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.
1080 &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.
1081 },
1082 &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.
1083 { # Represents a custom tag specified for a product offer.
1084 &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.
1085 },
1086 ],
1087 &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.
1088 &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.
1089 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1090 &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.
1091 &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.
1092 },
1093 &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.
1094 &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.
1095 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1096 &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.
1097 &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.
1098 },
1099 },
1100 &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.
1101 &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.
1102 &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.
1103 },
1104 &quot;regionalConfigs&quot;: [ # Region-specific information for this base plan.
1105 { # Configuration for a base plan specific to a region.
1106 &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.
1107 &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.
1108 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1109 &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.
1110 &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.
1111 },
1112 &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;.
1113 },
1114 ],
1115 &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.
1116 },
1117 ],
1118 &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.
1119 { # The consumer-visible metadata of a subscription.
1120 &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.
1121 &quot;A String&quot;,
1122 ],
1123 &quot;description&quot;: &quot;A String&quot;, # The description of this subscription in the language of this listing. Maximum length - 200 characters. Plain text.
1124 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g. &quot;en-US&quot;.
1125 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this subscription in the language of this listing. Plain text.
1126 },
1127 ],
1128 &quot;packageName&quot;: &quot;A String&quot;, # Immutable. Package name of the parent app.
1129 &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.
1130 &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.
1131 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
1132 &quot;A String&quot;,
1133 ],
1134 },
1135 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy, and legal compliance for subscription products. # Details about taxes and legal compliance.
1136 &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.
1137 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this subscription is declared as a product representing a tokenized digital asset.
1138 &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.
1139 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
1140 { # Details about the age rating for a specific geographic region.
1141 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
1142 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
1143 },
1144 ],
1145 &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;.
1146 &quot;a_key&quot;: { # Specified details about taxation in a given geographical region.
1147 &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.
1148 &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).
1149 &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).
1150 },
1151 },
1152 },
1153 }
1154
1155 allowMissing: boolean, Optional. If set to true, and the subscription with the given package_name and product_id doesn&#x27;t exist, the subscription will be created. If a new subscription is created, update_mask is ignored.
1156 latencyTolerance: string, Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
1157 Allowed values
1158 PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED - Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.
1159 PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE - The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.
1160 PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT - The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods.
1161 regionsVersion_version: string, Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
1162 updateMask: string, Required. The list of fields to be updated.
1163 x__xgafv: string, V1 error format.
1164 Allowed values
1165 1 - v1 error format
1166 2 - v2 error format
1167
1168 Returns:
1169 An object of the form:
1170
1171 { # A single subscription for an app.
1172 &quot;archived&quot;: True or False, # Output only. Deprecated: subscription archiving is not supported.
1173 &quot;basePlans&quot;: [ # The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
1174 { # A single base plan for a subscription.
1175 &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.
1176 &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.
1177 &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.
1178 &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.
1179 &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.
1180 &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.
1181 &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.
1182 &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.
1183 },
1184 &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.
1185 &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.
1186 &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.
1187 &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.
1188 &quot;committedPaymentsCount&quot;: 42, # Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created.
1189 &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.
1190 &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.
1191 &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.
1192 &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.
1193 },
1194 &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.
1195 { # Represents a custom tag specified for a product offer.
1196 &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.
1197 },
1198 ],
1199 &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.
1200 &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.
1201 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1202 &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.
1203 &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.
1204 },
1205 &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.
1206 &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.
1207 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1208 &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.
1209 &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.
1210 },
1211 },
1212 &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.
1213 &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.
1214 &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.
1215 },
1216 &quot;regionalConfigs&quot;: [ # Region-specific information for this base plan.
1217 { # Configuration for a base plan specific to a region.
1218 &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.
1219 &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.
1220 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1221 &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.
1222 &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.
1223 },
1224 &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;.
1225 },
1226 ],
1227 &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.
1228 },
1229 ],
1230 &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.
1231 { # The consumer-visible metadata of a subscription.
1232 &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.
1233 &quot;A String&quot;,
1234 ],
1235 &quot;description&quot;: &quot;A String&quot;, # The description of this subscription in the language of this listing. Maximum length - 200 characters. Plain text.
1236 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this listing, as defined by BCP-47, e.g. &quot;en-US&quot;.
1237 &quot;title&quot;: &quot;A String&quot;, # Required. The title of this subscription in the language of this listing. Plain text.
1238 },
1239 ],
1240 &quot;packageName&quot;: &quot;A String&quot;, # Immutable. Package name of the parent app.
1241 &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.
1242 &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.
1243 &quot;regionCodes&quot;: [ # Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. &quot;US&quot;.
1244 &quot;A String&quot;,
1245 ],
1246 },
1247 &quot;taxAndComplianceSettings&quot;: { # Details about taxation, Google Play policy, and legal compliance for subscription products. # Details about taxes and legal compliance.
1248 &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.
1249 &quot;isTokenizedDigitalAsset&quot;: True or False, # Whether this subscription is declared as a product representing a tokenized digital asset.
1250 &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.
1251 &quot;regionalProductAgeRatingInfos&quot;: [ # Regional age rating information. Currently this field is only supported for region code `US`.
1252 { # Details about the age rating for a specific geographic region.
1253 &quot;productAgeRatingTier&quot;: &quot;A String&quot;, # The age rating tier of a product for the given region.
1254 &quot;regionCode&quot;: &quot;A String&quot;, # Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
1255 },
1256 ],
1257 &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;.
1258 &quot;a_key&quot;: { # Specified details about taxation in a given geographical region.
1259 &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.
1260 &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).
1261 &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).
1262 },
1263 },
1264 },
1265 }</pre>
1266 </div>
1267
1268 </body></html>