Skip to content

Commit

Permalink
feat(androidpublisher): update the api
Browse files Browse the repository at this point in the history
#### androidpublisher:v3

The following keys were added:
- resources.monetization.resources.subscriptions.methods.archive (Total Keys: 14)
- resources.monetization.resources.subscriptions.methods.create (Total Keys: 15)
- resources.monetization.resources.subscriptions.methods.delete (Total Keys: 12)
- resources.monetization.resources.subscriptions.methods.get (Total Keys: 13)
- resources.monetization.resources.subscriptions.methods.list (Total Keys: 17)
- resources.monetization.resources.subscriptions.methods.patch (Total Keys: 19)
- resources.monetization.resources.subscriptions.resources.basePlans.methods.activate (Total Keys: 17)
- resources.monetization.resources.subscriptions.resources.basePlans.methods.deactivate (Total Keys: 17)
- resources.monetization.resources.subscriptions.resources.basePlans.methods.delete (Total Keys: 15)
- resources.monetization.resources.subscriptions.resources.basePlans.methods.migratePrices (Total Keys: 17)
- resources.monetization.resources.subscriptions.resources.basePlans.resources.offers.methods.activate (Total Keys: 20)
- resources.monetization.resources.subscriptions.resources.basePlans.resources.offers.methods.create (Total Keys: 21)
- resources.monetization.resources.subscriptions.resources.basePlans.resources.offers.methods.deactivate (Total Keys: 20)
- resources.monetization.resources.subscriptions.resources.basePlans.resources.offers.methods.delete (Total Keys: 18)
- resources.monetization.resources.subscriptions.resources.basePlans.resources.offers.methods.get (Total Keys: 19)
- resources.monetization.resources.subscriptions.resources.basePlans.resources.offers.methods.list (Total Keys: 21)
- resources.monetization.resources.subscriptions.resources.basePlans.resources.offers.methods.patch (Total Keys: 25)
- resources.purchases.resources.subscriptionsv2.methods.get (Total Keys: 13)
- schemas.AcquisitionTargetingRule (Total Keys: 3)
- schemas.ActivateBasePlanRequest (Total Keys: 2)
- schemas.ActivateSubscriptionOfferRequest (Total Keys: 2)
- schemas.ArchiveSubscriptionRequest (Total Keys: 2)
- schemas.AutoRenewingBasePlanType (Total Keys: 7)
- schemas.AutoRenewingPlan (Total Keys: 3)
- schemas.BasePlan (Total Keys: 12)
- schemas.CancelSurveyResult (Total Keys: 4)
- schemas.CanceledStateContext (Total Keys: 6)
- schemas.DeactivateBasePlanRequest (Total Keys: 2)
- schemas.DeactivateSubscriptionOfferRequest (Total Keys: 2)
- schemas.DeveloperInitiatedCancellation (Total Keys: 2)
- schemas.ExternalAccountIdentifiers (Total Keys: 5)
- schemas.ListSubscriptionOffersResponse (Total Keys: 5)
- schemas.ListSubscriptionsResponse (Total Keys: 5)
- schemas.MigrateBasePlanPricesRequest (Total Keys: 5)
- schemas.MigrateBasePlanPricesResponse (Total Keys: 2)
- schemas.OfferTag (Total Keys: 3)
- schemas.OtherRegionsBasePlanConfig (Total Keys: 5)
- schemas.OtherRegionsSubscriptionOfferConfig (Total Keys: 3)
- schemas.OtherRegionsSubscriptionOfferPhaseConfig (Total Keys: 6)
- schemas.OtherRegionsSubscriptionOfferPhasePrices (Total Keys: 4)
- schemas.PausedStateContext (Total Keys: 4)
- schemas.PrepaidBasePlanType (Total Keys: 4)
- schemas.PrepaidPlan (Total Keys: 4)
- schemas.RegionalBasePlanConfig (Total Keys: 5)
- schemas.RegionalPriceMigrationConfig (Total Keys: 5)
- schemas.RegionalSubscriptionOfferConfig (Total Keys: 4)
- schemas.RegionalSubscriptionOfferPhaseConfig (Total Keys: 7)
- schemas.RegionsVersion (Total Keys: 3)
- schemas.ReplacementCancellation (Total Keys: 2)
- schemas.SubscribeWithGoogleInfo (Total Keys: 7)
- schemas.Subscription (Total Keys: 68)
- schemas.SystemInitiatedCancellation (Total Keys: 2)
- schemas.TargetingRuleScope (Total Keys: 3)
- schemas.TestPurchase (Total Keys: 2)
- schemas.UpgradeTargetingRule (Total Keys: 5)
- schemas.UserInitiatedCancellation (Total Keys: 5)
  • Loading branch information
