pub struct RevocationContext {
pub full_refund: Option<RevocationContextFullRefund>,
pub item_based_refund: Option<RevocationContextItemBasedRefund>,
pub prorated_refund: Option<RevocationContextProratedRefund>,
}Expand description
Revocation context of the purchases.subscriptionsv2.revoke API.
This type is not used in any activity, and only used as part of another schema.
Fields§
§full_refund: Option<RevocationContextFullRefund>Optional. Used when users should be refunded the full amount of latest charge on each item in the subscription.
item_based_refund: Option<RevocationContextItemBasedRefund>Optional. Used when a specific item should be refunded in a subscription with add-on items.
prorated_refund: Option<RevocationContextProratedRefund>Optional. Used when users should be refunded a prorated amount they paid for their subscription based on the amount of time remaining in a subscription.
Trait Implementations§
Source§impl Clone for RevocationContext
impl Clone for RevocationContext
Source§fn clone(&self) -> RevocationContext
fn clone(&self) -> RevocationContext
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 RevocationContext
impl Debug for RevocationContext
Source§impl Default for RevocationContext
impl Default for RevocationContext
Source§fn default() -> RevocationContext
fn default() -> RevocationContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RevocationContext
impl<'de> Deserialize<'de> for RevocationContext
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 RevocationContext
impl Serialize for RevocationContext
impl Part for RevocationContext
Auto Trait Implementations§
impl Freeze for RevocationContext
impl RefUnwindSafe for RevocationContext
impl Send for RevocationContext
impl Sync for RevocationContext
impl Unpin for RevocationContext
impl UnwindSafe for RevocationContext
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