Class PurchaseTransaction (1.16.3)

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

A transaction represents the entire purchase transaction.


id str
The transaction ID with a length limit of 128 characters.
revenue float
Required. Total non-zero revenue or grand total associated with the transaction. This value include shipping, tax, or other adjustments to total revenue that you want to include as part of your revenue calculations.
tax float
All the taxes associated with the transaction.
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 = revenue - tax - cost
currency_code str
Required. Currency code. Use three-character ISO-4217 code.