id
stringlengths 20
153
| type
stringclasses 1
value | granularity
stringclasses 14
values | content
stringlengths 16
84.3k
| metadata
dict |
|---|---|---|---|---|
connector-service_multi_426009472564931438_20
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpay/requests.rs
pub struct PaymentFacilitator {
pub pf_id: Secret<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub iso_id: Option<Secret<String>>,
pub sub_merchant: SubMerchant,
}
pub struct SubMerchant {
pub city: String,
pub name: Secret<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
pub postal_code: Secret<String>,
pub merchant_id: Secret<String>,
pub country_code: String,
pub street: Secret<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub tax_id: Option<Secret<String>>,
}
pub struct WorldpayPartialRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<PaymentValue>,
#[serde(skip_serializing_if = "Option::is_none")]
pub reference: 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_426009472564931438_22
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpay/requests.rs
pub struct WorldpayPartialRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<PaymentValue>,
#[serde(skip_serializing_if = "Option::is_none")]
pub reference: Option<String>,
}
pub struct WorldpayAuthenticateRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub collection_reference: Option<String>,
}
pub enum TokenCreationType {
Worldpay,
}
|
{
"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_426009472564931438_24
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpay/requests.rs
pub enum TokenCreationType {
Worldpay,
}
pub enum CustomerAgreementType {
Subscription,
Unscheduled,
}
pub enum StoredCardUsageType {
First,
Subsequent,
}
|
{
"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_426009472564931438_26
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpay/requests.rs
pub enum StoredCardUsageType {
First,
Subsequent,
}
pub enum PaymentInstrument<
T: domain_types::payment_method_data::PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ serde::Serialize,
> {
Card(CardPayment<T>),
CardToken(CardToken),
RawCardForNTI(RawCardDetails<domain_types::payment_method_data::DefaultPCIHolder>),
Googlepay(WalletPayment),
Applepay(WalletPayment),
}
pub enum PaymentType {
#[default]
Plain,
Token,
Encrypted,
Checkout,
}
|
{
"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_426009472564931438_28
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpay/requests.rs
pub enum PaymentType {
#[default]
Plain,
Token,
Encrypted,
Checkout,
}
pub enum Channel {
#[default]
Ecom,
Moto,
}
pub enum CustomerAuthentication {
ThreeDS(ThreeDS),
Token(NetworkToken),
}
|
{
"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_426009472564931438_30
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpay/requests.rs
pub enum CustomerAuthentication {
ThreeDS(ThreeDS),
Token(NetworkToken),
}
pub enum ThreeDSVersion {
#[default]
#[serde(rename = "1")]
One,
#[serde(rename = "2")]
Two,
}
pub enum CustomerAuthType {
#[serde(rename = "3DS")]
#[default]
Variant3Ds,
#[serde(rename = "card/networkToken")]
NetworkToken,
}
|
{
"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_426009472564931438_32
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpay/requests.rs
pub enum CustomerAuthType {
#[serde(rename = "3DS")]
#[default]
Variant3Ds,
#[serde(rename = "card/networkToken")]
NetworkToken,
}
pub enum ThreeDSRequestChannel {
Browser,
Native,
}
pub enum PaymentMethod {
#[default]
Card,
ApplePay,
GooglePay,
}
|
{
"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_-8005942479899491151_0
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/payu/transformers.rs
pub struct PayuAuthType {
pub api_key: Secret<String>,
pub api_secret: Secret<String>, // Merchant salt for signature
}
pub struct PayuPaymentRequest {
// Core payment fields
pub key: String, // Merchant key
pub txnid: String, // Transaction ID
pub amount: common_utils::types::StringMajorUnit, // Amount in string major units
pub currency: Currency, // Currency code
pub productinfo: String, // Product description
// Customer information
pub firstname: Secret<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub lastname: Option<Secret<String>>,
pub email: Email,
pub phone: Secret<String>,
// URLs
pub surl: String, // Success URL
pub furl: String, // Failure URL
// Payment method specific
#[serde(skip_serializing_if = "Option::is_none")]
pub pg: Option<String>, // Payment gateway code (UPI)
#[serde(skip_serializing_if = "Option::is_none")]
pub bankcode: Option<String>, // Bank code (TEZ, INTENT, TEZOMNI)
#[serde(skip_serializing_if = "Option::is_none")]
pub vpa: Option<Secret<String>>, // UPI VPA (for collect)
// UPI specific fields
pub txn_s2s_flow: String, // S2S flow type ("2" for UPI)
pub s2s_client_ip: Secret<String, IpAddress>, // Client IP
pub s2s_device_info: String, // Device info
#[serde(skip_serializing_if = "Option::is_none")]
pub api_version: Option<String>, // API version ("2.0")
// Security
pub hash: String, // SHA-512 signature
// User defined fields (10 fields as per PayU spec)
#[serde(skip_serializing_if = "Option::is_none")]
pub udf1: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub udf2: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub udf3: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub udf4: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub udf5: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub udf6: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub udf7: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub udf8: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub udf9: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub udf10: Option<String>,
// Optional PayU fields for UPI
#[serde(skip_serializing_if = "Option::is_none")]
pub offer_key: Option<String>, // Offer identifier
#[serde(skip_serializing_if = "Option::is_none")]
pub si: Option<i32>, // Standing instruction flag
#[serde(skip_serializing_if = "Option::is_none")]
pub si_details: Option<String>, // SI details JSON
#[serde(skip_serializing_if = "Option::is_none")]
pub beneficiarydetail: Option<String>, // TPV beneficiary details
#[serde(skip_serializing_if = "Option::is_none")]
pub user_token: Option<String>, // User token for repeat transactions
#[serde(skip_serializing_if = "Option::is_none")]
pub offer_auto_apply: Option<i32>, // Auto apply offer flag (0 or 1)
#[serde(skip_serializing_if = "Option::is_none")]
pub additional_charges: Option<String>, // Surcharge/fee amount
#[serde(skip_serializing_if = "Option::is_none")]
pub additional_gst_charges: Option<String>, // GST charges
#[serde(skip_serializing_if = "Option::is_none")]
pub upi_app_name: Option<String>, // UPI app name for intent flows
}
pub struct PayuPaymentResponse {
// Success response fields - PayU can return status as either int or string
#[serde(deserialize_with = "deserialize_payu_status")]
pub status: Option<PayuStatusValue>, // Status can be 1 (int) or "success" (string)
pub token: Option<String>, // PayU token
#[serde(alias = "referenceId")]
pub reference_id: Option<String>, // PayU reference ID
#[serde(alias = "returnUrl")]
pub return_url: Option<String>, // Return URL
#[serde(alias = "merchantName")]
pub merchant_name: Option<String>, // Merchant display name
#[serde(alias = "merchantVpa")]
pub merchant_vpa: Option<Secret<String>>, // Merchant UPI VPA
pub amount: Option<String>, // Transaction amount
#[serde(alias = "txnId")]
pub txn_id: Option<String>, // Transaction ID
#[serde(alias = "intentURIData")]
pub intent_uri_data: Option<String>, // UPI intent URI data
// UPI-specific fields
pub apps: Option<Vec<PayuUpiApp>>, // Available UPI apps
#[serde(alias = "upiPushDisabled")]
pub upi_push_disabled: Option<String>, // UPI push disabled flag
#[serde(alias = "pushServiceUrl")]
pub push_service_url: Option<String>, // Push service URL
#[serde(alias = "pushServiceUrlV2")]
pub push_service_url_v2: Option<String>, // Push service URL V2
#[serde(alias = "encodedPayuId")]
pub encoded_payu_id: Option<String>, // Encoded PayU ID
#[serde(alias = "vpaRegex")]
pub vpa_regex: Option<String>, // VPA validation regex
// Polling and timeout configuration
#[serde(alias = "upiServicePollInterval")]
pub upi_service_poll_interval: Option<String>, // Poll interval
#[serde(alias = "sdkUpiPushExpiry")]
pub sdk_upi_push_expiry: Option<String>, // Push expiry time
#[serde(alias = "sdkUpiVerificationInterval")]
pub sdk_upi_verification_interval: Option<String>, // Verification interval
// Additional flags
#[serde(alias = "disableIntentSeamlessFailure")]
pub disable_intent_seamless_failure: Option<String>,
#[serde(alias = "intentSdkCombineVerifyAndPayButton")]
pub intent_sdk_combine_verify_and_pay_button: Option<String>,
// Error response fields (actual PayU format)
pub result: Option<PayuResult>, // PayU result field (null for errors)
pub error: Option<String>, // Error code like "EX158"
pub message: Option<String>, // Error message
}
|
{
"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_-8005942479899491151_2
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/payu/transformers.rs
pub struct PayuPaymentResponse {
// Success response fields - PayU can return status as either int or string
#[serde(deserialize_with = "deserialize_payu_status")]
pub status: Option<PayuStatusValue>, // Status can be 1 (int) or "success" (string)
pub token: Option<String>, // PayU token
#[serde(alias = "referenceId")]
pub reference_id: Option<String>, // PayU reference ID
#[serde(alias = "returnUrl")]
pub return_url: Option<String>, // Return URL
#[serde(alias = "merchantName")]
pub merchant_name: Option<String>, // Merchant display name
#[serde(alias = "merchantVpa")]
pub merchant_vpa: Option<Secret<String>>, // Merchant UPI VPA
pub amount: Option<String>, // Transaction amount
#[serde(alias = "txnId")]
pub txn_id: Option<String>, // Transaction ID
#[serde(alias = "intentURIData")]
pub intent_uri_data: Option<String>, // UPI intent URI data
// UPI-specific fields
pub apps: Option<Vec<PayuUpiApp>>, // Available UPI apps
#[serde(alias = "upiPushDisabled")]
pub upi_push_disabled: Option<String>, // UPI push disabled flag
#[serde(alias = "pushServiceUrl")]
pub push_service_url: Option<String>, // Push service URL
#[serde(alias = "pushServiceUrlV2")]
pub push_service_url_v2: Option<String>, // Push service URL V2
#[serde(alias = "encodedPayuId")]
pub encoded_payu_id: Option<String>, // Encoded PayU ID
#[serde(alias = "vpaRegex")]
pub vpa_regex: Option<String>, // VPA validation regex
// Polling and timeout configuration
#[serde(alias = "upiServicePollInterval")]
pub upi_service_poll_interval: Option<String>, // Poll interval
#[serde(alias = "sdkUpiPushExpiry")]
pub sdk_upi_push_expiry: Option<String>, // Push expiry time
#[serde(alias = "sdkUpiVerificationInterval")]
pub sdk_upi_verification_interval: Option<String>, // Verification interval
// Additional flags
#[serde(alias = "disableIntentSeamlessFailure")]
pub disable_intent_seamless_failure: Option<String>,
#[serde(alias = "intentSdkCombineVerifyAndPayButton")]
pub intent_sdk_combine_verify_and_pay_button: Option<String>,
// Error response fields (actual PayU format)
pub result: Option<PayuResult>, // PayU result field (null for errors)
pub error: Option<String>, // Error code like "EX158"
pub message: Option<String>, // Error message
}
pub struct PayuResult {
pub status: String, // UPI Collect Status
pub mihpayid: String, // ID
}
pub struct PayuUpiApp {
pub name: String, // App display name
pub package: String, // Android package name
}
|
{
"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_-8005942479899491151_4
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/payu/transformers.rs
pub struct PayuUpiApp {
pub name: String, // App display name
pub package: String, // Android package name
}
pub struct PayuErrorResponse {
pub result: Option<serde_json::Value>, // null for errors
pub status: Option<String>, // "failed" for errors
pub error: Option<String>, // Error code like "EX158", "EX311"
pub message: Option<String>, // Error description
// Legacy fields for backward compatibility
pub error_code: Option<String>,
pub error_message: Option<String>,
pub error_description: Option<String>,
pub transaction_id: Option<String>,
}
pub struct PayuSyncRequest {
pub key: String, // Merchant key
pub command: String, // "verify_payment"
pub var1: String, // Transaction ID to verify
pub hash: String, // SHA-512 signature
}
|
{
"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_-8005942479899491151_6
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/payu/transformers.rs
pub struct PayuSyncRequest {
pub key: String, // Merchant key
pub command: String, // "verify_payment"
pub var1: String, // Transaction ID to verify
pub hash: String, // SHA-512 signature
}
pub struct PayuSyncResponse {
pub status: Option<i32>, // 0 = error, non-zero = success
pub msg: Option<String>, // Status message
pub transaction_details: Option<std::collections::HashMap<String, PayuTransactionDetail>>, // Map of txnId -> details
pub result: Option<serde_json::Value>, // Optional result field
#[serde(alias = "field3")]
pub field3: Option<String>, // Additional field
}
pub struct PayuTransactionDetail {
pub mihpayid: Option<String>, // PayU transaction ID
pub txnid: Option<String>, // Merchant transaction ID
pub amount: Option<String>, // Transaction amount
pub status: String, // Transaction status: "success", "failure", "pending", "cancel"
pub firstname: Option<String>, // Customer first name
pub lastname: Option<String>, // Customer last name
pub email: Option<Secret<String>>, // Customer email
pub phone: Option<Secret<String>>, // Customer phone
pub productinfo: Option<String>, // Product description
pub hash: Option<String>, // Response hash for verification
pub field1: Option<String>, // UPI transaction ID
pub field2: Option<String>, // Bank reference number
pub field3: Option<String>, // Payment source
pub field9: Option<String>, // Additional field
pub error_code: Option<String>, // Error code if failed
pub error_message: Option<String>, // Error message if failed
pub card_token: Option<String>, // Card token if applicable
pub card_category: Option<String>, // Card category
pub offer_key: Option<String>, // Offer key used
pub discount: Option<String>, // Discount applied
pub net_amount_debit: Option<String>, // Net amount debited
pub addedon: Option<String>, // Transaction timestamp
pub payment_source: Option<String>, // Payment method used
pub bank_ref_num: Option<String>, // Bank reference number
pub upi_va: Option<String>, // UPI virtual address
pub cardnum: Option<String>, // Masked card number
pub issuing_bank: Option<String>, // Card issuing bank
}
|
{
"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_-8005942479899491151_8
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/payu/transformers.rs
pub struct PayuTransactionDetail {
pub mihpayid: Option<String>, // PayU transaction ID
pub txnid: Option<String>, // Merchant transaction ID
pub amount: Option<String>, // Transaction amount
pub status: String, // Transaction status: "success", "failure", "pending", "cancel"
pub firstname: Option<String>, // Customer first name
pub lastname: Option<String>, // Customer last name
pub email: Option<Secret<String>>, // Customer email
pub phone: Option<Secret<String>>, // Customer phone
pub productinfo: Option<String>, // Product description
pub hash: Option<String>, // Response hash for verification
pub field1: Option<String>, // UPI transaction ID
pub field2: Option<String>, // Bank reference number
pub field3: Option<String>, // Payment source
pub field9: Option<String>, // Additional field
pub error_code: Option<String>, // Error code if failed
pub error_message: Option<String>, // Error message if failed
pub card_token: Option<String>, // Card token if applicable
pub card_category: Option<String>, // Card category
pub offer_key: Option<String>, // Offer key used
pub discount: Option<String>, // Discount applied
pub net_amount_debit: Option<String>, // Net amount debited
pub addedon: Option<String>, // Transaction timestamp
pub payment_source: Option<String>, // Payment method used
pub bank_ref_num: Option<String>, // Bank reference number
pub upi_va: Option<String>, // UPI virtual address
pub cardnum: Option<String>, // Masked card number
pub issuing_bank: Option<String>, // Card issuing bank
}
pub enum PayuStatusValue {
IntStatus(i32), // 1 for UPI Intent success
StringStatus(String), // "success" for UPI Collect success
}
|
{
"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_-2910212303359634675_0
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/elavon/transformers.rs
pub struct ElavonAuthType {
pub(super) ssl_merchant_id: Secret<String>,
pub(super) ssl_user_id: Secret<String>,
pub(super) ssl_pin: Secret<String>,
}
pub struct CardPaymentRequest<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> {
pub ssl_transaction_type: TransactionType,
pub ssl_account_id: Secret<String>,
pub ssl_user_id: Secret<String>,
pub ssl_pin: Secret<String>,
pub ssl_amount: StringMajorUnit,
pub ssl_card_number: RawCardNumber<T>,
pub ssl_exp_date: Secret<String>,
pub ssl_cvv2cvc2: Option<Secret<String>>,
pub ssl_cvv2cvc2_indicator: Option<i32>,
pub ssl_email: Option<common_utils::pii::Email>,
#[serde(skip_serializing_if = "Option::is_none")]
pub ssl_add_token: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub ssl_token_source: Option<String>,
pub ssl_get_token: Option<String>,
pub ssl_transaction_currency: Currency,
#[serde(skip_serializing_if = "Option::is_none")]
pub ssl_avs_address: Option<Secret<String>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub ssl_avs_zip: Option<Secret<String>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub ssl_customer_code: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub ssl_invoice_number: Option<String>,
}
pub struct XMLElavonRequest(pub HashMap<String, Secret<String, WithoutType>>);
|
{
"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_-2910212303359634675_2
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/elavon/transformers.rs
pub struct XMLElavonRequest(pub HashMap<String, Secret<String, WithoutType>>);
pub struct XMLPSyncRequest(pub HashMap<String, Secret<String, WithoutType>>);
pub struct XMLCaptureRequest(pub HashMap<String, Secret<String, WithoutType>>);
|
{
"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_-2910212303359634675_4
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/elavon/transformers.rs
pub struct XMLCaptureRequest(pub HashMap<String, Secret<String, WithoutType>>);
pub struct XMLRefundRequest(pub HashMap<String, Secret<String, WithoutType>>);
pub struct XMLRSyncRequest(pub HashMap<String, Secret<String, WithoutType>>);
|
{
"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_-2910212303359634675_6
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/elavon/transformers.rs
pub struct XMLRSyncRequest(pub HashMap<String, Secret<String, WithoutType>>);
pub struct PaymentResponse {
pub ssl_result: SslResult,
pub ssl_txn_id: String,
pub ssl_result_message: String,
pub ssl_token: Option<Secret<String>>,
pub ssl_approval_code: Option<String>,
pub ssl_transaction_type: Option<String>,
pub ssl_cvv2_response: Option<Secret<String>>,
pub ssl_avs_response: Option<String>,
pub ssl_token_response: Option<String>,
}
pub struct ElavonErrorResponse {
pub error_code: Option<String>,
pub error_message: String,
pub error_name: Option<String>,
pub ssl_txn_id: 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_-2910212303359634675_8
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/elavon/transformers.rs
pub struct ElavonErrorResponse {
pub error_code: Option<String>,
pub error_message: String,
pub error_name: Option<String>,
pub ssl_txn_id: Option<String>,
}
pub struct ElavonPaymentsResponse {
pub result: ElavonResult,
}
pub struct ElavonCaptureResponse {
pub result: ElavonResult,
}
|
{
"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_-2910212303359634675_10
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/elavon/transformers.rs
pub struct ElavonCaptureResponse {
pub result: ElavonResult,
}
pub struct ElavonRefundResponse {
pub result: ElavonResult,
}
struct XmlIshResponse {
#[serde(default)]
error_code: Option<String>,
#[serde(default)]
error_message: Option<String>,
#[serde(default)]
error_name: Option<String>,
#[serde(default)]
ssl_result: Option<String>,
#[serde(default)]
ssl_txn_id: Option<String>,
#[serde(default)]
ssl_result_message: Option<String>,
#[serde(default)]
ssl_token: Option<Secret<String>>,
#[serde(default)]
ssl_token_response: Option<Secret<String>>,
#[serde(default)]
ssl_approval_code: Option<String>,
#[serde(default)]
ssl_transaction_type: Option<String>,
#[serde(default)]
ssl_cvv2_response: Option<Secret<String>>,
#[serde(default)]
ssl_avs_response: 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_-2910212303359634675_12
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/elavon/transformers.rs
struct XmlIshResponse {
#[serde(default)]
error_code: Option<String>,
#[serde(default)]
error_message: Option<String>,
#[serde(default)]
error_name: Option<String>,
#[serde(default)]
ssl_result: Option<String>,
#[serde(default)]
ssl_txn_id: Option<String>,
#[serde(default)]
ssl_result_message: Option<String>,
#[serde(default)]
ssl_token: Option<Secret<String>>,
#[serde(default)]
ssl_token_response: Option<Secret<String>>,
#[serde(default)]
ssl_approval_code: Option<String>,
#[serde(default)]
ssl_transaction_type: Option<String>,
#[serde(default)]
ssl_cvv2_response: Option<Secret<String>>,
#[serde(default)]
ssl_avs_response: Option<String>,
}
struct XmlIshResponse {
#[serde(default)]
error_code: Option<String>,
#[serde(default)]
error_message: Option<String>,
#[serde(default)]
error_name: Option<String>,
#[serde(default)]
ssl_result: Option<String>,
#[serde(default)]
ssl_txn_id: Option<String>,
#[serde(default)]
ssl_result_message: Option<String>,
#[serde(default)]
ssl_token: Option<Secret<String>>,
#[serde(default)]
ssl_token_response: Option<Secret<String>>,
#[serde(default)]
ssl_approval_code: Option<String>,
#[serde(default)]
ssl_transaction_type: Option<String>,
#[serde(default)]
ssl_cvv2_response: Option<Secret<String>>,
#[serde(default)]
ssl_avs_response: Option<String>,
}
struct XmlIshResponse {
#[serde(default)]
error_code: Option<String>,
#[serde(default)]
error_message: Option<String>,
#[serde(default)]
error_name: Option<String>,
#[serde(default)]
ssl_result: Option<String>,
#[serde(default)]
ssl_txn_id: Option<String>,
#[serde(default)]
ssl_result_message: Option<String>,
#[serde(default)]
ssl_token: Option<Secret<String>>,
#[serde(default)]
ssl_token_response: Option<Secret<String>>,
#[serde(default)]
ssl_approval_code: Option<String>,
#[serde(default)]
ssl_transaction_type: Option<String>,
#[serde(default)]
ssl_cvv2_response: Option<Secret<String>>,
#[serde(default)]
ssl_avs_response: 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_-2910212303359634675_14
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/elavon/transformers.rs
struct XmlIshResponse {
#[serde(default)]
error_code: Option<String>,
#[serde(default)]
error_message: Option<String>,
#[serde(default)]
error_name: Option<String>,
#[serde(default)]
ssl_result: Option<String>,
#[serde(default)]
ssl_txn_id: Option<String>,
#[serde(default)]
ssl_result_message: Option<String>,
#[serde(default)]
ssl_token: Option<Secret<String>>,
#[serde(default)]
ssl_token_response: Option<Secret<String>>,
#[serde(default)]
ssl_approval_code: Option<String>,
#[serde(default)]
ssl_transaction_type: Option<String>,
#[serde(default)]
ssl_cvv2_response: Option<Secret<String>>,
#[serde(default)]
ssl_avs_response: Option<String>,
}
pub struct SyncRequest {
pub ssl_transaction_type: TransactionType,
pub ssl_account_id: Secret<String>,
pub ssl_user_id: Secret<String>,
pub ssl_pin: Secret<String>,
pub ssl_txn_id: String,
}
pub struct ElavonCaptureRequest {
pub ssl_transaction_type: TransactionType,
pub ssl_account_id: Secret<String>,
pub ssl_user_id: Secret<String>,
pub ssl_pin: Secret<String>,
pub ssl_amount: StringMajorUnit,
pub ssl_txn_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_-2910212303359634675_16
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/elavon/transformers.rs
pub struct ElavonCaptureRequest {
pub ssl_transaction_type: TransactionType,
pub ssl_account_id: Secret<String>,
pub ssl_user_id: Secret<String>,
pub ssl_pin: Secret<String>,
pub ssl_amount: StringMajorUnit,
pub ssl_txn_id: String,
}
pub struct ElavonRefundRequest {
pub ssl_transaction_type: TransactionType,
pub ssl_account_id: Secret<String>,
pub ssl_user_id: Secret<String>,
pub ssl_pin: Secret<String>,
pub ssl_amount: StringMajorUnit,
pub ssl_txn_id: String,
}
pub struct ElavonRSyncResponse {
pub ssl_trans_status: TransactionSyncStatus,
pub ssl_transaction_type: SyncTransactionType,
pub ssl_txn_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_-2910212303359634675_18
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/elavon/transformers.rs
pub struct ElavonRSyncResponse {
pub ssl_trans_status: TransactionSyncStatus,
pub ssl_transaction_type: SyncTransactionType,
pub ssl_txn_id: String,
}
pub struct ElavonPSyncResponse {
pub ssl_trans_status: TransactionSyncStatus,
pub ssl_transaction_type: SyncTransactionType,
pub ssl_txn_id: String,
}
pub enum TransactionType {
CcSale,
CcAuthOnly,
CcComplete,
CcReturn,
TxnQuery,
}
|
{
"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_-2910212303359634675_20
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/elavon/transformers.rs
pub enum TransactionType {
CcSale,
CcAuthOnly,
CcComplete,
CcReturn,
TxnQuery,
}
pub enum ElavonPaymentsRequest<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> {
Card(CardPaymentRequest<T>),
}
pub enum SslResult {
#[serde(rename = "0")]
Approved,
#[serde(rename = "1")]
Declined,
Other(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_-2910212303359634675_22
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/elavon/transformers.rs
pub enum SslResult {
#[serde(rename = "0")]
Approved,
#[serde(rename = "1")]
Declined,
Other(String),
}
pub enum ElavonResult {
Success(PaymentResponse),
Error(ElavonErrorResponse),
}
pub enum TransactionSyncStatus {
PEN,
OPN,
REV,
STL,
PST,
FPR,
PRE,
}
|
{
"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_-2910212303359634675_24
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/elavon/transformers.rs
pub enum TransactionSyncStatus {
PEN,
OPN,
REV,
STL,
PST,
FPR,
PRE,
}
pub enum SyncTransactionType {
Sale,
AuthOnly,
Return,
}
|
{
"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_3522933810268649801_0
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/phonepe/transformers.rs
pub struct PhonepePaymentsRequest {
request: Secret<String>,
#[serde(skip)]
pub checksum: String,
}
struct PhonepePaymentRequestPayload {
#[serde(rename = "merchantId")]
merchant_id: Secret<String>,
#[serde(rename = "merchantTransactionId")]
merchant_transaction_id: String,
#[serde(rename = "merchantUserId", skip_serializing_if = "Option::is_none")]
merchant_user_id: Option<Secret<String>>,
amount: MinorUnit,
#[serde(rename = "callbackUrl")]
callback_url: String,
#[serde(rename = "mobileNumber", skip_serializing_if = "Option::is_none")]
mobile_number: Option<Secret<String>>,
#[serde(rename = "paymentInstrument")]
payment_instrument: PhonepePaymentInstrument,
#[serde(rename = "deviceContext", skip_serializing_if = "Option::is_none")]
device_context: Option<PhonepeDeviceContext>,
}
struct PhonepeDeviceContext {
#[serde(rename = "deviceOS", skip_serializing_if = "Option::is_none")]
device_os: 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_3522933810268649801_2
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/phonepe/transformers.rs
struct PhonepeDeviceContext {
#[serde(rename = "deviceOS", skip_serializing_if = "Option::is_none")]
device_os: Option<String>,
}
struct PhonepePaymentInstrument {
#[serde(rename = "type")]
instrument_type: String,
#[serde(rename = "targetApp", skip_serializing_if = "Option::is_none")]
target_app: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
vpa: Option<Secret<String>>,
}
pub struct PhonepeSyncRequest {
#[serde(skip)]
pub merchant_transaction_id: String,
#[serde(skip)]
pub checksum: 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_3522933810268649801_4
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/phonepe/transformers.rs
pub struct PhonepeSyncRequest {
#[serde(skip)]
pub merchant_transaction_id: String,
#[serde(skip)]
pub checksum: String,
}
pub struct PhonepeErrorResponse {
pub success: bool,
pub code: String,
#[serde(default = "default_error_message")]
pub message: String,
}
pub struct PhonepePaymentsResponse {
pub success: bool,
pub code: String,
pub message: String,
pub data: Option<PhonepeResponseData>,
}
|
{
"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_3522933810268649801_6
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/phonepe/transformers.rs
pub struct PhonepePaymentsResponse {
pub success: bool,
pub code: String,
pub message: String,
pub data: Option<PhonepeResponseData>,
}
pub struct PhonepeSyncResponse {
pub success: bool,
pub code: String,
#[serde(default = "default_sync_error_message")]
pub message: String,
#[serde(default)]
pub data: Option<PhonepeSyncResponseData>,
}
pub struct PhonepeResponseData {
#[serde(rename = "merchantId")]
merchant_id: String,
#[serde(rename = "merchantTransactionId")]
merchant_transaction_id: String,
#[serde(rename = "transactionId", skip_serializing_if = "Option::is_none")]
transaction_id: Option<String>,
#[serde(rename = "instrumentResponse", skip_serializing_if = "Option::is_none")]
instrument_response: Option<PhonepeInstrumentResponse>,
#[serde(rename = "responseCode", skip_serializing_if = "Option::is_none")]
response_code: Option<String>,
#[serde(
rename = "responseCodeDescription",
skip_serializing_if = "Option::is_none"
)]
response_code_description: 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_3522933810268649801_8
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/phonepe/transformers.rs
pub struct PhonepeResponseData {
#[serde(rename = "merchantId")]
merchant_id: String,
#[serde(rename = "merchantTransactionId")]
merchant_transaction_id: String,
#[serde(rename = "transactionId", skip_serializing_if = "Option::is_none")]
transaction_id: Option<String>,
#[serde(rename = "instrumentResponse", skip_serializing_if = "Option::is_none")]
instrument_response: Option<PhonepeInstrumentResponse>,
#[serde(rename = "responseCode", skip_serializing_if = "Option::is_none")]
response_code: Option<String>,
#[serde(
rename = "responseCodeDescription",
skip_serializing_if = "Option::is_none"
)]
response_code_description: Option<String>,
}
pub struct PhonepeInstrumentResponse {
#[serde(rename = "type")]
instrument_type: String,
#[serde(rename = "intentUrl", skip_serializing_if = "Option::is_none")]
intent_url: Option<String>,
#[serde(rename = "qrData", skip_serializing_if = "Option::is_none")]
qr_data: Option<String>,
}
pub struct PhonepeSyncResponseData {
#[serde(rename = "merchantId", skip_serializing_if = "Option::is_none")]
merchant_id: Option<String>,
#[serde(
rename = "merchantTransactionId",
skip_serializing_if = "Option::is_none"
)]
merchant_transaction_id: Option<String>,
#[serde(rename = "transactionId", skip_serializing_if = "Option::is_none")]
transaction_id: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
amount: Option<MinorUnit>,
#[serde(skip_serializing_if = "Option::is_none")]
state: Option<String>,
#[serde(rename = "responseCode", skip_serializing_if = "Option::is_none")]
response_code: Option<String>,
#[serde(rename = "paymentInstrument", skip_serializing_if = "Option::is_none")]
payment_instrument: Option<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": 3,
"num_structs": null,
"repo": "connector-service",
"start_line": null,
"struct_name": null,
"total_crates": null,
"trait_name": null
}
|
connector-service_multi_3522933810268649801_10
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/phonepe/transformers.rs
pub struct PhonepeSyncResponseData {
#[serde(rename = "merchantId", skip_serializing_if = "Option::is_none")]
merchant_id: Option<String>,
#[serde(
rename = "merchantTransactionId",
skip_serializing_if = "Option::is_none"
)]
merchant_transaction_id: Option<String>,
#[serde(rename = "transactionId", skip_serializing_if = "Option::is_none")]
transaction_id: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
amount: Option<MinorUnit>,
#[serde(skip_serializing_if = "Option::is_none")]
state: Option<String>,
#[serde(rename = "responseCode", skip_serializing_if = "Option::is_none")]
response_code: Option<String>,
#[serde(rename = "paymentInstrument", skip_serializing_if = "Option::is_none")]
payment_instrument: Option<serde_json::Value>,
}
pub struct PhonepeAuthType {
pub merchant_id: Secret<String>,
pub salt_key: Secret<String>,
pub key_index: 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_353540475883723703_0
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetPaymentsRequestMerchant {
signature: Secret<String>,
tariff: Secret<String>,
}
pub struct NovalnetPaymentsRequestBilling {
house_no: Option<Secret<String>>,
street: Option<Secret<String>>,
city: Option<Secret<String>>,
zip: Option<Secret<String>>,
country_code: Option<common_enums::CountryAlpha2>,
}
pub struct NovalnetPaymentsRequestCustomer {
first_name: Option<Secret<String>>,
last_name: Option<Secret<String>>,
email: pii::Email,
mobile: Option<Secret<String>>,
billing: Option<NovalnetPaymentsRequestBilling>,
no_nc: i64,
}
|
{
"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_353540475883723703_2
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetPaymentsRequestCustomer {
first_name: Option<Secret<String>>,
last_name: Option<Secret<String>>,
email: pii::Email,
mobile: Option<Secret<String>>,
billing: Option<NovalnetPaymentsRequestBilling>,
no_nc: i64,
}
pub struct NovalnetCard<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> {
card_number: RawCardNumber<T>,
card_expiry_month: Secret<String>,
card_expiry_year: Secret<String>,
card_cvc: Secret<String>,
card_holder: Secret<String>,
}
pub struct NovalnetRawCardDetails {
card_number: CardNumber,
card_expiry_month: Secret<String>,
card_expiry_year: 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_353540475883723703_4
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetRawCardDetails {
card_number: CardNumber,
card_expiry_month: Secret<String>,
card_expiry_year: Secret<String>,
}
pub struct NovalnetMandate {
token: Secret<String>,
}
pub struct NovalnetGooglePay {
wallet_data: 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_353540475883723703_6
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetGooglePay {
wallet_data: Secret<String>,
}
pub struct NovalnetApplePay {
wallet_data: Secret<String>,
}
pub struct NovalnetCustom {
lang: 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_353540475883723703_8
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetCustom {
lang: String,
}
pub struct NovalnetPaymentsRequestTransaction<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> {
test_mode: i8,
payment_type: NovalNetPaymentTypes,
amount: NovalNetAmount,
currency: common_enums::Currency,
order_no: String,
payment_data: Option<NovalNetPaymentData<T>>,
hook_url: Option<String>,
return_url: Option<String>,
error_return_url: Option<String>,
enforce_3d: Option<i8>, //NOTE: Needed for CREDITCARD, GOOGLEPAY
create_token: Option<i8>,
scheme_tid: Option<Secret<String>>, // Card network's transaction ID
}
pub struct NovalnetPaymentsRequest<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> {
merchant: NovalnetPaymentsRequestMerchant,
customer: NovalnetPaymentsRequestCustomer,
transaction: NovalnetPaymentsRequestTransaction<T>,
custom: NovalnetCustom,
}
|
{
"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_353540475883723703_10
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetPaymentsRequest<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> {
merchant: NovalnetPaymentsRequestMerchant,
customer: NovalnetPaymentsRequestCustomer,
transaction: NovalnetPaymentsRequestTransaction<T>,
custom: NovalnetCustom,
}
pub struct ResultData {
pub redirect_url: Option<Secret<url::Url>>,
pub status: NovalnetAPIStatus,
pub status_code: u64,
pub status_text: String,
pub additional_message: Option<String>,
}
pub struct NovalnetPaymentsResponseTransactionData {
pub amount: Option<MinorUnit>,
pub currency: Option<common_enums::Currency>,
pub date: Option<String>,
pub order_no: Option<String>,
pub payment_data: Option<NovalnetResponsePaymentData>,
pub payment_type: Option<String>,
pub status_code: Option<u64>,
pub txn_secret: Option<Secret<String>>,
pub tid: Option<Secret<i64>>,
pub test_mode: Option<i8>,
pub status: Option<NovalnetTransactionStatus>,
pub authorization: Option<NovalnetAuthorizationResponse>,
}
|
{
"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_353540475883723703_12
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetPaymentsResponseTransactionData {
pub amount: Option<MinorUnit>,
pub currency: Option<common_enums::Currency>,
pub date: Option<String>,
pub order_no: Option<String>,
pub payment_data: Option<NovalnetResponsePaymentData>,
pub payment_type: Option<String>,
pub status_code: Option<u64>,
pub txn_secret: Option<Secret<String>>,
pub tid: Option<Secret<i64>>,
pub test_mode: Option<i8>,
pub status: Option<NovalnetTransactionStatus>,
pub authorization: Option<NovalnetAuthorizationResponse>,
}
pub struct NovalnetPaymentsResponse {
result: ResultData,
transaction: Option<NovalnetPaymentsResponseTransactionData>,
}
pub struct NovalnetResponseCustomer {
pub billing: Option<NovalnetResponseBilling>,
pub customer_ip: Option<Secret<String>>,
pub email: Option<pii::Email>,
pub first_name: Option<Secret<String>>,
pub gender: Option<Secret<String>>,
pub last_name: Option<Secret<String>>,
pub mobile: Option<Secret<String>>,
pub tel: Option<Secret<String>>,
pub fax: 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_353540475883723703_14
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetResponseCustomer {
pub billing: Option<NovalnetResponseBilling>,
pub customer_ip: Option<Secret<String>>,
pub email: Option<pii::Email>,
pub first_name: Option<Secret<String>>,
pub gender: Option<Secret<String>>,
pub last_name: Option<Secret<String>>,
pub mobile: Option<Secret<String>>,
pub tel: Option<Secret<String>>,
pub fax: Option<Secret<String>>,
}
pub struct NovalnetResponseBilling {
pub city: Option<Secret<String>>,
pub country_code: Option<Secret<String>>,
pub house_no: Option<Secret<String>>,
pub street: Option<Secret<String>>,
pub zip: Option<Secret<String>>,
pub state: Option<Secret<String>>,
}
pub struct NovalnetResponseMerchant {
pub project: Option<Secret<i64>>,
pub project_name: Option<Secret<String>>,
pub project_url: Option<url::Url>,
pub vendor: Option<Secret<i64>>,
}
|
{
"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_353540475883723703_16
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetResponseMerchant {
pub project: Option<Secret<i64>>,
pub project_name: Option<Secret<String>>,
pub project_url: Option<url::Url>,
pub vendor: Option<Secret<i64>>,
}
pub struct NovalnetAuthorizationResponse {
expiry_date: Option<String>,
auto_action: Option<String>,
}
pub struct NovalnetSyncResponseTransactionData {
pub amount: Option<MinorUnit>,
pub currency: Option<common_enums::Currency>,
pub date: Option<String>,
pub order_no: Option<String>,
pub payment_data: Option<NovalnetResponsePaymentData>,
pub payment_type: String,
pub status: NovalnetTransactionStatus,
pub status_code: u64,
pub test_mode: u8,
pub tid: Option<Secret<i64>>,
pub txn_secret: Option<Secret<String>>,
pub authorization: Option<NovalnetAuthorizationResponse>,
pub reason: Option<String>,
pub reason_code: 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_353540475883723703_18
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetSyncResponseTransactionData {
pub amount: Option<MinorUnit>,
pub currency: Option<common_enums::Currency>,
pub date: Option<String>,
pub order_no: Option<String>,
pub payment_data: Option<NovalnetResponsePaymentData>,
pub payment_type: String,
pub status: NovalnetTransactionStatus,
pub status_code: u64,
pub test_mode: u8,
pub tid: Option<Secret<i64>>,
pub txn_secret: Option<Secret<String>>,
pub authorization: Option<NovalnetAuthorizationResponse>,
pub reason: Option<String>,
pub reason_code: Option<String>,
}
pub struct NovalnetResponseCard {
pub card_brand: Option<Secret<String>>,
pub card_expiry_month: Secret<u8>,
pub card_expiry_year: Secret<u16>,
pub card_holder: Secret<String>,
pub card_number: Secret<String>,
pub cc_3d: Option<Secret<u8>>,
pub last_four: Option<Secret<String>>,
pub token: Option<Secret<String>>,
pub scheme_tid: Option<Secret<String>>,
}
pub struct NovalnetResponsePaypal {
pub paypal_account: Option<pii::Email>,
pub paypal_transaction_id: Option<Secret<String>>,
pub token: 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_353540475883723703_20
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetResponsePaypal {
pub paypal_account: Option<pii::Email>,
pub paypal_transaction_id: Option<Secret<String>>,
pub token: Option<Secret<String>>,
}
pub struct NovalnetPSyncResponse {
pub customer: Option<NovalnetResponseCustomer>,
pub merchant: Option<NovalnetResponseMerchant>,
pub result: ResultData,
pub transaction: Option<NovalnetSyncResponseTransactionData>,
}
pub struct Capture {
#[serde(rename = "type")]
cap_type: CaptureType,
reference: 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_353540475883723703_22
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct Capture {
#[serde(rename = "type")]
cap_type: CaptureType,
reference: String,
}
pub struct NovalnetTransaction {
tid: String,
amount: Option<StringMinorUnit>,
capture: Capture,
}
pub struct NovalnetCaptureRequest {
pub transaction: NovalnetTransaction,
pub custom: NovalnetCustom,
}
|
{
"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_353540475883723703_24
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetCaptureRequest {
pub transaction: NovalnetTransaction,
pub custom: NovalnetCustom,
}
pub struct NovalnetRefundTransaction {
tid: String,
amount: Option<StringMinorUnit>,
}
pub struct NovalnetRefundRequest {
pub transaction: NovalnetRefundTransaction,
pub custom: NovalnetCustom,
}
|
{
"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_353540475883723703_26
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetRefundRequest {
pub transaction: NovalnetRefundTransaction,
pub custom: NovalnetCustom,
}
pub struct NovalnetRefundSyncResponse {
result: ResultData,
transaction: Option<NovalnetSyncResponseTransactionData>,
}
pub struct NovalnetRefundsTransactionData {
pub amount: Option<MinorUnit>,
pub date: Option<String>,
pub currency: Option<common_enums::Currency>,
pub order_no: Option<String>,
pub payment_type: String,
pub refund: RefundData,
pub refunded_amount: Option<u64>,
pub status: NovalnetTransactionStatus,
pub status_code: u64,
pub test_mode: u8,
pub tid: Option<Secret<i64>>,
}
|
{
"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_353540475883723703_28
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetRefundsTransactionData {
pub amount: Option<MinorUnit>,
pub date: Option<String>,
pub currency: Option<common_enums::Currency>,
pub order_no: Option<String>,
pub payment_type: String,
pub refund: RefundData,
pub refunded_amount: Option<u64>,
pub status: NovalnetTransactionStatus,
pub status_code: u64,
pub test_mode: u8,
pub tid: Option<Secret<i64>>,
}
pub struct RefundData {
amount: u64,
currency: common_enums::Currency,
payment_type: Option<String>,
tid: Option<Secret<i64>>,
}
pub struct NovalnetRefundResponse {
pub customer: Option<NovalnetResponseCustomer>,
pub merchant: Option<NovalnetResponseMerchant>,
pub result: ResultData,
pub transaction: Option<NovalnetRefundsTransactionData>,
}
|
{
"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_353540475883723703_30
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetRefundResponse {
pub customer: Option<NovalnetResponseCustomer>,
pub merchant: Option<NovalnetResponseMerchant>,
pub result: ResultData,
pub transaction: Option<NovalnetRefundsTransactionData>,
}
pub struct NovalnetRedirectionResponse {
status: NovalnetTransactionStatus,
tid: Secret<String>,
}
pub struct NovalnetCaptureTransactionData {
pub amount: Option<MinorUnit>,
pub capture: CaptureData,
pub currency: Option<common_enums::Currency>,
pub order_no: Option<String>,
pub payment_type: String,
pub status: NovalnetTransactionStatus,
pub status_code: Option<u64>,
pub test_mode: Option<u8>,
pub tid: Secret<i64>,
}
|
{
"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_353540475883723703_32
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetCaptureTransactionData {
pub amount: Option<MinorUnit>,
pub capture: CaptureData,
pub currency: Option<common_enums::Currency>,
pub order_no: Option<String>,
pub payment_type: String,
pub status: NovalnetTransactionStatus,
pub status_code: Option<u64>,
pub test_mode: Option<u8>,
pub tid: Secret<i64>,
}
pub struct CaptureData {
amount: Option<u64>,
payment_type: Option<String>,
status: Option<String>,
status_code: u64,
tid: Option<Secret<i64>>,
}
pub struct NovalnetCaptureResponse {
pub result: ResultData,
pub transaction: Option<NovalnetCaptureTransactionData>,
}
|
{
"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_353540475883723703_34
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetCaptureResponse {
pub result: ResultData,
pub transaction: Option<NovalnetCaptureTransactionData>,
}
pub struct NovalnetSyncTransaction {
tid: String,
}
pub struct NovalnetSyncRequest {
pub transaction: NovalnetSyncTransaction,
pub custom: NovalnetCustom,
}
|
{
"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_353540475883723703_36
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetSyncRequest {
pub transaction: NovalnetSyncTransaction,
pub custom: NovalnetCustom,
}
pub struct NovalnetCancelTransaction {
tid: String,
}
pub struct NovalnetCancelRequest {
pub transaction: NovalnetCancelTransaction,
pub custom: NovalnetCustom,
}
|
{
"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_353540475883723703_38
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetCancelRequest {
pub transaction: NovalnetCancelTransaction,
pub custom: NovalnetCustom,
}
pub struct NovalnetCancelResponse {
result: ResultData,
transaction: Option<NovalnetPaymentsResponseTransactionData>,
}
pub struct NovalnetErrorResponse {
pub status_code: u64,
pub code: String,
pub message: String,
pub reason: 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_353540475883723703_40
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetErrorResponse {
pub status_code: u64,
pub code: String,
pub message: String,
pub reason: Option<String>,
}
pub struct NovalnetWebhookEvent {
pub checksum: String,
pub tid: i64,
pub parent_tid: Option<i64>,
#[serde(rename = "type")]
pub event_type: WebhookEventType,
}
pub struct NovalnetWebhookNotificationResponse {
pub event: NovalnetWebhookEvent,
pub result: ResultData,
pub transaction: NovalnetWebhookTransactionData,
}
|
{
"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_353540475883723703_42
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub struct NovalnetWebhookNotificationResponse {
pub event: NovalnetWebhookEvent,
pub result: ResultData,
pub transaction: NovalnetWebhookTransactionData,
}
pub struct NovalnetWebhookNotificationResponseRefunds {
pub event: NovalnetWebhookEvent,
pub result: ResultData,
pub transaction: NovalnetRefundsTransactionData,
}
pub enum NovalNetPaymentTypes {
CREDITCARD,
PAYPAL,
GOOGLEPAY,
APPLEPAY,
}
|
{
"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_353540475883723703_44
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub enum NovalNetPaymentTypes {
CREDITCARD,
PAYPAL,
GOOGLEPAY,
APPLEPAY,
}
pub enum NovalNetPaymentData<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> {
Card(NovalnetCard<T>),
RawCardForNTI(NovalnetRawCardDetails),
GooglePay(NovalnetGooglePay),
ApplePay(NovalnetApplePay),
MandatePayment(NovalnetMandate),
}
pub enum NovalNetAmount {
StringMinor(StringMinorUnit),
Int(i64),
}
|
{
"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_353540475883723703_46
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub enum NovalNetAmount {
StringMinor(StringMinorUnit),
Int(i64),
}
pub enum NovalnetTransactionStatus {
Success,
Failure,
Confirmed,
OnHold,
Pending,
Deactivated,
Progress,
}
pub enum NovalnetAPIStatus {
Success,
Failure,
}
|
{
"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_353540475883723703_48
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub enum NovalnetAPIStatus {
Success,
Failure,
}
pub enum NovalnetResponsePaymentData {
Card(NovalnetResponseCard),
Paypal(NovalnetResponsePaypal),
}
pub enum CaptureType {
#[default]
Partial,
Final,
}
|
{
"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_353540475883723703_50
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub enum CaptureType {
#[default]
Partial,
Final,
}
pub enum WebhookEventType {
Payment,
TransactionCapture,
TransactionCancel,
TransactionRefund,
Chargeback,
Credit,
}
pub enum NovalnetWebhookTransactionData {
SyncTransactionData(NovalnetSyncResponseTransactionData),
CaptureTransactionData(NovalnetCaptureTransactionData),
CancelTransactionData(NovalnetPaymentsResponseTransactionData),
RefundsTransactionData(NovalnetRefundsTransactionData),
}
|
{
"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_353540475883723703_52
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs
pub enum NovalnetWebhookTransactionData {
SyncTransactionData(NovalnetSyncResponseTransactionData),
CaptureTransactionData(NovalnetCaptureTransactionData),
CancelTransactionData(NovalnetPaymentsResponseTransactionData),
RefundsTransactionData(NovalnetRefundsTransactionData),
}
pub enum WebhookDisputeStatus {
DisputeOpened,
DisputeWon,
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": 2,
"num_structs": null,
"repo": "connector-service",
"start_line": null,
"struct_name": null,
"total_crates": null,
"trait_name": null
}
|
connector-service_multi_-8249547783947283321_0
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct Amount {
pub currency: common_enums::Currency,
pub value: MinorUnit,
}
pub struct AdyenCard<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> {
number: RawCardNumber<T>,
expiry_month: Secret<String>,
expiry_year: Secret<String>,
cvc: Option<Secret<String>>,
holder_name: Option<Secret<String>>,
brand: Option<CardBrand>, //Mandatory for mandate using network_txns_id
network_payment_reference: Option<Secret<String>>,
}
struct AdyenBrowserInfo {
user_agent: String,
accept_header: String,
language: String,
color_depth: u8,
screen_height: u32,
screen_width: u32,
time_zone_offset: i32,
java_enabled: bool,
}
|
{
"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_-8249547783947283321_2
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
struct AdyenBrowserInfo {
user_agent: String,
accept_header: String,
language: String,
color_depth: u8,
screen_height: u32,
screen_width: u32,
time_zone_offset: i32,
java_enabled: bool,
}
pub struct Address {
city: String,
country: common_enums::CountryAlpha2,
house_number_or_name: Secret<String>,
postal_code: Secret<String>,
state_or_province: Option<Secret<String>>,
street: Option<Secret<String>>,
}
struct AdyenMpiData {
directory_response: String,
authentication_response: String,
token_authentication_verification_value: Secret<String>,
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_-8249547783947283321_4
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
struct AdyenMpiData {
directory_response: String,
authentication_response: String,
token_authentication_verification_value: Secret<String>,
eci: Option<String>,
}
pub struct AdditionalData {
authorisation_type: Option<AuthType>,
manual_capture: Option<String>,
execute_three_d: Option<String>,
pub recurring_processing_model: Option<AdyenRecurringModel>,
/// Enable recurring details in dashboard to receive this ID, https://docs.adyen.com/online-payments/tokenization/create-and-use-tokens#test-and-go-live
#[serde(rename = "recurring.recurringDetailReference")]
recurring_detail_reference: Option<Secret<String>>,
#[serde(rename = "recurring.shopperReference")]
recurring_shopper_reference: Option<String>,
network_tx_reference: Option<Secret<String>>,
funds_availability: Option<String>,
refusal_reason_raw: Option<String>,
refusal_code_raw: Option<String>,
merchant_advice_code: Option<String>,
#[serde(flatten)]
riskdata: Option<RiskData>,
}
pub struct RiskData {
#[serde(rename = "riskdata.basket.item1.itemID")]
item_i_d: Option<String>,
#[serde(rename = "riskdata.basket.item1.productTitle")]
product_title: Option<String>,
#[serde(rename = "riskdata.basket.item1.amountPerItem")]
amount_per_item: Option<String>,
#[serde(rename = "riskdata.basket.item1.currency")]
currency: Option<String>,
#[serde(rename = "riskdata.basket.item1.upc")]
upc: Option<String>,
#[serde(rename = "riskdata.basket.item1.brand")]
brand: Option<String>,
#[serde(rename = "riskdata.basket.item1.manufacturer")]
manufacturer: Option<String>,
#[serde(rename = "riskdata.basket.item1.category")]
category: Option<String>,
#[serde(rename = "riskdata.basket.item1.quantity")]
quantity: Option<String>,
#[serde(rename = "riskdata.basket.item1.color")]
color: Option<String>,
#[serde(rename = "riskdata.basket.item1.size")]
size: Option<String>,
#[serde(rename = "riskdata.deviceCountry")]
device_country: Option<String>,
#[serde(rename = "riskdata.houseNumberorName")]
house_numberor_name: Option<String>,
#[serde(rename = "riskdata.accountCreationDate")]
account_creation_date: Option<String>,
#[serde(rename = "riskdata.affiliateChannel")]
affiliate_channel: Option<String>,
#[serde(rename = "riskdata.avgOrderValue")]
avg_order_value: Option<String>,
#[serde(rename = "riskdata.deliveryMethod")]
delivery_method: Option<String>,
#[serde(rename = "riskdata.emailName")]
email_name: Option<String>,
#[serde(rename = "riskdata.emailDomain")]
email_domain: Option<String>,
#[serde(rename = "riskdata.lastOrderDate")]
last_order_date: Option<String>,
#[serde(rename = "riskdata.merchantReference")]
merchant_reference: Option<String>,
#[serde(rename = "riskdata.paymentMethod")]
payment_method: Option<String>,
#[serde(rename = "riskdata.promotionName")]
promotion_name: Option<String>,
#[serde(rename = "riskdata.secondaryPhoneNumber")]
secondary_phone_number: Option<Secret<String>>,
#[serde(rename = "riskdata.timefromLogintoOrder")]
timefrom_loginto_order: Option<String>,
#[serde(rename = "riskdata.totalSessionTime")]
total_session_time: Option<String>,
#[serde(rename = "riskdata.totalAuthorizedAmountInLast30Days")]
total_authorized_amount_in_last30_days: Option<String>,
#[serde(rename = "riskdata.totalOrderQuantity")]
total_order_quantity: Option<String>,
#[serde(rename = "riskdata.totalLifetimeValue")]
total_lifetime_value: Option<String>,
#[serde(rename = "riskdata.visitsMonth")]
visits_month: Option<String>,
#[serde(rename = "riskdata.visitsWeek")]
visits_week: Option<String>,
#[serde(rename = "riskdata.visitsYear")]
visits_year: Option<String>,
#[serde(rename = "riskdata.shipToName")]
ship_to_name: Option<String>,
#[serde(rename = "riskdata.first8charactersofAddressLine1Zip")]
first8charactersof_address_line1_zip: Option<String>,
#[serde(rename = "riskdata.affiliateOrder")]
affiliate_order: Option<bool>,
}
|
{
"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_-8249547783947283321_6
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct RiskData {
#[serde(rename = "riskdata.basket.item1.itemID")]
item_i_d: Option<String>,
#[serde(rename = "riskdata.basket.item1.productTitle")]
product_title: Option<String>,
#[serde(rename = "riskdata.basket.item1.amountPerItem")]
amount_per_item: Option<String>,
#[serde(rename = "riskdata.basket.item1.currency")]
currency: Option<String>,
#[serde(rename = "riskdata.basket.item1.upc")]
upc: Option<String>,
#[serde(rename = "riskdata.basket.item1.brand")]
brand: Option<String>,
#[serde(rename = "riskdata.basket.item1.manufacturer")]
manufacturer: Option<String>,
#[serde(rename = "riskdata.basket.item1.category")]
category: Option<String>,
#[serde(rename = "riskdata.basket.item1.quantity")]
quantity: Option<String>,
#[serde(rename = "riskdata.basket.item1.color")]
color: Option<String>,
#[serde(rename = "riskdata.basket.item1.size")]
size: Option<String>,
#[serde(rename = "riskdata.deviceCountry")]
device_country: Option<String>,
#[serde(rename = "riskdata.houseNumberorName")]
house_numberor_name: Option<String>,
#[serde(rename = "riskdata.accountCreationDate")]
account_creation_date: Option<String>,
#[serde(rename = "riskdata.affiliateChannel")]
affiliate_channel: Option<String>,
#[serde(rename = "riskdata.avgOrderValue")]
avg_order_value: Option<String>,
#[serde(rename = "riskdata.deliveryMethod")]
delivery_method: Option<String>,
#[serde(rename = "riskdata.emailName")]
email_name: Option<String>,
#[serde(rename = "riskdata.emailDomain")]
email_domain: Option<String>,
#[serde(rename = "riskdata.lastOrderDate")]
last_order_date: Option<String>,
#[serde(rename = "riskdata.merchantReference")]
merchant_reference: Option<String>,
#[serde(rename = "riskdata.paymentMethod")]
payment_method: Option<String>,
#[serde(rename = "riskdata.promotionName")]
promotion_name: Option<String>,
#[serde(rename = "riskdata.secondaryPhoneNumber")]
secondary_phone_number: Option<Secret<String>>,
#[serde(rename = "riskdata.timefromLogintoOrder")]
timefrom_loginto_order: Option<String>,
#[serde(rename = "riskdata.totalSessionTime")]
total_session_time: Option<String>,
#[serde(rename = "riskdata.totalAuthorizedAmountInLast30Days")]
total_authorized_amount_in_last30_days: Option<String>,
#[serde(rename = "riskdata.totalOrderQuantity")]
total_order_quantity: Option<String>,
#[serde(rename = "riskdata.totalLifetimeValue")]
total_lifetime_value: Option<String>,
#[serde(rename = "riskdata.visitsMonth")]
visits_month: Option<String>,
#[serde(rename = "riskdata.visitsWeek")]
visits_week: Option<String>,
#[serde(rename = "riskdata.visitsYear")]
visits_year: Option<String>,
#[serde(rename = "riskdata.shipToName")]
ship_to_name: Option<String>,
#[serde(rename = "riskdata.first8charactersofAddressLine1Zip")]
first8charactersof_address_line1_zip: Option<String>,
#[serde(rename = "riskdata.affiliateOrder")]
affiliate_order: Option<bool>,
}
pub struct ShopperName {
first_name: Option<Secret<String>>,
last_name: Option<Secret<String>>,
}
pub struct LineItem {
amount_excluding_tax: Option<MinorUnit>,
amount_including_tax: Option<MinorUnit>,
description: Option<String>,
id: Option<String>,
tax_amount: Option<MinorUnit>,
quantity: Option<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_-8249547783947283321_8
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct LineItem {
amount_excluding_tax: Option<MinorUnit>,
amount_including_tax: Option<MinorUnit>,
description: Option<String>,
id: Option<String>,
tax_amount: Option<MinorUnit>,
quantity: Option<u16>,
}
struct AdyenSplitData {
amount: Option<Amount>,
#[serde(rename = "type")]
split_type: AdyenSplitType,
account: Option<String>,
reference: String,
description: Option<String>,
}
pub struct AdyenGPay {
#[serde(rename = "googlePayToken")]
google_pay_token: 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_-8249547783947283321_10
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct AdyenGPay {
#[serde(rename = "googlePayToken")]
google_pay_token: Secret<String>,
}
pub struct AdyenApplePay {
#[serde(rename = "applePayToken")]
apple_pay_token: Secret<String>,
}
pub struct AdyenPaymentRequest<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> {
amount: Amount,
merchant_account: Secret<String>,
payment_method: PaymentMethod<T>,
mpi_data: Option<AdyenMpiData>,
reference: String,
return_url: String,
browser_info: Option<AdyenBrowserInfo>,
shopper_interaction: AdyenShopperInteraction,
recurring_processing_model: Option<AdyenRecurringModel>,
additional_data: Option<AdditionalData>,
shopper_reference: Option<String>,
store_payment_method: Option<bool>,
shopper_name: Option<ShopperName>,
#[serde(rename = "shopperIP")]
shopper_ip: Option<Secret<String, common_utils::pii::IpAddress>>,
shopper_locale: Option<String>,
shopper_email: Option<common_utils::pii::Email>,
shopper_statement: Option<String>,
social_security_number: Option<Secret<String>>,
telephone_number: Option<Secret<String>>,
billing_address: Option<Address>,
delivery_address: Option<Address>,
country_code: Option<common_enums::CountryAlpha2>,
line_items: Option<Vec<LineItem>>,
channel: Option<Channel>,
merchant_order_reference: Option<String>,
splits: Option<Vec<AdyenSplitData>>,
store: Option<String>,
device_fingerprint: 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_-8249547783947283321_12
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct AdyenPaymentRequest<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> {
amount: Amount,
merchant_account: Secret<String>,
payment_method: PaymentMethod<T>,
mpi_data: Option<AdyenMpiData>,
reference: String,
return_url: String,
browser_info: Option<AdyenBrowserInfo>,
shopper_interaction: AdyenShopperInteraction,
recurring_processing_model: Option<AdyenRecurringModel>,
additional_data: Option<AdditionalData>,
shopper_reference: Option<String>,
store_payment_method: Option<bool>,
shopper_name: Option<ShopperName>,
#[serde(rename = "shopperIP")]
shopper_ip: Option<Secret<String, common_utils::pii::IpAddress>>,
shopper_locale: Option<String>,
shopper_email: Option<common_utils::pii::Email>,
shopper_statement: Option<String>,
social_security_number: Option<Secret<String>>,
telephone_number: Option<Secret<String>>,
billing_address: Option<Address>,
delivery_address: Option<Address>,
country_code: Option<common_enums::CountryAlpha2>,
line_items: Option<Vec<LineItem>>,
channel: Option<Channel>,
merchant_order_reference: Option<String>,
splits: Option<Vec<AdyenSplitData>>,
store: Option<String>,
device_fingerprint: Option<Secret<String>>,
}
pub struct SetupMandateRequest<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>(AdyenPaymentRequest<T>);
pub struct AdyenVoidRequest {
merchant_account: Secret<String>,
reference: 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_-8249547783947283321_14
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct AdyenVoidRequest {
merchant_account: Secret<String>,
reference: String,
}
pub struct AdyenRouterData1<T> {
pub amount: MinorUnit,
pub router_data: T,
}
pub struct AdyenPSyncResponse(AdyenPaymentResponse);
|
{
"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_-8249547783947283321_16
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct AdyenPSyncResponse(AdyenPaymentResponse);
pub struct SetupMandateResponse(AdyenPaymentResponse);
pub struct AdyenResponse {
psp_reference: String,
result_code: AdyenStatus,
amount: Option<Amount>,
merchant_reference: String,
refusal_reason: Option<String>,
refusal_reason_code: Option<String>,
additional_data: Option<AdditionalData>,
splits: Option<Vec<AdyenSplitData>>,
store: 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_-8249547783947283321_18
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct AdyenResponse {
psp_reference: String,
result_code: AdyenStatus,
amount: Option<Amount>,
merchant_reference: String,
refusal_reason: Option<String>,
refusal_reason_code: Option<String>,
additional_data: Option<AdditionalData>,
splits: Option<Vec<AdyenSplitData>>,
store: Option<String>,
}
pub struct AdyenVoidResponse {
payment_psp_reference: String,
status: AdyenVoidStatus,
reference: String,
}
pub struct RedirectionResponse {
result_code: AdyenStatus,
action: AdyenRedirectAction,
refusal_reason: Option<String>,
refusal_reason_code: Option<String>,
psp_reference: Option<String>,
merchant_reference: Option<String>,
store: Option<String>,
splits: Option<Vec<AdyenSplitData>>,
additional_data: Option<AdditionalData>,
}
|
{
"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_-8249547783947283321_20
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct RedirectionResponse {
result_code: AdyenStatus,
action: AdyenRedirectAction,
refusal_reason: Option<String>,
refusal_reason_code: Option<String>,
psp_reference: Option<String>,
merchant_reference: Option<String>,
store: Option<String>,
splits: Option<Vec<AdyenSplitData>>,
additional_data: Option<AdditionalData>,
}
pub struct AdyenRedirectAction {
payment_method_type: PaymentType,
url: Option<Url>,
method: Option<common_utils::request::Method>,
#[serde(rename = "type")]
type_of_response: ActionType,
data: Option<std::collections::HashMap<String, String>>,
payment_data: Option<String>,
}
pub struct WaitScreenData {
display_from_timestamp: i128,
display_to_timestamp: Option<i128>,
}
|
{
"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_-8249547783947283321_22
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct WaitScreenData {
display_from_timestamp: i128,
display_to_timestamp: Option<i128>,
}
pub struct AdyenErrorResponse {
pub status: i32,
pub error_code: String,
pub message: String,
pub error_type: String,
pub psp_reference: Option<String>,
}
pub struct AdyenAdditionalDataWH {
pub dispute_status: Option<DisputeStatus>,
pub chargeback_reason_code: 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_-8249547783947283321_24
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct AdyenAdditionalDataWH {
pub dispute_status: Option<DisputeStatus>,
pub chargeback_reason_code: Option<String>,
}
pub struct AdyenNotificationRequestItemWH {
pub original_reference: Option<String>,
pub psp_reference: String,
pub amount: AdyenAmountWH,
pub event_code: WebhookEventCode,
pub merchant_account_code: String,
pub merchant_reference: String,
pub success: String,
pub reason: Option<String>,
pub additional_data: AdyenAdditionalDataWH,
}
pub struct AdyenAmountWH {
pub value: MinorUnit,
pub currency: common_enums::Currency,
}
|
{
"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_-8249547783947283321_26
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct AdyenAmountWH {
pub value: MinorUnit,
pub currency: common_enums::Currency,
}
pub struct AdyenItemObjectWH {
pub notification_request_item: AdyenNotificationRequestItemWH,
}
pub struct AdyenIncomingWebhook {
pub notification_items: Vec<AdyenItemObjectWH>,
}
|
{
"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_-8249547783947283321_28
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct AdyenIncomingWebhook {
pub notification_items: Vec<AdyenItemObjectWH>,
}
pub struct AdyenRedirectRequest {
pub details: AdyenRedirectRequestTypes,
}
pub struct AdyenRedirection {
pub redirect_result: String,
#[serde(rename = "type")]
pub type_of_redirection_result: Option<String>,
pub result_code: 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_-8249547783947283321_30
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct AdyenRedirection {
pub redirect_result: String,
#[serde(rename = "type")]
pub type_of_redirection_result: Option<String>,
pub result_code: Option<String>,
}
pub struct AdyenThreeDS {
#[serde(rename = "threeDSResult")]
pub three_ds_result: String,
#[serde(rename = "type")]
pub type_of_redirection_result: Option<String>,
pub result_code: Option<String>,
}
pub struct AdyenRefusal {
pub payload: String,
#[serde(rename = "type")]
pub type_of_redirection_result: Option<String>,
pub result_code: 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_-8249547783947283321_32
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct AdyenRefusal {
pub payload: String,
#[serde(rename = "type")]
pub type_of_redirection_result: Option<String>,
pub result_code: Option<String>,
}
pub struct AdyenRefundRequest {
merchant_account: Secret<String>,
amount: Amount,
merchant_refund_reason: Option<String>,
reference: String,
splits: Option<Vec<AdyenSplitData>>,
store: Option<String>,
}
pub struct AdyenRefundResponse {
merchant_account: Secret<String>,
psp_reference: String,
payment_psp_reference: String,
reference: String,
status: 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_-8249547783947283321_34
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct AdyenRefundResponse {
merchant_account: Secret<String>,
psp_reference: String,
payment_psp_reference: String,
reference: String,
status: String,
}
pub struct AdyenCaptureRequest {
merchant_account: Secret<String>,
amount: Amount,
reference: String,
}
pub struct AdyenCaptureResponse {
merchant_account: Secret<String>,
payment_psp_reference: String,
psp_reference: String,
reference: String,
status: String,
amount: Amount,
merchant_reference: Option<String>,
store: Option<String>,
splits: Option<Vec<AdyenSplitData>>,
}
|
{
"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_-8249547783947283321_36
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct AdyenCaptureResponse {
merchant_account: Secret<String>,
payment_psp_reference: String,
psp_reference: String,
reference: String,
status: String,
amount: Amount,
merchant_reference: Option<String>,
store: Option<String>,
splits: Option<Vec<AdyenSplitData>>,
}
pub struct AdyenDisputeAcceptRequest {
pub dispute_psp_reference: String,
pub merchant_account_code: String,
}
pub struct AdyenDisputeAcceptResponse {
pub dispute_service_result: Option<DisputeServiceResult>,
}
|
{
"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_-8249547783947283321_38
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct AdyenDisputeAcceptResponse {
pub dispute_service_result: Option<DisputeServiceResult>,
}
pub struct AdyenDisputeSubmitEvidenceRequest {
defense_documents: Vec<DefenseDocuments>,
merchant_account_code: Secret<String>,
dispute_psp_reference: String,
}
pub struct DefenseDocuments {
content: Secret<String>,
content_type: Option<String>,
defense_document_type_code: 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_-8249547783947283321_40
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct DefenseDocuments {
content: Secret<String>,
content_type: Option<String>,
defense_document_type_code: String,
}
pub struct AdyenSubmitEvidenceResponse {
pub dispute_service_result: Option<DisputeServiceResult>,
}
pub struct AdyenDefendDisputeRequest {
dispute_psp_reference: String,
merchant_account_code: Secret<String>,
defense_reason_code: 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_-8249547783947283321_42
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct AdyenDefendDisputeRequest {
dispute_psp_reference: String,
merchant_account_code: Secret<String>,
defense_reason_code: String,
}
pub struct DefendDisputeErrorResponse {
error_code: String,
error_type: String,
message: String,
psp_reference: String,
status: String,
}
pub struct DefendDisputeSuccessResponse {
dispute_service_result: DisputeServiceResult,
}
|
{
"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_-8249547783947283321_44
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub struct DefendDisputeSuccessResponse {
dispute_service_result: DisputeServiceResult,
}
pub struct DisputeServiceResult {
error_message: Option<String>,
success: bool,
}
pub enum Currency {
#[default]
USD,
EUR,
}
|
{
"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_-8249547783947283321_46
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub enum Currency {
#[default]
USD,
EUR,
}
pub enum CardBrand {
Visa,
}
pub enum ConnectorError {
ParsingFailed,
NotImplemented,
FailedToObtainAuthType,
}
|
{
"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_-8249547783947283321_48
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub enum ConnectorError {
ParsingFailed,
NotImplemented,
FailedToObtainAuthType,
}
pub enum AdyenPaymentMethod<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> {
#[serde(rename = "scheme")]
AdyenCard(Box<AdyenCard<T>>),
#[serde(rename = "googlepay")]
Gpay(Box<AdyenGPay>),
ApplePay(Box<AdyenApplePay>),
}
pub enum AuthType {
#[default]
PreAuth,
}
|
{
"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_-8249547783947283321_50
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub enum AuthType {
#[default]
PreAuth,
}
pub enum PaymentMethod<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> {
AdyenPaymentMethod(Box<AdyenPaymentMethod<T>>),
}
pub enum AdyenShopperInteraction {
#[default]
Ecommerce,
#[serde(rename = "ContAuth")]
ContinuedAuthentication,
Moto,
#[serde(rename = "POS")]
Pos,
}
|
{
"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_-8249547783947283321_52
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub enum AdyenShopperInteraction {
#[default]
Ecommerce,
#[serde(rename = "ContAuth")]
ContinuedAuthentication,
Moto,
#[serde(rename = "POS")]
Pos,
}
pub enum AdyenRecurringModel {
UnscheduledCardOnFile,
CardOnFile,
}
pub enum Channel {
Web,
}
|
{
"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_-8249547783947283321_54
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub enum Channel {
Web,
}
pub enum PaymentType {
Affirm,
Afterpaytouch,
Alipay,
#[serde(rename = "alipay_hk")]
AlipayHk,
#[serde(rename = "doku_alfamart")]
Alfamart,
Alma,
Applepay,
Bizum,
Atome,
Blik,
#[serde(rename = "boletobancario")]
BoletoBancario,
ClearPay,
Dana,
Eps,
Gcash,
Googlepay,
#[serde(rename = "gopay_wallet")]
GoPay,
Ideal,
#[serde(rename = "doku_indomaret")]
Indomaret,
Klarna,
Kakaopay,
Mbway,
MobilePay,
#[serde(rename = "momo_wallet")]
Momo,
#[serde(rename = "momo_atm")]
MomoAtm,
#[serde(rename = "onlineBanking_CZ")]
OnlineBankingCzechRepublic,
#[serde(rename = "ebanking_FI")]
OnlineBankingFinland,
#[serde(rename = "onlineBanking_PL")]
OnlineBankingPoland,
#[serde(rename = "onlineBanking_SK")]
OnlineBankingSlovakia,
#[serde(rename = "molpay_ebanking_fpx_MY")]
OnlineBankingFpx,
#[serde(rename = "molpay_ebanking_TH")]
OnlineBankingThailand,
#[serde(rename = "paybybank")]
OpenBankingUK,
#[serde(rename = "oxxo")]
Oxxo,
#[serde(rename = "paysafecard")]
PaySafeCard,
PayBright,
Paypal,
Scheme,
#[serde(rename = "networkToken")]
NetworkToken,
#[serde(rename = "trustly")]
Trustly,
#[serde(rename = "touchngo")]
TouchNGo,
Walley,
#[serde(rename = "wechatpayWeb")]
WeChatPayWeb,
#[serde(rename = "ach")]
AchDirectDebit,
SepaDirectDebit,
#[serde(rename = "directdebit_GB")]
BacsDirectDebit,
Samsungpay,
Twint,
Vipps,
Giftcard,
Knet,
Benefit,
Swish,
#[serde(rename = "doku_permata_lite_atm")]
PermataBankTransfer,
#[serde(rename = "doku_bca_va")]
BcaBankTransfer,
#[serde(rename = "doku_bni_va")]
BniVa,
#[serde(rename = "doku_bri_va")]
BriVa,
#[serde(rename = "doku_cimb_va")]
CimbVa,
#[serde(rename = "doku_danamon_va")]
DanamonVa,
#[serde(rename = "doku_mandiri_va")]
MandiriVa,
#[serde(rename = "econtext_seven_eleven")]
SevenEleven,
#[serde(rename = "econtext_stores")]
Lawson,
}
pub enum AdyenSplitType {
/// Books split amount to the specified account.
BalanceAccount,
/// The aggregated amount of the interchange and scheme fees.
AcquiringFees,
/// The aggregated amount of all transaction fees.
PaymentFee,
/// The aggregated amount of Adyen's commission and markup fees.
AdyenFees,
/// The transaction fees due to Adyen under blended rates.
AdyenCommission,
/// The transaction fees due to Adyen under Interchange ++ pricing.
AdyenMarkup,
/// The fees paid to the issuer for each payment made with the card network.
Interchange,
/// The fees paid to the card scheme for using their network.
SchemeFee,
/// Your platform's commission on the payment (specified in amount), booked to your liable balance account.
Commission,
/// Allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods.
TopUp,
/// The value-added tax charged on the payment, booked to your platforms liable balance account.
Vat,
}
|
{
"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_-8249547783947283321_56
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub enum AdyenSplitType {
/// Books split amount to the specified account.
BalanceAccount,
/// The aggregated amount of the interchange and scheme fees.
AcquiringFees,
/// The aggregated amount of all transaction fees.
PaymentFee,
/// The aggregated amount of Adyen's commission and markup fees.
AdyenFees,
/// The transaction fees due to Adyen under blended rates.
AdyenCommission,
/// The transaction fees due to Adyen under Interchange ++ pricing.
AdyenMarkup,
/// The fees paid to the issuer for each payment made with the card network.
Interchange,
/// The fees paid to the card scheme for using their network.
SchemeFee,
/// Your platform's commission on the payment (specified in amount), booked to your liable balance account.
Commission,
/// Allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods.
TopUp,
/// The value-added tax charged on the payment, booked to your platforms liable balance account.
Vat,
}
pub enum AdyenPaymentResponse {
Response(Box<AdyenResponse>),
RedirectionResponse(Box<RedirectionResponse>),
}
pub enum ActionType {
Redirect,
Await,
#[serde(rename = "qrCode")]
QrCode,
Voucher,
}
|
{
"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_-8249547783947283321_58
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub enum ActionType {
Redirect,
Await,
#[serde(rename = "qrCode")]
QrCode,
Voucher,
}
pub enum AdyenStatus {
AuthenticationFinished,
AuthenticationNotRequired,
Authorised,
Cancelled,
ChallengeShopper,
Error,
Pending,
Received,
RedirectShopper,
Refused,
PresentToShopper,
}
pub enum CaptureMethod {
/// Post the payment authorization, the capture will be executed on the full amount immediately
#[default]
Automatic,
/// The capture will happen only if the merchant triggers a Capture API request
Manual,
/// The capture will happen only if the merchant triggers a Capture API request
ManualMultiple,
/// The capture can be scheduled to automatically get triggered at a specific date & time
Scheduled,
/// Handles separate auth and capture sequentially; same as `Automatic` for most connectors.
SequentialAutomatic,
}
|
{
"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_-8249547783947283321_60
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub enum CaptureMethod {
/// Post the payment authorization, the capture will be executed on the full amount immediately
#[default]
Automatic,
/// The capture will happen only if the merchant triggers a Capture API request
Manual,
/// The capture will happen only if the merchant triggers a Capture API request
ManualMultiple,
/// The capture can be scheduled to automatically get triggered at a specific date & time
Scheduled,
/// Handles separate auth and capture sequentially; same as `Automatic` for most connectors.
SequentialAutomatic,
}
pub enum PaymentMethodType {
Credit,
}
pub enum AdyenVoidStatus {
Received,
#[default]
Processing,
}
|
{
"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_-8249547783947283321_62
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub enum AdyenVoidStatus {
Received,
#[default]
Processing,
}
pub enum WebhookEventCode {
Authorisation,
Cancellation,
Capture,
CaptureFailed,
Refund,
RefundFailed,
RefundReversed,
CancelOrRefund,
NotificationOfChargeback,
Chargeback,
ChargebackReversed,
SecondChargeback,
PrearbitrationWon,
PrearbitrationLost,
}
pub enum DisputeStatus {
Undefended,
Pending,
Lost,
Accepted,
Won,
}
|
{
"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_-8249547783947283321_64
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs
pub enum DisputeStatus {
Undefended,
Pending,
Lost,
Accepted,
Won,
}
pub enum AdyenRedirectRequestTypes {
AdyenRedirection(AdyenRedirection),
AdyenThreeDS(AdyenThreeDS),
AdyenRefusal(AdyenRefusal),
}
pub enum AdyenDefendDisputeResponse {
DefendDisputeSuccessResponse(DefendDisputeSuccessResponse),
DefendDisputeFailedResponse(DefendDisputeErrorResponse),
}
|
{
"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_2054780185909450401_0
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs
pub struct WorldpayvantivMetadataObject {
pub report_group: String,
pub merchant_config_currency: common_enums::Currency,
}
pub struct WorldpayvantivPaymentMetadata {
pub report_group: Option<String>,
}
pub struct WorldpayvantivPaymentsRequest<T: PaymentMethodDataTypes> {
pub cnp_request: CnpOnlineRequest<T>,
}
|
{
"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_2054780185909450401_2
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs
pub struct WorldpayvantivPaymentsRequest<T: PaymentMethodDataTypes> {
pub cnp_request: CnpOnlineRequest<T>,
}
pub struct WorldpayvantivAuthType {
pub user: Secret<String>,
pub password: Secret<String>,
pub merchant_id: Secret<String>,
}
pub struct CnpOnlineRequest<T: PaymentMethodDataTypes> {
#[serde(rename = "@version")]
pub version: String,
#[serde(rename = "@xmlns")]
pub xmlns: String,
#[serde(rename = "@merchantId")]
pub merchant_id: Secret<String>,
pub authentication: Authentication,
#[serde(skip_serializing_if = "Option::is_none")]
pub authorization: Option<Authorization<T>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub sale: Option<Sale<T>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub capture: Option<CaptureRequest>,
#[serde(skip_serializing_if = "Option::is_none")]
pub auth_reversal: Option<AuthReversal>,
#[serde(skip_serializing_if = "Option::is_none")]
pub void: Option<VoidRequest>,
#[serde(skip_serializing_if = "Option::is_none")]
pub credit: Option<RefundRequest>,
}
|
{
"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_2054780185909450401_4
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs
pub struct CnpOnlineRequest<T: PaymentMethodDataTypes> {
#[serde(rename = "@version")]
pub version: String,
#[serde(rename = "@xmlns")]
pub xmlns: String,
#[serde(rename = "@merchantId")]
pub merchant_id: Secret<String>,
pub authentication: Authentication,
#[serde(skip_serializing_if = "Option::is_none")]
pub authorization: Option<Authorization<T>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub sale: Option<Sale<T>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub capture: Option<CaptureRequest>,
#[serde(skip_serializing_if = "Option::is_none")]
pub auth_reversal: Option<AuthReversal>,
#[serde(skip_serializing_if = "Option::is_none")]
pub void: Option<VoidRequest>,
#[serde(skip_serializing_if = "Option::is_none")]
pub credit: Option<RefundRequest>,
}
pub struct Authentication {
pub user: Secret<String>,
pub password: Secret<String>,
}
pub struct Authorization<T: PaymentMethodDataTypes> {
#[serde(rename = "@id")]
pub id: String,
#[serde(rename = "@reportGroup")]
pub report_group: String,
#[serde(rename = "@customerId", skip_serializing_if = "Option::is_none")]
pub customer_id: Option<Secret<String>>,
pub order_id: String,
pub amount: MinorUnit,
pub order_source: OrderSource,
#[serde(skip_serializing_if = "Option::is_none")]
pub bill_to_address: Option<BillToAddress>,
#[serde(skip_serializing_if = "Option::is_none")]
pub ship_to_address: Option<ShipToAddress>,
#[serde(flatten)]
pub payment_info: PaymentInfo<T>,
#[serde(skip_serializing_if = "Option::is_none")]
pub enhanced_data: Option<EnhancedData>,
#[serde(skip_serializing_if = "Option::is_none")]
pub processing_instructions: Option<ProcessingInstructions>,
#[serde(skip_serializing_if = "Option::is_none")]
pub cardholder_authentication: Option<CardholderAuthentication>,
}
|
{
"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_2054780185909450401_6
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs
pub struct Authorization<T: PaymentMethodDataTypes> {
#[serde(rename = "@id")]
pub id: String,
#[serde(rename = "@reportGroup")]
pub report_group: String,
#[serde(rename = "@customerId", skip_serializing_if = "Option::is_none")]
pub customer_id: Option<Secret<String>>,
pub order_id: String,
pub amount: MinorUnit,
pub order_source: OrderSource,
#[serde(skip_serializing_if = "Option::is_none")]
pub bill_to_address: Option<BillToAddress>,
#[serde(skip_serializing_if = "Option::is_none")]
pub ship_to_address: Option<ShipToAddress>,
#[serde(flatten)]
pub payment_info: PaymentInfo<T>,
#[serde(skip_serializing_if = "Option::is_none")]
pub enhanced_data: Option<EnhancedData>,
#[serde(skip_serializing_if = "Option::is_none")]
pub processing_instructions: Option<ProcessingInstructions>,
#[serde(skip_serializing_if = "Option::is_none")]
pub cardholder_authentication: Option<CardholderAuthentication>,
}
pub struct Sale<T: PaymentMethodDataTypes> {
#[serde(rename = "@id")]
pub id: String,
#[serde(rename = "@reportGroup")]
pub report_group: String,
#[serde(rename = "@customerId", skip_serializing_if = "Option::is_none")]
pub customer_id: Option<Secret<String>>,
pub order_id: String,
pub amount: MinorUnit,
pub order_source: OrderSource,
#[serde(skip_serializing_if = "Option::is_none")]
pub bill_to_address: Option<BillToAddress>,
#[serde(skip_serializing_if = "Option::is_none")]
pub ship_to_address: Option<ShipToAddress>,
#[serde(flatten)]
pub payment_info: PaymentInfo<T>,
#[serde(skip_serializing_if = "Option::is_none")]
pub enhanced_data: Option<EnhancedData>,
#[serde(skip_serializing_if = "Option::is_none")]
pub processing_instructions: Option<ProcessingInstructions>,
#[serde(skip_serializing_if = "Option::is_none")]
pub cardholder_authentication: Option<CardholderAuthentication>,
}
pub struct CaptureRequest {
#[serde(rename = "@id")]
pub id: String,
#[serde(rename = "@reportGroup")]
pub report_group: String,
pub cnp_txn_id: String,
pub amount: MinorUnit,
#[serde(skip_serializing_if = "Option::is_none")]
pub enhanced_data: Option<EnhancedData>,
}
|
{
"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_2054780185909450401_8
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs
pub struct CaptureRequest {
#[serde(rename = "@id")]
pub id: String,
#[serde(rename = "@reportGroup")]
pub report_group: String,
pub cnp_txn_id: String,
pub amount: MinorUnit,
#[serde(skip_serializing_if = "Option::is_none")]
pub enhanced_data: Option<EnhancedData>,
}
pub struct AuthReversal {
#[serde(rename = "@id")]
pub id: String,
#[serde(rename = "@reportGroup")]
pub report_group: String,
pub cnp_txn_id: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub amount: Option<MinorUnit>,
}
pub struct VoidRequest {
#[serde(rename = "@id")]
pub id: String,
#[serde(rename = "@reportGroup")]
pub report_group: String,
pub cnp_txn_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_2054780185909450401_10
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs
pub struct VoidRequest {
#[serde(rename = "@id")]
pub id: String,
#[serde(rename = "@reportGroup")]
pub report_group: String,
pub cnp_txn_id: String,
}
pub struct RefundRequest {
#[serde(rename = "@id")]
pub id: String,
#[serde(rename = "@reportGroup")]
pub report_group: String,
pub cnp_txn_id: String,
pub amount: MinorUnit,
}
pub struct CardData<T: PaymentMethodDataTypes> {
pub card: WorldpayvantivCardData<T>,
#[serde(skip_serializing_if = "Option::is_none")]
pub processing_type: Option<VantivProcessingType>,
#[serde(skip_serializing_if = "Option::is_none")]
pub network_transaction_id: 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_2054780185909450401_12
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs
pub struct CardData<T: PaymentMethodDataTypes> {
pub card: WorldpayvantivCardData<T>,
#[serde(skip_serializing_if = "Option::is_none")]
pub processing_type: Option<VantivProcessingType>,
#[serde(skip_serializing_if = "Option::is_none")]
pub network_transaction_id: Option<Secret<String>>,
}
pub struct TokenData {
pub token: TokenizationData,
}
pub struct WorldpayvantivCardData<T: PaymentMethodDataTypes> {
#[serde(rename = "type")]
pub card_type: WorldpayvativCardType,
pub number: RawCardNumber<T>,
pub exp_date: Secret<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub card_validation_num: 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_2054780185909450401_14
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs
pub struct WorldpayvantivCardData<T: PaymentMethodDataTypes> {
#[serde(rename = "type")]
pub card_type: WorldpayvativCardType,
pub number: RawCardNumber<T>,
pub exp_date: Secret<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub card_validation_num: Option<Secret<String>>,
}
pub struct TokenizationData {
pub cnp_token: Secret<String>,
pub exp_date: Secret<String>,
}
pub struct BillToAddress {
pub name: Option<Secret<String>>,
#[serde(rename = "companyName")]
pub company: Option<String>,
pub address_line1: Option<Secret<String>>,
pub address_line2: Option<Secret<String>>,
pub city: Option<String>,
pub state: Option<Secret<String>>,
pub zip: Option<Secret<String>>,
pub country: Option<CountryAlpha2>,
pub email: Option<common_utils::pii::Email>,
pub phone: 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_2054780185909450401_16
|
clm
|
multi_item
|
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs
pub struct BillToAddress {
pub name: Option<Secret<String>>,
#[serde(rename = "companyName")]
pub company: Option<String>,
pub address_line1: Option<Secret<String>>,
pub address_line2: Option<Secret<String>>,
pub city: Option<String>,
pub state: Option<Secret<String>>,
pub zip: Option<Secret<String>>,
pub country: Option<CountryAlpha2>,
pub email: Option<common_utils::pii::Email>,
pub phone: Option<Secret<String>>,
}
pub struct ShipToAddress {
pub name: Option<Secret<String>>,
#[serde(rename = "companyName")]
pub company: Option<String>,
pub address_line1: Option<Secret<String>>,
pub address_line2: Option<Secret<String>>,
pub city: Option<String>,
pub state: Option<Secret<String>>,
pub zip: Option<Secret<String>>,
pub country: Option<CountryAlpha2>,
pub email: Option<common_utils::pii::Email>,
pub phone: Option<Secret<String>>,
}
pub struct EnhancedData {
#[serde(skip_serializing_if = "Option::is_none")]
pub customer_reference: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub sales_tax: Option<MinorUnit>,
#[serde(skip_serializing_if = "Option::is_none")]
pub tax_exempt: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub discount_amount: Option<MinorUnit>,
#[serde(skip_serializing_if = "Option::is_none")]
pub shipping_amount: Option<MinorUnit>,
#[serde(skip_serializing_if = "Option::is_none")]
pub duty_amount: Option<MinorUnit>,
#[serde(skip_serializing_if = "Option::is_none")]
pub line_item_data: Option<Vec<LineItemData>>,
}
|
{
"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
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.