Debian Codegraph @

docs/dyn/androidpublisher_v3.purchases.products.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.purchases.html">purchases</a> . <a href="androidpublisher_v3.purchases.products.html">products</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#acknowledge">acknowledge(packageName, productId, token, body=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Acknowledges a purchase of an inapp item.</p>
80 <p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82 <p class="firstline">Close httplib2 connections.</p>
83 <p class="toc_element">
84 <code><a href="#consume">consume(packageName, productId, token, x__xgafv=None)</a></code></p>
85 <p class="firstline">Consumes a purchase for an inapp item.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(packageName, productId, token, x__xgafv=None)</a></code></p>
88 <p class="firstline">Checks the purchase and consumption status of an inapp item.</p>
89 <h3>Method Details</h3>
90 <div class="method">
91 <code class="details" id="acknowledge">acknowledge(packageName, productId, token, body=None, x__xgafv=None)</code>
92 <pre>Acknowledges a purchase of an inapp item.
93
94 Args:
95 packageName: string, The package name of the application the inapp product was sold in (for example, &#x27;com.some.thing&#x27;). (required)
96 productId: string, The inapp product SKU (for example, &#x27;com.some.thing.inapp1&#x27;). (required)
97 token: string, The token provided to the user&#x27;s device when the inapp product was purchased. (required)
98 body: object, The request body.
99 The object takes the form of:
100
101 { # Request for the product.purchases.acknowledge API.
102 &quot;developerPayload&quot;: &quot;A String&quot;, # Payload to attach to the purchase.
103 }
104
105 x__xgafv: string, V1 error format.
106 Allowed values
107 1 - v1 error format
108 2 - v2 error format
109 </pre>
110 </div>
111
112 <div class="method">
113 <code class="details" id="close">close()</code>
114 <pre>Close httplib2 connections.</pre>
115 </div>
116
117 <div class="method">
118 <code class="details" id="consume">consume(packageName, productId, token, x__xgafv=None)</code>
119 <pre>Consumes a purchase for an inapp item.
120
121 Args:
122 packageName: string, The package name of the application the inapp product was sold in (for example, &#x27;com.some.thing&#x27;). (required)
123 productId: string, The inapp product SKU (for example, &#x27;com.some.thing.inapp1&#x27;). (required)
124 token: string, The token provided to the user&#x27;s device when the inapp product was purchased. (required)
125 x__xgafv: string, V1 error format.
126 Allowed values
127 1 - v1 error format
128 2 - v2 error format
129 </pre>
130 </div>
131
132 <div class="method">
133 <code class="details" id="get">get(packageName, productId, token, x__xgafv=None)</code>
134 <pre>Checks the purchase and consumption status of an inapp item.
135
136 Args:
137 packageName: string, The package name of the application the inapp product was sold in (for example, &#x27;com.some.thing&#x27;). (required)
138 productId: string, The inapp product SKU (for example, &#x27;com.some.thing.inapp1&#x27;). (required)
139 token: string, The token provided to the user&#x27;s device when the inapp product was purchased. (required)
140 x__xgafv: string, V1 error format.
141 Allowed values
142 1 - v1 error format
143 2 - v2 error format
144
145 Returns:
146 An object of the form:
147
148 { # A ProductPurchase resource indicates the status of a user&#x27;s inapp product purchase.
149 &quot;acknowledgementState&quot;: 42, # The acknowledgement state of the inapp product. Possible values are: 0. Yet to be acknowledged 1. Acknowledged
150 &quot;consumptionState&quot;: 42, # The consumption state of the inapp product. Possible values are: 0. Yet to be consumed 1. Consumed
151 &quot;developerPayload&quot;: &quot;A String&quot;, # A developer-specified string that contains supplemental information about an order.
152 &quot;kind&quot;: &quot;A String&quot;, # This kind represents an inappPurchase object in the androidpublisher service.
153 &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. Only present if specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid when the purchase was made.
154 &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.
155 &quot;orderId&quot;: &quot;A String&quot;, # The order id associated with the purchase of the inapp product.
156 &quot;productId&quot;: &quot;A String&quot;, # The inapp product SKU. May not be present.
157 &quot;purchaseState&quot;: 42, # The purchase state of the order. Possible values are: 0. Purchased 1. Canceled 2. Pending
158 &quot;purchaseTimeMillis&quot;: &quot;A String&quot;, # The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
159 &quot;purchaseToken&quot;: &quot;A String&quot;, # The purchase token generated to identify this purchase. May not be present.
160 &quot;purchaseType&quot;: 42, # The type of purchase of the inapp product. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: 0. Test (i.e. purchased from a license testing account) 1. Promo (i.e. purchased using a promo code). Does not include Play Points purchases. 2. Rewarded (i.e. from watching a video ad instead of paying)
161 &quot;quantity&quot;: 42, # The quantity associated with the purchase of the inapp product. If not present, the quantity is 1.
162 &quot;refundableQuantity&quot;: 42, # The quantity eligible for refund, i.e. quantity that hasn&#x27;t been refunded. The value reflects quantity-based partial refunds and full refunds.
163 &quot;regionCode&quot;: &quot;A String&quot;, # ISO 3166-1 alpha-2 billing region code of the user at the time the product was granted.
164 }</pre>
165 </div>
166
167 </body></html>