0.20.1 (latest) 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.12 0.12.3 0.11.14 0.10.0 0.9.1 0.8.1 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.1 0.1.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 ||
|---|---|
| **Name** | **Description** |
| `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`. |