StripeSplitPaymentRequest (src/payments.rs)

hyperswitch · crates/common_types/src/payments.rs · rust · Apache-2.0
payments

Defines structs for split payment requests and ledger items across multiple providers.

// 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.
//! Payment related types
use std::{
    collections::{HashMap, HashSet},
    num::NonZeroU8,
};

use common_enums::enums;
#[cfg(feature = "diesel")]
use common_utils::impl_to_sql_from_sql_json;
use common_utils::{
    consts, date_time, errors, events, ext_traits::OptionExt, pii, types::MinorUnit,
};
#[cfg(feature = "diesel")]
use diesel::{
    sql_types::{Jsonb, Text},
    AsExpression, FromSqlRow,
};
use error_stack::{Report, Result, ResultExt};
use euclid::frontend::{
    ast::Program,
    dir::{DirKeyKind, EuclidDirFilter},
};
use hyperswitch_masking::{ExposeInterface, PeekInterfa

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

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

Get a free API key