pub struct PlanUpdateRequestBuilder { /* private fields */ }Expand description
Builder for PlanUpdateRequest.
Implementations§
Source§impl PlanUpdateRequestBuilder
impl PlanUpdateRequestBuilder
Sourcepub fn amount(&mut self, value: String) -> &mut Self
pub fn amount(&mut self, value: String) -> &mut Self
Amount for the plan. Should be in the subunit of the supported currency
Sourcepub fn interval(&mut self, value: Interval) -> &mut Self
pub fn interval(&mut self, value: Interval) -> &mut Self
Interval in words, Use the Interval Enum for valid options.
Sourcepub fn description(&mut self, value: String) -> &mut Self
pub fn description(&mut self, value: String) -> &mut Self
A description of this plan
Sourcepub fn send_invoices(&mut self, value: bool) -> &mut Self
pub fn send_invoices(&mut self, value: bool) -> &mut Self
Set to false if you don’t want invoices to be sent to your customers
Sourcepub fn send_sms(&mut self, value: bool) -> &mut Self
pub fn send_sms(&mut self, value: bool) -> &mut Self
Set to false if you don’t want text messages to be sent to your customers
Sourcepub fn invoice_limit(&mut self, value: u8) -> &mut Self
pub fn invoice_limit(&mut self, value: u8) -> &mut Self
Number of invoices to raise during subscription to this plan.
Sourcepub fn update_existing_subscriptions(&mut self, value: bool) -> &mut Self
pub fn update_existing_subscriptions(&mut self, value: bool) -> &mut Self
Set to true if you want the existing subscriptions to use the new changes
Set to false and only new subscriptions will be changed.
Defaults to true when not set.
Sourcepub fn build(&self) -> Result<PlanUpdateRequest, PlanUpdateRequestBuilderError>
pub fn build(&self) -> Result<PlanUpdateRequest, PlanUpdateRequestBuilderError>
Trait Implementations§
Source§impl Clone for PlanUpdateRequestBuilder
impl Clone for PlanUpdateRequestBuilder
Source§fn clone(&self) -> PlanUpdateRequestBuilder
fn clone(&self) -> PlanUpdateRequestBuilder
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 PlanUpdateRequestBuilder
impl RefUnwindSafe for PlanUpdateRequestBuilder
impl Send for PlanUpdateRequestBuilder
impl Sync for PlanUpdateRequestBuilder
impl Unpin for PlanUpdateRequestBuilder
impl UnwindSafe for PlanUpdateRequestBuilder
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