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,

source

pub fn new(inner: T) -> Self

source

pub fn with_origin(inner: T, origin: Uri) -> Self

source

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,

source

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.

source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

source

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.

source

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:

  1. Invoke the [FetchParticipant][google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants.FetchParticipant] API to get the current value of the metadata field.
  2. Update the metadata map to add/remove key-value pairs from it.
  3. Update the metadata in the issuer switch using this method.
source

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.
source

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.
source

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 a B1 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 a B1 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 a B1 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>

source§

fn clone(&self) -> IssuerSwitchParticipantsClient<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for IssuerSwitchParticipantsClient<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more