Struct stripe::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 more