pub struct Order {
pub id: String,
pub entity: String,
pub amount: i64,
pub amount_paid: i64,
pub amount_due: i64,
pub currency: String,
pub receipt: Option<String>,
pub status: OrderStatus,
pub attempts: u32,
pub notes: Notes,
pub created_at: i64,
}Expand description
An order returned by the API.
Fields§
§id: StringUnique identifier, e.g. order_EKwxwAgItmmXdp.
entity: StringAlways "order".
amount: i64Amount in the currency’s smallest unit (paise for INR).
amount_paid: i64Amount already paid, in the smallest unit.
amount_due: i64Amount still outstanding, in the smallest unit.
currency: StringISO 4217 currency code, e.g. INR.
receipt: Option<String>Your own reference for this order, if you set one.
status: OrderStatusCurrent lifecycle state.
attempts: u32Number of payment attempts made against this order.
notes: NotesYour metadata.
created_at: i64Creation time as a Unix timestamp in seconds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Order
impl<'de> Deserialize<'de> for Order
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
impl StructuralPartialEq for Order
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnsafeUnpin for Order
impl UnwindSafe for Order
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