app_store_server_library/primitives/
advanced_commerce_transaction_info.rs

1use serde::{Deserialize, Serialize};
2use crate::primitives::advanced_commerce::descriptors::Descriptors;
3use crate::primitives::advanced_commerce::period::Period;
4use crate::primitives::advanced_commerce_transaction_item::AdvancedCommerceTransactionItem;
5
6#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, Hash)]
7#[serde(rename_all = "camelCase")]
8/// [AdvancedCommerceTransactionInfo](https://developer.apple.com/documentation/appstoreserverapi/advancedcommercetransactioninfo)
9pub struct AdvancedCommerceTransactionInfo {
10
11    /// [descriptors](https://developer.apple.com/documentation/appstoreserverapi/advancedcommercedescriptors)
12    pub descriptors: Descriptors,
13
14    /// [estimatedTax](https://developer.apple.com/documentation/appstoreserverapi/advancedcommerceestimatedtax)
15    pub estimated_tax: i64,
16
17    /// [items](https://developer.apple.com/documentation/appstoreserverapi/advancedcommercetransactionitems)
18    pub items: Vec<AdvancedCommerceTransactionItem>,
19
20    /// [period](https://developer.apple.com/documentation/appstoreserverapi/advancedcommerceperiod)
21    pub period: Period,
22
23    /// [requestReferenceId](https://developer.apple.com/documentation/appstoreserverapi/advancedcommercerequestreferenceid)
24    pub request_reference_id: String,
25
26    /// [taxCode](https://developer.apple.com/documentation/appstoreserverapi/advancedcommercetaxcode)
27    pub tax_code: String,
28
29    /// [taxExclusivePrice](https://developer.apple.com/documentation/appstoreserverapi/advancedcommercetaxexclusiveprice)
30    pub tax_exclusive_price: i64,
31
32    /// [taxRate](https://developer.apple.com/documentation/appstoreserverapi/advancedcommercetaxrate)
33    pub tax_rate: String,
34}