Order

Struct Order 

Source
pub struct Order {
Show 47 fields pub amazon_order_id: String, pub seller_order_id: Option<String>, pub purchase_date: String, pub last_update_date: String, pub order_status: OrderStatus, pub fulfillment_channel: Option<FulfillmentChannel>, pub sales_channel: Option<String>, pub order_channel: Option<String>, pub ship_service_level: Option<String>, pub order_total: Option<Box<Money>>, pub number_of_items_shipped: Option<i32>, pub number_of_items_unshipped: Option<i32>, pub payment_execution_detail: Option<Vec<PaymentExecutionDetailItem>>, pub payment_method: Option<PaymentMethod>, pub payment_method_details: Option<Vec<String>>, pub marketplace_id: Option<String>, pub shipment_service_level_category: Option<String>, pub easy_ship_shipment_status: Option<EasyShipShipmentStatus>, pub cba_displayable_shipping_label: Option<String>, pub order_type: Option<OrderType>, pub earliest_ship_date: Option<String>, pub latest_ship_date: Option<String>, pub earliest_delivery_date: Option<String>, pub latest_delivery_date: Option<String>, pub is_business_order: Option<bool>, pub is_prime: Option<bool>, pub is_premium_order: Option<bool>, pub is_global_express_enabled: Option<bool>, pub replaced_order_id: Option<String>, pub is_replacement_order: Option<bool>, pub promise_response_due_date: Option<String>, pub is_estimated_ship_date_set: Option<bool>, pub is_sold_by_ab: Option<bool>, pub is_iba: Option<bool>, pub default_ship_from_location_address: Option<Box<Address>>, pub buyer_invoice_preference: Option<BuyerInvoicePreference>, pub buyer_tax_information: Option<Box<BuyerTaxInformation>>, pub fulfillment_instruction: Option<Box<FulfillmentInstruction>>, pub is_ispu: Option<bool>, pub is_access_point_order: Option<bool>, pub marketplace_tax_info: Option<Box<MarketplaceTaxInfo>>, pub seller_display_name: Option<String>, pub shipping_address: Option<Box<Address>>, pub buyer_info: Option<Box<BuyerInfo>>, pub automated_shipping_settings: Option<Box<AutomatedShippingSettings>>, pub has_regulated_items: Option<bool>, pub electronic_invoice_status: Option<ElectronicInvoiceStatus>,
}
Expand description

Order : Order information.

Fields§

§amazon_order_id: String

An Amazon-defined order identifier, in 3-7-7 format.

§seller_order_id: Option<String>

A seller-defined order identifier.

§purchase_date: String

The date when the order was created.

§last_update_date: String

The date when the order was last updated. Note: LastUpdateDate is returned with an incorrect date for orders that were last updated before 2009-04-01.

§order_status: OrderStatus

The current order status.

§fulfillment_channel: Option<FulfillmentChannel>

Whether the order was fulfilled by Amazon (AFN) or by the seller (MFN).

§sales_channel: Option<String>

The sales channel for the first item in the order.

§order_channel: Option<String>

The order channel for the first item in the order.

§ship_service_level: Option<String>

The order’s shipment service level.

§order_total: Option<Box<Money>>§number_of_items_shipped: Option<i32>

The number of items shipped.

§number_of_items_unshipped: Option<i32>

The number of items unshipped.

§payment_execution_detail: Option<Vec<PaymentExecutionDetailItem>>

A list of payment execution detail items.

§payment_method: Option<PaymentMethod>

The payment method for the order. This property is limited to COD and CVS payment methods. Unless you need the specific COD payment information provided by the PaymentExecutionDetailItem object, we recommend using the PaymentMethodDetails property to get payment method information.

§payment_method_details: Option<Vec<String>>

A list of payment method detail items.

§marketplace_id: Option<String>

The identifier for the marketplace where the order was placed.

§shipment_service_level_category: Option<String>

The shipment service level category for the order. Possible values: Expedited, FreeEconomy, NextDay, Priority, SameDay, SecondDay, Scheduled, and Standard.

