id
stringlengths
20
153
type
stringclasses
1 value
granularity
stringclasses
14 values
content
stringlengths
16
84.3k
metadata
dict
hyperswitch_method_diesel_models_AuthenticationUpdateInternal_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/authentication.rs // impl for AuthenticationUpdateInternal pub fn apply_changeset(self, source: Authentication) -> Authentication { let Self { connector_authentication_id, payment_method_id, authentication_type, authenticat...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "AuthenticationUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "r...
hyperswitch_method_diesel_models_ClientSecretType_generate_secret_key
clm
method
// hyperswitch/crates/diesel_models/src/ephemeral_key.rs // impl for ClientSecretType pub fn generate_secret_key(&self) -> String { format!("cs_{}", self.secret.peek()) }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "ClientSecretType", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "generate_secret_key", "num_enums": null, "num_items": null, "num_structs": null, "repo": "h...
hyperswitch_method_diesel_models_Mandate_get_user_agent_extended
clm
method
// hyperswitch/crates/diesel_models/src/mandate.rs // impl for Mandate pub fn get_user_agent_extended(&self) -> Option<String> { self.customer_user_agent_extended .clone() .or_else(|| self.customer_user_agent.clone()) }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Mandate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_user_agent_extended", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypers...
hyperswitch_method_diesel_models_MandateNew_update_storage_scheme
clm
method
// hyperswitch/crates/diesel_models/src/mandate.rs // impl for MandateNew pub fn update_storage_scheme(&mut self, storage_scheme: MerchantStorageScheme) { self.updated_by = Some(storage_scheme.to_string()); }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MandateNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_storage_scheme", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyper...
hyperswitch_method_diesel_models_MandateNew_get_customer_user_agent_extended
clm
method
// hyperswitch/crates/diesel_models/src/mandate.rs // impl for MandateNew pub fn get_customer_user_agent_extended(&self) -> Option<String> { self.customer_user_agent_extended .clone() .or_else(|| self.customer_user_agent.clone()) }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MandateNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_customer_user_agent_extended", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_diesel_models_MandateUpdate_convert_to_mandate_update
clm
method
// hyperswitch/crates/diesel_models/src/mandate.rs // impl for MandateUpdate pub fn convert_to_mandate_update( self, storage_scheme: MerchantStorageScheme, ) -> MandateUpdateInternal { let mut updated_object = MandateUpdateInternal::from(self); updated_object.updated_by = Some(stora...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MandateUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "convert_to_mandate_update", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_diesel_models_MandateUpdateInternal_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/mandate.rs // impl for MandateUpdateInternal pub fn apply_changeset(self, source: Mandate) -> Mandate { let Self { mandate_status, amount_captured, connector_mandate_ids, connector_mandate_id, payment_method_id,...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MandateUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
hyperswitch_method_diesel_models_TaxDetails_get_tax_amount
clm
method
// hyperswitch/crates/diesel_models/src/payment_intent.rs // impl for TaxDetails pub fn get_tax_amount(&self, payment_method: Option<PaymentMethodType>) -> Option<MinorUnit> { self.payment_method_type .as_ref() .zip(payment_method) .filter(|(payment_method_type_tax, payment_...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "TaxDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_tax_amount", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch"...
hyperswitch_method_diesel_models_TaxDetails_get_default_tax_amount
clm
method
// hyperswitch/crates/diesel_models/src/payment_intent.rs // impl for TaxDetails pub fn get_default_tax_amount(&self) -> Option<MinorUnit> { self.default .as_ref() .map(|default_tax_details| default_tax_details.order_tax_amount) }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "TaxDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_default_tax_amount", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hype...
hyperswitch_method_diesel_models_PaymentIntentUpdate_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/payment_intent.rs // impl for PaymentIntentUpdate pub fn apply_changeset(self, source: PaymentIntent) -> PaymentIntent { let PaymentIntentUpdateInternal { amount, currency, status, amount_captured, customer_id, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntentUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hy...
hyperswitch_method_diesel_models_CaptureUpdate_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/capture.rs // impl for CaptureUpdate pub fn apply_changeset(self, source: Capture) -> Capture { let CaptureUpdateInternal { status, error_message, error_code, error_reason, modified_at: _, connector_...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "CaptureUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswi...
hyperswitch_method_diesel_models_AuthorizationUpdateInternal_create_authorization
clm
method
// hyperswitch/crates/diesel_models/src/authorization.rs // impl for AuthorizationUpdateInternal pub fn create_authorization(self, source: Authorization) -> Authorization { Authorization { status: self.status.unwrap_or(source.status), error_code: self.error_code.or(source.error_code), ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "AuthorizationUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "create_authorization", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_diesel_models_PaymentMethodSession_apply_changeset
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_methods.rs // impl for PaymentMethodSession pub fn apply_changeset(self, update_session: PaymentMethodsSessionUpdateInternal) -> Self { let Self { id, customer_id, billing, psp_tokenization, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodSession", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "repo": "h...
hyperswitch_method_diesel_models_PaymentMethodSession_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/payment_methods_session.rs // impl for PaymentMethodSession pub fn apply_changeset(self, update_session: PaymentMethodsSessionUpdateInternal) -> Self { let Self { id, customer_id, billing, psp_tokenization, netw...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodSession", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "repo": "h...
hyperswitch_method_diesel_models_ThemeNew_new
clm
method
// hyperswitch/crates/diesel_models/src/user/theme.rs // impl for ThemeNew pub fn new( theme_id: String, theme_name: String, lineage: ThemeLineage, email_config: EmailThemeConfig, ) -> Self { let now = date_time::now(); Self { theme_id, theme...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "ThemeNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_li...
hyperswitch_method_diesel_models_Theme_email_config
clm
method
// hyperswitch/crates/diesel_models/src/user/theme.rs // impl for Theme pub fn email_config(&self) -> EmailThemeConfig { EmailThemeConfig { primary_color: self.email_primary_color.clone(), foreground_color: self.email_foreground_color.clone(), background_color: self.email_ba...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Theme", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "email_config", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "st...
hyperswitch_method_diesel_models_PaymentAttemptBatchNew_convert_into_normal_attempt_insert
clm
method
// hyperswitch/crates/diesel_models/src/user/sample_data.rs // impl for PaymentAttemptBatchNew fn convert_into_normal_attempt_insert(self) -> PaymentAttemptNew { PaymentAttemptNew { payment_id: self.payment_id, merchant_id: self.merchant_id, attempt_id: self.attempt_id, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttemptBatchNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "convert_into_normal_attempt_insert", "num_enums": null, "num_items": null, "num_structs...
hyperswitch_method_diesel_models_DynamicRoutingStatsNew_insert
clm
method
// hyperswitch/crates/diesel_models/src/query/dynamic_routing_stats.rs // impl for DynamicRoutingStatsNew pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<DynamicRoutingStats> { generics::generic_insert(conn, self).await }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "DynamicRoutingStatsNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "insert", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswi...
hyperswitch_method_diesel_models_DynamicRoutingStats_find_optional_by_attempt_id_merchant_id
clm
method
// hyperswitch/crates/diesel_models/src/query/dynamic_routing_stats.rs // impl for DynamicRoutingStats pub async fn find_optional_by_attempt_id_merchant_id( conn: &PgPooledConn, attempt_id: String, merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<Option<Self>> { g...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "DynamicRoutingStats", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_optional_by_attempt_id_merchant_id", "num_enums": null, "num_items": null, "num_struc...
hyperswitch_method_diesel_models_DynamicRoutingStats_update
clm
method
// hyperswitch/crates/diesel_models/src/query/dynamic_routing_stats.rs // impl for DynamicRoutingStats pub async fn update( conn: &PgPooledConn, attempt_id: String, merchant_id: &common_utils::id_type::MerchantId, dynamic_routing_stat: DynamicRoutingStatsUpdate, ) -> StorageResult<S...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "DynamicRoutingStats", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch...
hyperswitch_method_diesel_models_tokenization_diesel::Tokenization_insert
clm
method
// hyperswitch/crates/diesel_models/src/query/tokenization.rs // impl for tokenization_diesel::Tokenization pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Self> { generics::generic_insert(conn, self).await }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "tokenization_diesel::Tokenization", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "insert", "num_enums": null, "num_items": null, "num_structs": null, "repo"...
hyperswitch_method_diesel_models_tokenization_diesel::Tokenization_find_by_id
clm
method
// hyperswitch/crates/diesel_models/src/query/tokenization.rs // impl for tokenization_diesel::Tokenization pub async fn find_by_id( conn: &PgPooledConn, id: &common_utils::id_type::GlobalTokenId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "tokenization_diesel::Tokenization", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_id", "num_enums": null, "num_items": null, "num_structs": null, "r...
hyperswitch_method_diesel_models_tokenization_diesel::Tokenization_update_with_id
clm
method
// hyperswitch/crates/diesel_models/src/query/tokenization.rs // impl for tokenization_diesel::Tokenization pub async fn update_with_id( self, conn: &PgPooledConn, tokenization_record: tokenization_diesel::TokenizationUpdateInternal, ) -> StorageResult<Self> { match generics::generi...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "tokenization_diesel::Tokenization", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_with_id", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_diesel_models_DisputeNew_insert
clm
method
// hyperswitch/crates/diesel_models/src/query/dispute.rs // impl for DisputeNew pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Dispute> { generics::generic_insert(conn, self).await }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "DisputeNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "insert", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "sta...
hyperswitch_method_diesel_models_Dispute_find_by_merchant_id_payment_id_connector_dispute_id
clm
method
// hyperswitch/crates/diesel_models/src/query/dispute.rs // impl for Dispute pub async fn find_by_merchant_id_payment_id_connector_dispute_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, payment_id: &common_utils::id_type::PaymentId, connector_dispute_id: &str,...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Dispute", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_merchant_id_payment_id_connector_dispute_id", "num_enums": null, "num_items": null, "num_struc...
hyperswitch_method_diesel_models_Dispute_find_by_merchant_id_dispute_id
clm
method
// hyperswitch/crates/diesel_models/src/query/dispute.rs // impl for Dispute pub async fn find_by_merchant_id_dispute_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, dispute_id: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Dispute", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_merchant_id_dispute_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_diesel_models_Dispute_find_by_merchant_id_payment_id
clm
method
// hyperswitch/crates/diesel_models/src/query/dispute.rs // impl for Dispute pub async fn find_by_merchant_id_payment_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, payment_id: &common_utils::id_type::PaymentId, ) -> StorageResult<Vec<Self>> { generics::ge...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Dispute", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_merchant_id_payment_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_diesel_models_Dispute_update
clm
method
// hyperswitch/crates/diesel_models/src/query/dispute.rs // impl for Dispute pub async fn update(self, conn: &PgPooledConn, dispute: DisputeUpdate) -> StorageResult<Self> { match generics::generic_update_with_unique_predicate_get_result::< <Self as HasTable>::Table, _, _, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Dispute", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_...
hyperswitch_method_diesel_models_CallbackMapper_insert
clm
method
// hyperswitch/crates/diesel_models/src/query/callback_mapper.rs // impl for CallbackMapper pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Self> { generics::generic_insert(conn, self).await }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "CallbackMapper", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "insert", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_diesel_models_CallbackMapper_find_by_id
clm
method
// hyperswitch/crates/diesel_models/src/query/callback_mapper.rs // impl for CallbackMapper pub async fn find_by_id(conn: &PgPooledConn, id: &str) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::id.eq(id.to_owned()), ) ....
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "CallbackMapper", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch"...
hyperswitch_method_diesel_models_RoleNew_insert
clm
method
// hyperswitch/crates/diesel_models/src/query/role.rs // impl for RoleNew pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Role> { generics::generic_insert(conn, self).await }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "RoleNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "insert", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_...
hyperswitch_method_diesel_models_Role_get_entity_list
clm
method
// hyperswitch/crates/diesel_models/src/query/role.rs // impl for Role fn get_entity_list( current_entity: EntityType, is_lineage_data_required: bool, ) -> Vec<EntityType> { is_lineage_data_required .then(|| { EntityType::iter() .filter(|varia...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Role", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_entity_list", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "...
hyperswitch_method_diesel_models_Role_find_by_role_id
clm
method
// hyperswitch/crates/diesel_models/src/query/role.rs // impl for Role pub async fn find_by_role_id(conn: &PgPooledConn, role_id: &str) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::role_id.eq(role_id.to_owned()), ) .a...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Role", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_role_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "...
hyperswitch_method_diesel_models_Role_find_by_role_id_in_lineage
clm
method
// hyperswitch/crates/diesel_models/src/query/role.rs // impl for Role pub async fn find_by_role_id_in_lineage( conn: &PgPooledConn, role_id: &str, merchant_id: &id_type::MerchantId, org_id: &id_type::OrganizationId, profile_id: &id_type::ProfileId, tenant_id: &id_type::...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Role", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_role_id_in_lineage", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypers...
hyperswitch_method_diesel_models_Role_find_by_role_id_org_id_tenant_id
clm
method
// hyperswitch/crates/diesel_models/src/query/role.rs // impl for Role pub async fn find_by_role_id_org_id_tenant_id( conn: &PgPooledConn, role_id: &str, org_id: &id_type::OrganizationId, tenant_id: &id_type::TenantId, ) -> StorageResult<Self> { generics::generic_find_one::<...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Role", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_role_id_org_id_tenant_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
hyperswitch_method_diesel_models_Role_update_by_role_id
clm
method
// hyperswitch/crates/diesel_models/src/query/role.rs // impl for Role pub async fn update_by_role_id( conn: &PgPooledConn, role_id: &str, role_update: RoleUpdate, ) -> StorageResult<Self> { generics::generic_update_with_unique_predicate_get_result::< <Self as HasTable>:...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Role", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_by_role_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_diesel_models_Role_delete_by_role_id
clm
method
// hyperswitch/crates/diesel_models/src/query/role.rs // impl for Role pub async fn delete_by_role_id(conn: &PgPooledConn, role_id: &str) -> StorageResult<Self> { generics::generic_delete_one_with_result::<<Self as HasTable>::Table, _, _>( conn, dsl::role_id.eq(role_id.to_owned()), ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Role", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "delete_by_role_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_diesel_models_Role_generic_roles_list_for_org
clm
method
// hyperswitch/crates/diesel_models/src/query/role.rs // impl for Role pub async fn generic_roles_list_for_org( conn: &PgPooledConn, tenant_id: id_type::TenantId, org_id: id_type::OrganizationId, merchant_id: Option<id_type::MerchantId>, entity_type: Option<EntityType>, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Role", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "generic_roles_list_for_org", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypers...
hyperswitch_method_diesel_models_Role_generic_list_roles_by_entity_type
clm
method
// hyperswitch/crates/diesel_models/src/query/role.rs // impl for Role pub async fn generic_list_roles_by_entity_type( conn: &PgPooledConn, payload: ListRolesByEntityPayload, is_lineage_data_required: bool, tenant_id: id_type::TenantId, org_id: id_type::OrganizationId, ) -> ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Role", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "generic_list_roles_by_entity_type", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_diesel_models_PaymentAttemptNew_insert
clm
method
// hyperswitch/crates/diesel_models/src/query/payment_attempt.rs // impl for PaymentAttemptNew pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<PaymentAttempt> { generics::generic_insert(conn, self).await }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttemptNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "insert", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch",...
hyperswitch_method_diesel_models_EventNew_insert
clm
method
// hyperswitch/crates/diesel_models/src/query/events.rs // impl for EventNew pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Event> { generics::generic_insert(conn, self).await }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "EventNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "insert", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start...
hyperswitch_method_diesel_models_Event_find_by_merchant_id_event_id
clm
method
// hyperswitch/crates/diesel_models/src/query/events.rs // impl for Event pub async fn find_by_merchant_id_event_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, event_id: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Tabl...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Event", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_merchant_id_event_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyp...
hyperswitch_method_diesel_models_Event_find_by_merchant_id_idempotent_event_id
clm
method
// hyperswitch/crates/diesel_models/src/query/events.rs // impl for Event pub async fn find_by_merchant_id_idempotent_event_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, idempotent_event_id: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<S...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Event", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_merchant_id_idempotent_event_id", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_diesel_models_Event_list_initial_attempts_by_merchant_id_primary_object_id
clm
method
// hyperswitch/crates/diesel_models/src/query/events.rs // impl for Event pub async fn list_initial_attempts_by_merchant_id_primary_object_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, primary_object_id: &str, ) -> StorageResult<Vec<Self>> { generics::gen...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Event", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "list_initial_attempts_by_merchant_id_primary_object_id", "num_enums": null, "num_items": null, "num_stru...
hyperswitch_method_diesel_models_Event_list_initial_attempts_by_merchant_id_constraints
clm
method
// hyperswitch/crates/diesel_models/src/query/events.rs // impl for Event pub async fn list_initial_attempts_by_merchant_id_constraints( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, created_after: time::PrimitiveDateTime, created_before: time::PrimitiveDateTime,...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Event", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "list_initial_attempts_by_merchant_id_constraints", "num_enums": null, "num_items": null, "num_structs": ...
hyperswitch_method_diesel_models_Event_list_by_merchant_id_initial_attempt_id
clm
method
// hyperswitch/crates/diesel_models/src/query/events.rs // impl for Event pub async fn list_by_merchant_id_initial_attempt_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, initial_attempt_id: &str, ) -> StorageResult<Vec<Self>> { generics::generic_filter::<<...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Event", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "list_by_merchant_id_initial_attempt_id", "num_enums": null, "num_items": null, "num_structs": null, "r...
hyperswitch_method_diesel_models_Event_list_initial_attempts_by_profile_id_primary_object_id
clm
method
// hyperswitch/crates/diesel_models/src/query/events.rs // impl for Event pub async fn list_initial_attempts_by_profile_id_primary_object_id( conn: &PgPooledConn, profile_id: &common_utils::id_type::ProfileId, primary_object_id: &str, ) -> StorageResult<Vec<Self>> { generics::generi...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Event", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "list_initial_attempts_by_profile_id_primary_object_id", "num_enums": null, "num_items": null, "num_struc...
hyperswitch_method_diesel_models_Event_list_initial_attempts_by_profile_id_constraints
clm
method
// hyperswitch/crates/diesel_models/src/query/events.rs // impl for Event pub async fn list_initial_attempts_by_profile_id_constraints( conn: &PgPooledConn, profile_id: &common_utils::id_type::ProfileId, created_after: time::PrimitiveDateTime, created_before: time::PrimitiveDateTime, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Event", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "list_initial_attempts_by_profile_id_constraints", "num_enums": null, "num_items": null, "num_structs": n...
hyperswitch_method_diesel_models_Event_list_by_profile_id_initial_attempt_id
clm
method
// hyperswitch/crates/diesel_models/src/query/events.rs // impl for Event pub async fn list_by_profile_id_initial_attempt_id( conn: &PgPooledConn, profile_id: &common_utils::id_type::ProfileId, initial_attempt_id: &str, ) -> StorageResult<Vec<Self>> { generics::generic_filter::<<Sel...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Event", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "list_by_profile_id_initial_attempt_id", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_diesel_models_Event_update_by_merchant_id_event_id
clm
method
// hyperswitch/crates/diesel_models/src/query/events.rs // impl for Event pub async fn update_by_merchant_id_event_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, event_id: &str, event: EventUpdateInternal, ) -> StorageResult<Self> { generics::gener...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Event", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_by_merchant_id_event_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "h...
hyperswitch_method_diesel_models_Event_apply_filters
clm
method
// hyperswitch/crates/diesel_models/src/query/events.rs // impl for Event fn apply_filters<T>( mut query: T, profile_id: Option<common_utils::id_type::ProfileId>, (column, created_after, created_before): ( dsl::created_at, time::PrimitiveDateTime, time::Primi...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Event", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_filters", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "s...
hyperswitch_method_diesel_models_Event_count_initial_attempts_by_constraints
clm
method
// hyperswitch/crates/diesel_models/src/query/events.rs // impl for Event pub async fn count_initial_attempts_by_constraints( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, profile_id: Option<common_utils::id_type::ProfileId>, created_after: time::PrimitiveDateTim...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Event", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "count_initial_attempts_by_constraints", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_diesel_models_OrganizationNew_insert
clm
method
// hyperswitch/crates/diesel_models/src/query/organization.rs // impl for OrganizationNew pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Organization> { generics::generic_insert(conn, self).await }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "OrganizationNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "insert", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_diesel_models_Organization_find_by_org_id
clm
method
// hyperswitch/crates/diesel_models/src/query/organization.rs // impl for Organization pub async fn find_by_org_id( conn: &PgPooledConn, org_id: id_type::OrganizationId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, d...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Organization", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_org_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitc...
hyperswitch_method_diesel_models_Organization_update_by_org_id
clm
method
// hyperswitch/crates/diesel_models/src/query/organization.rs // impl for Organization pub async fn update_by_org_id( conn: &PgPooledConn, org_id: id_type::OrganizationId, update: OrganizationUpdate, ) -> StorageResult<Self> { generics::generic_update_with_unique_predicate_get_resul...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Organization", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_by_org_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswi...
hyperswitch_method_diesel_models_MerchantAccountNew_insert
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccountNew pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<MerchantAccount> { generics::generic_insert(conn, self).await }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccountNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "insert", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch"...
hyperswitch_method_diesel_models_MerchantAccount_update
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn update( self, conn: &PgPooledConn, merchant_account: MerchantAccountUpdateInternal, ) -> StorageResult<Self> { match generics::generic_update_by_id::<<Self as HasTable>::Table,...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_diesel_models_MerchantAccount_update_with_specific_fields
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn update_with_specific_fields( conn: &PgPooledConn, identifier: &common_utils::id_type::MerchantId, merchant_account: MerchantAccountUpdateInternal, ) -> StorageResult<Self> { ge...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_with_specific_fields", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_diesel_models_MerchantAccount_delete_by_merchant_id
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn delete_by_merchant_id( conn: &PgPooledConn, identifier: &common_utils::id_type::MerchantId, ) -> StorageResult<bool> { generics::generic_delete::<<Self as HasTable>::Table, _>( ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "delete_by_merchant_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
hyperswitch_method_diesel_models_MerchantAccount_find_by_merchant_id
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn find_by_merchant_id( conn: &PgPooledConn, identifier: &common_utils::id_type::MerchantId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_merchant_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hy...
hyperswitch_method_diesel_models_MerchantAccount_find_by_publishable_key
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn find_by_publishable_key( conn: &PgPooledConn, publishable_key: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_publishable_key", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_diesel_models_MerchantAccount_list_by_organization_id
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn list_by_organization_id( conn: &PgPooledConn, organization_id: &common_utils::id_type::OrganizationId, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "list_by_organization_id", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_diesel_models_MerchantAccount_list_multiple_merchant_accounts
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn list_multiple_merchant_accounts( conn: &PgPooledConn, merchant_ids: Vec<common_utils::id_type::MerchantId>, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Sel...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "list_multiple_merchant_accounts", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_diesel_models_MerchantAccount_list_all_merchant_accounts
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn list_all_merchant_accounts( conn: &PgPooledConn, limit: u32, offset: Option<u32>, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as HasTable>::Ta...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "list_all_merchant_accounts", "num_enums": null, "num_items": null, "num_structs": null, "rep...
hyperswitch_method_diesel_models_MerchantAccount_update_all_merchant_accounts
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn update_all_merchant_accounts( conn: &PgPooledConn, merchant_account: MerchantAccountUpdateInternal, ) -> StorageResult<Vec<Self>> { generics::generic_update_with_results::<<Self as Has...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_all_merchant_accounts", "num_enums": null, "num_items": null, "num_structs": null, "r...
hyperswitch_method_diesel_models_MerchantAccount_update
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn update( self, conn: &PgPooledConn, merchant_account: MerchantAccountUpdateInternal, ) -> StorageResult<Self> { match generics::generic_update_by_id::<<Self as HasTable>::Table,...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_diesel_models_MerchantAccount_update_with_specific_fields
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn update_with_specific_fields( conn: &PgPooledConn, identifier: &common_utils::id_type::MerchantId, merchant_account: MerchantAccountUpdateInternal, ) -> StorageResult<Self> { ge...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_with_specific_fields", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_diesel_models_MerchantAccount_delete_by_merchant_id
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn delete_by_merchant_id( conn: &PgPooledConn, identifier: &common_utils::id_type::MerchantId, ) -> StorageResult<bool> { generics::generic_delete::<<Self as HasTable>::Table, _>( ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "delete_by_merchant_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
hyperswitch_method_diesel_models_MerchantAccount_find_by_merchant_id
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn find_by_merchant_id( conn: &PgPooledConn, identifier: &common_utils::id_type::MerchantId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_merchant_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hy...
hyperswitch_method_diesel_models_MerchantAccount_find_by_publishable_key
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn find_by_publishable_key( conn: &PgPooledConn, publishable_key: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_publishable_key", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_diesel_models_MerchantAccount_list_by_organization_id
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn list_by_organization_id( conn: &PgPooledConn, organization_id: &common_utils::id_type::OrganizationId, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "list_by_organization_id", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_diesel_models_MerchantAccount_list_multiple_merchant_accounts
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn list_multiple_merchant_accounts( conn: &PgPooledConn, merchant_ids: Vec<common_utils::id_type::MerchantId>, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Sel...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "list_multiple_merchant_accounts", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_diesel_models_MerchantAccount_list_all_merchant_accounts
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn list_all_merchant_accounts( conn: &PgPooledConn, limit: u32, offset: Option<u32>, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as HasTable>::Ta...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "list_all_merchant_accounts", "num_enums": null, "num_items": null, "num_structs": null, "rep...
hyperswitch_method_diesel_models_MerchantAccount_update_all_merchant_accounts
clm
method
// hyperswitch/crates/diesel_models/src/query/merchant_account.rs // impl for MerchantAccount pub async fn update_all_merchant_accounts( conn: &PgPooledConn, merchant_account: MerchantAccountUpdateInternal, ) -> StorageResult<Vec<Self>> { generics::generic_update_with_results::<<Self as Has...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_all_merchant_accounts", "num_enums": null, "num_items": null, "num_structs": null, "r...
hyperswitch_method_diesel_models_PayoutsNew_insert
clm
method
// hyperswitch/crates/diesel_models/src/query/payouts.rs // impl for PayoutsNew pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Payouts> { generics::generic_insert(conn, self).await }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PayoutsNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "insert", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "sta...
hyperswitch_method_diesel_models_Payouts_update
clm
method
// hyperswitch/crates/diesel_models/src/query/payouts.rs // impl for Payouts pub async fn update( self, conn: &PgPooledConn, payout_update: PayoutsUpdate, ) -> StorageResult<Self> { match generics::generic_update_with_results::<<Self as HasTable>::Table, _, _, _>( conn, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Payouts", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_...
hyperswitch_method_diesel_models_Payouts_find_by_merchant_id_payout_id
clm
method
// hyperswitch/crates/diesel_models/src/query/payouts.rs // impl for Payouts pub async fn find_by_merchant_id_payout_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, payout_id: &common_utils::id_type::PayoutId, ) -> StorageResult<Self> { generics::generic_fi...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Payouts", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_merchant_id_payout_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
hyperswitch_method_diesel_models_Payouts_update_by_merchant_id_payout_id
clm
method
// hyperswitch/crates/diesel_models/src/query/payouts.rs // impl for Payouts pub async fn update_by_merchant_id_payout_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, payout_id: &common_utils::id_type::PayoutId, payout: PayoutsUpdate, ) -> StorageResult<Sel...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Payouts", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_by_merchant_id_payout_id", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_diesel_models_Payouts_find_optional_by_merchant_id_payout_id
clm
method
// hyperswitch/crates/diesel_models/src/query/payouts.rs // impl for Payouts pub async fn find_optional_by_merchant_id_payout_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, payout_id: &common_utils::id_type::PayoutId, ) -> StorageResult<Option<Self>> { gen...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Payouts", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_optional_by_merchant_id_payout_id", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_diesel_models_Payouts_get_total_count_of_payouts
clm
method
// hyperswitch/crates/diesel_models/src/query/payouts.rs // impl for Payouts pub async fn get_total_count_of_payouts( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, active_payout_ids: &[common_utils::id_type::PayoutId], connector: Option<Vec<String>>, curr...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Payouts", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_total_count_of_payouts", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyp...
hyperswitch_method_diesel_models_FraudCheckNew_insert
clm
method
// hyperswitch/crates/diesel_models/src/query/fraud_check.rs // impl for FraudCheckNew pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<FraudCheck> { generics::generic_insert(conn, self).await }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "FraudCheckNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "insert", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "...
hyperswitch_method_diesel_models_FraudCheck_update_with_attempt_id
clm
method
// hyperswitch/crates/diesel_models/src/query/fraud_check.rs // impl for FraudCheck pub async fn update_with_attempt_id( self, conn: &PgPooledConn, fraud_check: FraudCheckUpdate, ) -> StorageResult<Self> { match generics::generic_update_with_unique_predicate_get_result::< ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "FraudCheck", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_with_attempt_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hype...
hyperswitch_method_diesel_models_FraudCheck_get_with_payment_id
clm
method
// hyperswitch/crates/diesel_models/src/query/fraud_check.rs // impl for FraudCheck pub async fn get_with_payment_id( conn: &PgPooledConn, payment_id: common_utils::id_type::PaymentId, merchant_id: common_utils::id_type::MerchantId, ) -> StorageResult<Self> { generics::generic_find_...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "FraudCheck", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_with_payment_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypersw...
hyperswitch_method_diesel_models_FraudCheck_get_with_payment_id_if_present
clm
method
// hyperswitch/crates/diesel_models/src/query/fraud_check.rs // impl for FraudCheck pub async fn get_with_payment_id_if_present( conn: &PgPooledConn, payment_id: common_utils::id_type::PaymentId, merchant_id: common_utils::id_type::MerchantId, ) -> StorageResult<Option<Self>> { gene...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "FraudCheck", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_with_payment_id_if_present", "num_enums": null, "num_items": null, "num_structs": null, "repo...
hyperswitch_method_diesel_models_CardInfo_find_by_iin
clm
method
// hyperswitch/crates/diesel_models/src/query/cards_info.rs // impl for CardInfo pub async fn find_by_iin(conn: &PgPooledConn, card_iin: &str) -> StorageResult<Option<Self>> { generics::generic_find_by_id_optional::<<Self as HasTable>::Table, _, _>( conn, card_iin.to_owned(), ) ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "CardInfo", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_iin", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "...
hyperswitch_method_diesel_models_CardInfo_insert
clm
method
// hyperswitch/crates/diesel_models/src/query/cards_info.rs // impl for CardInfo pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Self> { generics::generic_insert(conn, self).await }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "CardInfo", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "insert", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start...
hyperswitch_method_diesel_models_CardInfo_update
clm
method
// hyperswitch/crates/diesel_models/src/query/cards_info.rs // impl for CardInfo pub async fn update( conn: &PgPooledConn, card_iin: String, data: UpdateCardInfo, ) -> StorageResult<Self> { generics::generic_update_with_results::<<Self as HasTable>::Table, UpdateCardInfo, _, _>( ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "CardInfo", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start...
hyperswitch_method_diesel_models_PaymentMethodNew_insert
clm
method
// hyperswitch/crates/diesel_models/src/query/payment_method.rs // impl for PaymentMethodNew pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<PaymentMethod> { generics::generic_insert(conn, self).await }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "insert", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_diesel_models_PaymentMethod_delete_by_payment_method_id
clm
method
// hyperswitch/crates/diesel_models/src/query/payment_method.rs // impl for PaymentMethod pub async fn delete_by_payment_method_id( conn: &PgPooledConn, payment_method_id: String, ) -> StorageResult<Self> { generics::generic_delete_one_with_result::<<Self as HasTable>::Table, _, Self>( ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "delete_by_payment_method_id", "num_enums": null, "num_items": null, "num_structs": null, "repo...
hyperswitch_method_diesel_models_PaymentMethod_delete_by_merchant_id_payment_method_id
clm
method
// hyperswitch/crates/diesel_models/src/query/payment_method.rs // impl for PaymentMethod pub async fn delete_by_merchant_id_payment_method_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, payment_method_id: &str, ) -> StorageResult<Self> { generics::generic...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "delete_by_merchant_id_payment_method_id", "num_enums": null, "num_items": null, "num_structs": n...
hyperswitch_method_diesel_models_PaymentMethod_find_by_locker_id
clm
method
// hyperswitch/crates/diesel_models/src/query/payment_method.rs // impl for PaymentMethod pub async fn find_by_locker_id(conn: &PgPooledConn, locker_id: &str) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::locker_id.eq(locker_id.to_own...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_locker_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypers...
hyperswitch_method_diesel_models_PaymentMethod_find_by_payment_method_id
clm
method
// hyperswitch/crates/diesel_models/src/query/payment_method.rs // impl for PaymentMethod pub async fn find_by_payment_method_id( conn: &PgPooledConn, payment_method_id: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_payment_method_id", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_diesel_models_PaymentMethod_find_by_merchant_id
clm
method
// hyperswitch/crates/diesel_models/src/query/payment_method.rs // impl for PaymentMethod pub async fn find_by_merchant_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as HasTable>::Table...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_merchant_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hype...
hyperswitch_method_diesel_models_PaymentMethod_find_by_customer_id_merchant_id
clm
method
// hyperswitch/crates/diesel_models/src/query/payment_method.rs // impl for PaymentMethod pub async fn find_by_customer_id_merchant_id( conn: &PgPooledConn, customer_id: &common_utils::id_type::CustomerId, merchant_id: &common_utils::id_type::MerchantId, limit: Option<i64>, ) -> Sto...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_customer_id_merchant_id", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_diesel_models_PaymentMethod_get_count_by_customer_id_merchant_id_status
clm
method
// hyperswitch/crates/diesel_models/src/query/payment_method.rs // impl for PaymentMethod pub async fn get_count_by_customer_id_merchant_id_status( conn: &PgPooledConn, customer_id: &common_utils::id_type::CustomerId, merchant_id: &common_utils::id_type::MerchantId, status: common_enums...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_count_by_customer_id_merchant_id_status", "num_enums": null, "num_items": null, "num_structs...
hyperswitch_method_diesel_models_PaymentMethod_get_count_by_merchant_id_status
clm
method
// hyperswitch/crates/diesel_models/src/query/payment_method.rs // impl for PaymentMethod pub async fn get_count_by_merchant_id_status( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, status: common_enums::PaymentMethodStatus, ) -> StorageResult<i64> { let quer...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_count_by_merchant_id_status", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_diesel_models_PaymentMethod_find_by_customer_id_merchant_id_status
clm
method
// hyperswitch/crates/diesel_models/src/query/payment_method.rs // impl for PaymentMethod pub async fn find_by_customer_id_merchant_id_status( conn: &PgPooledConn, customer_id: &common_utils::id_type::CustomerId, merchant_id: &common_utils::id_type::MerchantId, status: storage_enums::Pa...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_customer_id_merchant_id_status", "num_enums": null, "num_items": null, "num_structs": nu...
hyperswitch_method_diesel_models_PaymentMethod_update_with_payment_method_id
clm
method
// hyperswitch/crates/diesel_models/src/query/payment_method.rs // impl for PaymentMethod pub async fn update_with_payment_method_id( self, conn: &PgPooledConn, payment_method: payment_method::PaymentMethodUpdateInternal, ) -> StorageResult<Self> { match generics::generic_update_wit...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_with_payment_method_id", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_diesel_models_PaymentMethod_get_count_by_merchant_id_status
clm
method
// hyperswitch/crates/diesel_models/src/query/payment_method.rs // impl for PaymentMethod pub async fn get_count_by_merchant_id_status( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, status: common_enums::PaymentMethodStatus, ) -> StorageResult<i64> { let quer...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_count_by_merchant_id_status", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_diesel_models_PaymentMethod_find_by_id
clm
method
// hyperswitch/crates/diesel_models/src/query/payment_method.rs // impl for PaymentMethod pub async fn find_by_id( conn: &PgPooledConn, id: &common_utils::id_type::GlobalPaymentMethodId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>(conn, pm_id.eq(...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "find_by_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch",...