Package com.apple.itunes.storekit.model
Class ConsumptionRequest
java.lang.Object
com.apple.itunes.storekit.model.ConsumptionRequest
The request body that contains consumption information for an In-App Purchase.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConsumptionRequest(boolean customerConsented, DeliveryStatus deliveryStatus, boolean sampleContentProvided) ConsumptionRequest(boolean customerConsented, String rawDeliveryStatus, boolean sampleContentProvided) -
Method Summary
Modifier and TypeMethodDescriptionconsumptionPercentage(Integer consumptionPercentage) customerConsented(boolean customerConsented) deliveryStatus(DeliveryStatus deliveryStatus) booleanAn integer that indicates the percentage, in milliunits, of the In-App Purchase the customer consumed.booleanA Boolean value that indicates whether the customer consented to provide consumption data to the App Store.A value that indicates whether the app successfully delivered an in-app purchase that works properly.A value that indicates your preferred outcome for the refund request.booleanA Boolean value that indicates whether you provided, prior to its purchase, a free sample or trial of the content, or information about its functionality.inthashCode()refundPreference(RefundPreference refundPreference) sampleContentProvided(boolean sampleContentProvided) voidsetConsumptionPercentage(Integer consumptionPercentage) voidsetCustomerConsented(boolean customerConsented) voidsetDeliveryStatus(DeliveryStatus deliveryStatus) voidsetRawDeliveryStatus(String rawDeliveryStatus) voidsetRawRefundPreference(String rawRefundPreference) voidsetRefundPreference(RefundPreference refundPreference) voidsetSampleContentProvided(boolean sampleContentProvided) toString()
-
Constructor Details
-
ConsumptionRequest
public ConsumptionRequest(boolean customerConsented, DeliveryStatus deliveryStatus, boolean sampleContentProvided) -
ConsumptionRequest
public ConsumptionRequest(boolean customerConsented, String rawDeliveryStatus, boolean sampleContentProvided)
-
-
Method Details
-
customerConsented
-
getCustomerConsented
public boolean getCustomerConsented()A Boolean value that indicates whether the customer consented to provide consumption data to the App Store.- Returns:
- customerConsented
- See Also:
-
setCustomerConsented
public void setCustomerConsented(boolean customerConsented) -
consumptionPercentage
-
getConsumptionPercentage
An integer that indicates the percentage, in milliunits, of the In-App Purchase the customer consumed.- Returns:
- consumptionPercentage
- See Also:
-
setConsumptionPercentage
-
deliveryStatus
-
getDeliveryStatus
A value that indicates whether the app successfully delivered an in-app purchase that works properly.- Returns:
- deliveryStatus
- See Also:
-
getRawDeliveryStatus
- See Also:
-
setDeliveryStatus
-
setRawDeliveryStatus
-
refundPreference
-
getRefundPreference
A value that indicates your preferred outcome for the refund request.- Returns:
- refundPreference
- See Also:
-
getRawRefundPreference
- See Also:
-
setRefundPreference
-
setRawRefundPreference
-
sampleContentProvided
-
getSampleContentProvided
public boolean getSampleContentProvided()A Boolean value that indicates whether you provided, prior to its purchase, a free sample or trial of the content, or information about its functionality.- Returns:
- sampleContentProvided
- See Also:
-
setSampleContentProvided
public void setSampleContentProvided(boolean sampleContentProvided) -
equals
-
hashCode
public int hashCode() -
toString
-