§easy_ship_shipment_status: Option<EasyShipShipmentStatus>§cba_displayable_shipping_label: Option<String>

Custom ship label for Checkout by Amazon (CBA).

§order_type: Option<OrderType>

The order’s type.

§earliest_ship_date: Option<String>

The start of the time period within which you have committed to ship the order. In ISO 8601 date time format. Only returned for seller-fulfilled orders. Note: EarliestShipDate might not be returned for orders placed before February 1, 2013.

§latest_ship_date: Option<String>

The end of the time period within which you have committed to ship the order. In ISO 8601 date time format. Only returned for seller-fulfilled orders. Note: LatestShipDate might not be returned for orders placed before February 1, 2013.

§earliest_delivery_date: Option<String>

The start of the time period within which you have committed to fulfill the order. In ISO 8601 date time format. Only returned for seller-fulfilled orders.

§latest_delivery_date: Option<String>

The end of the time period within which you have committed to fulfill the order. In ISO 8601 date time format. Only returned for seller-fulfilled orders that do not have a PendingAvailability, Pending, or Canceled status.

§is_business_order: Option<bool>

When true, the order is an Amazon Business order. An Amazon Business order is an order where the buyer is a Verified Business Buyer.

§is_prime: Option<bool>

When true, the order is a seller-fulfilled Amazon Prime order.

§is_premium_order: Option<bool>

When true, the order has a Premium Shipping Service Level Agreement. For more information about Premium Shipping orders, refer to "Premium Shipping Options" in the Seller Central Help for your marketplace.

§is_global_express_enabled: Option<bool>

When true, the order is a GlobalExpress order.

§replaced_order_id: Option<String>

The order ID value for the order that is being replaced. Returned only if IsReplacementOrder = true.

§is_replacement_order: Option<bool>

When true, this is a replacement order.

§promise_response_due_date: Option<String>

Indicates the date by which the seller must respond to the buyer with an estimated ship date. Only returned for Sourcing on Demand orders.

§is_estimated_ship_date_set: Option<bool>

When true, the estimated ship date is set for the order. Only returned for Sourcing on Demand orders.

§is_sold_by_ab: Option<bool>

When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller.

§is_iba: Option<bool>

When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller.

§default_ship_from_location_address: Option<Box<Address>>§buyer_invoice_preference: Option<BuyerInvoicePreference>

The buyer’s invoicing preference. Sellers can use this data to issue electronic invoices for orders in Turkey. Note: This attribute is only available in the Turkey marketplace.

§buyer_tax_information: Option<Box<BuyerTaxInformation>>§fulfillment_instruction: Option<Box<FulfillmentInstruction>>§is_ispu: Option<bool>

When true, this order is marked to be picked up from a store rather than delivered.

§is_access_point_order: Option<bool>

When true, this order is marked to be delivered to an Access Point. The access location is chosen by the customer. Access Points include Amazon Hub Lockers, Amazon Hub Counters, and pickup points operated by carriers.

§marketplace_tax_info: Option<Box<MarketplaceTaxInfo>>§seller_display_name: Option<String>

The seller’s friendly name registered in the marketplace where the sale took place. Sellers can use this data to issue electronic invoices for orders in Brazil. Note: This attribute is only available in the Brazil marketplace for the orders with Pending or Unshipped status.

§shipping_address: Option<Box<Address>>§buyer_info: Option<Box<BuyerInfo>>§automated_shipping_settings: Option<Box<AutomatedShippingSettings>>§has_regulated_items: Option<bool>

Whether the order contains regulated items which may require additional approval steps before being fulfilled.

§electronic_invoice_status: Option<ElectronicInvoiceStatus>

Implementations§

Source§

impl Order

Source

pub fn new( amazon_order_id: String, purchase_date: String, last_update_date: String, order_status: OrderStatus, ) -> Order

Order information.

Trait Implementations§

Source§

impl Clone for Order

Source§

fn clone(&self) -> Order

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Order

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Order

Source§

fn default() -> Order

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Order

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Order

Source§

fn eq(&self, other: &Order) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Order

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,