pub struct AddSubscriptionInstallmentRequest {
pub deal_id: i32,
pub currency: String,
pub payments: Vec<Value>,
pub update_deal_value: Option<bool>,
}
Fields§
§deal_id: i32
The ID of the deal this installment subscription is associated with
currency: String
The currency of the installment subscription. Accepts a 3-character currency code.
payments: Vec<Value>
Array of 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 the installment subscription’s total value
Implementations§
Trait Implementations§
Source§impl Clone for AddSubscriptionInstallmentRequest
impl Clone for AddSubscriptionInstallmentRequest
Source§fn clone(&self) -> AddSubscriptionInstallmentRequest
fn clone(&self) -> AddSubscriptionInstallmentRequest
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 AddSubscriptionInstallmentRequest
impl<'de> Deserialize<'de> for AddSubscriptionInstallmentRequest
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 AddSubscriptionInstallmentRequest
impl PartialEq for AddSubscriptionInstallmentRequest
Source§fn eq(&self, other: &AddSubscriptionInstallmentRequest) -> bool
fn eq(&self, other: &AddSubscriptionInstallmentRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AddSubscriptionInstallmentRequest
Auto Trait Implementations§
impl Freeze for AddSubscriptionInstallmentRequest
impl RefUnwindSafe for AddSubscriptionInstallmentRequest
impl Send for AddSubscriptionInstallmentRequest
impl Sync for AddSubscriptionInstallmentRequest
impl Unpin for AddSubscriptionInstallmentRequest
impl UnwindSafe for AddSubscriptionInstallmentRequest
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