Struct google_api_proto::google::cloud::paymentgateway::issuerswitch::v1::TransactionInfo
source · pub struct TransactionInfo {
pub id: String,
pub api_type: i32,
pub transaction_type: i32,
pub transaction_sub_type: i32,
pub state: i32,
pub metadata: Option<TransactionMetadata>,
pub error_details: Option<TransactionErrorDetails>,
pub adapter_info: Option<AdapterInfo>,
pub risk_info: Vec<TransactionRiskInfo>,
}
Expand description
Information about a transaction processed by the issuer switch. The fields in this type are common across both financial and metadata transactions.
Fields§
§id: String
Output only. An identifier that is mandatorily present in every transaction processed via UPI. This maps to UPI’s transaction ID.
api_type: i32
Output only. The API type of the transaction.
transaction_type: i32
Output only. The transaction type.
transaction_sub_type: i32
Output only. The transaction subtype.
state: i32
Output only. The transaction’s state.
metadata: Option<TransactionMetadata>
Metadata about the API transaction.
error_details: Option<TransactionErrorDetails>
Output only. Any error details for the current API transaction, if the
state is FAILED
.
adapter_info: Option<AdapterInfo>
Output only. Information about the adapter invocation from the issuer switch for processing this API transaction.
risk_info: Vec<TransactionRiskInfo>
Risk information as provided by the payments orchestrator.
Implementations§
source§impl TransactionInfo
impl TransactionInfo
sourcepub fn api_type(&self) -> ApiType
pub fn api_type(&self) -> ApiType
Returns the enum value of api_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_api_type(&mut self, value: ApiType)
pub fn set_api_type(&mut self, value: ApiType)
Sets api_type
to the provided enum value.
sourcepub fn transaction_type(&self) -> TransactionType
pub fn transaction_type(&self) -> TransactionType
Returns the enum value of transaction_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_transaction_type(&mut self, value: TransactionType)
pub fn set_transaction_type(&mut self, value: TransactionType)
Sets transaction_type
to the provided enum value.
sourcepub fn transaction_sub_type(&self) -> TransactionSubType
pub fn transaction_sub_type(&self) -> TransactionSubType
Returns the enum value of transaction_sub_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_transaction_sub_type(&mut self, value: TransactionSubType)
pub fn set_transaction_sub_type(&mut self, value: TransactionSubType)
Sets transaction_sub_type
to the provided enum value.
Trait Implementations§
source§impl Clone for TransactionInfo
impl Clone for TransactionInfo
source§fn clone(&self) -> TransactionInfo
fn clone(&self) -> TransactionInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransactionInfo
impl Debug for TransactionInfo
source§impl Default for TransactionInfo
impl Default for TransactionInfo
source§impl Message for TransactionInfo
impl Message for TransactionInfo
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 TransactionInfo
impl PartialEq for TransactionInfo
source§fn eq(&self, other: &TransactionInfo) -> bool
fn eq(&self, other: &TransactionInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransactionInfo
Auto Trait Implementations§
impl Freeze for TransactionInfo
impl RefUnwindSafe for TransactionInfo
impl Send for TransactionInfo
impl Sync for TransactionInfo
impl Unpin for TransactionInfo
impl UnwindSafe for TransactionInfo
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