pub struct SubscriptionCharge {
pub effective_from: EffectiveFrom,
pub items: Vec<SubscriptionChargeItem>,
pub on_payment_failure: SubscriptionOnPaymentFailure,
}
Expand description
Represents a one-time charge for a subscription.
Fields§
§effective_from: EffectiveFrom
When this subscription change should take effect from. Defaults to next_billing_period
, which creates a
scheduled_change
to apply the subscription change at the end of the billing period.
items: Vec<SubscriptionChargeItem>
List of one-time charges to bill for. Only prices where the billing_cycle
is null
may be added.
You can charge for items that you’ve added to your catalog by passing the Paddle ID of an existing price entity, or you can charge for non-catalog items by passing a price object.
Non-catalog items can be for existing products, or you can pass a product object as part of your price to charge for a non-catalog product.
on_payment_failure: SubscriptionOnPaymentFailure
How Paddle should handle changes made to a subscription or its items if the payment fails during update. If omitted, defaults to prevent_change
.
Trait Implementations§
Source§impl Clone for SubscriptionCharge
impl Clone for SubscriptionCharge
Source§fn clone(&self) -> SubscriptionCharge
fn clone(&self) -> SubscriptionCharge
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more