pub struct CreditLedgerInvoiceSettingsRequestParams<'a> {
pub auto_collection: bool,
pub net_terms: u64,
pub memo: Option<&'a str>,
pub require_successful_payment: Option<bool>,
}Expand description
Optional invoicing settings for a credit purchase.
Fields§
§auto_collection: boolWhether the credits purchase invoice should auto collect with the customer’s saved payment method.
net_terms: u64The difference between the invoice date and the issue date for the invoice. If due on issue,
set this to 0.
memo: Option<&'a str>An optional memo to display on the invoice
require_successful_payment: Option<bool>Whether the credits should be withheld from the customer account until the invoice is paid. This applies primarily to stripe invoicing.
Trait Implementations§
Source§impl<'a> Clone for CreditLedgerInvoiceSettingsRequestParams<'a>
impl<'a> Clone for CreditLedgerInvoiceSettingsRequestParams<'a>
Source§fn clone(&self) -> CreditLedgerInvoiceSettingsRequestParams<'a>
fn clone(&self) -> CreditLedgerInvoiceSettingsRequestParams<'a>
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<'a> Debug for CreditLedgerInvoiceSettingsRequestParams<'a>
impl<'a> Debug for CreditLedgerInvoiceSettingsRequestParams<'a>
Source§impl<'a> Default for CreditLedgerInvoiceSettingsRequestParams<'a>
impl<'a> Default for CreditLedgerInvoiceSettingsRequestParams<'a>
Source§fn default() -> CreditLedgerInvoiceSettingsRequestParams<'a>
fn default() -> CreditLedgerInvoiceSettingsRequestParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> Hash for CreditLedgerInvoiceSettingsRequestParams<'a>
impl<'a> Hash for CreditLedgerInvoiceSettingsRequestParams<'a>
Source§impl<'a> PartialEq for CreditLedgerInvoiceSettingsRequestParams<'a>
impl<'a> PartialEq for CreditLedgerInvoiceSettingsRequestParams<'a>
Source§fn eq(&self, other: &CreditLedgerInvoiceSettingsRequestParams<'a>) -> bool
fn eq(&self, other: &CreditLedgerInvoiceSettingsRequestParams<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for CreditLedgerInvoiceSettingsRequestParams<'a>
impl<'a> Serialize for CreditLedgerInvoiceSettingsRequestParams<'a>
impl<'a> Eq for CreditLedgerInvoiceSettingsRequestParams<'a>
impl<'a> StructuralPartialEq for CreditLedgerInvoiceSettingsRequestParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for CreditLedgerInvoiceSettingsRequestParams<'a>
impl<'a> RefUnwindSafe for CreditLedgerInvoiceSettingsRequestParams<'a>
impl<'a> Send for CreditLedgerInvoiceSettingsRequestParams<'a>
impl<'a> Sync for CreditLedgerInvoiceSettingsRequestParams<'a>
impl<'a> Unpin for CreditLedgerInvoiceSettingsRequestParams<'a>
impl<'a> UnwindSafe for CreditLedgerInvoiceSettingsRequestParams<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.