pub struct AccountManagerTransactionsClient<T> { /* private fields */ }
Expand description

Lists and exports transactions processed by the account manager.

Implementations§

source§

impl<T> AccountManagerTransactionsClient<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 ) -> AccountManagerTransactionsClient<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 export_account_manager_transactions( &mut self, request: impl IntoRequest<ExportAccountManagerTransactionsRequest> ) -> Result<Response<Operation>, Status>

Export transactions received within the specified time range as a file into a configured target location. The returned Operation type has the following method-specific fields:

  • metadata: [ExportAccountManagerTransactionsMetadata][google.cloud.paymentgateway.issuerswitch.accountmanager.v1.ExportAccountManagerTransactionsMetadata]
  • response: [ExportAccountManagerTransactionsResponse][google.cloud.paymentgateway.issuerswitch.accountmanager.v1.ExportAccountManagerTransactionsResponse]

The exported file will be in the standard CSV format where each row in the file represents a transaction. The file has the following fields in order:

  1. TransactionID
    • Min Length - 35 characters
    • Max Length - 35 characters
    • Description - Account manager transaction ID.
  2. TransactionType
    • Min Length - 22 characters
    • Max Length - 25 characters
    • Description - Type of the transaction. This will be one of TRANSACTION_TYPE_CREDIT, TRANSACTION_TYPE_CREDIT_REVERSAL, TRANSACTION_TYPE_DEBIT or TRANSACTION_TYPE_DEBIT_REVERSAL. When account manager is used for managing UPI Lite transactions, the CREDIT transactions would be for Lite account top-ups and DEBIT transactions could be either for a Lite account disablement where balance is transferred back the underlying bank account or for a Lite account financial transaction which happened offline.
  3. AccountID
    • Min Length - 35 characters
    • Max Length - 35 characters
    • Description - Account ID. When account manager is used for managing UPI Lite transactions, this column will contain the Lite Reference Number (LRN) of the UPI Lite account.
  4. State
    • Min Length - 6 characters
    • Max Length - 12 characters
    • Description - State of the transaction. This will be one of SUCCEEDED or FAILED.
  5. RRN
    • Min Length - 12 characters
    • Max Length - 12 characters
    • Description - Retrieval reference number associated with the transaction.
  6. PayerVPA
    • Min Length - 3 characters
    • Max Length - 255 characters
    • Description - Virtual Payment Address (VPA) of the payer.
  7. PayerIFSC
    • Min Length - 11 characters
    • Max Length - 11 characters
    • Description - IFSC of the payer’s bank account.
  8. PayerAccountNumber
    • Min Length - 1 characters
    • Max Length - 30 characters
    • Description - Payer’s bank account number.
  9. PayeeVPA
    • Min Length - 3 characters
    • Max Length - 255 characters
    • Description - Virtual Payment Address (VPA) of the payee.
  10. PayeeIFSC
    • Min Length - 11 characters
    • Max Length - 11 characters
    • Description - IFSC of the payee’s bank account.
  11. PayeeAccountNumber
    • Min Length - 1 characters
    • Max Length - 30 characters
    • Description - Payee’s bank account number.
  12. PayeeMCC
    • Min Length - 4 characters
    • Max Length - 4 characters
    • Description - Payee’s Merchant Category Code (MCC), only if the payee is a merchant.
  13. PayeeMerchantID
    • Min Length - 4 characters
    • Max Length - 4 characters
    • Description - Payee’s merchant ID, only if the payee is a merchant.
  14. Currency
    • Min Length - 3 characters
    • Max Length - 3 characters
    • Description - Currency of the amount involved in the transaction. The currency codes are defined in ISO 4217.
  15. Amount
    • Description - Amount involved in the transaction.
  16. Purpose
    • Min Length - 1 characters
    • Max Length - 4 characters
    • Description - Purpose code associated with the transaction. When account manager is used for managing UPI Lite transactions, this column will contain one of the values from 41 (Lite account creation with initial topup), 42 (Lite account topup), 43 (Lite account disablement with balance transfer) or 44 (Lite account online transaction).
  17. TransactionTime
    • Min Length - 20 characters
    • Max Length - 20 characters
    • Description - Timestamp (in UTC) indicating the timestamp at which the transaction took place. The format will be as per RFC-3339. Example : 2022-11-22T23:00:05Z
source

pub async fn list_account_manager_transactions( &mut self, request: impl IntoRequest<ListAccountManagerTransactionsRequest> ) -> Result<Response<ListAccountManagerTransactionsResponse>, Status>

List account manager transactions that satisfy specified filter criteria.

source

pub async fn batch_reconcile_account_manager_transactions( &mut self, request: impl IntoRequest<BatchReconcileAccountManagerTransactionsRequest> ) -> Result<Response<BatchReconcileAccountManagerTransactionsResponse>, Status>

Batch reconcile account manager transactions and return status for each transaction.

Trait Implementations§

source§

impl<T: Clone> Clone for AccountManagerTransactionsClient<T>

source§

fn clone(&self) -> AccountManagerTransactionsClient<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 AccountManagerTransactionsClient<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