Struct ConsumptionRequest

Source
pub struct ConsumptionRequest {
    pub customer_consented: Option<bool>,
    pub consumption_status: Option<ConsumptionStatus>,
    pub platform: Option<Platform>,
    pub sample_content_provided: Option<bool>,
    pub delivery_status: Option<DeliveryStatus>,
    pub app_account_token: Option<Uuid>,
    pub account_tenure: Option<AccountTenure>,
    pub play_time: Option<PlayTime>,
    pub lifetime_dollars_refunded: Option<LifetimeDollarsRefunded>,
    pub lifetime_dollars_purchased: Option<LifetimeDollarsPurchased>,
    pub user_status: Option<UserStatus>,
    pub refund_preference: Option<RefundPreference>,
}
Expand description

The request body containing consumption information.

ConsumptionRequest

Fields§

§customer_consented: Option<bool>

A Boolean value that indicates whether the customer consented to provide consumption data to the App Store.

customerConsented

§consumption_status: Option<ConsumptionStatus>

A value that indicates the extent to which the customer consumed the in-app purchase.

consumptionStatus

§platform: Option<Platform>

A value that indicates the platform on which the customer consumed the in-app purchase.

platform

§sample_content_provided: Option<bool>

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.

sampleContentProvided

§delivery_status: Option<DeliveryStatus>

A value that indicates whether the app successfully delivered an in-app purchase that works properly.

deliveryStatus

§app_account_token: Option<Uuid>

The UUID that an app optionally generates to map a customer’s in-app purchase with its resulting App Store transaction.

appAccountToken

§account_tenure: Option<AccountTenure>

The age of the customer’s account.

accountTenure

§play_time: Option<PlayTime>

A value that indicates the amount of time that the customer used the app.

playTime

§lifetime_dollars_refunded: Option<LifetimeDollarsRefunded>

A value that indicates the total amount, in USD, of refunds the customer has received, in your app, across all platforms.

lifetimeDollarsRefunded

§lifetime_dollars_purchased: Option<LifetimeDollarsPurchased>

A value that indicates the total amount, in USD, of in-app purchases the customer has made in your app, across all platforms.

lifetimeDollarsPurchased

§user_status: Option<UserStatus>

The status of the customer’s account.

userStatus

§refund_preference: Option<RefundPreference>

A value that indicates your preference, based on your operational logic, as to whether Apple should grant the refund.

refundPreference

Trait Implementations§

Source§

impl Clone for ConsumptionRequest

Source§

fn clone(&self) -> ConsumptionRequest

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ConsumptionRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ConsumptionRequest

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Hash for ConsumptionRequest

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Serialize for ConsumptionRequest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,