public interface PurchaseTransactionOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
float |
getCost()
All the costs associated with the products.
|
String |
getCurrencyCode()
Required.
|
com.google.protobuf.ByteString |
getCurrencyCodeBytes()
Required.
|
String |
getId()
The transaction ID with a length limit of 128 characters.
|
com.google.protobuf.ByteString |
getIdBytes()
The transaction ID with a length limit of 128 characters.
|
float |
getRevenue()
Required.
|
float |
getTax()
All the taxes associated with the transaction.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getId()
The transaction ID with a length limit of 128 characters.
string id = 1;com.google.protobuf.ByteString getIdBytes()
The transaction ID with a length limit of 128 characters.
string id = 1;float getRevenue()
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.
float revenue = 2 [(.google.api.field_behavior) = REQUIRED];float getTax()
All the taxes associated with the transaction.
float tax = 3;float getCost()
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][google.cloud.retail.v2beta.PurchaseTransaction.revenue] - [tax][google.cloud.retail.v2beta.PurchaseTransaction.tax] - [cost][google.cloud.retail.v2beta.PurchaseTransaction.cost]
float cost = 4;String getCurrencyCode()
Required. Currency code. Use three-character ISO-4217 code.
string currency_code = 5 [(.google.api.field_behavior) = REQUIRED];com.google.protobuf.ByteString getCurrencyCodeBytes()
Required. Currency code. Use three-character ISO-4217 code.
string currency_code = 5 [(.google.api.field_behavior) = REQUIRED];Copyright © 2024 Google LLC. All rights reserved.