Struct stripe::generated::billing::credit_note_line_item::CreditNoteLineItem
source · pub struct CreditNoteLineItem {Show 15 fields
pub id: CreditNoteLineItemId,
pub amount: i64,
pub amount_excluding_tax: Option<i64>,
pub description: Option<String>,
pub discount_amount: i64,
pub discount_amounts: Vec<DiscountsResourceDiscountAmount>,
pub invoice_line_item: Option<String>,
pub livemode: bool,
pub quantity: Option<u64>,
pub tax_amounts: Vec<CreditNoteTaxAmount>,
pub tax_rates: Vec<TaxRate>,
pub type_: CreditNoteLineItemType,
pub unit_amount: Option<i64>,
pub unit_amount_decimal: Option<String>,
pub unit_amount_excluding_tax: Option<String>,
}
Expand description
The resource representing a Stripe “CreditNoteLineItem”.
For more details see https://stripe.com/docs/api/credit_notes/line_item
Fields§
§id: CreditNoteLineItemId
Unique identifier for the object.
amount: i64
The integer amount in %s representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
amount_excluding_tax: Option<i64>
The integer amount in %s 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 %s representing the discount being credited for this line item.
discount_amounts: Vec<DiscountsResourceDiscountAmount>
The amount of discount calculated per discount for this line item.
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.
quantity: Option<u64>
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_: CreditNoteLineItemType
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<String>
Same as unit_amount
, but contains a decimal value with at most 12 decimal places.
unit_amount_excluding_tax: Option<String>
The amount in %s 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