Class TransactionData
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.recaptchaenterprise.v1beta1.TransactionData
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TransactionDataOrBuilder,Serializable
@Generated
public final class TransactionData
extends com.google.protobuf.GeneratedMessage
implements TransactionDataOrBuilder
Transaction data associated with a payment protected by reCAPTCHA.Protobuf type
google.cloud.recaptchaenterprise.v1beta1.TransactionData- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classStructured address format for billing and shipping addresses.static interfacestatic final classTransaction data associated with a payment protected by reCAPTCHA.static final classDetails about the transaction from the gateway.static interfacestatic final classLine items being purchased in this transaction.static interfacestatic final classDetails about a user's account involved in the transaction.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanAddress associated with the payment method when applicable.Address associated with the payment method when applicable.The Bank Identification Number - generally the first 6 or 8 digits of the card.com.google.protobuf.ByteStringThe Bank Identification Number - generally the first 6 or 8 digits of the card.The last four digits of the card.com.google.protobuf.ByteStringThe last four digits of the card.The currency code in ISO-4217 format.com.google.protobuf.ByteStringThe currency code in ISO-4217 format.static TransactionDatastatic final com.google.protobuf.Descriptors.DescriptorInformation about the payment gateway's response to the transaction.Information about the payment gateway's response to the transaction.getItems(int index) Items purchased in this transaction.intItems purchased in this transaction.Items purchased in this transaction.getItemsOrBuilder(int index) Items purchased in this transaction.List<? extends TransactionData.ItemOrBuilder>Items purchased in this transaction.getMerchants(int index) Information about the user or users fulfilling the transaction.intInformation about the user or users fulfilling the transaction.Information about the user or users fulfilling the transaction.getMerchantsOrBuilder(int index) Information about the user or users fulfilling the transaction.List<? extends TransactionData.UserOrBuilder>Information about the user or users fulfilling the transaction.com.google.protobuf.Parser<TransactionData>The payment method for the transaction.com.google.protobuf.ByteStringThe payment method for the transaction.intDestination address if this transaction involves shipping a physical item.Destination address if this transaction involves shipping a physical item.doubleThe value of shipping in the specified currency. 0 for free or no shipping.Unique identifier for the transaction.com.google.protobuf.ByteStringUnique identifier for the transaction.getUser()Information about the user paying/initiating the transaction.Information about the user paying/initiating the transaction.doublegetValue()The decimal value of the transaction in the specified currency.booleanAddress associated with the payment method when applicable.booleanInformation about the payment gateway's response to the transaction.inthashCode()booleanDestination address if this transaction involves shipping a physical item.booleanUnique identifier for the transaction.booleanhasUser()Information about the user paying/initiating the transaction.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic TransactionData.Builderstatic TransactionData.BuildernewBuilder(TransactionData prototype) protected TransactionData.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static TransactionDataparseDelimitedFrom(InputStream input) static TransactionDataparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionDataparseFrom(byte[] data) static TransactionDataparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionDataparseFrom(com.google.protobuf.ByteString data) static TransactionDataparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionDataparseFrom(com.google.protobuf.CodedInputStream input) static TransactionDataparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionDataparseFrom(InputStream input) static TransactionDataparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionDataparseFrom(ByteBuffer data) static TransactionDataparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TransactionData>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TRANSACTION_ID_FIELD_NUMBER
public static final int TRANSACTION_ID_FIELD_NUMBER- See Also:
-
PAYMENT_METHOD_FIELD_NUMBER
public static final int PAYMENT_METHOD_FIELD_NUMBER- See Also:
-
CARD_BIN_FIELD_NUMBER
public static final int CARD_BIN_FIELD_NUMBER- See Also:
-
CARD_LAST_FOUR_FIELD_NUMBER
public static final int CARD_LAST_FOUR_FIELD_NUMBER- See Also:
-
CURRENCY_CODE_FIELD_NUMBER
public static final int CURRENCY_CODE_FIELD_NUMBER- See Also:
-
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER- See Also:
-
SHIPPING_VALUE_FIELD_NUMBER
public static final int SHIPPING_VALUE_FIELD_NUMBER- See Also:
-
SHIPPING_ADDRESS_FIELD_NUMBER
public static final int SHIPPING_ADDRESS_FIELD_NUMBER- See Also:
-
BILLING_ADDRESS_FIELD_NUMBER
public static final int BILLING_ADDRESS_FIELD_NUMBER- See Also:
-
USER_FIELD_NUMBER
public static final int USER_FIELD_NUMBER- See Also:
-
MERCHANTS_FIELD_NUMBER
public static final int MERCHANTS_FIELD_NUMBER- See Also:
-
ITEMS_FIELD_NUMBER
public static final int ITEMS_FIELD_NUMBER- See Also:
-
GATEWAY_INFO_FIELD_NUMBER
public static final int GATEWAY_INFO_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasTransactionId
public boolean hasTransactionId()Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id.
optional string transaction_id = 11;- Specified by:
hasTransactionIdin interfaceTransactionDataOrBuilder- Returns:
- Whether the transactionId field is set.
-
getTransactionId
Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id.
optional string transaction_id = 11;- Specified by:
getTransactionIdin interfaceTransactionDataOrBuilder- Returns:
- The transactionId.
-
getTransactionIdBytes
public com.google.protobuf.ByteString getTransactionIdBytes()Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id.
optional string transaction_id = 11;- Specified by:
getTransactionIdBytesin interfaceTransactionDataOrBuilder- Returns:
- The bytes for transactionId.
-
getPaymentMethod
The payment method for the transaction. The allowed values are: * credit-card * debit-card * gift-card * processor-{name} (If a third-party is used, for example, processor-paypal) * custom-{name} (If an alternative method is used, for example, custom-crypto)string payment_method = 1;- Specified by:
getPaymentMethodin interfaceTransactionDataOrBuilder- Returns:
- The paymentMethod.
-
getPaymentMethodBytes
public com.google.protobuf.ByteString getPaymentMethodBytes()The payment method for the transaction. The allowed values are: * credit-card * debit-card * gift-card * processor-{name} (If a third-party is used, for example, processor-paypal) * custom-{name} (If an alternative method is used, for example, custom-crypto)string payment_method = 1;- Specified by:
getPaymentMethodBytesin interfaceTransactionDataOrBuilder- Returns:
- The bytes for paymentMethod.
-
getCardBin
The Bank Identification Number - generally the first 6 or 8 digits of the card.
string card_bin = 2;- Specified by:
getCardBinin interfaceTransactionDataOrBuilder- Returns:
- The cardBin.
-
getCardBinBytes
public com.google.protobuf.ByteString getCardBinBytes()The Bank Identification Number - generally the first 6 or 8 digits of the card.
string card_bin = 2;- Specified by:
getCardBinBytesin interfaceTransactionDataOrBuilder- Returns:
- The bytes for cardBin.
-
getCardLastFour
The last four digits of the card.
string card_last_four = 3;- Specified by:
getCardLastFourin interfaceTransactionDataOrBuilder- Returns:
- The cardLastFour.
-
getCardLastFourBytes
public com.google.protobuf.ByteString getCardLastFourBytes()The last four digits of the card.
string card_last_four = 3;- Specified by:
getCardLastFourBytesin interfaceTransactionDataOrBuilder- Returns:
- The bytes for cardLastFour.
-
getCurrencyCode
The currency code in ISO-4217 format.
string currency_code = 4;- Specified by:
getCurrencyCodein interfaceTransactionDataOrBuilder- Returns:
- The currencyCode.
-
getCurrencyCodeBytes
public com.google.protobuf.ByteString getCurrencyCodeBytes()The currency code in ISO-4217 format.
string currency_code = 4;- Specified by:
getCurrencyCodeBytesin interfaceTransactionDataOrBuilder- Returns:
- The bytes for currencyCode.
-
getValue
public double getValue()The decimal value of the transaction in the specified currency.
double value = 5;- Specified by:
getValuein interfaceTransactionDataOrBuilder- Returns:
- The value.
-
getShippingValue
public double getShippingValue()The value of shipping in the specified currency. 0 for free or no shipping.
double shipping_value = 12;- Specified by:
getShippingValuein interfaceTransactionDataOrBuilder- Returns:
- The shippingValue.
-
hasShippingAddress
public boolean hasShippingAddress()Destination address if this transaction involves shipping a physical item.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6;- Specified by:
hasShippingAddressin interfaceTransactionDataOrBuilder- Returns:
- Whether the shippingAddress field is set.
-
getShippingAddress
Destination address if this transaction involves shipping a physical item.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6;- Specified by:
getShippingAddressin interfaceTransactionDataOrBuilder- Returns:
- The shippingAddress.
-
getShippingAddressOrBuilder
Destination address if this transaction involves shipping a physical item.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6;- Specified by:
getShippingAddressOrBuilderin interfaceTransactionDataOrBuilder
-
hasBillingAddress
public boolean hasBillingAddress()Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7;- Specified by:
hasBillingAddressin interfaceTransactionDataOrBuilder- Returns:
- Whether the billingAddress field is set.
-
getBillingAddress
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7;- Specified by:
getBillingAddressin interfaceTransactionDataOrBuilder- Returns:
- The billingAddress.
-
getBillingAddressOrBuilder
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7;- Specified by:
getBillingAddressOrBuilderin interfaceTransactionDataOrBuilder
-
hasUser
public boolean hasUser()Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8;- Specified by:
hasUserin interfaceTransactionDataOrBuilder- Returns:
- Whether the user field is set.
-
getUser
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8;- Specified by:
getUserin interfaceTransactionDataOrBuilder- Returns:
- The user.
-
getUserOrBuilder
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8;- Specified by:
getUserOrBuilderin interfaceTransactionDataOrBuilder
-
getMerchantsList
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13;- Specified by:
getMerchantsListin interfaceTransactionDataOrBuilder
-
getMerchantsOrBuilderList
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13;- Specified by:
getMerchantsOrBuilderListin interfaceTransactionDataOrBuilder
-
getMerchantsCount
public int getMerchantsCount()Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13;- Specified by:
getMerchantsCountin interfaceTransactionDataOrBuilder
-
getMerchants
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13;- Specified by:
getMerchantsin interfaceTransactionDataOrBuilder
-
getMerchantsOrBuilder
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13;- Specified by:
getMerchantsOrBuilderin interfaceTransactionDataOrBuilder
-
getItemsList
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;- Specified by:
getItemsListin interfaceTransactionDataOrBuilder
-
getItemsOrBuilderList
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;- Specified by:
getItemsOrBuilderListin interfaceTransactionDataOrBuilder
-
getItemsCount
public int getItemsCount()Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;- Specified by:
getItemsCountin interfaceTransactionDataOrBuilder
-
getItems
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;- Specified by:
getItemsin interfaceTransactionDataOrBuilder
-
getItemsOrBuilder
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;- Specified by:
getItemsOrBuilderin interfaceTransactionDataOrBuilder
-
hasGatewayInfo
public boolean hasGatewayInfo()Information about the payment gateway's response to the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10;- Specified by:
hasGatewayInfoin interfaceTransactionDataOrBuilder- Returns:
- Whether the gatewayInfo field is set.
-
getGatewayInfo
Information about the payment gateway's response to the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10;- Specified by:
getGatewayInfoin interfaceTransactionDataOrBuilder- Returns:
- The gatewayInfo.
-
getGatewayInfoOrBuilder
Information about the payment gateway's response to the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10;- Specified by:
getGatewayInfoOrBuilderin interfaceTransactionDataOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TransactionData parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransactionData parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransactionData parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransactionData parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransactionData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransactionData parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TransactionData parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TransactionData parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static TransactionData parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static TransactionData parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TransactionData.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-