Class ConsumptionRequest

java.lang.Object
com.apple.itunes.storekit.model.ConsumptionRequest

public class ConsumptionRequest extends Object
The request body that contains consumption information for an In-App Purchase.
See Also:
  • Constructor Details

    • ConsumptionRequest

      public ConsumptionRequest(boolean customerConsented, DeliveryStatus deliveryStatus, boolean sampleContentProvided)
    • ConsumptionRequest

      public ConsumptionRequest(boolean customerConsented, String rawDeliveryStatus, boolean sampleContentProvided)
  • Method Details

    • customerConsented

      public ConsumptionRequest customerConsented(boolean 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

      public ConsumptionRequest consumptionPercentage(Integer consumptionPercentage)
    • getConsumptionPercentage

      public Integer getConsumptionPercentage()
      An integer that indicates the percentage, in milliunits, of the In-App Purchase the customer consumed.
      Returns:
      consumptionPercentage
      See Also:
    • setConsumptionPercentage

      public void setConsumptionPercentage(Integer consumptionPercentage)
    • deliveryStatus

      public ConsumptionRequest deliveryStatus(DeliveryStatus deliveryStatus)
    • getDeliveryStatus

      public DeliveryStatus getDeliveryStatus()
      A value that indicates whether the app successfully delivered an in-app purchase that works properly.
      Returns:
      deliveryStatus
      See Also:
    • getRawDeliveryStatus

      public String getRawDeliveryStatus()
      See Also:
    • setDeliveryStatus

      public void setDeliveryStatus(DeliveryStatus deliveryStatus)
    • setRawDeliveryStatus

      public void setRawDeliveryStatus(String rawDeliveryStatus)
    • refundPreference

      public ConsumptionRequest refundPreference(RefundPreference refundPreference)
    • getRefundPreference

      public RefundPreference getRefundPreference()
      A value that indicates your preferred outcome for the refund request.
      Returns:
      refundPreference
      See Also:
    • getRawRefundPreference

      public String getRawRefundPreference()
      See Also:
    • setRefundPreference

      public void setRefundPreference(RefundPreference refundPreference)
    • setRawRefundPreference

      public void setRawRefundPreference(String rawRefundPreference)
    • sampleContentProvided

      public ConsumptionRequest sampleContentProvided(boolean 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object