plaid2.model.earnings_total module

class plaid2.model.earnings_total.EarningsTotal(*, hours: Optional[float] = None, unofficial_currency_code: Optional[str] = None, ytd_amount: Optional[float] = None, iso_currency_code: Optional[str] = None, current_pay: Optional[Pay] = None, current_amount: Optional[float] = None, ytd_pay: Optional[Pay] = None)[source]

Bases: BaseModel

current_amount: Optional[float]

Total amount of the earnings for this pay period

current_pay: Optional[Pay]

An object representing a monetary amount.

dict(**kwargs: Any) Dict[str, Any][source]

Return a dict representation of the object. Takes same keyword arguments as pydantic.BaseModel.dict

hours: Optional[float]

Total number of hours worked for this pay period

iso_currency_code: Optional[str]

The ISO-4217 currency code of the line item. Always null if unofficial_currency_code is non-null.

json(**kwargs: Any) str[source]

Return a json string representation of the object. Takes same keyword arguments as pydantic.BaseModel.json

classmethod parse_obj(data: Any) EarningsTotal[source]

Parse a dict into the object. Takes same keyword arguments as pydantic.BaseModel.parse_obj

classmethod parse_raw(b: Union[bytes, str], **kwargs: Any) EarningsTotal[source]

Parse a json string into the object. Takes same keyword arguments as pydantic.BaseModel.parse_raw

unofficial_currency_code: Optional[str]

The unofficial currency code associated with the security. Always null if iso_currency_code is non-null. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries.

See the [currency code schema](https://plaid.com/docs/api/accounts#currency-code-schema) for a full listing of supported `iso_currency_code`s.

ytd_amount: Optional[float]

The total year-to-date amount of the earnings

ytd_pay: Optional[Pay]

An object representing a monetary amount.