Payout Method Additional Data (src/payout_method_utils.rs)

hyperswitch · crates/common_utils/src/payout_method_utils.rs · rust · Apache-2.0
payments, ui, security, database, fw:serde, tag:bank-transfer

Defines typed structs and enums capturing masked additional data for various payout methods (cards, bank transfers, wallets, decrypt data) used across HyperSwitch payouts.

// Source: https://github.com/juspay/hyperswitch | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
//! This module has common utilities for payout method data in HyperSwitch

#[cfg(feature = "diesel")]
use diesel::{sql_types::Jsonb, AsExpression, FromSqlRow};
use hyperswitch_masking::Secret;
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;

use crate::new_type::{
    MaskedBankAccount, MaskedBic, MaskedEmail, MaskedIban, MaskedPhoneNumber, MaskedPspToken,
    MaskedRoutingNumber, MaskedSortCode, MaskedValue,
};

/// Masked payout method details for storing in db
#[derive(Eq, PartialEq, Clone, Debug, Deserialize, Serialize, ToSchema)]
#[cfg_attr(feature = "diesel", derive(F

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key