pub struct PlanUpdateRequest {
pub name: Option<String>,
pub amount: Option<String>,
pub interval: Option<Interval>,
pub description: Option<String>,
pub send_invoices: Option<bool>,
pub send_sms: Option<bool>,
pub currency: Option<Currency>,
pub invoice_limit: Option<u8>,
pub update_existing_subscriptions: Option<bool>,
}Expand description
Request body to update a plan on your integration.
Should be created via PlanUpdateRequestBuilder
Fields§
§name: Option<String>Name of plan
amount: Option<String>Amount for the plan. Should be in the subunit of the supported currency
interval: Option<Interval>Interval in words, Use the Interval Enum for valid options.
description: Option<String>A description of this plan
send_invoices: Option<bool>Set to false if you don’t want invoices to be sent to your customers
send_sms: Option<bool>Set to false if you don’t want text messages to be sent to your customers
currency: Option<Currency>Currency in which the amount is set.
invoice_limit: Option<u8>Number of invoices to raise during subscription to this plan.
update_existing_subscriptions: Option<bool>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.
Trait Implementations§
Source§impl Clone for PlanUpdateRequest
impl Clone for PlanUpdateRequest
Source§fn clone(&self) -> PlanUpdateRequest
fn clone(&self) -> PlanUpdateRequest
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 moreSource§impl Debug for PlanUpdateRequest
impl Debug for PlanUpdateRequest
Source§impl Default for PlanUpdateRequest
impl Default for PlanUpdateRequest
Source§fn default() -> PlanUpdateRequest
fn default() -> PlanUpdateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlanUpdateRequest
impl<'de> Deserialize<'de> for PlanUpdateRequest
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 PlanUpdateRequest
impl RefUnwindSafe for PlanUpdateRequest
impl Send for PlanUpdateRequest
impl Sync for PlanUpdateRequest
impl Unpin for PlanUpdateRequest
impl UnwindSafe for PlanUpdateRequest
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