pub struct Order {Show 15 fields
pub created_dt: String,
pub djstripe_checkout_session: Option<Box<DjStripeCheckoutSession>>,
pub djstripe_customer: Option<Box<DjStripeCustomer>>,
pub djstripe_payment_intent: Option<Box<DjStripePaymentIntent>>,
pub email: String,
pub id: String,
pub is_shippable: bool,
pub is_subscription: bool,
pub last_status: Box<OrderStatus>,
pub products: Vec<Product>,
pub status_history: Vec<OrderStatus>,
pub stripe_checkout_session_data: HashMap<String, Value>,
pub user: Option<Box<User>>,
pub receipt_url: Option<String>,
pub portal_url: Option<String>,
}Expand description
Order : Djstripe’s representation of Stripe Checkout model is missing a number of fields, like subtotal amount and shipping/tax charges stripe_checkout_session_data is the raw JSON returned by stripe.checkout.Session.retrieve
Fields§
§created_dt: String§djstripe_checkout_session: Option<Box<DjStripeCheckoutSession>>§djstripe_customer: Option<Box<DjStripeCustomer>>§djstripe_payment_intent: Option<Box<DjStripePaymentIntent>>§email: String§id: String§is_shippable: bool§is_subscription: bool§last_status: Box<OrderStatus>§products: Vec<Product>§status_history: Vec<OrderStatus>§stripe_checkout_session_data: HashMap<String, Value>§user: Option<Box<User>>§receipt_url: Option<String>§portal_url: Option<String>Implementations§
Source§impl Order
impl Order
Sourcepub fn new(
created_dt: String,
djstripe_checkout_session: Option<DjStripeCheckoutSession>,
djstripe_customer: Option<DjStripeCustomer>,
djstripe_payment_intent: Option<DjStripePaymentIntent>,
email: String,
id: String,
is_shippable: bool,
is_subscription: bool,
last_status: OrderStatus,
products: Vec<Product>,
status_history: Vec<OrderStatus>,
stripe_checkout_session_data: HashMap<String, Value>,
receipt_url: Option<String>,
portal_url: Option<String>,
) -> Order
pub fn new( created_dt: String, djstripe_checkout_session: Option<DjStripeCheckoutSession>, djstripe_customer: Option<DjStripeCustomer>, djstripe_payment_intent: Option<DjStripePaymentIntent>, email: String, id: String, is_shippable: bool, is_subscription: bool, last_status: OrderStatus, products: Vec<Product>, status_history: Vec<OrderStatus>, stripe_checkout_session_data: HashMap<String, Value>, receipt_url: Option<String>, portal_url: Option<String>, ) -> Order
Djstripe’s representation of Stripe Checkout model is missing a number of fields, like subtotal amount and shipping/tax charges stripe_checkout_session_data is the raw JSON returned by stripe.checkout.Session.retrieve
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 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