#[non_exhaustive]pub enum ProrationBillingMode {
ProratedImmediately,
ProratedNextBillingPeriod,
FullImmediately,
FullNextBillingPeriod,
DoNotBill,
}
Expand description
How Paddle should handle proration calculation for changes made to a subscription or its items. Required when making changes that impact billing.
For automatically-collected subscriptions, responses may take longer than usual if a proration billing mode that collects for payment immediately is used.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ProratedImmediately
Paddle calculates the prorated amount for the subscription changes based on the current billing cycle, then creates a transaction to collect immediately.
ProratedNextBillingPeriod
Paddle calculates the prorated amount for the subscription changes based on the current billing cycle, then schedules them to be billed on the next renewal.
FullImmediately
Paddle does not calculate proration for the subscription changes, creating a transaction to collect for the full amount immediately.
FullNextBillingPeriod
Paddle does not calculate proration for the subscription changes, scheduling for the full amount for the changes to be billed on the next renewal.
DoNotBill
Paddle does not bill for the subscription changes.
Trait Implementations§
Source§impl Clone for ProrationBillingMode
impl Clone for ProrationBillingMode
Source§fn clone(&self) -> ProrationBillingMode
fn clone(&self) -> ProrationBillingMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProrationBillingMode
impl Debug for ProrationBillingMode
Source§impl<'de> Deserialize<'de> for ProrationBillingMode
impl<'de> Deserialize<'de> for ProrationBillingMode
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>,
Source§impl Hash for ProrationBillingMode
impl Hash for ProrationBillingMode
Source§impl Ord for ProrationBillingMode
impl Ord for ProrationBillingMode
Source§fn cmp(&self, other: &ProrationBillingMode) -> Ordering
fn cmp(&self, other: &ProrationBillingMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ProrationBillingMode
impl PartialEq for ProrationBillingMode
Source§impl PartialOrd for ProrationBillingMode
impl PartialOrd for ProrationBillingMode
Source§impl Serialize for ProrationBillingMode
impl Serialize for ProrationBillingMode
impl Eq for ProrationBillingMode
impl StructuralPartialEq for ProrationBillingMode
Auto Trait Implementations§
impl Freeze for ProrationBillingMode
impl RefUnwindSafe for ProrationBillingMode
impl Send for ProrationBillingMode
impl Sync for ProrationBillingMode
impl Unpin for ProrationBillingMode
impl UnwindSafe for ProrationBillingMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.