Struct stripe::generated::billing::credit_note::CreateCreditNoteLines
source · pub struct CreateCreditNoteLines {
pub amount: Option<i64>,
pub description: Option<String>,
pub invoice_line_item: Option<String>,
pub quantity: Option<u64>,
pub tax_amounts: Option<Vec<CreateCreditNoteLinesTaxAmounts>>,
pub tax_rates: Option<Vec<String>>,
pub type_: CreateCreditNoteLinesType,
pub unit_amount: Option<i64>,
pub unit_amount_decimal: Option<String>,
}
Fields§
§amount: Option<i64>
The line item amount to credit.
Only valid when type
is invoice_line_item
.
description: Option<String>
The description of the credit note line item.
Only valid when the type
is custom_line_item
.
invoice_line_item: Option<String>
The invoice line item to credit.
Only valid when the type
is invoice_line_item
.
quantity: Option<u64>
The line item quantity to credit.
tax_amounts: Option<Vec<CreateCreditNoteLinesTaxAmounts>>
A list of up to 10 tax amounts for the credit note line item.
Cannot be mixed with tax_rates
.
tax_rates: Option<Vec<String>>
The tax rates which apply to the credit note line item.
Only valid when the type
is custom_line_item
and cannot be mixed with tax_amounts
.
type_: CreateCreditNoteLinesType
Type of the credit note line item, one of invoice_line_item
or custom_line_item
.
unit_amount: Option<i64>
The integer unit amount in cents (or local equivalent) of the credit note line item.
This unit_amount
will be multiplied by the quantity to get the full amount to credit for this line item.
Only valid when type
is custom_line_item
.
unit_amount_decimal: Option<String>
Same as unit_amount
, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places.
Only one of unit_amount
and unit_amount_decimal
can be set.
Trait Implementations§
source§impl Clone for CreateCreditNoteLines
impl Clone for CreateCreditNoteLines
source§fn clone(&self) -> CreateCreditNoteLines
fn clone(&self) -> CreateCreditNoteLines
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateCreditNoteLines
impl Debug for CreateCreditNoteLines
source§impl Default for CreateCreditNoteLines
impl Default for CreateCreditNoteLines
source§fn default() -> CreateCreditNoteLines
fn default() -> CreateCreditNoteLines
source§impl<'de> Deserialize<'de> for CreateCreditNoteLines
impl<'de> Deserialize<'de> for CreateCreditNoteLines
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>,
Auto Trait Implementations§
impl Freeze for CreateCreditNoteLines
impl RefUnwindSafe for CreateCreditNoteLines
impl Send for CreateCreditNoteLines
impl Sync for CreateCreditNoteLines
impl Unpin for CreateCreditNoteLines
impl UnwindSafe for CreateCreditNoteLines
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)