[][src]Struct libstripe::resources::orders::order::Order

pub struct Order {
    pub id: String,
    pub object: Object,
    pub amount: i64,
    pub amount_returned: Option<i64>,
    pub application: Option<String>,
    pub application_fee: Option<i64>,
    pub charge: Option<Expandable<Charge>>,
    pub created: i64,
    pub currency: Currency,
    pub customer: Option<Expandable<Customer>>,
    pub email: Option<String>,
    pub items: Vec<OrderItem>,
    pub livemode: bool,
    pub metadata: HashMap<String, String>,
    pub returns: List<OrderReturn>,
    pub selected_shipping_method: Option<String>,
    pub shipping: ShippingDetails,
    pub shipping_methods: Vec<ShippingMethods>,
    pub status: OrderStatus,
    pub status_transitions: OrderTransitions,
    pub updated: i64,
    pub upstream_id: Option<String>,
}

Fields

id: Stringobject: Objectamount: i64amount_returned: Option<i64>application: Option<String>application_fee: Option<i64>charge: Option<Expandable<Charge>>created: i64currency: Currencycustomer: Option<Expandable<Customer>>email: Option<String>items: Vec<OrderItem>livemode: boolmetadata: HashMap<String, String>returns: List<OrderReturn>selected_shipping_method: Option<String>shipping: ShippingDetailsshipping_methods: Vec<ShippingMethods>status: OrderStatusstatus_transitions: OrderTransitionsupdated: i64upstream_id: Option<String>

Methods

impl Order[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 pay<B: Serialize>(client: &Client, id: &str, param: B) -> Result<Self>[src]

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

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

Trait Implementations

impl PartialEq<Order> for Order[src]

impl Debug for Order[src]

impl Serialize for Order[src]

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

Auto Trait Implementations

impl Send for Order

impl Sync for Order

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