Struct google_api_proto::google::cloud::recaptchaenterprise::v1beta1::TransactionData
source · pub struct TransactionData {Show 13 fields
pub transaction_id: Option<String>,
pub payment_method: String,
pub card_bin: String,
pub card_last_four: String,
pub currency_code: String,
pub value: f64,
pub shipping_value: f64,
pub shipping_address: Option<Address>,
pub billing_address: Option<Address>,
pub user: Option<User>,
pub merchants: Vec<User>,
pub items: Vec<Item>,
pub gateway_info: Option<GatewayInfo>,
}
Expand description
Transaction data associated with a payment protected by reCAPTCHA Enterprise.
Fields§
§transaction_id: Option<String>
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.
payment_method: String
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)
card_bin: String
The Bank Identification Number - generally the first 6 or 8 digits of the card.
card_last_four: String
The last four digits of the card.
currency_code: String
The currency code in ISO-4217 format.
value: f64
The decimal value of the transaction in the specified currency.
shipping_value: f64
The value of shipping in the specified currency. 0 for free or no shipping.
shipping_address: Option<Address>
Destination address if this transaction involves shipping a physical item.
billing_address: Option<Address>
Address associated with the payment method when applicable.
user: Option<User>
Information about the user paying/initiating the transaction.
merchants: Vec<User>
Information about the user or users fulfilling the transaction.
items: Vec<Item>
Items purchased in this transaction.
gateway_info: Option<GatewayInfo>
Information about the payment gateway’s response to the transaction.
Implementations§
source§impl TransactionData
impl TransactionData
sourcepub fn transaction_id(&self) -> &str
pub fn transaction_id(&self) -> &str
Returns the value of transaction_id
, or the default value if transaction_id
is unset.
Trait Implementations§
source§impl Clone for TransactionData
impl Clone for TransactionData
source§fn clone(&self) -> TransactionData
fn clone(&self) -> TransactionData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransactionData
impl Debug for TransactionData
source§impl Default for TransactionData
impl Default for TransactionData
source§impl Message for TransactionData
impl Message for TransactionData
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for TransactionData
impl PartialEq for TransactionData
source§fn eq(&self, other: &TransactionData) -> bool
fn eq(&self, other: &TransactionData) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransactionData
Auto Trait Implementations§
impl Freeze for TransactionData
impl RefUnwindSafe for TransactionData
impl Send for TransactionData
impl Sync for TransactionData
impl Unpin for TransactionData
impl UnwindSafe for TransactionData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request