Debian Codegraph @

docs/dyn/androidpublisher_v3.externaltransactions.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.externaltransactions.html">externaltransactions</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#createexternaltransaction">createexternaltransaction(parent, body=None, externalTransactionId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new external transaction.</p>
83 <p class="toc_element">
84 <code><a href="#getexternaltransaction">getexternaltransaction(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Gets an existing external transaction.</p>
86 <p class="toc_element">
87 <code><a href="#refundexternaltransaction">refundexternaltransaction(name, body=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Refunds or partially refunds an existing external transaction.</p>
89 <h3>Method Details</h3>
90 <div class="method">
91 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93 </div>
94
95 <div class="method">
96 <code class="details" id="createexternaltransaction">createexternaltransaction(parent, body=None, externalTransactionId=None, x__xgafv=None)</code>
97 <pre>Creates a new external transaction.
98
99 Args:
100 parent: string, Required. The parent resource where this external transaction will be created. Format: applications/{package_name} (required)
101 body: object, The request body.
102 The object takes the form of:
103
104 { # The details of an external transaction.
105 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when this transaction was created. This is the time when Google was notified of the transaction.
106 &quot;currentPreTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Output only. The current transaction amount before tax. This represents the current pre-tax amount including any refunds that may have been applied to this transaction.
107 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
108 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
109 },
110 &quot;currentTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Output only. The current tax amount. This represents the current tax amount including any refunds that may have been applied to this transaction.
111 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
112 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
113 },
114 &quot;externalOfferDetails&quot;: { # Reporting details unique to the external offers program. # Optional. Details necessary to accurately report external offers transactions.
115 &quot;appDownloadEventExternalTransactionId&quot;: &quot;A String&quot;, # Optional. The external transaction id associated with the app download event through an external link. Required when reporting transactions made in externally installed apps.
116 &quot;installedAppCategory&quot;: &quot;A String&quot;, # Optional. The category of the downloaded app though this transaction. This must match the category provided in Play Console during the external app verification process. Only required for app downloads.
117 &quot;installedAppPackage&quot;: &quot;A String&quot;, # Optional. The package name of the app downloaded through this transaction. Required when link_type is LINK_TO_APP_DOWNLOAD.
118 &quot;linkType&quot;: &quot;A String&quot;, # Optional. The type of content being reported by this transaction. Required when reporting app downloads or purchased digital content offers made in app installed through Google Play.
119 },
120 &quot;externalTransactionId&quot;: &quot;A String&quot;, # Output only. The id of this transaction. All transaction ids under the same package name must be unique. Set when creating the external transaction.
121 &quot;oneTimeTransaction&quot;: { # Represents a one-time transaction. # This is a one-time transaction and not part of a subscription.
122 &quot;externalTransactionToken&quot;: &quot;A String&quot;, # Input only. Provided during the call to Create. Retrieved from the client when the alternative billing flow is launched.
123 },
124 &quot;originalPreTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Required. The original transaction amount before taxes. This represents the pre-tax amount originally notified to Google before any refunds were applied.
125 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
126 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
127 },
128 &quot;originalTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Required. The original tax amount. This represents the tax amount originally notified to Google before any refunds were applied.
129 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
130 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
131 },
132 &quot;packageName&quot;: &quot;A String&quot;, # Output only. The resource name of the external transaction. The package name of the application the inapp products were sold (for example, &#x27;com.some.app&#x27;).
133 &quot;recurringTransaction&quot;: { # Represents a transaction that is part of a recurring series of payments. This can be a subscription or a one-time product with multiple payments (such as preorder). # This transaction is part of a recurring series of transactions.
134 &quot;externalSubscription&quot;: { # Details of an external subscription. # Details of an external subscription.
135 &quot;subscriptionType&quot;: &quot;A String&quot;, # Required. The type of the external subscription.
136 },
137 &quot;externalTransactionToken&quot;: &quot;A String&quot;, # Input only. Provided during the call to Create. Retrieved from the client when the alternative billing flow is launched. Required only for the initial purchase.
138 &quot;initialExternalTransactionId&quot;: &quot;A String&quot;, # The external transaction id of the first transaction of this recurring series of transactions. For example, for a subscription this would be the transaction id of the first payment. Required when creating recurring external transactions.
139 &quot;migratedTransactionProgram&quot;: &quot;A String&quot;, # Input only. Provided during the call to Create. Must only be used when migrating a subscription from manual monthly reporting to automated reporting.
140 &quot;otherRecurringProduct&quot;: { # Details of a recurring external transaction product which doesn&#x27;t belong to any other more specific category. # Details of a recurring external transaction product which doesn&#x27;t belong to any other specific category.
141 },
142 },
143 &quot;testPurchase&quot;: { # Represents a transaction performed using a test account. These transactions will not be charged by Google. # Output only. If set, this transaction was a test purchase. Google will not charge for a test transaction.
144 },
145 &quot;transactionProgramCode&quot;: 42, # Optional. The transaction program code, used to help determine service fee for eligible apps participating in partner programs. Developers participating in the Play Media Experience Program (https://play.google.com/console/about/programs/mediaprogram/) must provide the program code when reporting alternative billing transactions. If you are an eligible developer, please contact your BDM for more information on how to set this field. Note: this field can not be used for external offers transactions.
146 &quot;transactionState&quot;: &quot;A String&quot;, # Output only. The current state of the transaction.
147 &quot;transactionTime&quot;: &quot;A String&quot;, # Required. The time when the transaction was completed.
148 &quot;userTaxAddress&quot;: { # User&#x27;s address for the external transaction. # Required. User address for tax computation.
149 &quot;administrativeArea&quot;: &quot;A String&quot;, # Optional. Top-level administrative subdivision of the country/region. Only required for transactions in India. Valid values are &quot;ANDAMAN AND NICOBAR ISLANDS&quot;, &quot;ANDHRA PRADESH&quot;, &quot;ARUNACHAL PRADESH&quot;, &quot;ASSAM&quot;, &quot;BIHAR&quot;, &quot;CHANDIGARH&quot;, &quot;CHHATTISGARH&quot;, &quot;DADRA AND NAGAR HAVELI&quot;, &quot;DADRA AND NAGAR HAVELI AND DAMAN AND DIU&quot;, &quot;DAMAN AND DIU&quot;, &quot;DELHI&quot;, &quot;GOA&quot;, &quot;GUJARAT&quot;, &quot;HARYANA&quot;, &quot;HIMACHAL PRADESH&quot;, &quot;JAMMU AND KASHMIR&quot;, &quot;JHARKHAND&quot;, &quot;KARNATAKA&quot;, &quot;KERALA&quot;, &quot;LADAKH&quot;, &quot;LAKSHADWEEP&quot;, &quot;MADHYA PRADESH&quot;, &quot;MAHARASHTRA&quot;, &quot;MANIPUR&quot;, &quot;MEGHALAYA&quot;, &quot;MIZORAM&quot;, &quot;NAGALAND&quot;, &quot;ODISHA&quot;, &quot;PUDUCHERRY&quot;, &quot;PUNJAB&quot;, &quot;RAJASTHAN&quot;, &quot;SIKKIM&quot;, &quot;TAMIL NADU&quot;, &quot;TELANGANA&quot;, &quot;TRIPURA&quot;, &quot;UTTAR PRADESH&quot;, &quot;UTTARAKHAND&quot;, and &quot;WEST BENGAL&quot;.
150 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Two letter region code based on ISO-3166-1 Alpha-2 (UN region codes).
151 },
152 }
153
154 externalTransactionId: string, Required. The id to use for the external transaction. Must be unique across all other transactions for the app. This value should be 1-63 characters and valid characters are /a-zA-Z0-9_-/. Do not use this field to store any Personally Identifiable Information (PII) such as emails. Attempting to store PII in this field may result in requests being blocked.
155 x__xgafv: string, V1 error format.
156 Allowed values
157 1 - v1 error format
158 2 - v2 error format
159
160 Returns:
161 An object of the form:
162
163 { # The details of an external transaction.
164 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when this transaction was created. This is the time when Google was notified of the transaction.
165 &quot;currentPreTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Output only. The current transaction amount before tax. This represents the current pre-tax amount including any refunds that may have been applied to this transaction.
166 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
167 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
168 },
169 &quot;currentTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Output only. The current tax amount. This represents the current tax amount including any refunds that may have been applied to this transaction.
170 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
171 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
172 },
173 &quot;externalOfferDetails&quot;: { # Reporting details unique to the external offers program. # Optional. Details necessary to accurately report external offers transactions.
174 &quot;appDownloadEventExternalTransactionId&quot;: &quot;A String&quot;, # Optional. The external transaction id associated with the app download event through an external link. Required when reporting transactions made in externally installed apps.
175 &quot;installedAppCategory&quot;: &quot;A String&quot;, # Optional. The category of the downloaded app though this transaction. This must match the category provided in Play Console during the external app verification process. Only required for app downloads.
176 &quot;installedAppPackage&quot;: &quot;A String&quot;, # Optional. The package name of the app downloaded through this transaction. Required when link_type is LINK_TO_APP_DOWNLOAD.
177 &quot;linkType&quot;: &quot;A String&quot;, # Optional. The type of content being reported by this transaction. Required when reporting app downloads or purchased digital content offers made in app installed through Google Play.
178 },
179 &quot;externalTransactionId&quot;: &quot;A String&quot;, # Output only. The id of this transaction. All transaction ids under the same package name must be unique. Set when creating the external transaction.
180 &quot;oneTimeTransaction&quot;: { # Represents a one-time transaction. # This is a one-time transaction and not part of a subscription.
181 &quot;externalTransactionToken&quot;: &quot;A String&quot;, # Input only. Provided during the call to Create. Retrieved from the client when the alternative billing flow is launched.
182 },
183 &quot;originalPreTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Required. The original transaction amount before taxes. This represents the pre-tax amount originally notified to Google before any refunds were applied.
184 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
185 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
186 },
187 &quot;originalTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Required. The original tax amount. This represents the tax amount originally notified to Google before any refunds were applied.
188 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
189 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
190 },
191 &quot;packageName&quot;: &quot;A String&quot;, # Output only. The resource name of the external transaction. The package name of the application the inapp products were sold (for example, &#x27;com.some.app&#x27;).
192 &quot;recurringTransaction&quot;: { # Represents a transaction that is part of a recurring series of payments. This can be a subscription or a one-time product with multiple payments (such as preorder). # This transaction is part of a recurring series of transactions.
193 &quot;externalSubscription&quot;: { # Details of an external subscription. # Details of an external subscription.
194 &quot;subscriptionType&quot;: &quot;A String&quot;, # Required. The type of the external subscription.
195 },
196 &quot;externalTransactionToken&quot;: &quot;A String&quot;, # Input only. Provided during the call to Create. Retrieved from the client when the alternative billing flow is launched. Required only for the initial purchase.
197 &quot;initialExternalTransactionId&quot;: &quot;A String&quot;, # The external transaction id of the first transaction of this recurring series of transactions. For example, for a subscription this would be the transaction id of the first payment. Required when creating recurring external transactions.
198 &quot;migratedTransactionProgram&quot;: &quot;A String&quot;, # Input only. Provided during the call to Create. Must only be used when migrating a subscription from manual monthly reporting to automated reporting.
199 &quot;otherRecurringProduct&quot;: { # Details of a recurring external transaction product which doesn&#x27;t belong to any other more specific category. # Details of a recurring external transaction product which doesn&#x27;t belong to any other specific category.
200 },
201 },
202 &quot;testPurchase&quot;: { # Represents a transaction performed using a test account. These transactions will not be charged by Google. # Output only. If set, this transaction was a test purchase. Google will not charge for a test transaction.
203 },
204 &quot;transactionProgramCode&quot;: 42, # Optional. The transaction program code, used to help determine service fee for eligible apps participating in partner programs. Developers participating in the Play Media Experience Program (https://play.google.com/console/about/programs/mediaprogram/) must provide the program code when reporting alternative billing transactions. If you are an eligible developer, please contact your BDM for more information on how to set this field. Note: this field can not be used for external offers transactions.
205 &quot;transactionState&quot;: &quot;A String&quot;, # Output only. The current state of the transaction.
206 &quot;transactionTime&quot;: &quot;A String&quot;, # Required. The time when the transaction was completed.
207 &quot;userTaxAddress&quot;: { # User&#x27;s address for the external transaction. # Required. User address for tax computation.
208 &quot;administrativeArea&quot;: &quot;A String&quot;, # Optional. Top-level administrative subdivision of the country/region. Only required for transactions in India. Valid values are &quot;ANDAMAN AND NICOBAR ISLANDS&quot;, &quot;ANDHRA PRADESH&quot;, &quot;ARUNACHAL PRADESH&quot;, &quot;ASSAM&quot;, &quot;BIHAR&quot;, &quot;CHANDIGARH&quot;, &quot;CHHATTISGARH&quot;, &quot;DADRA AND NAGAR HAVELI&quot;, &quot;DADRA AND NAGAR HAVELI AND DAMAN AND DIU&quot;, &quot;DAMAN AND DIU&quot;, &quot;DELHI&quot;, &quot;GOA&quot;, &quot;GUJARAT&quot;, &quot;HARYANA&quot;, &quot;HIMACHAL PRADESH&quot;, &quot;JAMMU AND KASHMIR&quot;, &quot;JHARKHAND&quot;, &quot;KARNATAKA&quot;, &quot;KERALA&quot;, &quot;LADAKH&quot;, &quot;LAKSHADWEEP&quot;, &quot;MADHYA PRADESH&quot;, &quot;MAHARASHTRA&quot;, &quot;MANIPUR&quot;, &quot;MEGHALAYA&quot;, &quot;MIZORAM&quot;, &quot;NAGALAND&quot;, &quot;ODISHA&quot;, &quot;PUDUCHERRY&quot;, &quot;PUNJAB&quot;, &quot;RAJASTHAN&quot;, &quot;SIKKIM&quot;, &quot;TAMIL NADU&quot;, &quot;TELANGANA&quot;, &quot;TRIPURA&quot;, &quot;UTTAR PRADESH&quot;, &quot;UTTARAKHAND&quot;, and &quot;WEST BENGAL&quot;.
209 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Two letter region code based on ISO-3166-1 Alpha-2 (UN region codes).
210 },
211 }</pre>
212 </div>
213
214 <div class="method">
215 <code class="details" id="getexternaltransaction">getexternaltransaction(name, x__xgafv=None)</code>
216 <pre>Gets an existing external transaction.
217
218 Args:
219 name: string, Required. The name of the external transaction to retrieve. Format: applications/{package_name}/externalTransactions/{external_transaction} (required)
220 x__xgafv: string, V1 error format.
221 Allowed values
222 1 - v1 error format
223 2 - v2 error format
224
225 Returns:
226 An object of the form:
227
228 { # The details of an external transaction.
229 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when this transaction was created. This is the time when Google was notified of the transaction.
230 &quot;currentPreTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Output only. The current transaction amount before tax. This represents the current pre-tax amount including any refunds that may have been applied to this transaction.
231 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
232 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
233 },
234 &quot;currentTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Output only. The current tax amount. This represents the current tax amount including any refunds that may have been applied to this transaction.
235 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
236 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
237 },
238 &quot;externalOfferDetails&quot;: { # Reporting details unique to the external offers program. # Optional. Details necessary to accurately report external offers transactions.
239 &quot;appDownloadEventExternalTransactionId&quot;: &quot;A String&quot;, # Optional. The external transaction id associated with the app download event through an external link. Required when reporting transactions made in externally installed apps.
240 &quot;installedAppCategory&quot;: &quot;A String&quot;, # Optional. The category of the downloaded app though this transaction. This must match the category provided in Play Console during the external app verification process. Only required for app downloads.
241 &quot;installedAppPackage&quot;: &quot;A String&quot;, # Optional. The package name of the app downloaded through this transaction. Required when link_type is LINK_TO_APP_DOWNLOAD.
242 &quot;linkType&quot;: &quot;A String&quot;, # Optional. The type of content being reported by this transaction. Required when reporting app downloads or purchased digital content offers made in app installed through Google Play.
243 },
244 &quot;externalTransactionId&quot;: &quot;A String&quot;, # Output only. The id of this transaction. All transaction ids under the same package name must be unique. Set when creating the external transaction.
245 &quot;oneTimeTransaction&quot;: { # Represents a one-time transaction. # This is a one-time transaction and not part of a subscription.
246 &quot;externalTransactionToken&quot;: &quot;A String&quot;, # Input only. Provided during the call to Create. Retrieved from the client when the alternative billing flow is launched.
247 },
248 &quot;originalPreTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Required. The original transaction amount before taxes. This represents the pre-tax amount originally notified to Google before any refunds were applied.
249 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
250 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
251 },
252 &quot;originalTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Required. The original tax amount. This represents the tax amount originally notified to Google before any refunds were applied.
253 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
254 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
255 },
256 &quot;packageName&quot;: &quot;A String&quot;, # Output only. The resource name of the external transaction. The package name of the application the inapp products were sold (for example, &#x27;com.some.app&#x27;).
257 &quot;recurringTransaction&quot;: { # Represents a transaction that is part of a recurring series of payments. This can be a subscription or a one-time product with multiple payments (such as preorder). # This transaction is part of a recurring series of transactions.
258 &quot;externalSubscription&quot;: { # Details of an external subscription. # Details of an external subscription.
259 &quot;subscriptionType&quot;: &quot;A String&quot;, # Required. The type of the external subscription.
260 },
261 &quot;externalTransactionToken&quot;: &quot;A String&quot;, # Input only. Provided during the call to Create. Retrieved from the client when the alternative billing flow is launched. Required only for the initial purchase.
262 &quot;initialExternalTransactionId&quot;: &quot;A String&quot;, # The external transaction id of the first transaction of this recurring series of transactions. For example, for a subscription this would be the transaction id of the first payment. Required when creating recurring external transactions.
263 &quot;migratedTransactionProgram&quot;: &quot;A String&quot;, # Input only. Provided during the call to Create. Must only be used when migrating a subscription from manual monthly reporting to automated reporting.
264 &quot;otherRecurringProduct&quot;: { # Details of a recurring external transaction product which doesn&#x27;t belong to any other more specific category. # Details of a recurring external transaction product which doesn&#x27;t belong to any other specific category.
265 },
266 },
267 &quot;testPurchase&quot;: { # Represents a transaction performed using a test account. These transactions will not be charged by Google. # Output only. If set, this transaction was a test purchase. Google will not charge for a test transaction.
268 },
269 &quot;transactionProgramCode&quot;: 42, # Optional. The transaction program code, used to help determine service fee for eligible apps participating in partner programs. Developers participating in the Play Media Experience Program (https://play.google.com/console/about/programs/mediaprogram/) must provide the program code when reporting alternative billing transactions. If you are an eligible developer, please contact your BDM for more information on how to set this field. Note: this field can not be used for external offers transactions.
270 &quot;transactionState&quot;: &quot;A String&quot;, # Output only. The current state of the transaction.
271 &quot;transactionTime&quot;: &quot;A String&quot;, # Required. The time when the transaction was completed.
272 &quot;userTaxAddress&quot;: { # User&#x27;s address for the external transaction. # Required. User address for tax computation.
273 &quot;administrativeArea&quot;: &quot;A String&quot;, # Optional. Top-level administrative subdivision of the country/region. Only required for transactions in India. Valid values are &quot;ANDAMAN AND NICOBAR ISLANDS&quot;, &quot;ANDHRA PRADESH&quot;, &quot;ARUNACHAL PRADESH&quot;, &quot;ASSAM&quot;, &quot;BIHAR&quot;, &quot;CHANDIGARH&quot;, &quot;CHHATTISGARH&quot;, &quot;DADRA AND NAGAR HAVELI&quot;, &quot;DADRA AND NAGAR HAVELI AND DAMAN AND DIU&quot;, &quot;DAMAN AND DIU&quot;, &quot;DELHI&quot;, &quot;GOA&quot;, &quot;GUJARAT&quot;, &quot;HARYANA&quot;, &quot;HIMACHAL PRADESH&quot;, &quot;JAMMU AND KASHMIR&quot;, &quot;JHARKHAND&quot;, &quot;KARNATAKA&quot;, &quot;KERALA&quot;, &quot;LADAKH&quot;, &quot;LAKSHADWEEP&quot;, &quot;MADHYA PRADESH&quot;, &quot;MAHARASHTRA&quot;, &quot;MANIPUR&quot;, &quot;MEGHALAYA&quot;, &quot;MIZORAM&quot;, &quot;NAGALAND&quot;, &quot;ODISHA&quot;, &quot;PUDUCHERRY&quot;, &quot;PUNJAB&quot;, &quot;RAJASTHAN&quot;, &quot;SIKKIM&quot;, &quot;TAMIL NADU&quot;, &quot;TELANGANA&quot;, &quot;TRIPURA&quot;, &quot;UTTAR PRADESH&quot;, &quot;UTTARAKHAND&quot;, and &quot;WEST BENGAL&quot;.
274 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Two letter region code based on ISO-3166-1 Alpha-2 (UN region codes).
275 },
276 }</pre>
277 </div>
278
279 <div class="method">
280 <code class="details" id="refundexternaltransaction">refundexternaltransaction(name, body=None, x__xgafv=None)</code>
281 <pre>Refunds or partially refunds an existing external transaction.
282
283 Args:
284 name: string, Required. The name of the external transaction that will be refunded. Format: applications/{package_name}/externalTransactions/{external_transaction} (required)
285 body: object, The request body.
286 The object takes the form of:
287
288 { # A request to refund an existing external transaction.
289 &quot;fullRefund&quot;: { # A full refund of the remaining amount of a transaction. # A full-amount refund.
290 },
291 &quot;partialRefund&quot;: { # A partial refund of a transaction. # A partial refund.
292 &quot;refundId&quot;: &quot;A String&quot;, # Required. A unique id distinguishing this partial refund. If the refund is successful, subsequent refunds with the same id will fail. Must be unique across refunds for one individual transaction.
293 &quot;refundPreTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Required. The pre-tax amount of the partial refund. Should be less than the remaining pre-tax amount of the transaction.
294 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
295 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
296 },
297 },
298 &quot;refundTime&quot;: &quot;A String&quot;, # Required. The time that the transaction was refunded.
299 }
300
301 x__xgafv: string, V1 error format.
302 Allowed values
303 1 - v1 error format
304 2 - v2 error format
305
306 Returns:
307 An object of the form:
308
309 { # The details of an external transaction.
310 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when this transaction was created. This is the time when Google was notified of the transaction.
311 &quot;currentPreTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Output only. The current transaction amount before tax. This represents the current pre-tax amount including any refunds that may have been applied to this transaction.
312 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
313 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
314 },
315 &quot;currentTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Output only. The current tax amount. This represents the current tax amount including any refunds that may have been applied to this transaction.
316 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
317 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
318 },
319 &quot;externalOfferDetails&quot;: { # Reporting details unique to the external offers program. # Optional. Details necessary to accurately report external offers transactions.
320 &quot;appDownloadEventExternalTransactionId&quot;: &quot;A String&quot;, # Optional. The external transaction id associated with the app download event through an external link. Required when reporting transactions made in externally installed apps.
321 &quot;installedAppCategory&quot;: &quot;A String&quot;, # Optional. The category of the downloaded app though this transaction. This must match the category provided in Play Console during the external app verification process. Only required for app downloads.
322 &quot;installedAppPackage&quot;: &quot;A String&quot;, # Optional. The package name of the app downloaded through this transaction. Required when link_type is LINK_TO_APP_DOWNLOAD.
323 &quot;linkType&quot;: &quot;A String&quot;, # Optional. The type of content being reported by this transaction. Required when reporting app downloads or purchased digital content offers made in app installed through Google Play.
324 },
325 &quot;externalTransactionId&quot;: &quot;A String&quot;, # Output only. The id of this transaction. All transaction ids under the same package name must be unique. Set when creating the external transaction.
326 &quot;oneTimeTransaction&quot;: { # Represents a one-time transaction. # This is a one-time transaction and not part of a subscription.
327 &quot;externalTransactionToken&quot;: &quot;A String&quot;, # Input only. Provided during the call to Create. Retrieved from the client when the alternative billing flow is launched.
328 },
329 &quot;originalPreTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Required. The original transaction amount before taxes. This represents the pre-tax amount originally notified to Google before any refunds were applied.
330 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
331 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
332 },
333 &quot;originalTaxAmount&quot;: { # Definition of a price, i.e. currency and units. # Required. The original tax amount. This represents the tax amount originally notified to Google before any refunds were applied.
334 &quot;currency&quot;: &quot;A String&quot;, # 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java
335 &quot;priceMicros&quot;: &quot;A String&quot;, # Price in 1/million of the currency base unit, represented as a string.
336 },
337 &quot;packageName&quot;: &quot;A String&quot;, # Output only. The resource name of the external transaction. The package name of the application the inapp products were sold (for example, &#x27;com.some.app&#x27;).
338 &quot;recurringTransaction&quot;: { # Represents a transaction that is part of a recurring series of payments. This can be a subscription or a one-time product with multiple payments (such as preorder). # This transaction is part of a recurring series of transactions.
339 &quot;externalSubscription&quot;: { # Details of an external subscription. # Details of an external subscription.
340 &quot;subscriptionType&quot;: &quot;A String&quot;, # Required. The type of the external subscription.
341 },
342 &quot;externalTransactionToken&quot;: &quot;A String&quot;, # Input only. Provided during the call to Create. Retrieved from the client when the alternative billing flow is launched. Required only for the initial purchase.
343 &quot;initialExternalTransactionId&quot;: &quot;A String&quot;, # The external transaction id of the first transaction of this recurring series of transactions. For example, for a subscription this would be the transaction id of the first payment. Required when creating recurring external transactions.
344 &quot;migratedTransactionProgram&quot;: &quot;A String&quot;, # Input only. Provided during the call to Create. Must only be used when migrating a subscription from manual monthly reporting to automated reporting.
345 &quot;otherRecurringProduct&quot;: { # Details of a recurring external transaction product which doesn&#x27;t belong to any other more specific category. # Details of a recurring external transaction product which doesn&#x27;t belong to any other specific category.
346 },
347 },
348 &quot;testPurchase&quot;: { # Represents a transaction performed using a test account. These transactions will not be charged by Google. # Output only. If set, this transaction was a test purchase. Google will not charge for a test transaction.
349 },
350 &quot;transactionProgramCode&quot;: 42, # Optional. The transaction program code, used to help determine service fee for eligible apps participating in partner programs. Developers participating in the Play Media Experience Program (https://play.google.com/console/about/programs/mediaprogram/) must provide the program code when reporting alternative billing transactions. If you are an eligible developer, please contact your BDM for more information on how to set this field. Note: this field can not be used for external offers transactions.
351 &quot;transactionState&quot;: &quot;A String&quot;, # Output only. The current state of the transaction.
352 &quot;transactionTime&quot;: &quot;A String&quot;, # Required. The time when the transaction was completed.
353 &quot;userTaxAddress&quot;: { # User&#x27;s address for the external transaction. # Required. User address for tax computation.
354 &quot;administrativeArea&quot;: &quot;A String&quot;, # Optional. Top-level administrative subdivision of the country/region. Only required for transactions in India. Valid values are &quot;ANDAMAN AND NICOBAR ISLANDS&quot;, &quot;ANDHRA PRADESH&quot;, &quot;ARUNACHAL PRADESH&quot;, &quot;ASSAM&quot;, &quot;BIHAR&quot;, &quot;CHANDIGARH&quot;, &quot;CHHATTISGARH&quot;, &quot;DADRA AND NAGAR HAVELI&quot;, &quot;DADRA AND NAGAR HAVELI AND DAMAN AND DIU&quot;, &quot;DAMAN AND DIU&quot;, &quot;DELHI&quot;, &quot;GOA&quot;, &quot;GUJARAT&quot;, &quot;HARYANA&quot;, &quot;HIMACHAL PRADESH&quot;, &quot;JAMMU AND KASHMIR&quot;, &quot;JHARKHAND&quot;, &quot;KARNATAKA&quot;, &quot;KERALA&quot;, &quot;LADAKH&quot;, &quot;LAKSHADWEEP&quot;, &quot;MADHYA PRADESH&quot;, &quot;MAHARASHTRA&quot;, &quot;MANIPUR&quot;, &quot;MEGHALAYA&quot;, &quot;MIZORAM&quot;, &quot;NAGALAND&quot;, &quot;ODISHA&quot;, &quot;PUDUCHERRY&quot;, &quot;PUNJAB&quot;, &quot;RAJASTHAN&quot;, &quot;SIKKIM&quot;, &quot;TAMIL NADU&quot;, &quot;TELANGANA&quot;, &quot;TRIPURA&quot;, &quot;UTTAR PRADESH&quot;, &quot;UTTARAKHAND&quot;, and &quot;WEST BENGAL&quot;.
355 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Two letter region code based on ISO-3166-1 Alpha-2 (UN region codes).
356 },
357 }</pre>
358 </div>
359
360 </body></html>