Class PurchaseTransaction (1.10.1)

Stay organized with collections Save and categorize content based on your preferences.
PurchaseTransaction(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A transaction represents the entire purchase transaction.

Attributes

NameDescription
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.

Inheritance

builtins.object > proto.message.Message > PurchaseTransaction