PaybackDetails
PaybackDetails(
card,
points_before,
earned_points,
used_coupons,
used_rewe_credit,
new_rewe_credit,
payback_revenue,
)Represents payback-specific loyalty details for a receipt.
Attributes: card (str): The payback card number. points_before (float): The points before the transaction. earned_points (int): The points earned in the transaction. used_coupons (List[PaybackCoupon]): The used payback coupons. used_rewe_credit (Optional[float]): The used REWE credit. new_rewe_credit (Optional[float]): The new REWE credit. payback_revenue (float): The payback revenue.
Attributes
| Name | Description |
|---|---|
| base_points | Calculate the base points excluding coupon points. |
| coupon_points | Calculate the total points from used coupons. |
| qualified_revenue | Get the qualified revenue for payback. |
Methods
| Name | Description |
|---|---|
| to_dict | Converts the PaybackDetails instance to a dictionary. |
to_dict
PaybackDetails.to_dict()Converts the PaybackDetails instance to a dictionary.
Returns: dict: A dictionary representation of the PaybackDetails instance.