id
stringlengths 20
153
| type
stringclasses 1
value | granularity
stringclasses 14
values | content
stringlengths 16
84.3k
| metadata
dict |
|---|---|---|---|---|
hyperswitch_struct_api_models_-882691757174798594
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/payouts.rs
pub struct PayoutEnabledPaymentMethodsInfo {
pub payment_method: common_enums::PaymentMethod,
pub payment_method_types_info: Vec<PaymentMethodTypeInfo>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "PayoutEnabledPaymentMethodsInfo",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_5077555020499415542
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/payouts.rs
pub struct PaymentMethodTypeInfo {
pub payment_method_type: common_enums::PaymentMethodType,
pub required_fields: Option<HashMap<String, RequiredFieldInfo>>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "PaymentMethodTypeInfo",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_7027407414866283460
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/payouts.rs
pub struct RequiredFieldsOverrideRequest {
pub billing: Option<payments::Address>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "RequiredFieldsOverrideRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_5142462506441795044
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/payouts.rs
pub struct PayoutLinkStatusDetails {
pub payout_link_id: String,
pub payout_id: id_type::PayoutId,
pub customer_id: id_type::CustomerId,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub session_expiry: PrimitiveDateTime,
pub return_url: Option<url::Url>,
pub status: api_enums::PayoutStatus,
pub error_code: Option<UnifiedCode>,
pub error_message: Option<UnifiedMessage>,
#[serde(flatten)]
pub ui_config: link_utils::GenericLinkUiConfigFormData,
pub test_mode: bool,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "PayoutLinkStatusDetails",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_1240802539153426810
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/cards_info.rs
pub struct CardsInfoRequestParams {
#[schema(example = "pay_OSERgeV9qAy7tlK7aKpc_secret_TuDUoh11Msxh12sXn3Yp")]
pub client_secret: Option<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CardsInfoRequestParams",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-2997657170297518935
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/cards_info.rs
pub struct CardsInfoRequest {
pub client_secret: Option<String>,
pub card_iin: String,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CardsInfoRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-4902508929924150017
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/cards_info.rs
pub struct CardInfoResponse {
#[schema(example = "374431")]
pub card_iin: String,
#[schema(example = "AMEX")]
pub card_issuer: Option<String>,
#[schema(example = "AMEX")]
pub card_network: Option<String>,
#[schema(example = "CREDIT")]
pub card_type: Option<String>,
#[schema(example = "CLASSIC")]
pub card_sub_type: Option<String>,
#[schema(example = "INDIA")]
pub card_issuing_country: Option<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CardInfoResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-1596652684748490017
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/cards_info.rs
pub struct CardInfoMigrateResponseRecord {
pub card_iin: Option<String>,
pub card_issuer: Option<String>,
pub card_network: Option<String>,
pub card_type: Option<String>,
pub card_sub_type: Option<String>,
pub card_issuing_country: Option<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CardInfoMigrateResponseRecord",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-5839235796336958175
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/cards_info.rs
pub struct CardInfoCreateRequest {
pub card_iin: String,
pub card_issuer: Option<String>,
pub card_network: Option<enums::CardNetwork>,
pub card_type: Option<String>,
pub card_subtype: Option<String>,
pub card_issuing_country: Option<String>,
pub bank_code_id: Option<String>,
pub bank_code: Option<String>,
pub country_code: Option<String>,
pub last_updated_provider: Option<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CardInfoCreateRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-6598323958954939817
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/cards_info.rs
pub struct CardInfoUpdateRequest {
pub card_iin: String,
pub card_issuer: Option<String>,
pub card_network: Option<enums::CardNetwork>,
pub card_type: Option<String>,
pub card_subtype: Option<String>,
pub card_issuing_country: Option<String>,
pub bank_code_id: Option<String>,
pub bank_code: Option<String>,
pub country_code: Option<String>,
pub last_updated_provider: Option<String>,
pub line_number: Option<i64>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CardInfoUpdateRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-1647530527938689655
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/cards_info.rs
pub struct CardInfoMigrationResponse {
pub line_number: Option<i64>,
pub card_iin: String,
pub card_issuer: Option<String>,
pub card_network: Option<String>,
pub card_type: Option<String>,
pub card_sub_type: Option<String>,
pub card_issuing_country: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub migration_error: Option<String>,
pub migration_status: CardInfoMigrationStatus,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CardInfoMigrationResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-5642461500603721236
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/revenue_recovery_data_backfill.rs
pub struct RevenueRecoveryBackfillRequest {
pub bin_number: Option<Secret<String>>,
pub customer_id_resp: String,
pub connector_payment_id: Option<String>,
pub token: Option<Secret<String>>,
pub exp_date: Option<Secret<String>>,
pub card_network: Option<CardNetwork>,
pub payment_method_sub_type: Option<PaymentMethodType>,
pub clean_bank_name: Option<String>,
pub country_name: Option<String>,
pub daily_retry_history: Option<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "RevenueRecoveryBackfillRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-2341697503661733252
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/revenue_recovery_data_backfill.rs
pub struct UnlockStatusResponse {
pub unlocked: bool,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "UnlockStatusResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_7483139626602034226
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/revenue_recovery_data_backfill.rs
pub struct RevenueRecoveryDataBackfillResponse {
pub processed_records: usize,
pub failed_records: usize,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "RevenueRecoveryDataBackfillResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-6050812250872927452
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/revenue_recovery_data_backfill.rs
pub struct CsvParsingResult {
pub records: Vec<RevenueRecoveryBackfillRequest>,
pub failed_records: Vec<CsvParsingError>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CsvParsingResult",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-6255029185553257495
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/revenue_recovery_data_backfill.rs
pub struct CsvParsingError {
pub row_number: usize,
pub error: String,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CsvParsingError",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_3156336954769280431
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/revenue_recovery_data_backfill.rs
pub struct ComprehensiveCardData {
pub card_type: Option<String>,
pub card_exp_month: Option<Secret<String>>,
pub card_exp_year: Option<Secret<String>>,
pub card_network: Option<CardNetwork>,
pub card_issuer: Option<String>,
pub card_issuing_country: Option<String>,
pub daily_retry_history: Option<HashMap<Date, i32>>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ComprehensiveCardData",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_4208716006699689489
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/revenue_recovery_data_backfill.rs
pub struct BackfillQuery {
pub cutoff_time: Option<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "BackfillQuery",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_6103442572340662721
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/revenue_recovery_data_backfill.rs
pub struct GetRedisDataQuery {
pub key_type: RedisKeyType,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "GetRedisDataQuery",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-8295207182671377719
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/revenue_recovery_data_backfill.rs
pub struct RedisDataResponse {
pub exists: bool,
pub ttl_seconds: i64,
pub data: Option<serde_json::Value>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "RedisDataResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-3634936756419830364
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/revenue_recovery_data_backfill.rs
pub struct UpdateTokenStatusRequest {
pub connector_customer_id: String,
pub payment_processor_token: Secret<String, PhoneNumberStrategy>,
pub scheduled_at: Option<ScheduledAtUpdate>,
pub is_hard_decline: Option<bool>,
pub error_code: Option<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "UpdateTokenStatusRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-1043232336433766557
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/revenue_recovery_data_backfill.rs
pub struct UpdateTokenStatusResponse {
pub updated: bool,
pub message: String,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "UpdateTokenStatusResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_1380001989392634478
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/revenue_recovery_data_backfill.rs
pub struct RevenueRecoveryDataBackfillForm {
#[multipart(rename = "file")]
pub file: TempFile,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "RevenueRecoveryDataBackfillForm",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-1666328473585980867
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/surcharge_decision_configs.rs
pub struct SurchargeDetailsOutput {
pub surcharge: SurchargeOutput,
pub tax_on_surcharge: Option<Percentage<SURCHARGE_PERCENTAGE_PRECISION_LENGTH>>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "SurchargeDetailsOutput",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-822352089895717271
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/surcharge_decision_configs.rs
pub struct SurchargeDecisionConfigs {
pub surcharge_details: Option<SurchargeDetailsOutput>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "SurchargeDecisionConfigs",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_3286902155446031401
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/surcharge_decision_configs.rs
pub struct SurchargeDecisionManagerRecord {
pub name: String,
pub merchant_surcharge_configs: MerchantSurchargeConfigs,
pub algorithm: Program<SurchargeDecisionConfigs>,
pub created_at: i64,
pub modified_at: i64,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "SurchargeDecisionManagerRecord",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-122557134380152921
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/surcharge_decision_configs.rs
pub struct SurchargeDecisionConfigReq {
pub name: Option<String>,
pub merchant_surcharge_configs: MerchantSurchargeConfigs,
pub algorithm: Option<Program<SurchargeDecisionConfigs>>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "SurchargeDecisionConfigReq",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_1977328967183344786
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/surcharge_decision_configs.rs
pub struct MerchantSurchargeConfigs {
pub show_surcharge_breakup_screen: Option<bool>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "MerchantSurchargeConfigs",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_1400195797499692979
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/payments.rs
pub struct BankData {
pub payment_method_type: api_enums::PaymentMethodType,
pub code_information: Vec<BankCodeInformation>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "BankData",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_6471087607720245695
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/payments.rs
pub struct BankCodeInformation {
pub bank_name: common_enums::BankNames,
pub connector_codes: Vec<ConnectorCode>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "BankCodeInformation",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-5137074634399247632
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/payments.rs
pub struct ConnectorCode {
pub connector: api_enums::Connector,
pub code: String,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ConnectorCode",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-3117917946190852567
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/payments.rs
pub struct BankCodeResponse {
#[schema(value_type = Vec<BankNames>)]
pub bank_name: Vec<common_enums::BankNames>,
pub eligible_connectors: Vec<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "BankCodeResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_5710289965688879864
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/payments.rs
pub struct CustomerDetails {
/// The identifier for the customer.
#[schema(value_type = String, max_length = 64, min_length = 1, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")]
pub id: id_type::CustomerId,
/// The customer's name
#[schema(max_length = 255, value_type = Option<String>, example = "John Doe")]
pub name: Option<Secret<String>>,
/// The customer's email address
#[schema(max_length = 255, value_type = Option<String>, example = "johntest@test.com")]
pub email: Option<Email>,
/// The customer's phone number
#[schema(value_type = Option<String>, max_length = 10, example = "9123456789")]
pub phone: Option<Secret<String>>,
/// The country code for the customer's phone number
#[schema(max_length = 2, example = "+1")]
pub phone_country_code: Option<String>,
/// The tax registration identifier of the customer.
#[schema(value_type=Option<String>,max_length = 255)]
pub tax_registration_id: Option<Secret<String>>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CustomerDetails",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_5048908789175219064
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/payments.rs
pub struct CustomerDetailsResponse {
/// The identifier for the customer.
#[schema(value_type = Option<String>, max_length = 64, min_length = 1, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")]
pub id: Option<id_type::CustomerId>,
/// The customer's name
#[schema(max_length = 255, value_type = Option<String>, example = "John Doe")]
pub name: Option<Secret<String>>,
/// The customer's email address
#[schema(max_length = 255, value_type = Option<String>, example = "johntest@test.com")]
pub email: Option<Email>,
/// The customer's phone number
#[schema(value_type = Option<String>, max_length = 10, example = "9123456789")]
pub phone: Option<Secret<String>>,
/// The country code for the customer's phone number
#[schema(max_length = 2, example = "+1")]
pub phone_country_code: Option<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CustomerDetailsResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_5048908789175219064
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/payments.rs
pub struct CustomerDetailsResponse {
/// The customer's name
#[schema(max_length = 255, value_type = Option<String>, example = "John Doe")]
pub name: Option<Secret<String>>,
/// The customer's email address
#[schema(max_length = 255, value_type = Option<String>, example = "johntest@test.com")]
pub email: Option<Email>,
/// The customer's phone number
#[schema(value_type = Option<String>, max_length = 10, example = "9123456789")]
pub phone: Option<Secret<String>>,
/// The country code for the customer's phone number
#[schema(max_length = 2, example = "+1")]
pub phone_country_code: Option<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CustomerDetailsResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_8029149162693192557
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/payments.rs
pub struct PaymentsCreateIntentRequest {
/// The amount details for the payment
pub amount_details: AmountDetails,
/// Unique identifier for the payment. This ensures idempotency for multiple payments
/// that have been done by a single merchant.
#[schema(
value_type = Option<String>,
min_length = 30,
max_length = 30,
example = "pay_mbabizu24mvu3mela5njyhpit4"
)]
pub merchant_reference_id: Option<id_type::PaymentReferenceId>,
/// The routing algorithm id to be used for the payment
#[schema(value_type = Option<String>)]
pub routing_algorithm_id: Option<id_type::RoutingId>,
#[schema(value_type = Option<CaptureMethod>, example = "automatic")]
pub capture_method: Option<api_enums::CaptureMethod>,
#[schema(value_type = Option<AuthenticationType>, example = "no_three_ds", default = "no_three_ds")]
pub authentication_type: Option<api_enums::AuthenticationType>,
/// The billing details of the payment. This address will be used for invoicing.
pub billing: Option<Address>,
/// The shipping address for the payment
pub shipping: Option<Address>,
/// The identifier for the customer
#[schema(
min_length = 32,
max_length = 64,
example = "12345_cus_01926c58bc6e77c09e809964e72af8c8",
value_type = String
)]
pub customer_id: Option<id_type::GlobalCustomerId>,
/// Set to `present` to indicate that the customer is in your checkout flow during this payment, and therefore is able to authenticate. This parameter should be `absent` when merchant's doing merchant initiated payments and customer is not present while doing the payment.
#[schema(example = "present", value_type = Option<PresenceOfCustomerDuringPayment>)]
pub customer_present: Option<common_enums::PresenceOfCustomerDuringPayment>,
/// A description for the payment
#[schema(example = "It's my first payment request", value_type = Option<String>)]
pub description: Option<common_utils::types::Description>,
/// The URL to which you want the user to be redirected after the completion of the payment operation
#[schema(value_type = Option<String>, example = "https://hyperswitch.io")]
pub return_url: Option<common_utils::types::Url>,
#[schema(value_type = Option<FutureUsage>, example = "off_session")]
pub setup_future_usage: Option<api_enums::FutureUsage>,
/// Apply MIT exemption for a payment
#[schema(value_type = Option<MitExemptionRequest>)]
pub apply_mit_exemption: Option<common_enums::MitExemptionRequest>,
/// For non-card charges, you can use this value as the complete description that appears on your customers’ statements. Must contain at least one letter, maximum 22 characters.
#[schema(max_length = 22, example = "Hyperswitch Router", value_type = Option<String>)]
pub statement_descriptor: Option<common_utils::types::StatementDescriptor>,
/// Use this object to capture the details about the different products for which the payment is being made. The sum of amount across different products here should be equal to the overall payment amount
#[schema(value_type = Option<Vec<OrderDetailsWithAmount>>, example = r#"[{
"product_name": "Apple iPhone 16",
"quantity": 1,
"amount" : 69000
"product_img_link" : "https://dummy-img-link.com"
}]"#)]
pub order_details: Option<Vec<OrderDetailsWithAmount>>,
/// Use this parameter to restrict the Payment Method Types to show for a given PaymentIntent
#[schema(value_type = Option<Vec<PaymentMethodType>>)]
pub allowed_payment_method_types: Option<Vec<api_enums::PaymentMethodType>>,
/// Metadata is useful for storing additional, unstructured information on an object.
#[schema(value_type = Option<Object>, example = r#"{ "udf1": "some-value", "udf2": "some-value" }"#)]
pub metadata: Option<pii::SecretSerdeValue>,
/// Some connectors like Apple pay, Airwallex and Noon might require some additional information, find specific details in the child attributes below.
pub connector_metadata: Option<ConnectorMetadata>,
/// Additional data that might be required by hyperswitch based on the requested features by the merchants.
pub feature_metadata: Option<FeatureMetadata>,
/// Whether to generate the payment link for this payment or not (if applicable)
#[schema(value_type = Option<EnablePaymentLinkRequest>)]
pub payment_link_enabled: Option<common_enums::EnablePaymentLinkRequest>,
/// Configure a custom payment link for the particular payment
#[schema(value_type = Option<PaymentLinkConfigRequest>)]
pub payment_link_config: Option<admin::PaymentLinkConfigRequest>,
///Request an incremental authorization, i.e., increase the authorized amount on a confirmed payment before you capture it.
#[schema(value_type = Option<RequestIncrementalAuthorization>)]
pub request_incremental_authorization: Option<common_enums::RequestIncrementalAuthorization>,
///Will be used to expire client secret after certain amount of time to be supplied in seconds, if not sent it will be taken from profile config
///(900) for 15 mins
#[schema(example = 900)]
pub session_expiry: Option<u32>,
/// Additional data related to some frm(Fraud Risk Management) connectors
#[schema(value_type = Option<Object>, example = r#"{ "coverage_request" : "fraud", "fulfillment_method" : "delivery" }"#)]
pub frm_metadata: Option<pii::SecretSerdeValue>,
/// Whether to perform external authentication (if applicable)
#[schema(value_type = Option<External3dsAuthenticationRequest>)]
pub request_external_three_ds_authentication:
Option<common_enums::External3dsAuthenticationRequest>,
/// Indicates if 3ds challenge is forced
pub force_3ds_challenge: Option<bool>,
/// Merchant connector details used to make payments.
#[schema(value_type = Option<MerchantConnectorAuthDetails>)]
pub merchant_connector_details: Option<common_types::domain::MerchantConnectorAuthDetails>,
/// Allow partial authorization for this payment
#[schema(value_type = Option<bool>, default = false)]
pub enable_partial_authorization: Option<primitive_wrappers::EnablePartialAuthorizationBool>,
}
#
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "PaymentsCreateIntentRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-1303473674577656864
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/conditional_configs.rs
pub struct DecisionManagerRecord {
pub name: String,
pub program: Program<common_types::payments::ConditionalConfigs>,
pub created_at: i64,
pub modified_at: i64,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "DecisionManagerRecord",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-2365922039883234973
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/conditional_configs.rs
pub struct ConditionalConfigReq {
pub name: Option<String>,
pub algorithm: Option<Program<common_types::payments::ConditionalConfigs>>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ConditionalConfigReq",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_1279506800473197591
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/conditional_configs.rs
pub struct DecisionManagerRequest {
pub name: Option<String>,
pub program: Option<Program<common_types::payments::ConditionalConfigs>>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "DecisionManagerRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_1279506800473197591
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/conditional_configs.rs
pub struct DecisionManagerRequest {
pub name: String,
pub program: Program<common_types::payments::ConditionalConfigs>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "DecisionManagerRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-2818826822338481069
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/disputes.rs
pub struct DisputeResponse {
/// The identifier for dispute
pub dispute_id: String,
/// The identifier for payment_intent
#[schema(value_type = String)]
pub payment_id: common_utils::id_type::PaymentId,
/// The identifier for payment_attempt
pub attempt_id: String,
/// The dispute amount
pub amount: StringMinorUnit,
/// The three-letter ISO currency code
#[schema(value_type = Currency)]
pub currency: Currency,
/// Stage of the dispute
pub dispute_stage: DisputeStage,
/// Status of the dispute
pub dispute_status: DisputeStatus,
/// connector to which dispute is associated with
pub connector: String,
/// Status of the dispute sent by connector
pub connector_status: String,
/// Dispute id sent by connector
pub connector_dispute_id: String,
/// Reason of dispute sent by connector
pub connector_reason: Option<String>,
/// Reason code of dispute sent by connector
pub connector_reason_code: Option<String>,
/// Evidence deadline of dispute sent by connector
#[serde(with = "common_utils::custom_serde::iso8601::option")]
pub challenge_required_by: Option<PrimitiveDateTime>,
/// Dispute created time sent by connector
#[serde(with = "common_utils::custom_serde::iso8601::option")]
pub connector_created_at: Option<PrimitiveDateTime>,
/// Dispute updated time sent by connector
#[serde(with = "common_utils::custom_serde::iso8601::option")]
pub connector_updated_at: Option<PrimitiveDateTime>,
/// Time at which dispute is received
#[serde(with = "common_utils::custom_serde::iso8601")]
pub created_at: PrimitiveDateTime,
/// The `profile_id` associated with the dispute
#[schema(value_type = Option<String>)]
pub profile_id: Option<common_utils::id_type::ProfileId>,
/// The `merchant_connector_id` of the connector / processor through which the dispute was processed
#[schema(value_type = Option<String>)]
pub merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "DisputeResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_7654505576649754370
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/disputes.rs
pub struct DisputeResponsePaymentsRetrieve {
/// The identifier for dispute
pub dispute_id: String,
/// Stage of the dispute
pub dispute_stage: DisputeStage,
/// Status of the dispute
pub dispute_status: DisputeStatus,
/// Status of the dispute sent by connector
pub connector_status: String,
/// Dispute id sent by connector
pub connector_dispute_id: String,
/// Reason of dispute sent by connector
pub connector_reason: Option<String>,
/// Reason code of dispute sent by connector
pub connector_reason_code: Option<String>,
/// Evidence deadline of dispute sent by connector
#[serde(with = "common_utils::custom_serde::iso8601::option")]
pub challenge_required_by: Option<PrimitiveDateTime>,
/// Dispute created time sent by connector
#[serde(with = "common_utils::custom_serde::iso8601::option")]
pub connector_created_at: Option<PrimitiveDateTime>,
/// Dispute updated time sent by connector
#[serde(with = "common_utils::custom_serde::iso8601::option")]
pub connector_updated_at: Option<PrimitiveDateTime>,
/// Time at which dispute is received
#[serde(with = "common_utils::custom_serde::iso8601")]
pub created_at: PrimitiveDateTime,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "DisputeResponsePaymentsRetrieve",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_2329735512225175676
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/disputes.rs
pub struct DisputeEvidenceBlock {
/// Evidence type
pub evidence_type: EvidenceType,
/// File metadata
pub file_metadata_response: files::FileMetadataResponse,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "DisputeEvidenceBlock",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_4153268434786061211
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/disputes.rs
pub struct DisputeListGetConstraints {
/// The identifier for dispute
pub dispute_id: Option<String>,
/// The payment_id against which dispute is raised
pub payment_id: Option<common_utils::id_type::PaymentId>,
/// Limit on the number of objects to return
pub limit: Option<u32>,
/// The starting point within a list of object
pub offset: Option<u32>,
/// The identifier for business profile
#[schema(value_type = Option<String>)]
pub profile_id: Option<common_utils::id_type::ProfileId>,
/// The comma separated list of status of the disputes
#[serde(default, deserialize_with = "parse_comma_separated")]
pub dispute_status: Option<Vec<DisputeStatus>>,
/// The comma separated list of stages of the disputes
#[serde(default, deserialize_with = "parse_comma_separated")]
pub dispute_stage: Option<Vec<DisputeStage>>,
/// Reason for the dispute
pub reason: Option<String>,
/// The comma separated list of connectors linked to disputes
#[serde(default, deserialize_with = "parse_comma_separated")]
pub connector: Option<Vec<String>>,
/// The comma separated list of currencies of the disputes
#[serde(default, deserialize_with = "parse_comma_separated")]
pub currency: Option<Vec<Currency>>,
/// The merchant connector id to filter the disputes list
pub merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>,
/// The time range for which objects are needed. TimeRange has two fields start_time and end_time from which objects can be filtered as per required scenarios (created_at, time less than, greater than etc).
#[serde(flatten)]
pub time_range: Option<TimeRange>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "DisputeListGetConstraints",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-422684577872309725
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/disputes.rs
pub struct DisputeListFilters {
/// The map of available connector filters, where the key is the connector name and the value is a list of MerchantConnectorInfo instances
pub connector: HashMap<String, Vec<MerchantConnectorInfo>>,
/// The list of available currency filters
pub currency: Vec<Currency>,
/// The list of available dispute status filters
pub dispute_status: Vec<DisputeStatus>,
/// The list of available dispute stage filters
pub dispute_stage: Vec<DisputeStage>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "DisputeListFilters",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-3319346498000457010
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/disputes.rs
pub struct SubmitEvidenceRequest {
///Dispute Id
pub dispute_id: String,
/// Logs showing the usage of service by customer
pub access_activity_log: Option<String>,
/// Billing address of the customer
pub billing_address: Option<String>,
/// File Id of cancellation policy
pub cancellation_policy: Option<String>,
/// Details of showing cancellation policy to customer before purchase
pub cancellation_policy_disclosure: Option<String>,
/// Details telling why customer's subscription was not cancelled
pub cancellation_rebuttal: Option<String>,
/// File Id of customer communication
pub customer_communication: Option<String>,
/// Customer email address
pub customer_email_address: Option<String>,
/// Customer name
pub customer_name: Option<String>,
/// IP address of the customer
pub customer_purchase_ip: Option<String>,
/// Fild Id of customer signature
pub customer_signature: Option<String>,
/// Product Description
pub product_description: Option<String>,
/// File Id of receipt
pub receipt: Option<String>,
/// File Id of refund policy
pub refund_policy: Option<String>,
/// Details of showing refund policy to customer before purchase
pub refund_policy_disclosure: Option<String>,
/// Details why customer is not entitled to refund
pub refund_refusal_explanation: Option<String>,
/// Customer service date
pub service_date: Option<String>,
/// File Id service documentation
pub service_documentation: Option<String>,
/// Shipping address of the customer
pub shipping_address: Option<String>,
/// Delivery service that shipped the product
pub shipping_carrier: Option<String>,
/// Shipping date
pub shipping_date: Option<String>,
/// File Id shipping documentation
pub shipping_documentation: Option<String>,
/// Tracking number of shipped product
pub shipping_tracking_number: Option<String>,
/// File Id showing two distinct transactions when customer claims a payment was charged twice
pub invoice_showing_distinct_transactions: Option<String>,
/// File Id of recurring transaction agreement
pub recurring_transaction_agreement: Option<String>,
/// Any additional supporting file
pub uncategorized_file: Option<String>,
/// Any additional evidence statements
pub uncategorized_text: Option<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "SubmitEvidenceRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-8393145517379225671
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/disputes.rs
pub struct DeleteEvidenceRequest {
/// Id of the dispute
pub dispute_id: String,
/// Evidence Type to be deleted
pub evidence_type: EvidenceType,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "DeleteEvidenceRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-8067881643693473686
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/disputes.rs
pub struct DisputeRetrieveRequest {
/// The identifier for dispute
pub dispute_id: String,
/// Decider to enable or disable the connector call for dispute retrieve request
pub force_sync: Option<bool>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "DisputeRetrieveRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-4456731615599796452
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/disputes.rs
pub struct DisputesAggregateResponse {
/// Different status of disputes with their count
pub status_with_count: HashMap<DisputeStatus, i64>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "DisputesAggregateResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-6511243398363593167
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/disputes.rs
pub struct DisputeRetrieveBody {
/// Decider to enable or disable the connector call for dispute retrieve request
pub force_sync: Option<bool>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "DisputeRetrieveBody",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-2173173561390231587
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct CreateSubscriptionRequest {
/// Merchant specific Unique identifier.
pub merchant_reference_id: Option<String>,
/// Identifier for the associated item_price_id for the subscription.
pub item_price_id: String,
/// Identifier for the subscription plan.
pub plan_id: Option<String>,
/// Optional coupon code applied to the subscription.
pub coupon_code: Option<String>,
/// customer ID associated with this subscription.
pub customer_id: CustomerId,
/// payment details for the subscription.
pub payment_details: CreateSubscriptionPaymentDetails,
/// billing address for the subscription.
pub billing: Option<Address>,
/// shipping address for the subscription.
pub shipping: Option<Address>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CreateSubscriptionRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-663351266581956118
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct SubscriptionResponse {
/// Unique identifier for the subscription.
pub id: SubscriptionId,
/// Merchant specific Unique identifier.
pub merchant_reference_id: Option<String>,
/// Current status of the subscription.
pub status: SubscriptionStatus,
/// Identifier for the associated subscription plan.
pub plan_id: Option<String>,
/// Identifier for the associated item_price_id for the subscription.
pub item_price_id: Option<String>,
/// Associated profile ID.
pub profile_id: ProfileId,
#[schema(value_type = Option<String>)]
/// This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK
pub client_secret: Option<Secret<String>>,
/// Merchant identifier owning this subscription.
pub merchant_id: MerchantId,
/// Optional coupon code applied to this subscription.
pub coupon_code: Option<String>,
/// Optional customer ID associated with this subscription.
pub customer_id: CustomerId,
/// Payment details for the invoice.
pub payment: Option<PaymentResponseData>,
/// Invoice Details for the subscription.
pub invoice: Option<Invoice>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "SubscriptionResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-6581653190129779612
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct GetPlansResponse {
pub plan_id: String,
pub name: String,
pub description: Option<String>,
pub price_id: Vec<SubscriptionPlanPrices>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "GetPlansResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-4545398160632298385
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct SubscriptionPlanPrices {
pub price_id: String,
pub plan_id: Option<String>,
pub amount: MinorUnit,
pub currency: Currency,
pub interval: PeriodUnit,
pub interval_count: i64,
pub trial_period: Option<i64>,
pub trial_period_unit: Option<PeriodUnit>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "SubscriptionPlanPrices",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-6023843586621278242
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct ClientSecret(String);
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ClientSecret",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_6354986986155269711
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct GetPlansQuery {
#[schema(value_type = Option<String>)]
/// This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK
pub client_secret: Option<ClientSecret>,
pub limit: Option<u32>,
pub offset: Option<u32>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "GetPlansQuery",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_5244902003155914486
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct ConfirmSubscriptionPaymentDetails {
pub shipping: Option<Address>,
pub billing: Option<Address>,
pub payment_method: PaymentMethod,
pub payment_method_type: Option<PaymentMethodType>,
pub payment_method_data: PaymentMethodDataRequest,
pub customer_acceptance: Option<CustomerAcceptance>,
pub payment_type: Option<PaymentType>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ConfirmSubscriptionPaymentDetails",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-4858735258567212424
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct CreateSubscriptionPaymentDetails {
/// The url to which user must be redirected to after completion of the purchase
#[schema(value_type = String)]
pub return_url: Url,
pub setup_future_usage: Option<FutureUsage>,
pub capture_method: Option<CaptureMethod>,
pub authentication_type: Option<AuthenticationType>,
pub payment_type: Option<PaymentType>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CreateSubscriptionPaymentDetails",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_5359658461685616047
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct PaymentDetails {
pub payment_method: Option<PaymentMethod>,
pub payment_method_type: Option<PaymentMethodType>,
pub payment_method_data: Option<PaymentMethodDataRequest>,
pub setup_future_usage: Option<FutureUsage>,
pub customer_acceptance: Option<CustomerAcceptance>,
/// The url to which user must be redirected to after completion of the purchase
#[schema(value_type = Option<String>)]
pub return_url: Option<Url>,
pub capture_method: Option<CaptureMethod>,
pub authentication_type: Option<AuthenticationType>,
pub payment_type: Option<PaymentType>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "PaymentDetails",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_4921630468416669551
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct CreatePaymentsRequestData {
pub amount: MinorUnit,
pub currency: Currency,
pub customer_id: Option<CustomerId>,
pub billing: Option<Address>,
pub shipping: Option<Address>,
pub profile_id: Option<ProfileId>,
pub setup_future_usage: Option<FutureUsage>,
/// The url to which user must be redirected to after completion of the purchase
#[schema(value_type = Option<String>)]
pub return_url: Option<Url>,
pub capture_method: Option<CaptureMethod>,
pub authentication_type: Option<AuthenticationType>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CreatePaymentsRequestData",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_8849800940934162325
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct ConfirmPaymentsRequestData {
pub billing: Option<Address>,
pub shipping: Option<Address>,
pub profile_id: Option<ProfileId>,
pub payment_method: PaymentMethod,
pub payment_method_type: Option<PaymentMethodType>,
pub payment_method_data: PaymentMethodDataRequest,
pub customer_acceptance: Option<CustomerAcceptance>,
pub payment_type: Option<PaymentType>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ConfirmPaymentsRequestData",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_5824667991785810039
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct CreateAndConfirmPaymentsRequestData {
pub amount: MinorUnit,
pub currency: Currency,
pub customer_id: Option<CustomerId>,
pub confirm: bool,
pub billing: Option<Address>,
pub shipping: Option<Address>,
pub profile_id: Option<ProfileId>,
pub setup_future_usage: Option<FutureUsage>,
/// The url to which user must be redirected to after completion of the purchase
#[schema(value_type = Option<String>)]
pub return_url: Option<Url>,
pub capture_method: Option<CaptureMethod>,
pub authentication_type: Option<AuthenticationType>,
pub payment_method: Option<PaymentMethod>,
pub payment_method_type: Option<PaymentMethodType>,
pub payment_method_data: Option<PaymentMethodDataRequest>,
pub customer_acceptance: Option<CustomerAcceptance>,
pub payment_type: Option<PaymentType>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CreateAndConfirmPaymentsRequestData",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_6896092387190676597
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct PaymentResponseData {
pub payment_id: PaymentId,
pub status: IntentStatus,
pub amount: MinorUnit,
pub currency: Currency,
pub profile_id: Option<ProfileId>,
pub connector: Option<String>,
/// Identifier for Payment Method
#[schema(value_type = Option<String>, example = "pm_01926c58bc6e77c09e809964e72af8c8")]
pub payment_method_id: Option<Secret<String>>,
/// The url to which user must be redirected to after completion of the purchase
#[schema(value_type = Option<String>)]
pub return_url: Option<Url>,
pub next_action: Option<NextActionData>,
pub payment_experience: Option<PaymentExperience>,
pub error_code: Option<String>,
pub error_message: Option<String>,
pub payment_method_type: Option<PaymentMethodType>,
#[schema(value_type = Option<String>)]
/// This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK
pub client_secret: Option<Secret<String>>,
pub billing: Option<Address>,
pub shipping: Option<Address>,
pub payment_type: Option<PaymentType>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "PaymentResponseData",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_7250527490903101998
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct CreateMitPaymentRequestData {
pub amount: MinorUnit,
pub currency: Currency,
pub confirm: bool,
pub customer_id: Option<CustomerId>,
pub recurring_details: Option<RecurringDetails>,
pub off_session: Option<bool>,
pub profile_id: Option<ProfileId>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CreateMitPaymentRequestData",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_4726269943326583756
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct ConfirmSubscriptionRequest {
#[schema(value_type = Option<String>)]
/// This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK
pub client_secret: Option<ClientSecret>,
/// Payment details for the invoice.
pub payment_details: ConfirmSubscriptionPaymentDetails,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ConfirmSubscriptionRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_3843516073590903847
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct CreateAndConfirmSubscriptionRequest {
/// Identifier for the associated plan_id.
pub plan_id: Option<String>,
/// Identifier for the associated item_price_id for the subscription.
pub item_price_id: String,
/// Identifier for the coupon code for the subscription.
pub coupon_code: Option<String>,
/// Identifier for customer.
pub customer_id: CustomerId,
/// Billing address for the subscription.
pub billing: Option<Address>,
/// Shipping address for the subscription.
pub shipping: Option<Address>,
/// Payment details for the invoice.
pub payment_details: PaymentDetails,
/// Merchant specific Unique identifier.
pub merchant_reference_id: Option<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CreateAndConfirmSubscriptionRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-3734910443367880075
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct ConfirmSubscriptionResponse {
/// Unique identifier for the subscription.
pub id: SubscriptionId,
/// Merchant specific Unique identifier.
pub merchant_reference_id: Option<String>,
/// Current status of the subscription.
pub status: SubscriptionStatus,
/// Identifier for the associated subscription plan.
pub plan_id: Option<String>,
/// Identifier for the associated item_price_id for the subscription.
pub item_price_id: Option<String>,
/// Optional coupon code applied to this subscription.
pub coupon: Option<String>,
/// Associated profile ID.
pub profile_id: ProfileId,
/// Payment details for the invoice.
pub payment: Option<PaymentResponseData>,
/// Customer ID associated with this subscription.
pub customer_id: Option<CustomerId>,
/// Invoice Details for the subscription.
pub invoice: Option<Invoice>,
/// Billing Processor subscription ID.
pub billing_processor_subscription_id: Option<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ConfirmSubscriptionResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-5925699648724492173
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct Invoice {
/// Unique identifier for the invoice.
pub id: InvoiceId,
/// Unique identifier for the subscription.
pub subscription_id: SubscriptionId,
/// Identifier for the merchant.
pub merchant_id: MerchantId,
/// Identifier for the profile.
pub profile_id: ProfileId,
/// Identifier for the merchant connector account.
pub merchant_connector_id: MerchantConnectorAccountId,
/// Identifier for the Payment.
pub payment_intent_id: Option<PaymentId>,
/// Identifier for Payment Method
#[schema(value_type = Option<String>, example = "pm_01926c58bc6e77c09e809964e72af8c8")]
pub payment_method_id: Option<String>,
/// Identifier for the Customer.
pub customer_id: CustomerId,
/// Invoice amount.
pub amount: MinorUnit,
/// Currency for the invoice payment.
pub currency: Currency,
/// Status of the invoice.
pub status: InvoiceStatus,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "Invoice",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-6255004410222491773
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct UpdateSubscriptionRequest {
/// Identifier for the associated plan_id.
pub plan_id: String,
/// Identifier for the associated item_price_id for the subscription.
pub item_price_id: String,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "UpdateSubscriptionRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_5959608870287209427
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct EstimateSubscriptionQuery {
/// Identifier for the associated subscription plan.
pub plan_id: Option<String>,
/// Identifier for the associated item_price_id for the subscription.
pub item_price_id: String,
/// Identifier for the coupon code for the subscription.
pub coupon_code: Option<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "EstimateSubscriptionQuery",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-4345443497644748524
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct EstimateSubscriptionResponse {
/// Estimated amount to be charged for the invoice.
pub amount: MinorUnit,
/// Currency for the amount.
pub currency: Currency,
/// Identifier for the associated plan_id.
pub plan_id: Option<String>,
/// Identifier for the associated item_price_id for the subscription.
pub item_price_id: Option<String>,
/// Identifier for the coupon code for the subscription.
pub coupon_code: Option<String>,
/// Identifier for customer.
pub customer_id: Option<CustomerId>,
pub line_items: Vec<SubscriptionLineItem>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "EstimateSubscriptionResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-7356320811642094546
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/subscription.rs
pub struct SubscriptionLineItem {
/// Unique identifier for the line item.
pub item_id: String,
/// Type of the line item.
pub item_type: String,
/// Description of the line item.
pub description: String,
/// Amount for the line item.
pub amount: MinorUnit,
/// Currency for the line item
pub currency: Currency,
/// Quantity of the line item.
pub quantity: i64,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "SubscriptionLineItem",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_3094499198316036932
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/enums.rs
pub struct UnresolvedResponseReason {
pub code: String,
/// A message to merchant to give hint on next action he/she should do to resolve
pub message: String,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "UnresolvedResponseReason",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_2704143956283836737
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/blocklist.rs
pub struct GenerateFingerprintRequest {
pub card: Card,
pub hash_key: StrongSecret<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "GenerateFingerprintRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-2685950571151159995
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/blocklist.rs
pub struct Card {
pub card_number: StrongSecret<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "Card",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-6328463763432105566
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/blocklist.rs
pub struct BlocklistResponse {
pub fingerprint_id: String,
#[schema(value_type = BlocklistDataKind)]
pub data_kind: enums::BlocklistDataKind,
#[serde(with = "common_utils::custom_serde::iso8601")]
pub created_at: time::PrimitiveDateTime,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "BlocklistResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-1015412138252455576
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/blocklist.rs
pub struct GenerateFingerprintResponsePayload {
pub card_fingerprint: String,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "GenerateFingerprintResponsePayload",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-3561426538487311990
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/blocklist.rs
pub struct ToggleBlocklistResponse {
pub blocklist_guard_status: String,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ToggleBlocklistResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_4771139181255939020
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/blocklist.rs
pub struct ListBlocklistQuery {
#[schema(value_type = BlocklistDataKind)]
pub data_kind: enums::BlocklistDataKind,
#[serde(default = "default_list_limit")]
pub limit: u16,
#[serde(default)]
pub offset: u16,
pub client_secret: Option<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ListBlocklistQuery",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-6785157979143613084
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/blocklist.rs
pub struct ToggleBlocklistQuery {
#[schema(value_type = BlocklistDataKind)]
pub status: bool,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ToggleBlocklistQuery",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-6340326865973785711
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct SignUpWithMerchantIdRequest {
pub name: Secret<String>,
pub email: pii::Email,
pub password: Secret<String>,
pub company_name: String,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "SignUpWithMerchantIdRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_9073752339217459199
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct SignUpRequest {
pub email: pii::Email,
pub password: Secret<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "SignUpRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-6354764319838912268
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct ConnectAccountRequest {
pub email: pii::Email,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ConnectAccountRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-5583976040350537028
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct AuthorizeResponse {
pub is_email_sent: bool,
//this field is added for audit/debug reasons
#[serde(skip_serializing)]
pub user_id: String,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "AuthorizeResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_7398032075084401522
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct ChangePasswordRequest {
pub new_password: Secret<String>,
pub old_password: Secret<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ChangePasswordRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-3467578611976662444
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct ForgotPasswordRequest {
pub email: pii::Email,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ForgotPasswordRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-7068324791042899305
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct ResetPasswordRequest {
pub token: Secret<String>,
pub password: Secret<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ResetPasswordRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_4928368458172725323
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct RotatePasswordRequest {
pub password: Secret<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "RotatePasswordRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_179878396617183568
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct InviteUserRequest {
pub email: pii::Email,
pub name: Secret<String>,
pub role_id: String,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "InviteUserRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-2484767474056572620
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct InviteMultipleUserResponse {
pub email: pii::Email,
pub is_email_sent: bool,
#[serde(skip_serializing_if = "Option::is_none")]
pub password: Option<Secret<String>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub error: Option<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "InviteMultipleUserResponse",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-4199430867550626773
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct ReInviteUserRequest {
pub email: pii::Email,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "ReInviteUserRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_2170549689639526951
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct AcceptInviteFromEmailRequest {
pub token: Secret<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "AcceptInviteFromEmailRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-5140076292377507479
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct SwitchOrganizationRequest {
pub org_id: id_type::OrganizationId,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "SwitchOrganizationRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-3949043162799088730
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct SwitchMerchantRequest {
pub merchant_id: id_type::MerchantId,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "SwitchMerchantRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-1453695720751564110
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct SwitchProfileRequest {
pub profile_id: id_type::ProfileId,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "SwitchProfileRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-2280230112576199750
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct CloneConnectorSource {
pub mca_id: id_type::MerchantConnectorAccountId,
pub merchant_id: id_type::MerchantId,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CloneConnectorSource",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_8766535716378794387
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct CloneConnectorDestination {
pub connector_label: Option<String>,
pub profile_id: id_type::ProfileId,
pub merchant_id: id_type::MerchantId,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CloneConnectorDestination",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_-2860788693158785914
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct CloneConnectorRequest {
pub source: CloneConnectorSource,
pub destination: CloneConnectorDestination,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CloneConnectorRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_2778240506292926792
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct CreateInternalUserRequest {
pub name: Secret<String>,
pub email: pii::Email,
pub password: Secret<String>,
pub role_id: String,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CreateInternalUserRequest",
"total_crates": null,
"trait_name": null
}
|
hyperswitch_struct_api_models_5521727708670387971
|
clm
|
struct
|
// hyperswitch/crates/api_models/src/user.rs
pub struct CreateTenantUserRequest {
pub name: Secret<String>,
pub email: pii::Email,
pub password: Secret<String>,
}
|
{
"chunk": null,
"crate": "api_models",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": null,
"is_async": null,
"is_pub": null,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "hyperswitch",
"start_line": null,
"struct_name": "CreateTenantUserRequest",
"total_crates": null,
"trait_name": null
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.