pub struct CreditNoteLineItem {Show 16 fields
pub amount: i64,
pub amount_excluding_tax: Option<i64>,
pub description: Option<String>,
pub discount_amount: i64,
pub discount_amounts: Vec<DiscountsResourceDiscountAmount>,
pub id: String,
pub invoice_line_item: Option<String>,
pub livemode: bool,
pub object: String,
pub quantity: Option<i64>,
pub tax_amounts: Vec<CreditNoteTaxAmount>,
pub tax_rates: Vec<TaxRate>,
pub type_: String,
pub unit_amount: Option<i64>,
pub unit_amount_decimal: Option<Decimal>,
pub unit_amount_excluding_tax: Option<Decimal>,
}
Expand description
The credit note line item object
Fields§
§amount: i64
The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
amount_excluding_tax: Option<i64>
The integer amount in cents (or local equivalent) representing the amount being credited for this line item, excluding all tax and discounts.
description: Option<String>
Description of the item being credited.
discount_amount: i64
The integer amount in cents (or local equivalent) representing the discount being credited for this line item.
discount_amounts: Vec<DiscountsResourceDiscountAmount>
The amount of discount calculated per discount for this line item
id: String
Unique identifier for the object.
invoice_line_item: Option<String>
ID of the invoice line item being credited
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
object: String
String representing the object’s type. Objects of the same type share the same value.
quantity: Option<i64>
The number of units of product being credited.
tax_amounts: Vec<CreditNoteTaxAmount>
The amount of tax calculated per tax rate for this line item
tax_rates: Vec<TaxRate>
The tax rates which apply to the line item.
type_: String
The type of the credit note line item, one of invoice_line_item
or custom_line_item
. When the type is invoice_line_item
there is an additional invoice_line_item
property on the resource the value of which is the id of the credited line item on the invoice.
unit_amount: Option<i64>
The cost of each unit of product being credited.
unit_amount_decimal: Option<Decimal>
Same as unit_amount
, but contains a decimal value with at most 12 decimal places.
unit_amount_excluding_tax: Option<Decimal>
The amount in cents (or local equivalent) representing the unit amount being credited for this line item, excluding all tax and discounts.
Trait Implementations§
Source§impl Clone for CreditNoteLineItem
impl Clone for CreditNoteLineItem
Source§fn clone(&self) -> CreditNoteLineItem
fn clone(&self) -> CreditNoteLineItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more