Interface PurchaseTransactionOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
PurchaseTransaction, PurchaseTransaction.Builder

@Generated public interface PurchaseTransactionOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    All the costs associated with the products.
    Required.
    com.google.protobuf.ByteString
    Required.
    The transaction ID with a length limit of 128 characters.
    com.google.protobuf.ByteString
    The transaction ID with a length limit of 128 characters.
    float
    Required.
    float
    All the taxes associated with the transaction.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getId

      String getId()
       The transaction ID with a length limit of 128 characters.
       
      string id = 1;
      Returns:
      The id.
    • getIdBytes

      com.google.protobuf.ByteString getIdBytes()
       The transaction ID with a length limit of 128 characters.
       
      string id = 1;
      Returns:
      The bytes for id.
    • getRevenue

      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];
      Returns:
      The revenue.
    • getTax

      float getTax()
       All the taxes associated with the transaction.
       
      float tax = 3;
      Returns:
      The tax.
    • getCost

      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.v2alpha.PurchaseTransaction.revenue] -
       [tax][google.cloud.retail.v2alpha.PurchaseTransaction.tax] -
       [cost][google.cloud.retail.v2alpha.PurchaseTransaction.cost]
       
      float cost = 4;
      Returns:
      The cost.
    • getCurrencyCode

      String getCurrencyCode()
       Required. Currency code. Use three-character ISO-4217 code.
       
      string currency_code = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The currencyCode.
    • getCurrencyCodeBytes

      com.google.protobuf.ByteString getCurrencyCodeBytes()
       Required. Currency code. Use three-character ISO-4217 code.
       
      string currency_code = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for currencyCode.