pub struct PointsDetails {
pub points_coupon_value: Option<Money>,
pub points_discount_rate_micros: Option<i64>,
pub points_offer_id: Option<String>,
pub points_spent: Option<i64>,
}Expand description
Details relating to any Play Points applied to an order.
This type is not used in any activity, and only used as part of another schema.
Fields§
§points_coupon_value: Option<Money>The monetary value of a Play Points coupon. This is the discount the coupon provides, which may not be the total amount. Only set when Play Points coupons have been used. E.g. for a 100 points for $2 coupon, this is $2.
points_discount_rate_micros: Option<i64>The percentage rate which the Play Points promotion reduces the cost by. E.g. for a 100 points for $2 coupon, this is 500,000. Since $2 has an estimate of 200 points, but the actual Points required, 100, is 50% of this, and 50% in micros is 500,000. Between 0 and 1,000,000.
points_offer_id: Option<String>ID unique to the play points offer in use for this order.
points_spent: Option<i64>The number of Play Points applied in this order. E.g. for a 100 points for $2 coupon, this is 100. For coupon stacked with base offer, this is the total points spent across both.
Trait Implementations§
Source§impl Clone for PointsDetails
impl Clone for PointsDetails
Source§fn clone(&self) -> PointsDetails
fn clone(&self) -> PointsDetails
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more