pub struct UpdateRecurringSubscriptionRequest {
pub description: Option<String>,
pub cycle_amount: Option<i32>,
pub payments: Option<Vec<Value>>,
pub update_deal_value: Option<bool>,
pub effective_date: String,
}
Fields§
§description: Option<String>
The description of the recurring subscription
cycle_amount: Option<i32>
The amount of each payment
payments: Option<Vec<Value>>
Array of additional payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD).
update_deal_value: Option<bool>
Indicates that the deal value must be set to recurring subscription’s MRR value
effective_date: String
All payments after that date will be affected. Format: YYYY-MM-DD
Implementations§
Source§impl UpdateRecurringSubscriptionRequest
impl UpdateRecurringSubscriptionRequest
pub fn new(effective_date: String) -> UpdateRecurringSubscriptionRequest
Trait Implementations§
Source§impl Clone for UpdateRecurringSubscriptionRequest
impl Clone for UpdateRecurringSubscriptionRequest
Source§fn clone(&self) -> UpdateRecurringSubscriptionRequest
fn clone(&self) -> UpdateRecurringSubscriptionRequest
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<'de> Deserialize<'de> for UpdateRecurringSubscriptionRequest
impl<'de> Deserialize<'de> for UpdateRecurringSubscriptionRequest
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
Source§impl PartialEq for UpdateRecurringSubscriptionRequest
impl PartialEq for UpdateRecurringSubscriptionRequest
Source§fn eq(&self, other: &UpdateRecurringSubscriptionRequest) -> bool
fn eq(&self, other: &UpdateRecurringSubscriptionRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for UpdateRecurringSubscriptionRequest
Auto Trait Implementations§
impl Freeze for UpdateRecurringSubscriptionRequest
impl RefUnwindSafe for UpdateRecurringSubscriptionRequest
impl Send for UpdateRecurringSubscriptionRequest
impl Sync for UpdateRecurringSubscriptionRequest
impl Unpin for UpdateRecurringSubscriptionRequest
impl UnwindSafe for UpdateRecurringSubscriptionRequest
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