Struct google_api_proto::google::cloud::paymentgateway::issuerswitch::v1::MandateTransaction
source · pub struct MandateTransaction {Show 16 fields
pub name: String,
pub transaction_info: Option<TransactionInfo>,
pub unique_mandate_number: String,
pub payer: Option<SettlementParticipant>,
pub payee: Option<SettlementParticipant>,
pub recurrence_pattern: i32,
pub recurrence_rule_type: i32,
pub recurrence_rule_value: i32,
pub start_date: Option<Date>,
pub end_date: Option<Date>,
pub revokable: bool,
pub amount: f64,
pub amount_rule: i32,
pub approval_reference: String,
pub block_funds: bool,
pub mandate_name: String,
}Expand description
A mandate processed by the issuer switch. In UPI, this maps to the Mandate API.
Fields§
§name: StringThe name of the mandate transaction. This uniquely identifies the transaction. Format of name is projects/{project_id}/mandateTransactions/{mandate_transaction_id}.
transaction_info: Option<TransactionInfo>Information about the transaction.
unique_mandate_number: StringOutput only. This maps to Unique Mandate Number (UMN) in UPI specification.
payer: Option<SettlementParticipant>Output only. The payer in the transaction.
payee: Option<SettlementParticipant>Output only. The payee in the transaction.
recurrence_pattern: i32Output only. The type of recurrence pattern of the mandate.
recurrence_rule_type: i32Output only. The type of recurrence rule of the mandate.
recurrence_rule_value: i32Output only. The recurrence rule value of the mandate. This is a value from 1 to 31.
start_date: Option<Date>Output only. The start date of the mandate.
end_date: Option<Date>Output only. The end date of the mandate.
revokable: boolOutput only. If true, this specifies mandate can be revoked.
amount: f64Output only. The amount of the mandate.
amount_rule: i32Output only. The amount rule type of the mandate.
approval_reference: StringOutput only. The Block funds reference generated by the bank, this will be available only when Recurrence is ONETIME.
block_funds: boolOutput only. If true, this specifies the mandate transaction requested funds to be blocked.
mandate_name: StringOutput only. The mandate’s name.
Implementations§
source§impl MandateTransaction
impl MandateTransaction
sourcepub fn recurrence_pattern(&self) -> RecurrencePatternType
pub fn recurrence_pattern(&self) -> RecurrencePatternType
Returns the enum value of recurrence_pattern, or the default if the field is set to an invalid enum value.
sourcepub fn set_recurrence_pattern(&mut self, value: RecurrencePatternType)
pub fn set_recurrence_pattern(&mut self, value: RecurrencePatternType)
Sets recurrence_pattern to the provided enum value.
sourcepub fn recurrence_rule_type(&self) -> RecurrenceRuleType
pub fn recurrence_rule_type(&self) -> RecurrenceRuleType
Returns the enum value of recurrence_rule_type, or the default if the field is set to an invalid enum value.
sourcepub fn set_recurrence_rule_type(&mut self, value: RecurrenceRuleType)
pub fn set_recurrence_rule_type(&mut self, value: RecurrenceRuleType)
Sets recurrence_rule_type to the provided enum value.
sourcepub fn amount_rule(&self) -> AmountRuleType
pub fn amount_rule(&self) -> AmountRuleType
Returns the enum value of amount_rule, or the default if the field is set to an invalid enum value.
sourcepub fn set_amount_rule(&mut self, value: AmountRuleType)
pub fn set_amount_rule(&mut self, value: AmountRuleType)
Sets amount_rule to the provided enum value.
Trait Implementations§
source§impl Clone for MandateTransaction
impl Clone for MandateTransaction
source§fn clone(&self) -> MandateTransaction
fn clone(&self) -> MandateTransaction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MandateTransaction
impl Debug for MandateTransaction
source§impl Default for MandateTransaction
impl Default for MandateTransaction
source§impl Message for MandateTransaction
impl Message for MandateTransaction
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 MandateTransaction
impl PartialEq for MandateTransaction
source§fn eq(&self, other: &MandateTransaction) -> bool
fn eq(&self, other: &MandateTransaction) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MandateTransaction
Auto Trait Implementations§
impl Freeze for MandateTransaction
impl RefUnwindSafe for MandateTransaction
impl Send for MandateTransaction
impl Sync for MandateTransaction
impl Unpin for MandateTransaction
impl UnwindSafe for MandateTransaction
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