pub struct BillingPreviewInvoice {
pub credits_cents: i64,
pub currency: String,
pub discount_cents: i64,
pub fees_cents: i64,
pub lines: Vec<BillingPreviewLine>,
pub taxes_cents: i64,
pub total_cents: i64,
}Expand description
Charged when the change is made, priced as the change bills it. No lines when it charges nothing now.
Fields§
§credits_cents: i64Credit notes and prepaid credit applied, in cents.
currency: String§discount_cents: i64Coupons applied, in cents.
fees_cents: i64Sum of the lines, in cents.
lines: Vec<BillingPreviewLine>§taxes_cents: i64§total_cents: i64What the payer is charged, in cents.
Implementations§
Source§impl BillingPreviewInvoice
impl BillingPreviewInvoice
pub fn serialize<__S>(
__self: &BillingPreviewInvoice,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> BillingPreviewInvoice
impl<'de> BillingPreviewInvoice
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<BillingPreviewInvoice, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for BillingPreviewInvoice
impl Clone for BillingPreviewInvoice
Source§impl Debug for BillingPreviewInvoice
impl Debug for BillingPreviewInvoice
Source§impl<'de> Deserialize<'de> for BillingPreviewInvoice
impl<'de> Deserialize<'de> for BillingPreviewInvoice
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
Auto Trait Implementations§
impl Freeze for BillingPreviewInvoice
impl RefUnwindSafe for BillingPreviewInvoice
impl Send for BillingPreviewInvoice
impl Sync for BillingPreviewInvoice
impl Unpin for BillingPreviewInvoice
impl UnsafeUnpin for BillingPreviewInvoice
impl UnwindSafe for BillingPreviewInvoice
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