pub struct OrderProductAttributes {Show 23 fields
pub order_id: u64,
pub product_id: u64,
pub royalty_publisher_id: u64,
pub isbn: Option<String>,
pub name: String,
pub date_purchased: Option<String>,
pub filesize: Option<u64>,
pub final_price: f64,
pub quantity: u32,
pub bundle_id: u64,
pub archived: u8,
pub add_on_info: Option<String>,
pub order_product_id: u64,
pub customer_id: u64,
pub file_last_modified: Option<String>,
pub file_last_downloaded: Option<String>,
pub files: Vec<OrderProductFile>,
pub filters: Option<Vec<OrderProductFilter>>,
pub history: Option<Vec<OrderProductHistoryEntry>>,
pub attributes: Option<Vec<OrderProductAttribute>>,
pub publisher: Option<OrderProductPublisher>,
pub product: Option<OrderProductInfo>,
pub order: Option<OrderProductOrder>,
}Expand description
The full attribute set for an ordered product.
This is the primary payload within an OrderProductItem. It includes required fields
present on every ordered product as well as optional collections (filters, history,
attributes) that are populated only when specifically requested.
Fields§
§order_id: u64The unique identifier of the order this product belongs to.
product_id: u64The unique identifier of the product.
royalty_publisher_id: u64The publisher identifier used for royalty tracking.
isbn: Option<String>The ISBN of the product, if applicable.
name: StringThe display name of the product.
date_purchased: Option<String>The date the product was purchased (ISO 8601 string), if available.
filesize: Option<u64>The total file size in bytes, if available.
final_price: f64The final price paid for the product.
quantity: u32The quantity of this product in the order.
bundle_id: u64The bundle identifier, if the product was purchased as part of a bundle.
archived: u8Indicates whether the product has been archived (1) or not (0).
add_on_info: Option<String>Additional add-on information associated with this product, if any.
order_product_id: u64The unique identifier for this order-product record.
customer_id: u64The unique identifier of the customer who owns this order.
file_last_modified: Option<String>The date the product files were last modified (ISO 8601 string), if known.
file_last_downloaded: Option<String>The date the product files were last downloaded (ISO 8601 string), if known.
files: Vec<OrderProductFile>The list of downloadable files associated with this ordered product.
filters: Option<Vec<OrderProductFilter>>Filter categories for this product. Populated when getFilters=1 is requested.
history: Option<Vec<OrderProductHistoryEntry>>The change history for this ordered product, if requested.
attributes: Option<Vec<OrderProductAttribute>>Optional attributes describing purchase options (format, edition, etc.).
publisher: Option<OrderProductPublisher>Publisher metadata embedded directly on this ordered product’s attributes, when the
API includes it inline (in addition to, or instead of, sideloaded included publisher
resources).
product: Option<OrderProductInfo>Product catalog metadata (cover images, description) embedded on this ordered product.
order: Option<OrderProductOrder>Order summary metadata embedded on this ordered product.
Trait Implementations§
Source§impl Clone for OrderProductAttributes
impl Clone for OrderProductAttributes
Source§fn clone(&self) -> OrderProductAttributes
fn clone(&self) -> OrderProductAttributes
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more