target.apidocs.com.google.api.services.androidpublisher.model.VoidedPurchase.html Maven / Gradle / Ivy
VoidedPurchase (Google Play Android Developer API v3-rev20240129-2.0.0)
com.google.api.services.androidpublisher.model
Class VoidedPurchase
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.androidpublisher.model.VoidedPurchase
-
public final class VoidedPurchase
extends com.google.api.client.json.GenericJson
A VoidedPurchase resource indicates a purchase that was either canceled/refunded/charged-back.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Google Play Android Developer API. For a detailed
explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
VoidedPurchase()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
VoidedPurchase
clone()
String
getKind()
This kind represents a voided purchase object in the androidpublisher service.
String
getOrderId()
The order id which uniquely identifies a one-time purchase, subscription purchase, or
subscription renewal.
Long
getPurchaseTimeMillis()
The time at which the purchase was made, in milliseconds since the epoch (Jan 1, 1970).
String
getPurchaseToken()
The token which uniquely identifies a one-time purchase or subscription.
Integer
getVoidedReason()
The reason why the purchase was voided, possible values are: 0.
Integer
getVoidedSource()
The initiator of voided purchase, possible values are: 0.
Long
getVoidedTimeMillis()
The time at which the purchase was canceled/refunded/charged-back, in milliseconds since the
epoch (Jan 1, 1970).
VoidedPurchase
set(String fieldName,
Object value)
VoidedPurchase
setKind(String kind)
This kind represents a voided purchase object in the androidpublisher service.
VoidedPurchase
setOrderId(String orderId)
The order id which uniquely identifies a one-time purchase, subscription purchase, or
subscription renewal.
VoidedPurchase
setPurchaseTimeMillis(Long purchaseTimeMillis)
The time at which the purchase was made, in milliseconds since the epoch (Jan 1, 1970).
VoidedPurchase
setPurchaseToken(String purchaseToken)
The token which uniquely identifies a one-time purchase or subscription.
VoidedPurchase
setVoidedReason(Integer voidedReason)
The reason why the purchase was voided, possible values are: 0.
VoidedPurchase
setVoidedSource(Integer voidedSource)
The initiator of voided purchase, possible values are: 0.
VoidedPurchase
setVoidedTimeMillis(Long voidedTimeMillis)
The time at which the purchase was canceled/refunded/charged-back, in milliseconds since the
epoch (Jan 1, 1970).
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getKind
public String getKind()
This kind represents a voided purchase object in the androidpublisher service.
- Returns:
- value or
null
for none
-
setKind
public VoidedPurchase setKind(String kind)
This kind represents a voided purchase object in the androidpublisher service.
- Parameters:
kind
- kind or null
for none
-
getOrderId
public String getOrderId()
The order id which uniquely identifies a one-time purchase, subscription purchase, or
subscription renewal.
- Returns:
- value or
null
for none
-
setOrderId
public VoidedPurchase setOrderId(String orderId)
The order id which uniquely identifies a one-time purchase, subscription purchase, or
subscription renewal.
- Parameters:
orderId
- orderId or null
for none
-
getPurchaseTimeMillis
public Long getPurchaseTimeMillis()
The time at which the purchase was made, in milliseconds since the epoch (Jan 1, 1970).
- Returns:
- value or
null
for none
-
setPurchaseTimeMillis
public VoidedPurchase setPurchaseTimeMillis(Long purchaseTimeMillis)
The time at which the purchase was made, in milliseconds since the epoch (Jan 1, 1970).
- Parameters:
purchaseTimeMillis
- purchaseTimeMillis or null
for none
-
getPurchaseToken
public String getPurchaseToken()
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).
- Returns:
- value or
null
for none
-
setPurchaseToken
public VoidedPurchase setPurchaseToken(String purchaseToken)
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).
- Parameters:
purchaseToken
- purchaseToken or null
for none
-
getVoidedReason
public Integer getVoidedReason()
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
- Returns:
- value or
null
for none
-
setVoidedReason
public VoidedPurchase setVoidedReason(Integer voidedReason)
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
- Parameters:
voidedReason
- voidedReason or null
for none
-
getVoidedSource
public Integer getVoidedSource()
The initiator of voided purchase, possible values are: 0. User 1. Developer 2. Google
- Returns:
- value or
null
for none
-
setVoidedSource
public VoidedPurchase setVoidedSource(Integer voidedSource)
The initiator of voided purchase, possible values are: 0. User 1. Developer 2. Google
- Parameters:
voidedSource
- voidedSource or null
for none
-
getVoidedTimeMillis
public Long getVoidedTimeMillis()
The time at which the purchase was canceled/refunded/charged-back, in milliseconds since the
epoch (Jan 1, 1970).
- Returns:
- value or
null
for none
-
setVoidedTimeMillis
public VoidedPurchase setVoidedTimeMillis(Long voidedTimeMillis)
The time at which the purchase was canceled/refunded/charged-back, in milliseconds since the
epoch (Jan 1, 1970).
- Parameters:
voidedTimeMillis
- voidedTimeMillis or null
for none
-
set
public VoidedPurchase set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public VoidedPurchase clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy