Struct google_recommendationengine1_beta1::api::GoogleCloudRecommendationengineV1beta1PurchaseTransaction[][src]

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>>,
}

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

impl Clone for GoogleCloudRecommendationengineV1beta1PurchaseTransaction[src]

impl Debug for GoogleCloudRecommendationengineV1beta1PurchaseTransaction[src]

impl Default for GoogleCloudRecommendationengineV1beta1PurchaseTransaction[src]

impl<'de> Deserialize<'de> for GoogleCloudRecommendationengineV1beta1PurchaseTransaction[src]

impl Part for GoogleCloudRecommendationengineV1beta1PurchaseTransaction[src]

impl Serialize for GoogleCloudRecommendationengineV1beta1PurchaseTransaction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.