Struct google_api_proto::google::cloud::paymentgateway::issuerswitch::v1::UpiTransaction
source · pub struct UpiTransaction {Show 15 fields
pub message: String,
pub severity: i32,
pub api_type: i32,
pub xml_api_type: i32,
pub transaction_type: i32,
pub transaction_id: String,
pub message_id: String,
pub rrn: String,
pub payload_receipt_time: Option<Timestamp>,
pub payload_sent_time: Option<Timestamp>,
pub status: i32,
pub error_code: String,
pub upi_error_code: String,
pub error_message: String,
pub payload: Option<Payload>,
}
Expand description
The payload for the log entry.
Fields§
§message: String
A human readable message about the log entry.
severity: i32
The severity of the log entry.
api_type: i32
The API type of the transaction.
xml_api_type: i32
The XML API type of the transaction.
transaction_type: i32
The type of the transaction.
transaction_id: String
UPI’s transaction ID.
message_id: String
UPI’s message ID.
rrn: String
The payment’s RRN. This will be present only for payment related transactions.
payload_receipt_time: Option<Timestamp>
The timestamp at which the payload was received by the issuer switch.
payload_sent_time: Option<Timestamp>
The timestamp at which the payload was sent by the issuer switch.
status: i32
Status of the transaction which could be SUCCESS or FAILURE. This will be populated only after transaction is complete.
error_code: String
Issuer switch error code. This will be present only for failed transactions.
upi_error_code: String
UPI error code that was sent back to NPCI. This will be present only for failed transactions.
error_message: String
Issuer switch error message. This will be present only for failed transactions.
payload: Option<Payload>
The ack, request or response payload.
Implementations§
source§impl UpiTransaction
impl UpiTransaction
sourcepub fn severity(&self) -> LogSeverity
pub fn severity(&self) -> LogSeverity
Returns the enum value of severity
, or the default if the field is set to an invalid enum value.
sourcepub fn set_severity(&mut self, value: LogSeverity)
pub fn set_severity(&mut self, value: LogSeverity)
Sets severity
to the provided enum value.
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 xml_api_type(&self) -> XmlApiType
pub fn xml_api_type(&self) -> XmlApiType
Returns the enum value of xml_api_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_xml_api_type(&mut self, value: XmlApiType)
pub fn set_xml_api_type(&mut self, value: XmlApiType)
Sets xml_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 status(&self) -> State
pub fn status(&self) -> State
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_status(&mut self, value: State)
pub fn set_status(&mut self, value: State)
Sets status
to the provided enum value.
Trait Implementations§
source§impl Clone for UpiTransaction
impl Clone for UpiTransaction
source§fn clone(&self) -> UpiTransaction
fn clone(&self) -> UpiTransaction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpiTransaction
impl Debug for UpiTransaction
source§impl Default for UpiTransaction
impl Default for UpiTransaction
source§impl Message for UpiTransaction
impl Message for UpiTransaction
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 UpiTransaction
impl PartialEq for UpiTransaction
source§fn eq(&self, other: &UpiTransaction) -> bool
fn eq(&self, other: &UpiTransaction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpiTransaction
Auto Trait Implementations§
impl Freeze for UpiTransaction
impl RefUnwindSafe for UpiTransaction
impl Send for UpiTransaction
impl Sync for UpiTransaction
impl Unpin for UpiTransaction
impl UnwindSafe for UpiTransaction
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