yoshi-automation committed May 17, 2022
1 parent ac02f7e commit 30ad199
Show file tree
Hide file tree
Showing 7 changed files with 3,877 additions and 20 deletions.
5 changes: 5 additions & 0 deletions docs/dyn/androidpublisher_v3.monetization.html
Expand Up @@ -74,6 +74,11 @@

<h1><a href="androidpublisher_v3.html">Google Play Android Developer API</a> . <a href="androidpublisher_v3.monetization.html">monetization</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="androidpublisher_v3.monetization.subscriptions.html">subscriptions()</a></code>
</p>
<p class="firstline">Returns the subscriptions Resource.</p>

<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
Expand Down
341 changes: 341 additions & 0 deletions docs/dyn/androidpublisher_v3.monetization.subscriptions.basePlans.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

739 changes: 739 additions & 0 deletions docs/dyn/androidpublisher_v3.monetization.subscriptions.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions docs/dyn/androidpublisher_v3.purchases.html
Expand Up @@ -84,6 +84,11 @@ <h2>Instance Methods</h2>
</p>
<p class="firstline">Returns the subscriptions Resource.</p>

<p class="toc_element">
<code><a href="androidpublisher_v3.purchases.subscriptionsv2.html">subscriptionsv2()</a></code>
</p>
<p class="firstline">Returns the subscriptionsv2 Resource.</p>

<p class="toc_element">
<code><a href="androidpublisher_v3.purchases.voidedpurchases.html">voidedpurchases()</a></code>
</p>
Expand Down
159 changes: 159 additions & 0 deletions docs/dyn/androidpublisher_v3.purchases.subscriptionsv2.html
@@ -0,0 +1,159 @@
<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}

body {
font-size: 13px;
padding: 1em;
}

h1 {
font-size: 26px;
margin-bottom: 1em;
}

h2 {
font-size: 24px;
margin-bottom: 1em;
}

h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}

pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
margin-top: 0.5em;
}

h1, h2, h3, p {
font-family: Arial, sans serif;
}

h1, h2, h3 {
border-bottom: solid #CCC 1px;
}

.toc_element {
margin-top: 0.5em;
}

.firstline {
margin-left: 2 em;
}

.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}

.details {
font-weight: bold;
font-size: 14px;
}

</style>

<h1><a href="androidpublisher_v3.html">Google Play Android Developer API</a> . <a href="androidpublisher_v3.purchases.html">purchases</a> . <a href="androidpublisher_v3.purchases.subscriptionsv2.html">subscriptionsv2</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#get">get(packageName, token, x__xgafv=None)</a></code></p>
<p class="firstline">Get metadata about a subscription</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>

<div class="method">
<code class="details" id="get">get(packageName, token, x__xgafv=None)</code>
<pre>Get metadata about a subscription

