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.purchases.resources.voidedpurchases.methods.list.parameters.includeQuantityBasedPartialRefund (Total Keys: 2)
- schemas.ProductPurchase.properties.refundableQuantity (Total Keys: 2)
- schemas.VoidedPurchase.properties.voidedQuantity (Total Keys: 2)
  • Loading branch information
yoshi-automation committed Mar 26, 2024
1 parent c51d2a8 commit 1f2d928
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/dyn/androidpublisher_v3.purchases.products.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ <h3>Method Details</h3>
&quot;purchaseToken&quot;: &quot;A String&quot;, # The purchase token generated to identify this purchase. May not be present.
&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) 2. Rewarded (i.e. from watching a video ad instead of paying)
&quot;quantity&quot;: 42, # The quantity associated with the purchase of the inapp product. If not present, the quantity is 1.
&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.
&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.
}</pre>
</div>
Expand Down
6 changes: 4 additions & 2 deletions docs/dyn/androidpublisher_v3.purchases.voidedpurchases.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2>Instance Methods</h2>
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#list">list(packageName, endTime=None, maxResults=None, startIndex=None, startTime=None, token=None, type=None, x__xgafv=None)</a></code></p>
<code><a href="#list">list(packageName, endTime=None, includeQuantityBasedPartialRefund=None, maxResults=None, startIndex=None, startTime=None, token=None, type=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists the purchases that were canceled, refunded or charged-back.</p>
<h3>Method Details</h3>
<div class="method">
Expand All @@ -87,12 +87,13 @@ <h3>Method Details</h3>
</div>

<div class="method">
<code class="details" id="list">list(packageName, endTime=None, maxResults=None, startIndex=None, startTime=None, token=None, type=None, x__xgafv=None)</code>
<code class="details" id="list">list(packageName, endTime=None, includeQuantityBasedPartialRefund=None, maxResults=None, startIndex=None, startTime=None, token=None, type=None, x__xgafv=None)</code>
<pre>Lists the purchases that were canceled, refunded or charged-back.

Args:
packageName: string, The package name of the application for which voided purchases need to be returned (for example, &#x27;com.some.thing&#x27;). (required)
endTime: string, The time, in milliseconds since the Epoch, of the newest voided purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
includeQuantityBasedPartialRefund: boolean, Optional. Whether to include voided purchases of quantity-based partial refunds, which are applicable only to multi-quantity purchases. If true, additional voided purchases may be returned with voidedQuantity that indicates the refund quantity of a quantity-based partial refund. The default value is false.
maxResults: integer, Defines how many results the list operation should return. The default number depends on the resource collection.
startIndex: integer, Defines the index of the first element to return. This can only be used if indexed paging is enabled.
startTime: string, The time, in milliseconds since the Epoch, of the oldest voided purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
Expand Down Expand Up @@ -122,6 +123,7 @@ <h3>Method Details</h3>
&quot;orderId&quot;: &quot;A String&quot;, # The order id which uniquely identifies a one-time purchase, subscription purchase, or subscription renewal.
&quot;purchaseTimeMillis&quot;: &quot;A String&quot;, # The time at which the purchase was made, in milliseconds since the epoch (Jan 1, 1970).
&quot;purchaseToken&quot;: &quot;A String&quot;, # The token which uniquely identifies a one-time purchase or subscription. To uniquely identify subscription renewals use order_id (available starting from version 3 of the API).
&quot;voidedQuantity&quot;: 42, # The voided quantity as the result of a quantity-based partial refund. Voided purchases of quantity-based partial refunds may only be returned when includeQuantityBasedPartialRefund is set to true.
&quot;voidedReason&quot;: 42, # The reason why the purchase was voided, possible values are: 0. Other 1. Remorse 2. Not_received 3. Defective 4. Accidental_purchase 5. Fraud 6. Friendly_fraud 7. Chargeback
&quot;voidedSource&quot;: 42, # The initiator of voided purchase, possible values are: 0. User 1. Developer 2. Google
&quot;voidedTimeMillis&quot;: &quot;A String&quot;, # The time at which the purchase was canceled/refunded/charged-back, in milliseconds since the epoch (Jan 1, 1970).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4279,6 +4279,11 @@
"location": "query",
"type": "string"
},
"includeQuantityBasedPartialRefund": {
"description": "Optional. Whether to include voided purchases of quantity-based partial refunds, which are applicable only to multi-quantity purchases. If true, additional voided purchases may be returned with voidedQuantity that indicates the refund quantity of a quantity-based partial refund. The default value is false.",
"location": "query",
"type": "boolean"
},
"maxResults": {
"description": "Defines how many results the list operation should return. The default number depends on the resource collection.",
"format": "uint32",
Expand Down Expand Up @@ -4726,7 +4731,7 @@
}
}
},
"revision": "20240318",
"revision": "20240325",
"rootUrl": "https://androidpublisher.googleapis.com/",
"schemas": {
"Abi": {
Expand Down Expand Up @@ -7706,6 +7711,11 @@ false
"format": "int32",
"type": "integer"
},
"refundableQuantity": {
"description": "The quantity eligible for refund, i.e. quantity that hasn't been refunded. The value reflects quantity-based partial refunds and full refunds.",
"format": "int32",
"type": "integer"
},
"regionCode": {
"description": "ISO 3166-1 alpha-2 billing region code of the user at the time the product was granted.",
"type": "string"
Expand Down Expand Up @@ -9744,6 +9754,11 @@ false
"description": "The token which uniquely identifies a one-time purchase or subscription. To uniquely identify subscription renewals use order_id (available starting from version 3 of the API).",
"type": "string"
},
"voidedQuantity": {
"description": "The voided quantity as the result of a quantity-based partial refund. Voided purchases of quantity-based partial refunds may only be returned when includeQuantityBasedPartialRefund is set to true.",
"format": "int32",
"type": "integer"
},
"voidedReason": {
"description": "The reason why the purchase was voided, possible values are: 0. Other 1. Remorse 2. Not_received 3. Defective 4. Accidental_purchase 5. Fraud 6. Friendly_fraud 7. Chargeback",
"format": "int32",
Expand Down

0 comments on commit 1f2d928

Please sign in to comment.