pub struct GoogleCloudRecommendationengineV1beta1PurchaseTransaction {
pub costs: Option<HashMap<String, f32>>,
pub currency_code: Option<String>,
pub id: Option<String>,
pub revenue: Option<f32>,
pub taxes: Option<HashMap<String, f32>>,
}Expand description
A transaction represents the entire purchase transaction.
This type is not used in any activity, and only used as part of another schema.
Fields§
§costs: Option<HashMap<String, f32>>Optional. All the costs associated with the product. These can be manufacturing costs, shipping expenses not borne by the end user, or any other costs. Total product cost such that profit = revenue - (sum(taxes) + sum(costs)) If product_cost is not set, then profit = revenue - tax - shipping - sum(CatalogItem.costs). If CatalogItem.cost is not specified for one of the items, CatalogItem.cost based profit cannot be calculated for this Transaction.
currency_code: Option<String>Required. Currency code. Use three-character ISO-4217 code. This field is not required if the event type is refund.
id: Option<String>Optional. The transaction ID with a length limit of 128 bytes.
revenue: Option<f32>Required. Total revenue or grand total associated with the transaction. This value include shipping, tax, or other adjustments to total revenue that you want to include as part of your revenue calculations. This field is not required if the event type is refund.
taxes: Option<HashMap<String, f32>>Optional. All the taxes associated with the transaction.
Trait Implementations§
Source§impl Clone for GoogleCloudRecommendationengineV1beta1PurchaseTransaction
impl Clone for GoogleCloudRecommendationengineV1beta1PurchaseTransaction
Source§fn clone(&self) -> GoogleCloudRecommendationengineV1beta1PurchaseTransaction
fn clone(&self) -> GoogleCloudRecommendationengineV1beta1PurchaseTransaction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more