pub struct CreditNoteLineItem {Show 14 fields
pub amount: i64,
pub description: Option<String>,
pub discount_amount: i64,
pub discount_amounts: Vec<DiscountsResourceDiscountAmount>,
pub id: CreditNoteLineItemId,
pub invoice_line_item: Option<String>,
pub livemode: bool,
pub pretax_credit_amounts: Vec<CreditNotesPretaxCreditAmount>,
pub quantity: Option<u64>,
pub tax_rates: Vec<TaxRate>,
pub taxes: Option<Vec<BillingBillResourceInvoicingTaxesTax>>,
pub type_: CreditNoteLineItemType,
pub unit_amount: Option<i64>,
pub unit_amount_decimal: Option<String>,
}
Expand description
The credit note line item object
For more details see <https://stripe.com/docs/api/credit_notes/line_item>.
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.
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: CreditNoteLineItemId
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.
pretax_credit_amounts: Vec<CreditNotesPretaxCreditAmount>
The pretax credit amounts (ex: discount, credit grants, etc) for this line item.
quantity: Option<u64>
The number of units of product being credited.
tax_rates: Vec<TaxRate>
The tax rates which apply to the line item.
taxes: Option<Vec<BillingBillResourceInvoicingTaxesTax>>
The tax information of 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.
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