id
stringlengths
20
153
type
stringclasses
1 value
granularity
stringclasses
14 values
content
stringlengths
16
84.3k
metadata
dict
connector-service_multi_7969894047322031300_14
clm
multi_item
// connector-service/backend/domain_types/src/router_data.rs pub enum ConnectorAuthType { TemporaryAuth, HeaderKey { api_key: Secret<String>, }, BodyKey { api_key: Secret<String>, key1: Secret<String>, }, SignatureKey { api_key: Secret<String>, key1: Secret<String>, api_secret: Secret<String>, }, MultiAuthKey { api_key: Secret<String>, key1: Secret<String>, api_secret: Secret<String>, key2: Secret<String>, }, CurrencyAuthKey { auth_key_map: HashMap<common_enums::enums::Currency, common_utils::pii::SecretSerdeValue>, }, CertificateAuth { certificate: Secret<String>, private_key: Secret<String>, }, #[default] NoKey, } pub enum PaymentMethodToken { Token(Secret<String>), ApplePayDecrypt(Box<ApplePayPredecryptData>), GooglePayDecrypt(Box<GooglePayDecryptedData>), PazeDecrypt(Box<PazeDecryptedData>), } pub enum AdditionalPaymentMethodConnectorResponse { Card { /// Details regarding the authentication details of the connector, if this is a 3ds payment. authentication_data: Option<serde_json::Value>, /// Various payment checks that are done for a payment payment_checks: Option<serde_json::Value>, /// Card Network returned by the processor card_network: Option<String>, /// Domestic(Co-Branded) Card network returned by the processor domestic_network: Option<String>, }, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_4311916100995806462_0
clm
multi_item
// connector-service/backend/domain_types/src/errors.rs pub struct ApiError { pub sub_code: String, pub error_identifier: u16, pub error_message: String, pub error_object: Option<serde_json::Value>, } pub enum ApiClientError { #[error("Header map construction failed")] HeaderMapConstructionFailed, #[error("Invalid proxy configuration")] InvalidProxyConfiguration, #[error("Client construction failed")] ClientConstructionFailed, #[error("Certificate decode failed")] CertificateDecodeFailed, #[error("Request body serialization failed")] BodySerializationFailed, #[error("Unexpected state reached/Invariants conflicted")] UnexpectedState, #[error("Url Parsing Failed")] UrlParsingFailed, #[error("URL encoding of request payload failed")] UrlEncodingFailed, #[error("Failed to send request to connector {0}")] RequestNotSent(String), #[error("Failed to decode response")] ResponseDecodingFailed, #[error("Server responded with Request Timeout")] RequestTimeoutReceived, #[error("connection closed before a message could complete")] ConnectionClosedIncompleteMessage, #[error("Server responded with Internal Server Error")] InternalServerErrorReceived, #[error("Server responded with Bad Gateway")] BadGatewayReceived, #[error("Server responded with Service Unavailable")] ServiceUnavailableReceived, #[error("Server responded with Gateway Timeout")] GatewayTimeoutReceived, #[error("Server responded with unexpected response")] UnexpectedServerResponse, } pub enum ApplicationErrorResponse { Unauthorized(ApiError), ForbiddenCommonResource(ApiError), ForbiddenPrivateResource(ApiError), Conflict(ApiError), Gone(ApiError), Unprocessable(ApiError), InternalServerError(ApiError), NotImplemented(ApiError), NotFound(ApiError), MethodNotAllowed(ApiError), BadRequest(ApiError), DomainError(ApiError), }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_4311916100995806462_2
clm
multi_item
// connector-service/backend/domain_types/src/errors.rs pub enum ApplicationErrorResponse { Unauthorized(ApiError), ForbiddenCommonResource(ApiError), ForbiddenPrivateResource(ApiError), Conflict(ApiError), Gone(ApiError), Unprocessable(ApiError), InternalServerError(ApiError), NotImplemented(ApiError), NotFound(ApiError), MethodNotAllowed(ApiError), BadRequest(ApiError), DomainError(ApiError), } pub enum ParsingError { #[error("Failed to parse struct: {0}")] StructParseFailure(&'static str), #[error("Failed to serialize to {0} format")] EncodeError(&'static str), } pub enum ErrorType { InvalidRequestError, ObjectNotFound, RouterError, ProcessingError, BadGateway, ServerNotAvailable, DuplicateRequest, ValidationError, ConnectorError, LockTimeout, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_4311916100995806462_6
clm
multi_item
// connector-service/backend/domain_types/src/errors.rs pub enum NotImplementedMessage { Reason(String), Default, } pub enum ConnectorError { #[error("Error while obtaining URL for the integration")] FailedToObtainIntegrationUrl, #[error("Failed to encode connector request")] RequestEncodingFailed, #[error("Request encoding failed : {0}")] RequestEncodingFailedWithReason(String), #[error("Parsing failed")] ParsingFailed, #[error("Integrity check failed: {field_names}")] IntegrityCheckFailed { field_names: String, connector_transaction_id: Option<String>, }, #[error("Failed to deserialize connector response")] ResponseDeserializationFailed, #[error("Failed to execute a processing step: {0:?}")] ProcessingStepFailed(Option<bytes::Bytes>), #[error("The connector returned an unexpected response: {0:?}")] UnexpectedResponseError(bytes::Bytes), #[error("Failed to parse custom routing rules from merchant account")] RoutingRulesParsingError, #[error("Failed to obtain preferred connector from merchant account")] FailedToObtainPreferredConnector, #[error("An invalid connector name was provided")] InvalidConnectorName, #[error("An invalid Wallet was used")] InvalidWallet, #[error("Failed to handle connector response")] ResponseHandlingFailed, #[error("Missing required field: {field_name}")] MissingRequiredField { field_name: &'static str }, #[error("Missing required fields: {field_names:?}")] MissingRequiredFields { field_names: Vec<&'static str> }, #[error("Failed to obtain authentication type")] FailedToObtainAuthType, #[error("Failed to obtain certificate")] FailedToObtainCertificate, #[error("Connector meta data not found")] NoConnectorMetaData, #[error("Connector wallet details not found")] NoConnectorWalletDetails, #[error("Failed to obtain certificate key")] FailedToObtainCertificateKey, #[error("Failed to verify source of the response")] SourceVerificationFailed, #[error("This step has not been implemented for: {0}")] NotImplemented(String), #[error("{message} is not supported by {connector}")] NotSupported { message: String, connector: &'static str, }, #[error("{flow} flow not supported by {connector} connector")] FlowNotSupported { flow: String, connector: String }, #[error("Capture method not supported")] CaptureMethodNotSupported, #[error("Missing connector mandate ID")] MissingConnectorMandateID, #[error("Missing connector mandate metadata")] MissingConnectorMandateMetadata, #[error("Missing connector transaction ID")] MissingConnectorTransactionID, #[error("Missing connector refund ID")] MissingConnectorRefundID, #[error("Missing apple pay tokenization data")] MissingApplePayTokenData, #[error("Webhooks not implemented for this connector")] WebhooksNotImplemented, #[error("Failed to decode webhook event body")] WebhookBodyDecodingFailed, #[error("Signature not found for incoming webhook")] WebhookSignatureNotFound, #[error("Failed to verify webhook source")] WebhookSourceVerificationFailed, #[error("Could not find merchant secret in DB for incoming webhook source verification")] WebhookVerificationSecretNotFound, #[error("Merchant secret found for incoming webhook source verification is invalid")] WebhookVerificationSecretInvalid, #[error("Incoming webhook object reference ID not found")] WebhookReferenceIdNotFound, #[error("Incoming webhook event type not found")] WebhookEventTypeNotFound, #[error("Incoming webhook event resource object not found")] WebhookResourceObjectNotFound, #[error("Could not respond to the incoming webhook event")] WebhookResponseEncodingFailed, #[error("Invalid Date/time format")] InvalidDateFormat, #[error("Date Formatting Failed")] DateFormattingFailed, #[error("Invalid Data format")] InvalidDataFormat { field_name: &'static str }, #[error("Payment Method data / Payment Method Type / Payment Experience Mismatch ")] MismatchedPaymentData, #[error("Failed to parse {wallet_name} wallet token")] InvalidWalletToken { wallet_name: String }, #[error("Missing Connector Related Transaction ID")] MissingConnectorRelatedTransactionID { id: String }, #[error("File Validation failed")] FileValidationFailed { reason: String }, #[error("Missing 3DS redirection payload: {field_name}")] MissingConnectorRedirectionPayload { field_name: &'static str }, #[error("Failed at connector's end with code '{code}'")] FailedAtConnector { message: String, code: String }, #[error("Payment Method Type not found")] MissingPaymentMethodType, #[error("Balance in the payment method is low")] InSufficientBalanceInPaymentMethod, #[error("Server responded with Request Timeout")] RequestTimeoutReceived, #[error("The given currency method is not configured with the given connector")] CurrencyNotSupported { message: String, connector: &'static str, }, #[error("Invalid Configuration")] InvalidConnectorConfig { config: &'static str }, #[error("Failed to convert amount to required type")] AmountConversionFailed, #[error("Generic Error")] GenericError { error_message: String, error_object: serde_json::Value, }, #[error("Field {fields} doesn't match with the ones used during mandate creation")] MandatePaymentDataMismatch { fields: String }, } pub enum HttpClientError { #[error("Header map construction failed")] HeaderMapConstructionFailed, #[error("Invalid proxy configuration")] InvalidProxyConfiguration, #[error("Client construction failed")] ClientConstructionFailed, #[error("Certificate decode failed")] CertificateDecodeFailed, #[error("Request body serialization failed")] BodySerializationFailed, #[error("Unexpected state reached/Invariants conflicted")] UnexpectedState, #[error("Failed to parse URL")] UrlParsingFailed, #[error("URL encoding of request payload failed")] UrlEncodingFailed, #[error("Failed to send request to connector {0}")] RequestNotSent(String), #[error("Failed to decode response")] ResponseDecodingFailed, #[error("Server responded with Request Timeout")] RequestTimeoutReceived, #[error("connection closed before a message could complete")] ConnectionClosedIncompleteMessage, #[error("Server responded with Internal Server Error")] InternalServerErrorReceived, #[error("Server responded with Bad Gateway")] BadGatewayReceived, #[error("Server responded with Service Unavailable")] ServiceUnavailableReceived, #[error("Server responded with Gateway Timeout")] GatewayTimeoutReceived, #[error("Server responded with unexpected response")] UnexpectedServerResponse, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_6123773352099696515_0
clm
multi_item
// connector-service/backend/domain_types/src/router_response_types.rs pub struct Response { /// headers pub headers: Option<http::HeaderMap>, /// response pub response: bytes::Bytes, /// status code pub status_code: u16, } pub enum RedirectForm { Form { endpoint: String, method: Method, form_fields: HashMap<String, String>, }, Html { html_data: String, }, BlueSnap { payment_fields_token: String, // payment-field-token }, CybersourceAuthSetup { access_token: String, ddc_url: String, reference_id: String, }, CybersourceConsumerAuth { access_token: String, step_up_url: String, }, DeutschebankThreeDSChallengeFlow { acs_url: String, creq: String, }, Payme, Braintree { client_token: String, card_token: String, bin: String, acs_url: String, }, Nmi { amount: String, currency: common_enums::Currency, public_key: hyperswitch_masking::Secret<String>, customer_vault_id: String, order_id: String, }, Mifinity { initialization_token: String, }, WorldpayDDCForm { endpoint: url::Url, method: Method, form_fields: HashMap<String, String>, collection_id: Option<String>, }, Uri { uri: String, }, }
{ "chunk": null, "crate": null, "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": 2, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_0
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct Card<T: PaymentMethodDataTypes> { pub card_number: RawCardNumber<T>, pub card_exp_month: Secret<String>, pub card_exp_year: Secret<String>, pub card_cvc: Secret<String>, pub card_issuer: Option<String>, pub card_network: Option<CardNetwork>, pub card_type: Option<String>, pub card_issuing_country: Option<String>, pub bank_code: Option<String>, pub nick_name: Option<Secret<String>>, pub card_holder_name: Option<Secret<String>>, pub co_badged_card_data: Option<CoBadgedCardData>, } pub struct DefaultPCIHolder; pub struct VaultTokenHolder;
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_2
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct VaultTokenHolder; pub struct RawCardNumber<T: PaymentMethodDataTypes>(pub T::Inner); pub struct NetworkTokenData { pub network_token: cards::NetworkToken, pub network_token_exp_month: Secret<String>, pub network_token_exp_year: Secret<String>, pub cryptogram: Option<Secret<String>>, pub card_issuer: Option<String>, //since network token is tied to card, so its issuer will be same as card issuer pub card_network: Option<common_enums::CardNetwork>, pub card_type: Option<CardType>, pub card_issuing_country: Option<common_enums::CountryAlpha2>, pub bank_code: Option<String>, pub card_holder_name: Option<Secret<String>>, pub nick_name: Option<Secret<String>>, pub eci: Option<String>, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_4
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct NetworkTokenData { pub network_token: cards::NetworkToken, pub network_token_exp_month: Secret<String>, pub network_token_exp_year: Secret<String>, pub cryptogram: Option<Secret<String>>, pub card_issuer: Option<String>, //since network token is tied to card, so its issuer will be same as card issuer pub card_network: Option<common_enums::CardNetwork>, pub card_type: Option<CardType>, pub card_issuing_country: Option<common_enums::CountryAlpha2>, pub bank_code: Option<String>, pub card_holder_name: Option<Secret<String>>, pub nick_name: Option<Secret<String>>, pub eci: Option<String>, } pub struct GiftCardDetails { /// The gift card number pub number: Secret<String>, /// The card verification code. pub cvc: Secret<String>, } pub struct CardToken { /// The card holder's name pub card_holder_name: Option<Secret<String>>, /// The CVC number for the card pub card_cvc: Option<Secret<String>>, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_6
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct CardToken { /// The card holder's name pub card_holder_name: Option<Secret<String>>, /// The CVC number for the card pub card_cvc: Option<Secret<String>>, } pub struct BoletoVoucherData { /// The shopper's social security number pub social_security_number: Option<Secret<String>>, } pub struct AlfamartVoucherData {}
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_8
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct AlfamartVoucherData {} pub struct IndomaretVoucherData {} pub struct JCSVoucherData {}
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_10
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct JCSVoucherData {} pub struct UpiCollectData { pub vpa_id: Option<Secret<String, UpiVpaMaskingStrategy>>, } pub struct UpiIntentData {}
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_12
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct UpiIntentData {} pub struct UpiQrData {} pub struct CryptoData { pub pay_currency: Option<String>, pub network: Option<String>, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_14
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct CryptoData { pub pay_currency: Option<String>, pub network: Option<String>, } pub struct RevolutPayData {} pub struct MifinityData { #[schema(value_type = Date)] pub date_of_birth: Secret<Date>, pub language_preference: Option<String>, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_16
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct MifinityData { #[schema(value_type = Date)] pub date_of_birth: Secret<Date>, pub language_preference: Option<String>, } pub struct SwishQrData {} pub struct CashappQr {}
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_18
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct CashappQr {} pub struct WeChatPayQr {} pub struct WeChatPayRedirection {}
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_20
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct WeChatPayRedirection {} pub struct TouchNGoRedirection {} pub struct SamsungPayWalletCredentials { pub method: Option<String>, pub recurring_payment: Option<bool>, pub card_brand: common_enums::SamsungPayCardBrand, pub dpan_last_four_digits: Option<String>, #[serde(rename = "card_last4digits")] pub card_last_four_digits: String, #[serde(rename = "3_d_s")] pub token_data: SamsungPayTokenData, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_22
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct SamsungPayWalletCredentials { pub method: Option<String>, pub recurring_payment: Option<bool>, pub card_brand: common_enums::SamsungPayCardBrand, pub dpan_last_four_digits: Option<String>, #[serde(rename = "card_last4digits")] pub card_last_four_digits: String, #[serde(rename = "3_d_s")] pub token_data: SamsungPayTokenData, } pub struct SamsungPayTokenData { #[serde(rename = "type")] pub three_ds_type: Option<String>, pub version: String, pub data: Secret<String>, } pub struct SamsungPayWalletData { pub payment_credential: SamsungPayWalletCredentials, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_24
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct SamsungPayWalletData { pub payment_credential: SamsungPayWalletCredentials, } pub struct PazeWalletData { #[schema(value_type = String)] pub complete_response: Secret<String>, } pub struct PayPalWalletData { /// Token generated for the Apple pay pub token: String, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_26
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct PayPalWalletData { /// Token generated for the Apple pay pub token: String, } pub struct PaypalRedirection { /// paypal's email address #[schema(max_length = 255, value_type = Option<String>, example = "[email protected]")] pub email: Option<Email>, } pub struct GooglePayThirdPartySdkData {}
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_28
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct GooglePayThirdPartySdkData {} pub struct GooglePayWalletData { /// The type of payment method #[serde(rename = "type")] pub pm_type: String, /// User-facing message to describe the payment method that funds this transaction. pub description: String, /// The information of the payment method pub info: GooglePayPaymentMethodInfo, /// The tokenization data of Google pay pub tokenization_data: GpayTokenizationData, } pub struct GooglePayPaymentMethodInfo { /// The name of the card network pub card_network: String, /// The details of the card pub card_details: String, //assurance_details of the card pub assurance_details: Option<GooglePayAssuranceDetails>, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_30
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct GooglePayPaymentMethodInfo { /// The name of the card network pub card_network: String, /// The details of the card pub card_details: String, //assurance_details of the card pub assurance_details: Option<GooglePayAssuranceDetails>, } pub struct GooglePayAssuranceDetails { ///indicates that Cardholder possession validation has been performed pub card_holder_authenticated: bool, /// indicates that identification and verifications (ID&V) was performed pub account_verified: bool, } pub struct GooglePayRedirectData {}
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_32
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct GooglePayRedirectData {} pub struct ApplePayThirdPartySdkData {} pub struct ApplePayRedirectData {}
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_34
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct ApplePayRedirectData {} pub struct ApplepayPaymentMethod { /// The name to be displayed on Apple Pay button pub display_name: String, /// The network of the Apple pay payment method pub network: String, /// The type of the payment method #[serde(rename = "type")] pub pm_type: String, } pub struct ApplePayWalletData { /// The payment data of Apple pay pub payment_data: ApplePayPaymentData, /// The payment method of Apple pay pub payment_method: ApplepayPaymentMethod, /// The unique identifier for the transaction pub transaction_identifier: String, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_36
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct ApplePayWalletData { /// The payment data of Apple pay pub payment_data: ApplePayPaymentData, /// The payment method of Apple pay pub payment_method: ApplepayPaymentMethod, /// The unique identifier for the transaction pub transaction_identifier: String, } pub struct GoPayRedirection {} pub struct GcashRedirection {}
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_38
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct GcashRedirection {} pub struct MobilePayRedirection {} pub struct MbWayRedirection {}
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_40
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct MbWayRedirection {} pub struct KakaoPayRedirection {} pub struct MomoRedirection {}
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_42
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct MomoRedirection {} pub struct AliPayHkRedirection {} pub struct AliPayRedirection {}
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_44
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct AliPayRedirection {} pub struct AliPayQr {} pub struct CardDetailsForNetworkTransactionId { pub card_number: cards::CardNumber, pub card_exp_month: Secret<String>, pub card_exp_year: Secret<String>, pub card_issuer: Option<String>, pub card_network: Option<common_enums::CardNetwork>, pub card_type: Option<String>, pub card_issuing_country: Option<String>, pub bank_code: Option<String>, pub nick_name: Option<Secret<String>>, pub card_holder_name: Option<Secret<String>>, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_46
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct CardDetailsForNetworkTransactionId { pub card_number: cards::CardNumber, pub card_exp_month: Secret<String>, pub card_exp_year: Secret<String>, pub card_issuer: Option<String>, pub card_network: Option<common_enums::CardNetwork>, pub card_type: Option<String>, pub card_issuing_country: Option<String>, pub bank_code: Option<String>, pub nick_name: Option<Secret<String>>, pub card_holder_name: Option<Secret<String>>, } pub struct SamsungPayWebWalletData { /// Specifies authentication method used pub method: Option<String>, /// Value if credential is enabled for recurring payment pub recurring_payment: Option<bool>, /// Brand of the payment card pub card_brand: SamsungPayCardBrand, /// Last 4 digits of the card number #[serde(rename = "card_last4digits")] pub card_last_four_digits: String, /// Samsung Pay token data #[serde(rename = "3_d_s")] pub token_data: SamsungPayTokenData, } pub struct AmazonPayRedirectData {}
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_48
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct AmazonPayRedirectData {} pub struct CoBadgedCardData { pub co_badged_card_networks: Vec<CardNetwork>, pub issuer_country_code: CountryAlpha2, pub is_regulated: bool, pub regulated_name: Option<RegulatedName>, } pub struct BankTransferNextStepsData { /// The instructions for performing a bank transfer #[serde(flatten)] pub bank_transfer_instructions: BankTransferInstructions, /// The details received by the receiver pub receiver: Option<ReceiverDetails>, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_50
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct BankTransferNextStepsData { /// The instructions for performing a bank transfer #[serde(flatten)] pub bank_transfer_instructions: BankTransferInstructions, /// The details received by the receiver pub receiver: Option<ReceiverDetails>, } pub struct AchTransfer { pub account_number: Secret<String>, pub bank_name: String, pub routing_number: Secret<String>, pub swift_code: Secret<String>, } pub struct MultibancoTransferInstructions { pub reference: Secret<String>, pub entity: String, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_52
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub struct MultibancoTransferInstructions { pub reference: Secret<String>, pub entity: String, } pub struct ReceiverDetails { /// The amount received by receiver amount_received: i64, /// The amount charged by ACH amount_charged: Option<i64>, /// The amount remaining to be sent via ACH amount_remaining: Option<i64>, } pub enum PaymentMethodData<T: PaymentMethodDataTypes> { Card(Card<T>), CardDetailsForNetworkTransactionId(CardDetailsForNetworkTransactionId), CardRedirect(CardRedirectData), Wallet(WalletData), PayLater(PayLaterData), BankRedirect(BankRedirectData), BankDebit(BankDebitData), BankTransfer(Box<BankTransferData>), Crypto(CryptoData), MandatePayment, Reward, RealTimePayment(Box<RealTimePaymentData>), Upi(UpiData), Voucher(VoucherData), GiftCard(Box<GiftCardData>), CardToken(CardToken), OpenBanking(OpenBankingData), NetworkToken(NetworkTokenData), MobilePayment(MobilePaymentData), }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_54
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub enum PaymentMethodData<T: PaymentMethodDataTypes> { Card(Card<T>), CardDetailsForNetworkTransactionId(CardDetailsForNetworkTransactionId), CardRedirect(CardRedirectData), Wallet(WalletData), PayLater(PayLaterData), BankRedirect(BankRedirectData), BankDebit(BankDebitData), BankTransfer(Box<BankTransferData>), Crypto(CryptoData), MandatePayment, Reward, RealTimePayment(Box<RealTimePaymentData>), Upi(UpiData), Voucher(VoucherData), GiftCard(Box<GiftCardData>), CardToken(CardToken), OpenBanking(OpenBankingData), NetworkToken(NetworkTokenData), MobilePayment(MobilePaymentData), } pub enum OpenBankingData { OpenBankingPIS {}, } pub enum MobilePaymentData { DirectCarrierBilling { /// The phone number of the user msisdn: String, /// Unique user identifier client_uid: Option<String>, }, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_56
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub enum MobilePaymentData { DirectCarrierBilling { /// The phone number of the user msisdn: String, /// Unique user identifier client_uid: Option<String>, }, } pub enum GiftCardData { Givex(GiftCardDetails), PaySafeCard {}, } pub enum VoucherData { Boleto(Box<BoletoVoucherData>), Efecty, PagoEfectivo, RedCompra, RedPagos, Alfamart(Box<AlfamartVoucherData>), Indomaret(Box<IndomaretVoucherData>), Oxxo, SevenEleven(Box<JCSVoucherData>), Lawson(Box<JCSVoucherData>), MiniStop(Box<JCSVoucherData>), FamilyMart(Box<JCSVoucherData>), Seicomart(Box<JCSVoucherData>), PayEasy(Box<JCSVoucherData>), }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_58
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub enum VoucherData { Boleto(Box<BoletoVoucherData>), Efecty, PagoEfectivo, RedCompra, RedPagos, Alfamart(Box<AlfamartVoucherData>), Indomaret(Box<IndomaretVoucherData>), Oxxo, SevenEleven(Box<JCSVoucherData>), Lawson(Box<JCSVoucherData>), MiniStop(Box<JCSVoucherData>), FamilyMart(Box<JCSVoucherData>), Seicomart(Box<JCSVoucherData>), PayEasy(Box<JCSVoucherData>), } pub enum UpiData { /// UPI Collect - Customer approves a collect request sent to their UPI app UpiCollect(UpiCollectData), /// UPI Intent - Customer is redirected to their UPI app with a pre-filled payment request UpiIntent(UpiIntentData), /// UPI QR - Unique QR generated per txn UpiQr(UpiQrData), } pub enum RealTimePaymentData { DuitNow {}, Fps {}, PromptPay {}, VietQr {}, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_60
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub enum RealTimePaymentData { DuitNow {}, Fps {}, PromptPay {}, VietQr {}, } pub enum BankTransferData { AchBankTransfer {}, SepaBankTransfer {}, BacsBankTransfer {}, MultibancoBankTransfer {}, PermataBankTransfer {}, BcaBankTransfer {}, BniVaBankTransfer {}, BriVaBankTransfer {}, CimbVaBankTransfer {}, DanamonVaBankTransfer {}, MandiriVaBankTransfer {}, Pix { /// Unique key for pix transfer pix_key: Option<Secret<String>>, /// CPF is a Brazilian tax identification number cpf: Option<Secret<String>>, /// CNPJ is a Brazilian company tax identification number cnpj: Option<Secret<String>>, /// Source bank account UUID source_bank_account_id: Option<MaskedBankAccount>, /// Destination bank account UUID. destination_bank_account_id: Option<MaskedBankAccount>, }, Pse {}, LocalBankTransfer { bank_code: Option<String>, }, InstantBankTransfer {}, InstantBankTransferFinland {}, InstantBankTransferPoland {}, } pub enum BankDebitData { AchBankDebit { account_number: Secret<String>, routing_number: Secret<String>, card_holder_name: Option<Secret<String>>, bank_account_holder_name: Option<Secret<String>>, bank_name: Option<common_enums::BankNames>, bank_type: Option<common_enums::BankType>, bank_holder_type: Option<common_enums::BankHolderType>, }, SepaBankDebit { iban: Secret<String>, bank_account_holder_name: Option<Secret<String>>, }, BecsBankDebit { account_number: Secret<String>, bsb_number: Secret<String>, bank_account_holder_name: Option<Secret<String>>, }, BacsBankDebit { account_number: Secret<String>, sort_code: Secret<String>, bank_account_holder_name: Option<Secret<String>>, }, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_62
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub enum BankDebitData { AchBankDebit { account_number: Secret<String>, routing_number: Secret<String>, card_holder_name: Option<Secret<String>>, bank_account_holder_name: Option<Secret<String>>, bank_name: Option<common_enums::BankNames>, bank_type: Option<common_enums::BankType>, bank_holder_type: Option<common_enums::BankHolderType>, }, SepaBankDebit { iban: Secret<String>, bank_account_holder_name: Option<Secret<String>>, }, BecsBankDebit { account_number: Secret<String>, bsb_number: Secret<String>, bank_account_holder_name: Option<Secret<String>>, }, BacsBankDebit { account_number: Secret<String>, sort_code: Secret<String>, bank_account_holder_name: Option<Secret<String>>, }, } pub enum BankRedirectData { BancontactCard { card_number: Option<cards::CardNumber>, card_exp_month: Option<Secret<String>>, card_exp_year: Option<Secret<String>>, card_holder_name: Option<Secret<String>>, }, Bizum {}, Blik { blik_code: Option<String>, }, Eps { bank_name: Option<common_enums::BankNames>, country: Option<CountryAlpha2>, }, Giropay { bank_account_bic: Option<Secret<String>>, bank_account_iban: Option<Secret<String>>, country: Option<CountryAlpha2>, }, Ideal { bank_name: Option<common_enums::BankNames>, }, Interac { country: Option<CountryAlpha2>, email: Option<Email>, }, OnlineBankingCzechRepublic { issuer: common_enums::BankNames, }, OnlineBankingFinland { email: Option<Email>, }, OnlineBankingPoland { issuer: common_enums::BankNames, }, OnlineBankingSlovakia { issuer: common_enums::BankNames, }, OpenBankingUk { issuer: Option<common_enums::BankNames>, country: Option<CountryAlpha2>, }, Przelewy24 { bank_name: Option<common_enums::BankNames>, }, Sofort { country: Option<CountryAlpha2>, preferred_language: Option<String>, }, Trustly { country: Option<CountryAlpha2>, }, OnlineBankingFpx { issuer: common_enums::BankNames, }, OnlineBankingThailand { issuer: common_enums::BankNames, }, LocalBankRedirect {}, Eft { provider: String, }, } pub enum PayLaterData { KlarnaRedirect {}, KlarnaSdk { token: String }, AffirmRedirect {}, AfterpayClearpayRedirect {}, PayBrightRedirect {}, WalleyRedirect {}, AlmaRedirect {}, AtomeRedirect {}, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_64
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub enum PayLaterData { KlarnaRedirect {}, KlarnaSdk { token: String }, AffirmRedirect {}, AfterpayClearpayRedirect {}, PayBrightRedirect {}, WalleyRedirect {}, AlmaRedirect {}, AtomeRedirect {}, } pub enum WalletData { AliPayQr(Box<AliPayQr>), AliPayRedirect(AliPayRedirection), AliPayHkRedirect(AliPayHkRedirection), BluecodeRedirect {}, AmazonPayRedirect(Box<AmazonPayRedirectData>), MomoRedirect(MomoRedirection), KakaoPayRedirect(KakaoPayRedirection), GoPayRedirect(GoPayRedirection), GcashRedirect(GcashRedirection), ApplePay(ApplePayWalletData), ApplePayRedirect(Box<ApplePayRedirectData>), ApplePayThirdPartySdk(Box<ApplePayThirdPartySdkData>), DanaRedirect {}, GooglePay(GooglePayWalletData), GooglePayRedirect(Box<GooglePayRedirectData>), GooglePayThirdPartySdk(Box<GooglePayThirdPartySdkData>), MbWayRedirect(Box<MbWayRedirection>), MobilePayRedirect(Box<MobilePayRedirection>), PaypalRedirect(PaypalRedirection), PaypalSdk(PayPalWalletData), Paze(PazeWalletData), SamsungPay(Box<SamsungPayWalletData>), TwintRedirect {}, VippsRedirect {}, TouchNGoRedirect(Box<TouchNGoRedirection>), WeChatPayRedirect(Box<WeChatPayRedirection>), WeChatPayQr(Box<WeChatPayQr>), CashappQr(Box<CashappQr>), SwishQr(SwishQrData), Mifinity(MifinityData), RevolutPay(RevolutPayData), } pub enum CardRedirectData { Knet {}, Benefit {}, MomoAtm {}, CardRedirect {}, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4017303140956931129_66
clm
multi_item
// connector-service/backend/domain_types/src/payment_method_data.rs pub enum CardRedirectData { Knet {}, Benefit {}, MomoAtm {}, CardRedirect {}, } pub enum CardType { Credit, Debit, } pub enum BankTransferInstructions { /// The credit transfer for ACH transactions AchCreditTransfer(Box<AchTransfer>), /// The instructions for Multibanco bank transactions Multibanco(Box<MultibancoTransferInstructions>), }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-9203487555415585328_0
clm
multi_item
// connector-service/backend/domain_types/src/mandates.rs pub struct CustomerAcceptance { /// Type of acceptance provided by the pub acceptance_type: AcceptanceType, /// Specifying when the customer acceptance was provided #[serde(with = "common_utils::custom_serde::iso8601::option")] pub accepted_at: Option<PrimitiveDateTime>, /// Information required for online mandate generation pub online: Option<OnlineMandate>, } pub struct OnlineMandate { /// Ip address of the customer machine from which the mandate was created #[serde(skip_deserializing)] pub ip_address: Option<Secret<String, IpAddress>>, /// The user-agent of the customer's browser pub user_agent: String, } pub struct MandateData { /// A way to update the mandate's payment method details pub update_mandate_id: Option<String>, /// A consent from the customer to store the payment method pub customer_acceptance: Option<CustomerAcceptance>, /// A way to select the type of mandate used pub mandate_type: Option<MandateDataType>, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-9203487555415585328_2
clm
multi_item
// connector-service/backend/domain_types/src/mandates.rs pub struct MandateData { /// A way to update the mandate's payment method details pub update_mandate_id: Option<String>, /// A consent from the customer to store the payment method pub customer_acceptance: Option<CustomerAcceptance>, /// A way to select the type of mandate used pub mandate_type: Option<MandateDataType>, } pub struct MandateAmountData { pub amount: common_utils::types::MinorUnit, pub currency: Currency, pub start_date: Option<PrimitiveDateTime>, pub end_date: Option<PrimitiveDateTime>, pub metadata: Option<SecretSerdeValue>, } pub enum AcceptanceType { Online, #[default] Offline, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-9203487555415585328_4
clm
multi_item
// connector-service/backend/domain_types/src/mandates.rs pub enum AcceptanceType { Online, #[default] Offline, } pub enum MandateDataType { SingleUse(MandateAmountData), MultiUse(Option<MandateAmountData>), }
{ "chunk": null, "crate": null, "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": 2, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-8256841136792189831_0
clm
multi_item
// connector-service/backend/domain_types/src/api.rs pub struct RedirectionFormData { pub redirect_form: RedirectForm, pub payment_method_data: Option<PaymentMethodData<DefaultPCIHolder>>, pub amount: String, pub currency: String, } pub struct PaymentLinkFormData { pub js_script: String, pub css_script: String, pub sdk_url: url::Url, pub html_meta_tags: String, } pub struct PaymentLinkStatusData { pub js_script: String, pub css_script: String, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-8256841136792189831_2
clm
multi_item
// connector-service/backend/domain_types/src/api.rs pub struct PaymentLinkStatusData { pub js_script: String, pub css_script: String, } pub struct GenericLinks { pub allowed_domains: HashSet<String>, pub data: GenericLinksData, pub locale: String, } pub struct GenericExpiredLinkData { pub title: String, pub message: String, pub theme: String, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-8256841136792189831_4
clm
multi_item
// connector-service/backend/domain_types/src/api.rs pub struct GenericExpiredLinkData { pub title: String, pub message: String, pub theme: String, } pub struct GenericLinkFormData { pub js_data: String, pub css_data: String, pub sdk_url: url::Url, pub html_meta_tags: String, } pub struct GenericLinkStatusData { pub js_data: String, pub css_data: String, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-8256841136792189831_6
clm
multi_item
// connector-service/backend/domain_types/src/api.rs pub struct GenericLinkStatusData { pub js_data: String, pub css_data: String, } pub enum PaymentLinkAction { PaymentLinkFormData(PaymentLinkFormData), PaymentLinkStatus(PaymentLinkStatusData), } pub enum GenericLinksData { ExpiredLink(GenericExpiredLinkData), PaymentMethodCollect(GenericLinkFormData), PayoutLink(GenericLinkFormData), PayoutLinkStatus(GenericLinkStatusData), PaymentMethodCollectStatus(GenericLinkStatusData), SecurePaymentLink(PaymentLinkFormData), }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4703749612792602811_0
clm
multi_item
// connector-service/backend/domain_types/src/connector_flow.rs pub struct CreateOrder; pub struct Authorize; pub struct PSync;
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4703749612792602811_2
clm
multi_item
// connector-service/backend/domain_types/src/connector_flow.rs pub struct PSync; pub struct Void; pub struct RSync;
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4703749612792602811_4
clm
multi_item
// connector-service/backend/domain_types/src/connector_flow.rs pub struct RSync; pub struct Refund; pub struct Capture;
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4703749612792602811_6
clm
multi_item
// connector-service/backend/domain_types/src/connector_flow.rs pub struct Capture; pub struct SetupMandate; pub struct RepeatPayment;
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4703749612792602811_8
clm
multi_item
// connector-service/backend/domain_types/src/connector_flow.rs pub struct RepeatPayment; pub struct Accept; pub struct SubmitEvidence;
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4703749612792602811_10
clm
multi_item
// connector-service/backend/domain_types/src/connector_flow.rs pub struct SubmitEvidence; pub struct DefendDispute; pub struct CreateSessionToken;
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4703749612792602811_12
clm
multi_item
// connector-service/backend/domain_types/src/connector_flow.rs pub struct CreateSessionToken; pub struct CreateAccessToken; pub struct CreateConnectorCustomer;
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4703749612792602811_14
clm
multi_item
// connector-service/backend/domain_types/src/connector_flow.rs pub struct CreateConnectorCustomer; pub struct PaymentMethodToken; pub struct PreAuthenticate;
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4703749612792602811_16
clm
multi_item
// connector-service/backend/domain_types/src/connector_flow.rs pub struct PreAuthenticate; pub struct Authenticate; pub struct PostAuthenticate;
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-4703749612792602811_18
clm
multi_item
// connector-service/backend/domain_types/src/connector_flow.rs pub struct PostAuthenticate; pub struct VoidPC; pub enum FlowName { Authorize, Refund, Rsync, Psync, Void, VoidPc, SetupMandate, RepeatPayment, Capture, AcceptDispute, SubmitEvidence, DefendDispute, CreateOrder, IncomingWebhook, Dsync, CreateSessionToken, CreateAccessToken, CreateConnectorCustomer, PaymentMethodToken, PreAuthenticate, Authenticate, PostAuthenticate, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-8391166333106684163_0
clm
multi_item
// connector-service/backend/grpc-server/tests/utils/credential_utils.rs pub struct ConnectorAccountDetails { pub auth_type: String, #[serde(default)] pub api_key: Option<String>, #[serde(default)] pub key1: Option<String>, #[serde(default)] pub api_secret: Option<String>, #[serde(default)] pub key2: Option<String>, #[serde(default)] pub certificate: Option<String>, #[serde(default)] pub private_key: Option<String>, #[serde(default)] pub auth_key_map: Option<HashMap<Currency, SecretSerdeValue>>, } pub struct ConnectorCredentials { pub connector_account_details: ConnectorAccountDetails, #[serde(default)] pub metadata: Option<serde_json::Value>, } pub enum CredentialError { #[error("Failed to read credentials file: {0}")] FileReadError(#[from] std::io::Error), #[error("Failed to parse credentials JSON: {0}")] ParseError(#[from] serde_json::Error), #[error("Connector '{0}' not found in credentials")] ConnectorNotFound(String), #[error("Invalid auth type '{0}' for connector '{1}'")] InvalidAuthType(String, String), #[error("Missing required field '{0}' for auth type '{1}'")] MissingField(String, String), #[error("Invalid structure for connector '{0}': {1}")] InvalidStructure(String, String), }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-2425448326891067086_0
clm
multi_item
// connector-service/backend/grpc-server/src/error.rs pub struct PaymentAuthorizationError { pub status: grpc_api_types::payments::PaymentStatus, pub error_message: Option<String>, pub error_code: Option<String>, pub status_code: Option<u32>, } pub enum ConfigurationError { #[error("Invalid host for socket: {0}")] AddressError(#[from] std::net::AddrParseError), #[error("Failed while building grpc reflection service: {0}")] GrpcReflectionServiceError(#[from] tonic_reflection::server::Error), #[error("Error while creating metrics server")] MetricsServerError, #[error("Error while creating the server: {0}")] ServerError(#[from] tonic::transport::Error), #[error("IO error: {0}")] IoError(#[from] std::io::Error), }
{ "chunk": null, "crate": null, "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": 2, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_8674746398584233230_0
clm
multi_item
// connector-service/backend/grpc-server/src/configs.rs pub struct Config { pub common: Common, pub server: Server, pub metrics: MetricsServer, pub log: Log, pub proxy: Proxy, pub connectors: Connectors, #[serde(default)] pub events: EventConfig, #[serde(default)] pub lineage: LineageConfig, #[serde(default)] pub unmasked_headers: HeaderMaskingConfig, } pub struct LineageConfig { /// Enable processing of x-lineage-ids header pub enabled: bool, /// Custom header name (default: x-lineage-ids) #[serde(default = "default_lineage_header")] pub header_name: String, /// Prefix for lineage fields in events #[serde(default = "default_lineage_prefix")] pub field_prefix: String, } pub struct Common { pub environment: consts::Env, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_8674746398584233230_2
clm
multi_item
// connector-service/backend/grpc-server/src/configs.rs pub struct Common { pub environment: consts::Env, } pub struct Server { pub host: String, pub port: u16, #[serde(rename = "type", default)] pub type_: ServiceType, } pub struct MetricsServer { pub host: String, pub port: u16, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_8674746398584233230_4
clm
multi_item
// connector-service/backend/grpc-server/src/configs.rs pub struct MetricsServer { pub host: String, pub port: u16, } pub enum ServiceType { #[default] Grpc, Http, }
{ "chunk": null, "crate": null, "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": 2, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_8407789757677062419_0
clm
multi_item
// connector-service/backend/grpc-server/src/logger/config.rs pub struct Log { /// Logging to a console. pub console: LogConsole, /// Logging to Kafka (optional). #[serde(default)] pub kafka: Option<LogKafka>, } pub struct LogConsole { /// Whether you want to see log in your terminal. pub enabled: bool, /// What you see in your terminal. pub level: Level, /// Log format pub log_format: LogFormat, /// Directive which sets the log level for one or more crates/modules. pub filtering_directive: Option<String>, } pub struct Level(pub(super) tracing::Level);
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_8407789757677062419_2
clm
multi_item
// connector-service/backend/grpc-server/src/logger/config.rs pub struct Level(pub(super) tracing::Level); pub struct LogKafka { /// Whether Kafka logging is enabled. pub enabled: bool, /// Minimum log level for Kafka logging. pub level: Level, /// Directive which sets the log level for one or more crates/modules. pub filtering_directive: Option<String>, /// Kafka broker addresses. pub brokers: Vec<String>, /// Topic name for logs. pub topic: String, /// Batch size for Kafka messages (optional, defaults to Kafka default). #[serde(default)] pub batch_size: Option<usize>, /// Flush interval in milliseconds (optional, defaults to Kafka default). #[serde(default)] pub flush_interval_ms: Option<u64>, /// Buffer limit for Kafka messages (optional, defaults to Kafka default). #[serde(default)] pub buffer_limit: Option<usize>, } pub enum LogFormat { /// Default pretty log format Default, /// JSON based structured logging #[default] Json, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-1230957448226898650_0
clm
multi_item
// connector-service/backend/grpc-server/src/logger/formatter.rs pub struct FormattingLayer<W> where W: for<'a> MakeWriter<'a> + 'static, { dst_writer: W, pid: u32, hostname: String, service: String, default_fields: HashMap<String, Value>, } pub enum RecordType { /// Entering a span. EnterSpan, /// Exiting a span. ExitSpan, /// Event. Event, }
{ "chunk": null, "crate": null, "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": 2, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_6348302695617038329_0
clm
multi_item
// connector-service/backend/grpc-server/src/logger/storage.rs pub struct StorageSubscription; pub struct Storage<'a> { /// Hash map to store values. pub values: HashMap<&'a str, serde_json::Value>, }
{ "chunk": null, "crate": null, "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": 2, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_8474653292087038763_0
clm
multi_item
// connector-service/backend/grpc-server/src/server/payments.rs struct EventParams<'a> { _connector_name: &'a str, _service_name: &'a str, request_id: &'a str, lineage_ids: &'a lineage::LineageIds<'a>, reference_id: &'a Option<String>, shadow_mode: bool, } struct CardTokenData { card_number: String, cvv: String, exp_month: String, exp_year: String, } pub struct Payments { pub config: Arc<Config>, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_3630394773618043277_0
clm
multi_item
// connector-service/backend/interfaces/src/webhooks.rs pub struct IncomingWebhookRequestDetails<'a> { /// method pub method: http::Method, /// uri pub uri: http::Uri, /// headers pub headers: &'a actix_web::http::header::HeaderMap, /// body pub body: &'a [u8], /// query_params pub query_params: String, } pub struct MerchantConnectorWebhookDetails { pub merchant_secret: Secret<String>, pub additional_secret: Option<Secret<String>>, } pub enum IncomingWebhookFlowError { /// Resource not found for the webhook ResourceNotFound, /// Internal error for the webhook InternalError, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_3630394773618043277_2
clm
multi_item
// connector-service/backend/interfaces/src/webhooks.rs pub enum IncomingWebhookFlowError { /// Resource not found for the webhook ResourceNotFound, /// Internal error for the webhook InternalError, } pub enum IncomingWebhookEvent { /// Authorization + Capture success PaymentIntentFailure, /// Authorization + Capture failure PaymentIntentSuccess, PaymentIntentProcessing, PaymentIntentPartiallyFunded, PaymentIntentCancelled, PaymentIntentCancelFailure, PaymentIntentAuthorizationSuccess, PaymentIntentAuthorizationFailure, PaymentIntentCaptureSuccess, PaymentIntentCaptureFailure, PaymentActionRequired, EventNotSupported, SourceChargeable, SourceTransactionCreated, RefundFailure, RefundSuccess, DisputeOpened, DisputeExpired, DisputeAccepted, DisputeCancelled, DisputeChallenged, // dispute has been successfully challenged by the merchant DisputeWon, // dispute has been unsuccessfully challenged DisputeLost, MandateActive, MandateRevoked, EndpointVerification, ExternalAuthenticationARes, FrmApproved, FrmRejected, }
{ "chunk": null, "crate": null, "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": 2, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-8407711303800421270_0
clm
multi_item
// connector-service/backend/interfaces/src/routing.rs pub struct RoutableConnectorChoice { #[serde(skip)] pub choice_kind: RoutableChoiceKind, pub connector: RoutableConnectors, #[schema(value_type = Option<String>)] pub merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>, } pub enum RoutableChoiceKind { OnlyConnector, FullStruct, } pub enum RoutableChoiceSerde { OnlyConnector(Box<RoutableConnectors>), FullStruct { connector: RoutableConnectors, merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>, }, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_3032402600771296028_0
clm
multi_item
// connector-service/examples/example-cli/src/bin/jus.rs struct AuthDetails { /// API key for authentication #[arg(long, required = false)] #[serde(default)] api_key: String, /// Key1 for authentication (used in BodyKey and SignatureKey auth) #[arg(long, required = false)] #[serde(default)] key1: Option<String>, /// API secret for authentication (used in SignatureKey auth) #[arg(long, required = false)] #[serde(default)] api_secret: Option<String>, /// Authentication type (bodykey, headerkey, signaturekey) #[arg(long, value_enum, required = false)] #[serde(default)] auth_type: AuthType, } struct CardArgs { /// Card number #[arg(long, required = false)] #[serde(default)] number: String, /// Card expiry month #[arg(long, required = false)] #[serde(default)] exp_month: String, /// Card expiry year #[arg(long, required = false)] #[serde(default)] exp_year: String, /// Card CVC #[arg(long, required = false)] #[serde(default)] cvc: String, } struct CredentialData { pub connector: ConnectorChoice, pub auth: AuthDetails, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_3032402600771296028_2
clm
multi_item
// connector-service/examples/example-cli/src/bin/jus.rs struct CredentialData { pub connector: ConnectorChoice, pub auth: AuthDetails, } struct PaymentData { pub amount: i64, pub currency: String, pub email: Option<String>, pub card: CardArgs, } struct GetData { pub payment_id: String, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_3032402600771296028_4
clm
multi_item
// connector-service/examples/example-cli/src/bin/jus.rs struct GetData { pub payment_id: String, } struct PayArgs { /// URL of the gRPC server #[arg(long)] url: String, /// Connector to use (can be provided via cred_file) #[arg(long, value_enum)] connector: Option<ConnectorChoice>, /// Amount to charge (can be provided via payment_file) #[arg(long)] amount: Option<i64>, /// Currency to use (usd, gbp, eur) (can be provided via payment_file) #[arg(long)] currency: Option<String>, /// Email address (can be provided via payment_file) #[arg(long)] email: Option<String>, /// Path to credential file (contains connector and auth details) #[arg(long)] cred_file: Option<PathBuf>, /// Path to payment data file (contains payment details) #[arg(long)] payment_file: Option<PathBuf>, /// Capture method (automatic, manual, manual_multiple, scheduled, sequential_automatic) #[arg(long)] capture_method: Option<String>, /// Return URL for redirect flows #[arg(long)] return_url: Option<String>, /// Webhook URL for notifications #[arg(long)] webhook_url: Option<String>, /// Complete authorize URL #[arg(long)] complete_authorize_url: Option<String>, /// Future usage (off_session, on_session) #[arg(long)] future_usage: Option<String>, /// Whether the payment is off session #[arg(long)] off_session: Option<bool>, /// Order category #[arg(long)] order_category: Option<String>, /// Whether enrolled for 3DS #[arg(long)] enrolled_for_3ds: Option<bool>, /// Payment experience (redirect_to_url, invoke_sdk_client, etc.) #[arg(long)] payment_experience: Option<String>, /// Payment method type #[arg(long)] payment_method_type: Option<String>, /// Whether to request incremental authorization #[arg(long)] request_incremental_authorization: Option<bool>, /// Whether to request extended authorization #[arg(long)] request_extended_authorization: Option<bool>, /// Merchant order reference ID #[arg(long)] merchant_order_reference_id: Option<String>, /// Shipping cost #[arg(long)] shipping_cost: Option<i64>, #[command(flatten)] auth: Option<AuthDetails>, #[command(flatten)] card: Option<CardArgs>, } struct GetArgs { /// URL of the gRPC server #[arg(long)] url: String, /// Connector to use (can be provided via cred_file) #[arg(long, value_enum)] connector: Option<ConnectorChoice>, /// Resource ID to sync (can be provided via get_file) #[arg(long)] payment_id: Option<String>, /// Path to credential file (contains connector and auth details) #[arg(long)] cred_file: Option<PathBuf>, /// Path to sync data file (contains sync details) #[arg(long)] get_file: Option<PathBuf>, #[command(flatten)] auth: Option<AuthDetails>, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_3032402600771296028_6
clm
multi_item
// connector-service/examples/example-cli/src/bin/jus.rs struct GetArgs { /// URL of the gRPC server #[arg(long)] url: String, /// Connector to use (can be provided via cred_file) #[arg(long, value_enum)] connector: Option<ConnectorChoice>, /// Resource ID to sync (can be provided via get_file) #[arg(long)] payment_id: Option<String>, /// Path to credential file (contains connector and auth details) #[arg(long)] cred_file: Option<PathBuf>, /// Path to sync data file (contains sync details) #[arg(long)] get_file: Option<PathBuf>, #[command(flatten)] auth: Option<AuthDetails>, } struct Cli { #[command(subcommand)] command: Command, } enum ConnectorChoice { Adyen, Razorpay, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_3032402600771296028_8
clm
multi_item
// connector-service/examples/example-cli/src/bin/jus.rs enum ConnectorChoice { Adyen, Razorpay, } enum AuthType { /// Use body key authentication BodyKey, /// Use header key authentication HeaderKey, /// Use signature key authentication SignatureKey, } enum Command { /// Create a payment Pay(PayArgs), /// Get payment status Get(GetArgs), }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-7964693969177594414_0
clm
multi_item
// connector-service/examples/example-tui/src/main.rs struct AppState { url: Option<String>, connector: Option<ConnectorChoice>, auth_details: Option<String>, card_number: Option<String>, card_exp_month: Option<String>, card_exp_year: Option<String>, card_cvc: Option<String>, amount: Option<i64>, currency: Option<i32>, resource_id: Option<String>, email: Option<String>, api_key: Option<String>, key1: Option<String>, api_secret: Option<String>, } enum ConnectorChoice { Adyen, Razorpay, // Add other connectors defined in the crate's payments::Connector enum } enum AuthDetailsChoice { BodyKey { api_key: String, key1: String, }, // Updated HeaderKey to only have api_key HeaderKey { api_key: String, }, // <-- Removed key1 // Add other auth types matching the crate's payments::auth_type::AuthDetails oneof SignatureKey { api_key: String, key1: String, api_secret: String, }, // e.g., NoKey, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_0
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum CurrencyError { /// The provided currency is not supported for amount conversion #[error("Unsupported currency: {currency}. Please add this currency to the supported currency list with appropriate decimal configuration.")] UnsupportedCurrency { currency: String }, } pub enum Currency { AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLE, SLL, SOS, SRD, SSP, STD, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, #[default] USD, UYU, UZS, VES, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW, ZWL, } pub enum SamsungPayCardBrand { Visa, MasterCard, Amex, Discover, Unknown, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_2
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum SamsungPayCardBrand { Visa, MasterCard, Amex, Discover, Unknown, } pub enum BankType { Checking, Savings, } pub enum BankHolderType { Personal, Business, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_4
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum BankHolderType { Personal, Business, } pub enum BankNames { AmericanExpress, AffinBank, AgroBank, AllianceBank, AmBank, BankOfAmerica, BankOfChina, BankIslam, BankMuamalat, BankRakyat, BankSimpananNasional, Barclays, BlikPSP, CapitalOne, Chase, Citi, CimbBank, Discover, NavyFederalCreditUnion, PentagonFederalCreditUnion, SynchronyBank, WellsFargo, AbnAmro, AsnBank, Bunq, Handelsbanken, HongLeongBank, HsbcBank, Ing, Knab, KuwaitFinanceHouse, Moneyou, Rabobank, Regiobank, Revolut, SnsBank, TriodosBank, VanLanschot, ArzteUndApothekerBank, AustrianAnadiBankAg, BankAustria, Bank99Ag, BankhausCarlSpangler, BankhausSchelhammerUndSchatteraAg, BankMillennium, BankPEKAOSA, BawagPskAg, BksBankAg, BrullKallmusBankAg, BtvVierLanderBank, CapitalBankGraweGruppeAg, CeskaSporitelna, Dolomitenbank, EasybankAg, EPlatbyVUB, ErsteBankUndSparkassen, FrieslandBank, HypoAlpeadriabankInternationalAg, HypoNoeLbFurNiederosterreichUWien, HypoOberosterreichSalzburgSteiermark, HypoTirolBankAg, HypoVorarlbergBankAg, HypoBankBurgenlandAktiengesellschaft, KomercniBanka, MBank, MarchfelderBank, Maybank, OberbankAg, OsterreichischeArzteUndApothekerbank, OcbcBank, PayWithING, PlaceZIPKO, PlatnoscOnlineKartaPlatnicza, PosojilnicaBankEGen, PostovaBanka, PublicBank, RaiffeisenBankengruppeOsterreich, RhbBank, SchelhammerCapitalBankAg, StandardCharteredBank, SchoellerbankAg, SpardaBankWien, SporoPay, SantanderPrzelew24, TatraPay, Viamo, VolksbankGruppe, VolkskreditbankAg, VrBankBraunau, UobBank, PayWithAliorBank, BankiSpoldzielcze, PayWithInteligo, BNPParibasPoland, BankNowySA, CreditAgricole, PayWithBOS, PayWithCitiHandlowy, PayWithPlusBank, ToyotaBank, VeloBank, ETransferPocztowy24, PlusBank, EtransferPocztowy24, BankiSpbdzielcze, BankNowyBfgSa, GetinBank, Blik, NoblePay, IdeaBank, EnveloBank, NestPrzelew, MbankMtransfer, Inteligo, PbacZIpko, BnpParibas, BankPekaoSa, VolkswagenBank, AliorBank, Boz, BangkokBank, KrungsriBank, KrungThaiBank, TheSiamCommercialBank, KasikornBank, OpenBankSuccess, OpenBankFailure, OpenBankCancelled, Aib, BankOfScotland, DanskeBank, FirstDirect, FirstTrust, Halifax, Lloyds, Monzo, NatWest, NationwideBank, RoyalBankOfScotland, Starling, TsbBank, TescoBank, UlsterBank, Yoursafe, N26, NationaleNederlanden, } pub enum RegulatedName { #[serde(rename = "GOVERNMENT NON-EXEMPT INTERCHANGE FEE (WITH FRAUD)")] #[strum(serialize = "GOVERNMENT NON-EXEMPT INTERCHANGE FEE (WITH FRAUD)")] NonExemptWithFraud, #[serde(untagged)] #[strum(default)] Unknown(String), }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_6
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum RegulatedName { #[serde(rename = "GOVERNMENT NON-EXEMPT INTERCHANGE FEE (WITH FRAUD)")] #[strum(serialize = "GOVERNMENT NON-EXEMPT INTERCHANGE FEE (WITH FRAUD)")] NonExemptWithFraud, #[serde(untagged)] #[strum(default)] Unknown(String), } pub enum CaptureMethod { #[default] Automatic, Manual, ManualMultiple, Scheduled, SequentialAutomatic, } pub enum FutureUsage { OffSession, #[default] OnSession, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_8
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum FutureUsage { OffSession, #[default] OnSession, } pub enum PaymentExperience { #[default] RedirectToUrl, InvokeSdkClient, DisplayQrCode, OneClick, LinkWallet, InvokePaymentApp, DisplayWaitScreen, CollectOtp, } pub enum PaymentMethodType { Ach, Affirm, AfterpayClearpay, Alfamart, AliPay, AliPayHk, Alma, AmazonPay, ApplePay, Atome, Bluecode, Bacs, BancontactCard, Becs, Benefit, Bizum, Blik, Boleto, BcaBankTransfer, BniVa, BriVa, CardRedirect, CimbVa, #[serde(rename = "classic")] ClassicReward, Credit, CryptoCurrency, Cashapp, Dana, DanamonVa, Debit, DuitNow, Efecty, Eft, Eps, Fps, Evoucher, Giropay, Givex, GooglePay, GoPay, Gcash, Ideal, Interac, Indomaret, Klarna, KakaoPay, LocalBankRedirect, MandiriVa, Knet, MbWay, MobilePay, Momo, MomoAtm, Multibanco, OnlineBankingThailand, OnlineBankingCzechRepublic, OnlineBankingFinland, OnlineBankingFpx, OnlineBankingPoland, OnlineBankingSlovakia, Oxxo, PagoEfectivo, PermataBankTransfer, OpenBankingUk, PayBright, Paypal, Paze, Pix, PaySafeCard, Przelewy24, PromptPay, Pse, RedCompra, RedPagos, SamsungPay, Sepa, SepaBankTransfer, Sofort, Swish, TouchNGo, Trustly, Twint, UpiCollect, UpiIntent, Vipps, VietQr, Venmo, Walley, WeChatPay, SevenEleven, Lawson, MiniStop, FamilyMart, Seicomart, PayEasy, LocalBankTransfer, Mifinity, #[serde(rename = "open_banking_pis")] OpenBankingPIS, DirectCarrierBilling, InstantBankTransfer, InstantBankTransferFinland, InstantBankTransferPoland, RevolutPay, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_10
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum PaymentMethodType { Ach, Affirm, AfterpayClearpay, Alfamart, AliPay, AliPayHk, Alma, AmazonPay, ApplePay, Atome, Bluecode, Bacs, BancontactCard, Becs, Benefit, Bizum, Blik, Boleto, BcaBankTransfer, BniVa, BriVa, CardRedirect, CimbVa, #[serde(rename = "classic")] ClassicReward, Credit, CryptoCurrency, Cashapp, Dana, DanamonVa, Debit, DuitNow, Efecty, Eft, Eps, Fps, Evoucher, Giropay, Givex, GooglePay, GoPay, Gcash, Ideal, Interac, Indomaret, Klarna, KakaoPay, LocalBankRedirect, MandiriVa, Knet, MbWay, MobilePay, Momo, MomoAtm, Multibanco, OnlineBankingThailand, OnlineBankingCzechRepublic, OnlineBankingFinland, OnlineBankingFpx, OnlineBankingPoland, OnlineBankingSlovakia, Oxxo, PagoEfectivo, PermataBankTransfer, OpenBankingUk, PayBright, Paypal, Paze, Pix, PaySafeCard, Przelewy24, PromptPay, Pse, RedCompra, RedPagos, SamsungPay, Sepa, SepaBankTransfer, Sofort, Swish, TouchNGo, Trustly, Twint, UpiCollect, UpiIntent, Vipps, VietQr, Venmo, Walley, WeChatPay, SevenEleven, Lawson, MiniStop, FamilyMart, Seicomart, PayEasy, LocalBankTransfer, Mifinity, #[serde(rename = "open_banking_pis")] OpenBankingPIS, DirectCarrierBilling, InstantBankTransfer, InstantBankTransferFinland, InstantBankTransferPoland, RevolutPay, } pub enum CurrencyUnit { /// Base currency unit Base, /// Minor currency unit Minor, } pub enum RefundStatus { #[serde(alias = "Failure")] Failure, #[serde(alias = "ManualReview")] ManualReview, #[default] #[serde(alias = "Pending")] Pending, #[serde(alias = "Success")] Success, #[serde(alias = "TransactionFailure")] TransactionFailure, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_12
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum RefundStatus { #[serde(alias = "Failure")] Failure, #[serde(alias = "ManualReview")] ManualReview, #[default] #[serde(alias = "Pending")] Pending, #[serde(alias = "Success")] Success, #[serde(alias = "TransactionFailure")] TransactionFailure, } pub enum AttemptStatus { Started, AuthenticationFailed, RouterDeclined, AuthenticationPending, AuthenticationSuccessful, Authorized, AuthorizationFailed, Charged, Authorizing, CodInitiated, Voided, VoidedPostCapture, VoidInitiated, VoidPostCaptureInitiated, CaptureInitiated, CaptureFailed, VoidFailed, AutoRefunded, PartialCharged, PartialChargedAndChargeable, Unresolved, #[default] Pending, Failure, PaymentMethodAwaited, ConfirmationAwaited, DeviceDataCollectionPending, IntegrityFailure, Unknown, } pub enum DisputeStatus { #[default] DisputeOpened, DisputeExpired, DisputeAccepted, DisputeCancelled, DisputeChallenged, DisputeWon, DisputeLost, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_14
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum DisputeStatus { #[default] DisputeOpened, DisputeExpired, DisputeAccepted, DisputeCancelled, DisputeChallenged, DisputeWon, DisputeLost, } pub enum DisputeStage { PreDispute, #[default] Dispute, PreArbitration, } pub enum CardNetwork { #[serde(alias = "VISA")] Visa, #[serde(alias = "MASTERCARD")] Mastercard, #[serde(alias = "AMERICANEXPRESS")] #[serde(alias = "AMEX")] AmericanExpress, JCB, #[serde(alias = "DINERSCLUB")] DinersClub, #[serde(alias = "DISCOVER")] Discover, #[serde(alias = "CARTESBANCAIRES")] CartesBancaires, #[serde(alias = "UNIONPAY")] UnionPay, #[serde(alias = "INTERAC")] Interac, #[serde(alias = "RUPAY")] RuPay, #[serde(alias = "MAESTRO")] Maestro, #[serde(alias = "STAR")] Star, #[serde(alias = "PULSE")] Pulse, #[serde(alias = "ACCEL")] Accel, #[serde(alias = "NYCE")] Nyce, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_16
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum CardNetwork { #[serde(alias = "VISA")] Visa, #[serde(alias = "MASTERCARD")] Mastercard, #[serde(alias = "AMERICANEXPRESS")] #[serde(alias = "AMEX")] AmericanExpress, JCB, #[serde(alias = "DINERSCLUB")] DinersClub, #[serde(alias = "DISCOVER")] Discover, #[serde(alias = "CARTESBANCAIRES")] CartesBancaires, #[serde(alias = "UNIONPAY")] UnionPay, #[serde(alias = "INTERAC")] Interac, #[serde(alias = "RUPAY")] RuPay, #[serde(alias = "MAESTRO")] Maestro, #[serde(alias = "STAR")] Star, #[serde(alias = "PULSE")] Pulse, #[serde(alias = "ACCEL")] Accel, #[serde(alias = "NYCE")] Nyce, } pub enum PaymentMethod { #[default] Card, CardRedirect, PayLater, Wallet, BankRedirect, BankTransfer, Crypto, BankDebit, Reward, RealTimePayment, Upi, Voucher, GiftCard, OpenBanking, MobilePayment, } pub enum AuthenticationType { ThreeDs, #[default] NoThreeDs, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_18
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum AuthenticationType { ThreeDs, #[default] NoThreeDs, } pub enum EventClass { Payments, Refunds, Disputes, } pub enum CountryAlpha2 { AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, BN, BG, BF, BI, KH, CM, CA, CV, KY, CF, TD, CL, CN, CX, CC, CO, KM, CG, CD, CK, CR, CI, HR, CU, CW, CY, CZ, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KP, KR, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MK, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, RE, RO, RU, RW, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, SD, SR, SJ, SZ, SE, CH, SY, TW, TJ, TZ, TH, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, UM, UY, UZ, VU, VE, VN, VG, VI, WF, EH, YE, ZM, ZW, #[default] US }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_20
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum CountryAlpha2 { AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, BN, BG, BF, BI, KH, CM, CA, CV, KY, CF, TD, CL, CN, CX, CC, CO, KM, CG, CD, CK, CR, CI, HR, CU, CW, CY, CZ, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KP, KR, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MK, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, RE, RO, RU, RW, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, SD, SR, SJ, SZ, SE, CH, SY, TW, TJ, TZ, TH, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, UM, UY, UZ, VU, VE, VN, VG, VI, WF, EH, YE, ZM, ZW, #[default] US } pub enum ApiClientError { #[error("Header map construction failed")] HeaderMapConstructionFailed, #[error("Invalid proxy configuration")] InvalidProxyConfiguration, #[error("Client construction failed")] ClientConstructionFailed, #[error("Certificate decode failed")] CertificateDecodeFailed, #[error("Request body serialization failed")] BodySerializationFailed, #[error("Unexpected state reached/Invariants conflicted")] UnexpectedState, #[error("Failed to parse URL")] UrlParsingFailed, #[error("URL encoding of request payload failed")] UrlEncodingFailed, #[error("Failed to send request to connector {0}")] RequestNotSent(String), #[error("Failed to decode response")] ResponseDecodingFailed, #[error("Server responded with Request Timeout")] RequestTimeoutReceived, #[error("connection closed before a message could complete")] ConnectionClosedIncompleteMessage, #[error("Server responded with Internal Server Error")] InternalServerErrorReceived, #[error("Server responded with Bad Gateway")] BadGatewayReceived, #[error("Server responded with Service Unavailable")] ServiceUnavailableReceived, #[error("Server responded with Gateway Timeout")] GatewayTimeoutReceived, #[error("Server responded with unexpected response")] UnexpectedServerResponse, } pub enum ProcessTrackerRunner { PaymentsSyncWorkflow, RefundWorkflowRouter, DeleteTokenizeDataWorkflow, ApiKeyExpiryWorkflow, OutgoingWebhookRetryWorkflow, AttachPayoutAccountWorkflow, PaymentMethodStatusUpdateWorkflow, PassiveRecoveryWorkflow, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_22
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum ProcessTrackerRunner { PaymentsSyncWorkflow, RefundWorkflowRouter, DeleteTokenizeDataWorkflow, ApiKeyExpiryWorkflow, OutgoingWebhookRetryWorkflow, AttachPayoutAccountWorkflow, PaymentMethodStatusUpdateWorkflow, PassiveRecoveryWorkflow, } pub enum TransactionStatus { /// Authentication/ Account Verification Successful #[serde(rename = "Y")] Success, /// Not Authenticated /Account Not Verified; Transaction denied #[default] #[serde(rename = "N")] Failure, /// Authentication/ Account Verification Could Not Be Performed; Technical or other problem, as indicated in Authentication Response(ARes) or Result Request (RReq) #[serde(rename = "U")] VerificationNotPerformed, /// Attempts Processing Performed; Not Authenticated/Verified , but a proof of attempted authentication/verification is provided #[serde(rename = "A")] NotVerified, /// Authentication/ Account Verification Rejected; Issuer is rejecting authentication/verification and request that authorisation not be attempted. #[serde(rename = "R")] Rejected, /// Challenge Required; Additional authentication is required using the Challenge Request (CReq) / Challenge Response (CRes) #[serde(rename = "C")] ChallengeRequired, /// Challenge Required; Decoupled Authentication confirmed. #[serde(rename = "D")] ChallengeRequiredDecoupledAuthentication, /// Informational Only; 3DS Requestor challenge preference acknowledged. #[serde(rename = "I")] InformationOnly, } pub enum GooglePayAuthMethod { /// Contain pan data only PanOnly, /// Contain cryptogram data along with pan data #[serde(rename = "CRYPTOGRAM_3DS")] Cryptogram, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_24
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum GooglePayAuthMethod { /// Contain pan data only PanOnly, /// Contain cryptogram data along with pan data #[serde(rename = "CRYPTOGRAM_3DS")] Cryptogram, } pub enum ProductType { #[default] Physical, Digital, Travel, Ride, Event, Accommodation, } pub enum WebhookTransformationStatus { /// Transformation completed successfully, no further action needed Complete, /// Transformation incomplete, requires second call for final status Incomplete, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_26
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum WebhookTransformationStatus { /// Transformation completed successfully, no further action needed Complete, /// Transformation incomplete, requires second call for final status Incomplete, } pub enum CallConnectorAction { Trigger, HandleResponse(Vec<u8>), } pub enum PaymentChargeType { #[serde(untagged)] Stripe(StripeChargeType), }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_28
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum PaymentChargeType { #[serde(untagged)] Stripe(StripeChargeType), } pub enum StripeChargeType { #[default] Direct, Destination, } pub enum AuthorizationStatus { Success, Failure, // Processing state is before calling connector #[default] Processing, // Requires merchant action Unresolved, }
{ "chunk": null, "crate": null, "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": 3, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_5419210580886904799_30
clm
multi_item
// connector-service/backend/common_enums/src/enums.rs pub enum AuthorizationStatus { Success, Failure, // Processing state is before calling connector #[default] Processing, // Requires merchant action Unresolved, } pub enum DecoupledAuthenticationType { #[default] Challenge, Frictionless, }
{ "chunk": null, "crate": null, "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": 2, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_multi_-1715344998119786497_0
clm
multi_item
// connector-service/backend/interfaces/src/events/routing_api_logs.rs pub enum RoutingEngine { /// Dynamo for routing IntelligentRouter, /// Decision engine for routing DecisionEngine, } pub enum ApiMethod { /// grpc call Grpc, /// Rest call Rest(Method), }
{ "chunk": null, "crate": null, "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": 2, "num_structs": null, "repo": "connector-service", "start_line": null, "struct_name": null, "total_crates": null, "trait_name": null }