Interface PurchaseTransactionOrBuilder

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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.
      • 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 Detail

      • 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.v2beta.PurchaseTransaction.revenue] -
         [tax][google.cloud.retail.v2beta.PurchaseTransaction.tax] -
         [cost][google.cloud.retail.v2beta.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.