pub struct CreateBillingPortalConfigurationFeaturesSubscriptionUpdate {
pub default_allowed_updates: Option<Vec<CreateBillingPortalConfigurationFeaturesSubscriptionUpdateDefaultAllowedUpdates>>,
pub enabled: bool,
pub products: Option<Vec<SubscriptionUpdateProductParam>>,
pub proration_behavior: Option<CreateBillingPortalConfigurationFeaturesSubscriptionUpdateProrationBehavior>,
pub schedule_at_period_end: Option<CreateBillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEnd>,
pub trial_update_behavior: Option<CreateBillingPortalConfigurationFeaturesSubscriptionUpdateTrialUpdateBehavior>,
}
Expand description
Information about updating subscriptions in the portal.
Fields§
§default_allowed_updates: Option<Vec<CreateBillingPortalConfigurationFeaturesSubscriptionUpdateDefaultAllowedUpdates>>
The types of subscription updates that are supported. When empty, subscriptions are not updateable.
enabled: bool
Whether the feature is enabled.
products: Option<Vec<SubscriptionUpdateProductParam>>
The list of up to 10 products that support subscription updates.
proration_behavior: Option<CreateBillingPortalConfigurationFeaturesSubscriptionUpdateProrationBehavior>
Determines how to handle prorations resulting from subscription updates.
Valid values are none
, create_prorations
, and always_invoice
.
schedule_at_period_end: Option<CreateBillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEnd>
Setting to control when an update should be scheduled at the end of the period instead of applying immediately.
trial_update_behavior: Option<CreateBillingPortalConfigurationFeaturesSubscriptionUpdateTrialUpdateBehavior>
The behavior when updating a subscription that is trialing.
Implementations§
Trait Implementations§
Source§impl Clone for CreateBillingPortalConfigurationFeaturesSubscriptionUpdate
impl Clone for CreateBillingPortalConfigurationFeaturesSubscriptionUpdate
Source§fn clone(&self) -> CreateBillingPortalConfigurationFeaturesSubscriptionUpdate
fn clone(&self) -> CreateBillingPortalConfigurationFeaturesSubscriptionUpdate
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 moreAuto Trait Implementations§
impl Freeze for CreateBillingPortalConfigurationFeaturesSubscriptionUpdate
impl RefUnwindSafe for CreateBillingPortalConfigurationFeaturesSubscriptionUpdate
impl Send for CreateBillingPortalConfigurationFeaturesSubscriptionUpdate
impl Sync for CreateBillingPortalConfigurationFeaturesSubscriptionUpdate
impl Unpin for CreateBillingPortalConfigurationFeaturesSubscriptionUpdate
impl UnwindSafe for CreateBillingPortalConfigurationFeaturesSubscriptionUpdate
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