Interface TransactionData.ItemOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TransactionData.Item,TransactionData.Item.Builder
- Enclosing class:
- TransactionData
public static interface TransactionData.ItemOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionWhen a merchant is specified, its corresponding account_id.com.google.protobuf.ByteStringWhen a merchant is specified, its corresponding account_id.getName()The full name of the item.com.google.protobuf.ByteStringThe full name of the item.longThe quantity of this item that is being purchased.doublegetValue()The value per item that the user is paying, in the transaction currency, after discounts.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()The full name of the item.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The full name of the item.
string name = 1;- Returns:
- The bytes for name.
-
getValue
double getValue()The value per item that the user is paying, in the transaction currency, after discounts.
double value = 2;- Returns:
- The value.
-
getQuantity
long getQuantity()The quantity of this item that is being purchased.
int64 quantity = 3;- Returns:
- The quantity.
-
getMerchantAccountId
String getMerchantAccountId()When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.
string merchant_account_id = 4;- Returns:
- The merchantAccountId.
-
getMerchantAccountIdBytes
com.google.protobuf.ByteString getMerchantAccountIdBytes()When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.
string merchant_account_id = 4;- Returns:
- The bytes for merchantAccountId.
-