Struct google_api_proto::google::cloud::paymentgateway::issuerswitch::v1::issuer_switch_participants_client::IssuerSwitchParticipantsClient
source · pub struct IssuerSwitchParticipantsClient<T> { /* private fields */ }
Expand description
A service that allows for the management of participants in the issuer switch.
Implementations§
source§impl<T> IssuerSwitchParticipantsClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> IssuerSwitchParticipantsClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> IssuerSwitchParticipantsClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn fetch_participant(
&mut self,
request: impl IntoRequest<FetchParticipantRequest>,
) -> Result<Response<IssuerParticipant>, Status>
pub async fn fetch_participant( &mut self, request: impl IntoRequest<FetchParticipantRequest>, ) -> Result<Response<IssuerParticipant>, Status>
Fetch the issuer switch participant. This method can be used to retrieve all details of a participant in the issuer switch.
In UPI, the participant is identified by their account’s IFSC and their account number.
sourcepub async fn update_issuer_participant(
&mut self,
request: impl IntoRequest<UpdateIssuerParticipantRequest>,
) -> Result<Response<IssuerParticipant>, Status>
pub async fn update_issuer_participant( &mut self, request: impl IntoRequest<UpdateIssuerParticipantRequest>, ) -> Result<Response<IssuerParticipant>, Status>
Update the issuer switch participant. Currently, this API only allows for the [metadata][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.metadata] field to be updated.
The number
of key-value pairs in the metadata
field, the length of each
key
and the length of each value
should be within the thresholds
defined for them in the issuer switch configuration. Any violation of these
thresholds will cause this API to return an error. The default values for
these thresholds are:
Maximum number
of key-value pairs -5
Maximum length
of a key -100
Maximum length
of a value -500
Note that this method replaces any existing metadata
field value in
the participant with the new value. Specifically, it does not do a merge.
If key-value pairs are to be added/removed from the metadata, then
callers must follow the following steps:
- Invoke the
[FetchParticipant][google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants.FetchParticipant]
API to get the current value of the
metadata
field. - Update the
metadata
map to add/remove key-value pairs from it. - Update the
metadata
in the issuer switch using this method.
sourcepub async fn activate_participant(
&mut self,
request: impl IntoRequest<ParticipantStateChangeRequest>,
) -> Result<Response<IssuerParticipants>, Status>
pub async fn activate_participant( &mut self, request: impl IntoRequest<ParticipantStateChangeRequest>, ) -> Result<Response<IssuerParticipants>, Status>
Activate the issuer switch participant for UPI transactions. This API
sets the state of the participant to
[ACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.ACTIVE].
A participant in the ACTIVE
state can perform all UPI operations
normally.
The behavior of this API varies based on the current state of the participant.
- Current state is [ACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.ACTIVE] : This API will make no change to the participant’s state and returns a successful response.
- Current state is
[INACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.INACTIVE]
: If an MPIN has already been provisioned for the participant, then
this API will change the state of the participant to
ACTIVE
. Else, this API will return an error. - Current state is
[MOBILE_NUMBER_CHANGED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.MOBILE_NUMBER_CHANGED]
: The state cannot be changed to
ACTIVE
. This API will return an error. - Current state is
[NEW_REGISTRATION_INITIATED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.NEW_REGISTRATION_INITIATED]
: The state cannot be changed to
ACTIVE
. This API will return an error. - Current state is
[RE_REGISTRATION_INITIATED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.RE_REGISTRATION_INITIATED]
: The state cannot be changed to
ACTIVE
. This API will return an error.
sourcepub async fn deactivate_participant(
&mut self,
request: impl IntoRequest<ParticipantStateChangeRequest>,
) -> Result<Response<IssuerParticipants>, Status>
pub async fn deactivate_participant( &mut self, request: impl IntoRequest<ParticipantStateChangeRequest>, ) -> Result<Response<IssuerParticipants>, Status>
Deactivate the issuer switch participant for UPI transactions. This API
sets the state of the participant to
[INACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.INACTIVE].
An INACTIVE
participant cannot perform any UPI operation which involves
MPIN verification.
The behavior of this API varies based on the current state of the participant.
- Current state is
[ACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.ACTIVE]
: The state will change to
INACTIVE
. The user will be forced to re-register with UPI and reset their MPIN to perform any UPI operations. - Current state is [INACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.INACTIVE] : This API will make no change to the participant’s state and returns a successful response.
- Current state is
[MOBILE_NUMBER_CHANGED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.MOBILE_NUMBER_CHANGED]
: The state cannot be changed to
INACTIVE
. This API will return an error. - Current state is
[NEW_REGISTRATION_INITIATED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.NEW_REGISTRATION_INITIATED]
: The state cannot be changed to
INACTIVE
. This API will return an error. - Current state is
[RE_REGISTRATION_INITIATED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.RE_REGISTRATION_INITIATED]
: The state cannot be changed to
INACTIVE
. This API will return an error.
sourcepub async fn mobile_number_changed(
&mut self,
request: impl IntoRequest<ParticipantStateChangeRequest>,
) -> Result<Response<IssuerParticipants>, Status>
pub async fn mobile_number_changed( &mut self, request: impl IntoRequest<ParticipantStateChangeRequest>, ) -> Result<Response<IssuerParticipants>, Status>
Mark the state of the issuer switch participant as mobile number changed to prevent UPI transactions by the user. This API sets the state of the participant to [MOBILE_NUMBER_CHANGED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.MOBILE_NUMBER_CHANGED].
Any UPI operation for a participant in the MOBILE_NUMBER_CHANGED
state
will cause the issuer switch to return a B1
error to the UPI payments
orchestrator which would force the user to re-register with UPI.
The behavior of this API varies based on the current state of the participant.
- Current state is
[ACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.ACTIVE]
: The state will change to
MOBILE_NUMBER_CHANGED
. Any operation involving MPIN verification of the participant will return aB1
error to the UPI payments orchestrator. The user will be forced to re-register with their changed mobile number. - Current state is
[INACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.INACTIVE]
: The state will change to
MOBILE_NUMBER_CHANGED
. Any operation involving MPIN verification of the participant will return aB1
error to the UPI payments orchestrator. The user will be forced to re-register with their changed mobile number. - Current state is [MOBILE_NUMBER_CHANGED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.MOBILE_NUMBER_CHANGED] : This API will make no change to the participant’s state and returns a successful response.
- Current state is
[NEW_REGISTRATION_INITIATED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.NEW_REGISTRATION_INITIATED]
: The state cannot be changed to
MOBILE_NUMBER_CHANGED
. This API will return an error. - Current state is
[RE_REGISTRATION_INITIATED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.RE_REGISTRATION_INITIATED]
: The state will change to
MOBILE_NUMBER_CHANGED
. Any operation involving MPIN verification of the participant will return aB1
error to the UPI payments orchestrator. The user will be forced to re-register with their changed mobile number.
Trait Implementations§
source§impl<T: Clone> Clone for IssuerSwitchParticipantsClient<T>
impl<T: Clone> Clone for IssuerSwitchParticipantsClient<T>
source§fn clone(&self) -> IssuerSwitchParticipantsClient<T>
fn clone(&self) -> IssuerSwitchParticipantsClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for IssuerSwitchParticipantsClient<T>
impl<T> RefUnwindSafe for IssuerSwitchParticipantsClient<T>where
T: RefUnwindSafe,
impl<T> Send for IssuerSwitchParticipantsClient<T>where
T: Send,
impl<T> Sync for IssuerSwitchParticipantsClient<T>where
T: Sync,
impl<T> Unpin for IssuerSwitchParticipantsClient<T>where
T: Unpin,
impl<T> UnwindSafe for IssuerSwitchParticipantsClient<T>where
T: UnwindSafe,
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