# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional

from pydantic import Field as FieldInfo

from ...._models import BaseModel
from .carts.currency_object import CurrencyObject

__all__ = ["EarnedRewardsSummary"]


class EarnedRewardsSummary(BaseModel):
    earned_credit: Optional[CurrencyObject] = FieldInfo(alias="earnedCredit", default=None)

    rewards_amount: Optional[float] = FieldInfo(alias="rewardsAmount", default=None)
    """percentage of charged amount that customer will earn for reward"""
