pub struct BillingPlanChangeEffect {
pub effective_at: Option<String>,
pub minimum_commitment: Option<BillingPreviewMinimumCommitment>,
pub timing: BillingPlanChangeTiming,
pub type: String,
pub unsold_fixed_charges: Vec<BillingHeldFixedCharge>,
pub unused_time_credit: Option<BillingPreviewCredit>,
}Fields§
§effective_at: Option<String>When a period_end change applies. Null otherwise.
minimum_commitment: Option<BillingPreviewMinimumCommitment>The target plan’s minimum commitment: when a period’s charges fall short of it, the difference is billed at the period end. Set for an upgrade to a plan with one, null otherwise.
timing: BillingPlanChangeTiming§type: String§unsold_fixed_charges: Vec<BillingHeldFixedCharge>Held fixed charges the target plan does not sell; the preview prices the change without them. With period_end they stay until it applies and are released with it. Otherwise the change is refused (release_required) until they are released.
unused_time_credit: Option<BillingPreviewCredit>The replaced plan’s unused time, which an upgrade credits to the payer. Set for an upgrade from a plan paid in advance, null otherwise.
Implementations§
Source§impl BillingPlanChangeEffect
impl BillingPlanChangeEffect
pub fn serialize<__S>(
__self: &BillingPlanChangeEffect,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> BillingPlanChangeEffect
impl<'de> BillingPlanChangeEffect
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<BillingPlanChangeEffect, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for BillingPlanChangeEffect
impl Clone for BillingPlanChangeEffect
Source§impl Debug for BillingPlanChangeEffect
impl Debug for BillingPlanChangeEffect
Source§impl<'de> Deserialize<'de> for BillingPlanChangeEffect
impl<'de> Deserialize<'de> for BillingPlanChangeEffect
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
Auto Trait Implementations§
impl Freeze for BillingPlanChangeEffect
impl RefUnwindSafe for BillingPlanChangeEffect
impl Send for BillingPlanChangeEffect
impl Sync for BillingPlanChangeEffect
impl Unpin for BillingPlanChangeEffect
impl UnsafeUnpin for BillingPlanChangeEffect
impl UnwindSafe for BillingPlanChangeEffect
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