pub struct SubscriptionPriceChange {
pub new_price: Option<Price>,
pub state: Option<i32>,
}Expand description
Contains the price change information for a subscription that can be used to control the user journey for the price change in the app. This can be in the form of seeking confirmation from the user or tailoring the experience for a successful conversion.
This type is not used in any activity, and only used as part of another schema.
Fields§
§new_price: Option<Price>The new price the subscription will renew with if the price change is accepted by the user.
state: Option<i32>The current state of the price change. Possible values are:
- Outstanding: State for a pending price change waiting for the user to agree. In this state, you can optionally seek confirmation from the user using the In-App API.
- Accepted: State for an accepted price change that the subscription will renew with unless it’s canceled. The price change takes effect on a future date when the subscription renews. Note that the change might not occur when the subscription is renewed next.
Trait Implementations§
Source§impl Clone for SubscriptionPriceChange
impl Clone for SubscriptionPriceChange
Source§fn clone(&self) -> SubscriptionPriceChange
fn clone(&self) -> SubscriptionPriceChange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubscriptionPriceChange
impl Debug for SubscriptionPriceChange
Source§impl Default for SubscriptionPriceChange
impl Default for SubscriptionPriceChange
Source§fn default() -> SubscriptionPriceChange
fn default() -> SubscriptionPriceChange
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubscriptionPriceChange
impl<'de> Deserialize<'de> for SubscriptionPriceChange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Serialize for SubscriptionPriceChange
impl Serialize for SubscriptionPriceChange
impl Part for SubscriptionPriceChange
Auto Trait Implementations§
impl Freeze for SubscriptionPriceChange
impl RefUnwindSafe for SubscriptionPriceChange
impl Send for SubscriptionPriceChange
impl Sync for SubscriptionPriceChange
impl Unpin for SubscriptionPriceChange
impl UnwindSafe for SubscriptionPriceChange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more