Class TransactionInfo (0.8.1)

TransactionInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A transaction represents the entire purchase transaction.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
value float
Required. Total non-zero value associated with the transaction. This value may include shipping, tax, or other adjustments to the total value that you want to include. This field is a member of oneof_ _value.
currency str
Required. Currency code. Use three-character ISO-4217 code.
transaction_id str
The transaction ID with a length limit of 128 characters.
tax float
All the taxes associated with the transaction. This field is a member of oneof_ _tax.
cost float
All the costs associated with the products. These can be manufacturing costs, shipping expenses not borne by the end user, or any other costs, such that: - Profit = value - tax - cost This field is a member of oneof_ _cost.
discount_value float
The total discount(s) value applied to this transaction. This figure should be excluded from TransactionInfo.value For example, if a user paid TransactionInfo.value amount, then nominal (pre-discount) value of the transaction is the sum of TransactionInfo.value and TransactionInfo.discount_value This means that profit is calculated the same way, regardless of the discount value, and that TransactionInfo.discount_value can be larger than TransactionInfo.value: - Profit = value - tax - cost This field is a member of oneof_ _discount_value.