Args:
packageName: string, The package of the application for which this subscription was purchased (for example, &#x27;com.some.thing&#x27;). (required)
token: string, Required. The token provided to the user&#x27;s device when the subscription was purchased. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # Indicates the status of a user&#x27;s subscription purchase.
&quot;acknowledgementState&quot;: &quot;A String&quot;, # The acknowledgement state of the subscription.
&quot;canceledStateContext&quot;: { # Information specific to a subscription in canceled state. # Additional context around canceled subscriptions. Only present if the subscription currently has subscription_state SUBSCRIPTION_STATE_CANCELED.
&quot;developerInitiatedCancellation&quot;: { # Information specific to cancellations initiated by developers. # Subscription was canceled by the developer.
},
&quot;replacementCancellation&quot;: { # Information specific to cancellations caused by subscription replacement. # Subscription was replaced by a new subscription.
},
&quot;systemInitiatedCancellation&quot;: { # Information specific to cancellations initiated by Google system. # Subscription was canceled by the system, for example because of a billing problem.
},
&quot;userInitiatedCancellation&quot;: { # Information specific to cancellations initiated by users. # Subscription was canceled by user.
&quot;cancelSurveyResult&quot;: { # Result of the cancel survey when the subscription was canceled by the user. # Information provided by the user when they complete the subscription cancellation flow (cancellation reason survey).
&quot;reason&quot;: &quot;A String&quot;, # The reason the user selected in the cancel survey.
&quot;reasonUserInput&quot;: &quot;A String&quot;, # Only set for CANCEL_SURVEY_REASON_OTHERS. This is the user&#x27;s freeform response to the survey.
},
&quot;cancelTime&quot;: &quot;A String&quot;, # The time at which the subscription was canceled by the user. The user might still have access to the subscription after this time. Use line_items.expiry_time to determine if a user still has access.
},
},
&quot;externalAccountIdentifiers&quot;: { # User account identifier in the third-party service. # User account identifier in the third-party service.
&quot;externalAccountId&quot;: &quot;A String&quot;, # User account identifier in the third-party service. Only present if account linking happened as part of the subscription purchase flow.
&quot;obfuscatedExternalAccountId&quot;: &quot;A String&quot;, # An obfuscated version of the id that is uniquely associated with the user&#x27;s account in your app. Present for the following purchases: * If account linking happened as part of the subscription purchase flow. * It was specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid when the purchase was made.
&quot;obfuscatedExternalProfileId&quot;: &quot;A String&quot;, # An obfuscated version of the id that is uniquely associated with the user&#x27;s profile in your app. Only present if specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid when the purchase was made.
},
&quot;kind&quot;: &quot;A String&quot;, # This kind represents a SubscriptionPurchaseV2 object in the androidpublisher service.
&quot;latestOrderId&quot;: &quot;A String&quot;, # The order id of the latest order associated with the purchase of the subscription. For autoRenewing subscription, this is the order id of signup order if it is not renewed yet, or the last recurring order id (success, pending, or declined order). For prepaid subscription, this is the order id associated with the queried purchase token.
&quot;lineItems&quot;: [ # Item-level info for a subscription purchase. The items in the same purchase should be either all with AutoRenewingPlan or all with PrepaidPlan.
{ # Item-level info for a subscription purchase.
&quot;autoRenewingPlan&quot;: { # Information related to an auto renewing plan. # The item is auto renewing.
&quot;autoRenewEnabled&quot;: True or False, # If the subscription is currently set to auto-renew, e.g. the user has not canceled the subscription
},
&quot;expiryTime&quot;: &quot;A String&quot;, # Time at which the subscription expired or will expire unless the access is extended (ex. renews).
&quot;prepaidPlan&quot;: { # Information related to a prepaid plan. # The item is prepaid.
&quot;allowExtendAfterTime&quot;: &quot;A String&quot;, # After this time, the subscription is allowed for a new top-up purchase. Not present if the subscription is already extended by a top-up purchase.
},
&quot;productId&quot;: &quot;A String&quot;, # The purchased product ID (for example, &#x27;monthly001&#x27;).
},
],
&quot;linkedPurchaseToken&quot;: &quot;A String&quot;, # The purchase token of the old subscription if this subscription is one of the following: * Re-signup of a canceled but non-lapsed subscription * Upgrade/downgrade from a previous subscription. * Convert from prepaid to auto renewing subscription. * Convert from an auto renewing subscription to prepaid. * Topup a prepaid subscription.
&quot;pausedStateContext&quot;: { # Information specific to a subscription in paused state. # Additional context around paused subscriptions. Only present if the subscription currently has subscription_state SUBSCRIPTION_STATE_PAUSED.
&quot;autoResumeTime&quot;: &quot;A String&quot;, # Time at which the subscription will be automatically resumed.
},
&quot;regionCode&quot;: &quot;A String&quot;, # ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was granted.
&quot;startTime&quot;: &quot;A String&quot;, # Time at which the subscription was granted. Not set for pending subscriptions (subscription was created but awaiting payment during signup).
&quot;subscribeWithGoogleInfo&quot;: { # Information associated with purchases made with &#x27;Subscribe with Google&#x27;. # User profile associated with purchases made with &#x27;Subscribe with Google&#x27;.
&quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user when the subscription was purchased.
&quot;familyName&quot;: &quot;A String&quot;, # The family name of the user when the subscription was purchased.
&quot;givenName&quot;: &quot;A String&quot;, # The given name of the user when the subscription was purchased.
&quot;profileId&quot;: &quot;A String&quot;, # The Google profile id of the user when the subscription was purchased.
&quot;profileName&quot;: &quot;A String&quot;, # The profile name of the user when the subscription was purchased.
},
&quot;subscriptionState&quot;: &quot;A String&quot;, # The current state of the subscription.
&quot;testPurchase&quot;: { # Whether this subscription purchase is a test purchase. # Only present if this subscription purchase is a test purchase.
},
}</pre>
</div>

</body></html>

0 comments on commit 30ad199

Please sign in to comment.