[][src]Struct libstripe::resources::billing::credit_notes::CreditNotes

pub struct CreditNotes {
    pub id: String,
    pub object: Object,
    pub amount: i64,
    pub created: i64,
    pub currency: Currency,
    pub customer: Expandable<Customer>,
    pub invoice: Expandable<Invoice>,
    pub livemode: bool,
    pub memo: Option<String>,
    pub metadata: HashMap<String, String>,
    pub number: String,
    pub pdf: String,
    pub reason: Option<CreditNoteReason>,
    pub refund: Option<Expandable<Refund>>,
    pub status: CreditNoteStatus,
    pub credit_note_type: CreditNoteType,
}

Fields

id: Stringobject: Objectamount: i64created: i64currency: Currencycustomer: Expandable<Customer>invoice: Expandable<Invoice>livemode: boolmemo: Option<String>metadata: HashMap<String, String>number: Stringpdf: Stringreason: Option<CreditNoteReason>refund: Option<Expandable<Refund>>status: CreditNoteStatuscredit_note_type: CreditNoteType

Methods

impl CreditNotes[src]

pub fn create<B: Serialize>(client: &Client, param: B) -> Result<Self>[src]

pub fn retrieve(client: &Client, id: &str) -> Result<Self>[src]

pub fn update<B: Serialize>(client: &Client, id: &str, param: B) -> Result<Self>[src]

pub fn void<B: Serialize>(client: &Client, id: &str) -> Result<Self>[src]

pub fn list<B: Serialize>(client: &Client, param: B) -> Result<List<Self>>[src]

Trait Implementations

impl PartialEq<CreditNotes> for CreditNotes[src]

impl Debug for CreditNotes[src]

impl Serialize for CreditNotes[src]

impl<'de> Deserialize<'de> for CreditNotes[src]

Auto Trait Implementations

impl Send for CreditNotes

impl Sync for CreditNotes

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err