Struct stripe::model::CreditNote
source · pub struct CreditNote {Show 30 fields
pub amount: i64,
pub amount_shipping: i64,
pub created: i64,
pub currency: String,
pub customer: Value,
pub customer_balance_transaction: Option<Value>,
pub discount_amount: i64,
pub discount_amounts: Vec<DiscountsResourceDiscountAmount>,
pub effective_at: Option<i64>,
pub id: String,
pub invoice: Value,
pub lines: CreditNoteLinesList,
pub livemode: bool,
pub memo: Option<String>,
pub metadata: Option<Value>,
pub number: String,
pub object: String,
pub out_of_band_amount: Option<i64>,
pub pdf: String,
pub reason: Option<String>,
pub refund: Option<Value>,
pub shipping_cost: Option<Value>,
pub status: String,
pub subtotal: i64,
pub subtotal_excluding_tax: Option<i64>,
pub tax_amounts: Vec<CreditNoteTaxAmount>,
pub total: i64,
pub total_excluding_tax: Option<i64>,
pub type_: String,
pub voided_at: Option<i64>,
}Fields§
§amount: i64§amount_shipping: i64§created: i64§currency: String§customer: Value§customer_balance_transaction: Option<Value>§discount_amount: i64§discount_amounts: Vec<DiscountsResourceDiscountAmount>§effective_at: Option<i64>§id: String§invoice: Value§lines: CreditNoteLinesList§livemode: bool§memo: Option<String>§metadata: Option<Value>§number: String§object: String§out_of_band_amount: Option<i64>§pdf: String§reason: Option<String>§refund: Option<Value>§shipping_cost: Option<Value>§status: String§subtotal: i64§subtotal_excluding_tax: Option<i64>§tax_amounts: Vec<CreditNoteTaxAmount>§total: i64§total_excluding_tax: Option<i64>§type_: String§voided_at: Option<i64>Trait Implementations§
source§impl Clone for CreditNote
impl Clone for CreditNote
source§fn clone(&self) -> CreditNote
fn clone(&self) -> CreditNote
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CreditNote
impl Debug for CreditNote
source§impl<'de> Deserialize<'de> for CreditNote
impl<'de> Deserialize<'de> for CreditNote
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for CreditNote
impl Display for CreditNote
Auto Trait Implementations§
impl RefUnwindSafe for CreditNote
impl Send for CreditNote
impl Sync for CreditNote
impl Unpin for CreditNote
impl UnwindSafe for CreditNote
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
Mutably borrows from an owned value. Read more