id
stringlengths
20
153
type
stringclasses
1 value
granularity
stringclasses
14 values
content
stringlengths
16
84.3k
metadata
dict
connector-service_snippet_2054780185909450401_800_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs pub struct NetworkField { #[serde(rename = "@fieldNumber")] pub field_number: String, #[serde(rename = "@fieldName", skip_serializing_if = "Option::is_none")] pub field_name: Option<String>, #[serde(rename = "fieldValue", skip_serializing_if = "Option::is_none")] pub field_value: Option<String>, #[serde( rename = "networkSubField", default, skip_serializing_if = "Vec::is_empty" )] pub network_sub_field: Vec<NetworkSubField>, }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 800, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_800_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs pub struct NetworkField { #[serde(rename = "@fieldNumber")] pub field_number: String, #[serde(rename = "@fieldName", skip_serializing_if = "Option::is_none")] pub field_name: Option<String>, #[serde(rename = "fieldValue", skip_serializing_if = "Option::is_none")] pub field_value: Option<String>, #[serde( rename = "networkSubField", default, skip_serializing_if = "Vec::is_empty" )] pub network_sub_field: Vec<NetworkSubField>, } #[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] #[serde(rename_all = "camelCase")] pub struct NetworkSubField { #[serde(rename = "@fieldNumber")] pub field_number: String, #[serde(rename = "fieldValue", skip_serializing_if = "Option::is_none")] pub field_value: Option<String>, } #[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] #[serde(rename_all = "camelCase")] pub struct FundingSource { #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub funding_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 800, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_800_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs pub struct NetworkField { #[serde(rename = "@fieldNumber")] pub field_number: String, #[serde(rename = "@fieldName", skip_serializing_if = "Option::is_none")] pub field_name: Option<String>, #[serde(rename = "fieldValue", skip_serializing_if = "Option::is_none")] pub field_value: Option<String>, #[serde( rename = "networkSubField", default, skip_serializing_if = "Vec::is_empty" )] pub network_sub_field: Vec<NetworkSubField>, } #[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] #[serde(rename_all = "camelCase")] pub struct NetworkSubField { #[serde(rename = "@fieldNumber")] pub field_number: String, #[serde(rename = "fieldValue", skip_serializing_if = "Option::is_none")] pub field_value: Option<String>, } #[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] #[serde(rename_all = "camelCase")] pub struct FundingSource { #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub funding_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub available_balance: Option<String>, } // Response codes (comprehensive list) #[derive(Debug, strum::Display, Serialize, Deserialize, PartialEq, Clone, Copy)] pub enum WorldpayvantivResponseCode { #[serde(rename = "000")] Approved, #[serde(rename = "001")] TransactionReceived, #[serde(rename = "010")] PartiallyApproved, #[serde(rename = "110")] InsufficientFunds, #[serde(rename = "120")] CallIssuer, #[serde(rename = "121")] ExceedsApprovalAmountLimit, #[serde(rename = "123")] ExceedsActivityAmountLimit,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 800, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_825_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename_all = "camelCase")] pub struct FundingSource { #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub funding_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub available_balance: Option<String>, } // Response codes (comprehensive list) #[derive(Debug, strum::Display, Serialize, Deserialize, PartialEq, Clone, Copy)] pub enum WorldpayvantivResponseCode { #[serde(rename = "000")] Approved, #[serde(rename = "001")] TransactionReceived,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 825, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_825_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename_all = "camelCase")] pub struct FundingSource { #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub funding_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub available_balance: Option<String>, } // Response codes (comprehensive list) #[derive(Debug, strum::Display, Serialize, Deserialize, PartialEq, Clone, Copy)] pub enum WorldpayvantivResponseCode { #[serde(rename = "000")] Approved, #[serde(rename = "001")] TransactionReceived, #[serde(rename = "010")] PartiallyApproved, #[serde(rename = "110")] InsufficientFunds, #[serde(rename = "120")] CallIssuer, #[serde(rename = "121")] ExceedsApprovalAmountLimit, #[serde(rename = "123")] ExceedsActivityAmountLimit, #[serde(rename = "125")] InvalidEffectiveDate, #[serde(rename = "301")] InvalidAccountNumber, #[serde(rename = "302")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 825, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_825_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename_all = "camelCase")] pub struct FundingSource { #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub funding_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub available_balance: Option<String>, } // Response codes (comprehensive list) #[derive(Debug, strum::Display, Serialize, Deserialize, PartialEq, Clone, Copy)] pub enum WorldpayvantivResponseCode { #[serde(rename = "000")] Approved, #[serde(rename = "001")] TransactionReceived, #[serde(rename = "010")] PartiallyApproved, #[serde(rename = "110")] InsufficientFunds, #[serde(rename = "120")] CallIssuer, #[serde(rename = "121")] ExceedsApprovalAmountLimit, #[serde(rename = "123")] ExceedsActivityAmountLimit, #[serde(rename = "125")] InvalidEffectiveDate, #[serde(rename = "301")] InvalidAccountNumber, #[serde(rename = "302")] AccountNumberDoesNotMatchPaymentType, #[serde(rename = "303")] InvalidExpirationDate, #[serde(rename = "304")] InvalidCVV, #[serde(rename = "305")] InvalidCardValidationNum, #[serde(rename = "306")] ExpiredCard, #[serde(rename = "307")] InvalidPin, #[serde(rename = "308")] InvalidTransactionType, #[serde(rename = "310")] AccountNumberNotOnFile, #[serde(rename = "311")] AccountNumberLocked, #[serde(rename = "320")] InvalidLocation, #[serde(rename = "321")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 825, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_850_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename = "125")] InvalidEffectiveDate, #[serde(rename = "301")] InvalidAccountNumber, #[serde(rename = "302")] AccountNumberDoesNotMatchPaymentType, #[serde(rename = "303")] InvalidExpirationDate, #[serde(rename = "304")] InvalidCVV, #[serde(rename = "305")] InvalidCardValidationNum, #[serde(rename = "306")] ExpiredCard, #[serde(rename = "307")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 850, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_850_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename = "125")] InvalidEffectiveDate, #[serde(rename = "301")] InvalidAccountNumber, #[serde(rename = "302")] AccountNumberDoesNotMatchPaymentType, #[serde(rename = "303")] InvalidExpirationDate, #[serde(rename = "304")] InvalidCVV, #[serde(rename = "305")] InvalidCardValidationNum, #[serde(rename = "306")] ExpiredCard, #[serde(rename = "307")] InvalidPin, #[serde(rename = "308")] InvalidTransactionType, #[serde(rename = "310")] AccountNumberNotOnFile, #[serde(rename = "311")] AccountNumberLocked, #[serde(rename = "320")] InvalidLocation, #[serde(rename = "321")] InvalidMerchantId, #[serde(rename = "322")] InvalidLocation2, #[serde(rename = "323")] InvalidMerchantClassCode,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 850, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_850_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename = "125")] InvalidEffectiveDate, #[serde(rename = "301")] InvalidAccountNumber, #[serde(rename = "302")] AccountNumberDoesNotMatchPaymentType, #[serde(rename = "303")] InvalidExpirationDate, #[serde(rename = "304")] InvalidCVV, #[serde(rename = "305")] InvalidCardValidationNum, #[serde(rename = "306")] ExpiredCard, #[serde(rename = "307")] InvalidPin, #[serde(rename = "308")] InvalidTransactionType, #[serde(rename = "310")] AccountNumberNotOnFile, #[serde(rename = "311")] AccountNumberLocked, #[serde(rename = "320")] InvalidLocation, #[serde(rename = "321")] InvalidMerchantId, #[serde(rename = "322")] InvalidLocation2, #[serde(rename = "323")] InvalidMerchantClassCode, #[serde(rename = "324")] InvalidExpirationDate2, #[serde(rename = "325")] InvalidData, #[serde(rename = "326")] InvalidPin2, #[serde(rename = "327")] ExceedsNumberofPINEntryTries, #[serde(rename = "328")] InvalidCryptoBox, #[serde(rename = "329")] InvalidRequestFormat, #[serde(rename = "330")] InvalidApplicationData, #[serde(rename = "340")] InvalidMerchantCategoryCode, #[serde(rename = "346")] TransactionCannotBeCompleted, #[serde(rename = "347")] TransactionTypeNotSupportedForCard,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 850, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_875_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs InvalidMerchantId, #[serde(rename = "322")] InvalidLocation2, #[serde(rename = "323")] InvalidMerchantClassCode, #[serde(rename = "324")] InvalidExpirationDate2, #[serde(rename = "325")] InvalidData, #[serde(rename = "326")] InvalidPin2, #[serde(rename = "327")] ExceedsNumberofPINEntryTries, #[serde(rename = "328")] InvalidCryptoBox,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 875, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_875_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs InvalidMerchantId, #[serde(rename = "322")] InvalidLocation2, #[serde(rename = "323")] InvalidMerchantClassCode, #[serde(rename = "324")] InvalidExpirationDate2, #[serde(rename = "325")] InvalidData, #[serde(rename = "326")] InvalidPin2, #[serde(rename = "327")] ExceedsNumberofPINEntryTries, #[serde(rename = "328")] InvalidCryptoBox, #[serde(rename = "329")] InvalidRequestFormat, #[serde(rename = "330")] InvalidApplicationData, #[serde(rename = "340")] InvalidMerchantCategoryCode, #[serde(rename = "346")] TransactionCannotBeCompleted, #[serde(rename = "347")] TransactionTypeNotSupportedForCard, #[serde(rename = "349")] TransactionTypeNotAllowedAtTerminal, #[serde(rename = "350")] GenericDecline, #[serde(rename = "351")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 875, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_875_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs InvalidMerchantId, #[serde(rename = "322")] InvalidLocation2, #[serde(rename = "323")] InvalidMerchantClassCode, #[serde(rename = "324")] InvalidExpirationDate2, #[serde(rename = "325")] InvalidData, #[serde(rename = "326")] InvalidPin2, #[serde(rename = "327")] ExceedsNumberofPINEntryTries, #[serde(rename = "328")] InvalidCryptoBox, #[serde(rename = "329")] InvalidRequestFormat, #[serde(rename = "330")] InvalidApplicationData, #[serde(rename = "340")] InvalidMerchantCategoryCode, #[serde(rename = "346")] TransactionCannotBeCompleted, #[serde(rename = "347")] TransactionTypeNotSupportedForCard, #[serde(rename = "349")] TransactionTypeNotAllowedAtTerminal, #[serde(rename = "350")] GenericDecline, #[serde(rename = "351")] DeclineByCard, #[serde(rename = "352")] DoNotHonor, #[serde(rename = "353")] InvalidMerchant, #[serde(rename = "354")] PickUpCard, #[serde(rename = "355")] CardOk, #[serde(rename = "356")] CallVoiceOperator, #[serde(rename = "357")] StopRecurring, #[serde(rename = "358")] NoChecking, #[serde(rename = "359")] NoCreditAccount, #[serde(rename = "360")] NoCreditAccountType, #[serde(rename = "361")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 875, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_900_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename = "349")] TransactionTypeNotAllowedAtTerminal, #[serde(rename = "350")] GenericDecline, #[serde(rename = "351")] DeclineByCard, #[serde(rename = "352")] DoNotHonor, #[serde(rename = "353")] InvalidMerchant, #[serde(rename = "354")] PickUpCard, #[serde(rename = "355")] CardOk, #[serde(rename = "356")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 900, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_900_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename = "349")] TransactionTypeNotAllowedAtTerminal, #[serde(rename = "350")] GenericDecline, #[serde(rename = "351")] DeclineByCard, #[serde(rename = "352")] DoNotHonor, #[serde(rename = "353")] InvalidMerchant, #[serde(rename = "354")] PickUpCard, #[serde(rename = "355")] CardOk, #[serde(rename = "356")] CallVoiceOperator, #[serde(rename = "357")] StopRecurring, #[serde(rename = "358")] NoChecking, #[serde(rename = "359")] NoCreditAccount, #[serde(rename = "360")] NoCreditAccountType, #[serde(rename = "361")] InvalidCreditPlan, #[serde(rename = "362")] InvalidTransactionCode, #[serde(rename = "363")] TransactionNotPermittedToCardholderAccount,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 900, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_900_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename = "349")] TransactionTypeNotAllowedAtTerminal, #[serde(rename = "350")] GenericDecline, #[serde(rename = "351")] DeclineByCard, #[serde(rename = "352")] DoNotHonor, #[serde(rename = "353")] InvalidMerchant, #[serde(rename = "354")] PickUpCard, #[serde(rename = "355")] CardOk, #[serde(rename = "356")] CallVoiceOperator, #[serde(rename = "357")] StopRecurring, #[serde(rename = "358")] NoChecking, #[serde(rename = "359")] NoCreditAccount, #[serde(rename = "360")] NoCreditAccountType, #[serde(rename = "361")] InvalidCreditPlan, #[serde(rename = "362")] InvalidTransactionCode, #[serde(rename = "363")] TransactionNotPermittedToCardholderAccount, #[serde(rename = "364")] TransactionNotPermittedToMerchant, #[serde(rename = "365")] PINTryExceeded, #[serde(rename = "366")] SecurityViolation, #[serde(rename = "367")] HardCapturePickUpCard, #[serde(rename = "368")] ResponseReceivedTooLate, #[serde(rename = "370")] SoftDecline, #[serde(rename = "400")] ContactCardIssuer, #[serde(rename = "401")] CallVoiceCenter, #[serde(rename = "402")] InvalidMerchantTerminal, #[serde(rename = "410")] InvalidAmount,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 900, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_925_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs InvalidCreditPlan, #[serde(rename = "362")] InvalidTransactionCode, #[serde(rename = "363")] TransactionNotPermittedToCardholderAccount, #[serde(rename = "364")] TransactionNotPermittedToMerchant, #[serde(rename = "365")] PINTryExceeded, #[serde(rename = "366")] SecurityViolation, #[serde(rename = "367")] HardCapturePickUpCard, #[serde(rename = "368")] ResponseReceivedTooLate,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 925, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_925_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs InvalidCreditPlan, #[serde(rename = "362")] InvalidTransactionCode, #[serde(rename = "363")] TransactionNotPermittedToCardholderAccount, #[serde(rename = "364")] TransactionNotPermittedToMerchant, #[serde(rename = "365")] PINTryExceeded, #[serde(rename = "366")] SecurityViolation, #[serde(rename = "367")] HardCapturePickUpCard, #[serde(rename = "368")] ResponseReceivedTooLate, #[serde(rename = "370")] SoftDecline, #[serde(rename = "400")] ContactCardIssuer, #[serde(rename = "401")] CallVoiceCenter, #[serde(rename = "402")] InvalidMerchantTerminal, #[serde(rename = "410")] InvalidAmount, #[serde(rename = "411")] ResubmitTransaction, #[serde(rename = "412")] InvalidTransaction, #[serde(rename = "413")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 925, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_925_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs InvalidCreditPlan, #[serde(rename = "362")] InvalidTransactionCode, #[serde(rename = "363")] TransactionNotPermittedToCardholderAccount, #[serde(rename = "364")] TransactionNotPermittedToMerchant, #[serde(rename = "365")] PINTryExceeded, #[serde(rename = "366")] SecurityViolation, #[serde(rename = "367")] HardCapturePickUpCard, #[serde(rename = "368")] ResponseReceivedTooLate, #[serde(rename = "370")] SoftDecline, #[serde(rename = "400")] ContactCardIssuer, #[serde(rename = "401")] CallVoiceCenter, #[serde(rename = "402")] InvalidMerchantTerminal, #[serde(rename = "410")] InvalidAmount, #[serde(rename = "411")] ResubmitTransaction, #[serde(rename = "412")] InvalidTransaction, #[serde(rename = "413")] MerchantNotFound, #[serde(rename = "501")] PickUpCard2, #[serde(rename = "502")] ExpiredCard2, #[serde(rename = "503")] SuspectedFraud, #[serde(rename = "504")] ContactCardIssuer2, #[serde(rename = "505")] DoNotHonor2, #[serde(rename = "506")] InvalidMerchant2, #[serde(rename = "507")] InsufficientFunds2, #[serde(rename = "508")] AccountNumberNotOnFile2, #[serde(rename = "509")] InvalidAmount2, #[serde(rename = "510")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 925, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_950_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename = "411")] ResubmitTransaction, #[serde(rename = "412")] InvalidTransaction, #[serde(rename = "413")] MerchantNotFound, #[serde(rename = "501")] PickUpCard2, #[serde(rename = "502")] ExpiredCard2, #[serde(rename = "503")] SuspectedFraud, #[serde(rename = "504")] ContactCardIssuer2, #[serde(rename = "505")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 950, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_950_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename = "411")] ResubmitTransaction, #[serde(rename = "412")] InvalidTransaction, #[serde(rename = "413")] MerchantNotFound, #[serde(rename = "501")] PickUpCard2, #[serde(rename = "502")] ExpiredCard2, #[serde(rename = "503")] SuspectedFraud, #[serde(rename = "504")] ContactCardIssuer2, #[serde(rename = "505")] DoNotHonor2, #[serde(rename = "506")] InvalidMerchant2, #[serde(rename = "507")] InsufficientFunds2, #[serde(rename = "508")] AccountNumberNotOnFile2, #[serde(rename = "509")] InvalidAmount2, #[serde(rename = "510")] InvalidCardNumber, #[serde(rename = "511")] InvalidExpirationDate3, #[serde(rename = "512")] InvalidCVV2,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 950, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_950_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename = "411")] ResubmitTransaction, #[serde(rename = "412")] InvalidTransaction, #[serde(rename = "413")] MerchantNotFound, #[serde(rename = "501")] PickUpCard2, #[serde(rename = "502")] ExpiredCard2, #[serde(rename = "503")] SuspectedFraud, #[serde(rename = "504")] ContactCardIssuer2, #[serde(rename = "505")] DoNotHonor2, #[serde(rename = "506")] InvalidMerchant2, #[serde(rename = "507")] InsufficientFunds2, #[serde(rename = "508")] AccountNumberNotOnFile2, #[serde(rename = "509")] InvalidAmount2, #[serde(rename = "510")] InvalidCardNumber, #[serde(rename = "511")] InvalidExpirationDate3, #[serde(rename = "512")] InvalidCVV2, #[serde(rename = "513")] InvalidCardValidationNum2, #[serde(rename = "514")] InvalidPin3, #[serde(rename = "515")] CardRestricted, #[serde(rename = "516")] OverCreditLimit, #[serde(rename = "517")] AccountClosed, #[serde(rename = "518")] AccountFrozen, #[serde(rename = "519")] InvalidTransactionType2, #[serde(rename = "520")] InvalidMerchantId2, #[serde(rename = "521")] ProcessorNotAvailable, #[serde(rename = "522")] NetworkTimeOut,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 950, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_975_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs InvalidCardNumber, #[serde(rename = "511")] InvalidExpirationDate3, #[serde(rename = "512")] InvalidCVV2, #[serde(rename = "513")] InvalidCardValidationNum2, #[serde(rename = "514")] InvalidPin3, #[serde(rename = "515")] CardRestricted, #[serde(rename = "516")] OverCreditLimit, #[serde(rename = "517")] AccountClosed,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 975, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_975_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs InvalidCardNumber, #[serde(rename = "511")] InvalidExpirationDate3, #[serde(rename = "512")] InvalidCVV2, #[serde(rename = "513")] InvalidCardValidationNum2, #[serde(rename = "514")] InvalidPin3, #[serde(rename = "515")] CardRestricted, #[serde(rename = "516")] OverCreditLimit, #[serde(rename = "517")] AccountClosed, #[serde(rename = "518")] AccountFrozen, #[serde(rename = "519")] InvalidTransactionType2, #[serde(rename = "520")] InvalidMerchantId2, #[serde(rename = "521")] ProcessorNotAvailable, #[serde(rename = "522")] NetworkTimeOut, #[serde(rename = "523")] SystemError, #[serde(rename = "524")] DuplicateTransaction, #[serde(rename = "601")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 975, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_975_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs InvalidCardNumber, #[serde(rename = "511")] InvalidExpirationDate3, #[serde(rename = "512")] InvalidCVV2, #[serde(rename = "513")] InvalidCardValidationNum2, #[serde(rename = "514")] InvalidPin3, #[serde(rename = "515")] CardRestricted, #[serde(rename = "516")] OverCreditLimit, #[serde(rename = "517")] AccountClosed, #[serde(rename = "518")] AccountFrozen, #[serde(rename = "519")] InvalidTransactionType2, #[serde(rename = "520")] InvalidMerchantId2, #[serde(rename = "521")] ProcessorNotAvailable, #[serde(rename = "522")] NetworkTimeOut, #[serde(rename = "523")] SystemError, #[serde(rename = "524")] DuplicateTransaction, #[serde(rename = "601")] OfflineApproval, #[serde(rename = "602")] VoiceAuthRequired, #[serde(rename = "603")] AuthenticationRequired, #[serde(rename = "604")] SecurityCodeRequired, #[serde(rename = "605")] SecurityCodeNotMatch, #[serde(rename = "606")] ZipCodeNotMatch, #[serde(rename = "607")] AddressNotMatch, #[serde(rename = "608")] AVSFailure, #[serde(rename = "609")] CVVFailure, #[serde(rename = "610")] ServiceNotAllowed, #[serde(rename = "820")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 975, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1000_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename = "523")] SystemError, #[serde(rename = "524")] DuplicateTransaction, #[serde(rename = "601")] OfflineApproval, #[serde(rename = "602")] VoiceAuthRequired, #[serde(rename = "603")] AuthenticationRequired, #[serde(rename = "604")] SecurityCodeRequired, #[serde(rename = "605")] SecurityCodeNotMatch, #[serde(rename = "606")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1000, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1000_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename = "523")] SystemError, #[serde(rename = "524")] DuplicateTransaction, #[serde(rename = "601")] OfflineApproval, #[serde(rename = "602")] VoiceAuthRequired, #[serde(rename = "603")] AuthenticationRequired, #[serde(rename = "604")] SecurityCodeRequired, #[serde(rename = "605")] SecurityCodeNotMatch, #[serde(rename = "606")] ZipCodeNotMatch, #[serde(rename = "607")] AddressNotMatch, #[serde(rename = "608")] AVSFailure, #[serde(rename = "609")] CVVFailure, #[serde(rename = "610")] ServiceNotAllowed, #[serde(rename = "820")] CreditNotSupported, #[serde(rename = "821")] InvalidCreditAmount, #[serde(rename = "822")] CreditAmountExceedsDebitAmount,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1000, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1000_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename = "523")] SystemError, #[serde(rename = "524")] DuplicateTransaction, #[serde(rename = "601")] OfflineApproval, #[serde(rename = "602")] VoiceAuthRequired, #[serde(rename = "603")] AuthenticationRequired, #[serde(rename = "604")] SecurityCodeRequired, #[serde(rename = "605")] SecurityCodeNotMatch, #[serde(rename = "606")] ZipCodeNotMatch, #[serde(rename = "607")] AddressNotMatch, #[serde(rename = "608")] AVSFailure, #[serde(rename = "609")] CVVFailure, #[serde(rename = "610")] ServiceNotAllowed, #[serde(rename = "820")] CreditNotSupported, #[serde(rename = "821")] InvalidCreditAmount, #[serde(rename = "822")] CreditAmountExceedsDebitAmount, #[serde(rename = "823")] RefundNotSupported, #[serde(rename = "824")] InvalidRefundAmount, #[serde(rename = "825")] RefundAmountExceedsOriginalAmount, #[serde(rename = "826")] VoidNotSupported, #[serde(rename = "827")] VoidNotAllowed, #[serde(rename = "828")] CaptureNotSupported, #[serde(rename = "829")] CaptureNotAllowed, #[serde(rename = "830")] InvalidCaptureAmount, #[serde(rename = "831")] CaptureAmountExceedsAuthAmount, #[serde(rename = "832")] TransactionAlreadySettled,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1000, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1025_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs CreditNotSupported, #[serde(rename = "821")] InvalidCreditAmount, #[serde(rename = "822")] CreditAmountExceedsDebitAmount, #[serde(rename = "823")] RefundNotSupported, #[serde(rename = "824")] InvalidRefundAmount, #[serde(rename = "825")] RefundAmountExceedsOriginalAmount, #[serde(rename = "826")] VoidNotSupported, #[serde(rename = "827")] VoidNotAllowed,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1025, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1025_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs CreditNotSupported, #[serde(rename = "821")] InvalidCreditAmount, #[serde(rename = "822")] CreditAmountExceedsDebitAmount, #[serde(rename = "823")] RefundNotSupported, #[serde(rename = "824")] InvalidRefundAmount, #[serde(rename = "825")] RefundAmountExceedsOriginalAmount, #[serde(rename = "826")] VoidNotSupported, #[serde(rename = "827")] VoidNotAllowed, #[serde(rename = "828")] CaptureNotSupported, #[serde(rename = "829")] CaptureNotAllowed, #[serde(rename = "830")] InvalidCaptureAmount, #[serde(rename = "831")] CaptureAmountExceedsAuthAmount, #[serde(rename = "832")] TransactionAlreadySettled, #[serde(rename = "833")] TransactionAlreadyVoided, #[serde(rename = "834")] TransactionAlreadyCaptured, #[serde(rename = "835")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1025, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1025_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs CreditNotSupported, #[serde(rename = "821")] InvalidCreditAmount, #[serde(rename = "822")] CreditAmountExceedsDebitAmount, #[serde(rename = "823")] RefundNotSupported, #[serde(rename = "824")] InvalidRefundAmount, #[serde(rename = "825")] RefundAmountExceedsOriginalAmount, #[serde(rename = "826")] VoidNotSupported, #[serde(rename = "827")] VoidNotAllowed, #[serde(rename = "828")] CaptureNotSupported, #[serde(rename = "829")] CaptureNotAllowed, #[serde(rename = "830")] InvalidCaptureAmount, #[serde(rename = "831")] CaptureAmountExceedsAuthAmount, #[serde(rename = "832")] TransactionAlreadySettled, #[serde(rename = "833")] TransactionAlreadyVoided, #[serde(rename = "834")] TransactionAlreadyCaptured, #[serde(rename = "835")] TransactionNotFound, } // Sync structures #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct VantivSyncResponse { #[serde(rename = "paymentId", skip_serializing_if = "Option::is_none")] pub payment_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub request_uuid: Option<String>, pub payment_status: PaymentStatus, #[serde(skip_serializing_if = "Option::is_none")] pub payment_detail: Option<PaymentDetail>, } #[derive(Debug, strum::Display, Serialize, Deserialize, PartialEq, Eq)] #[serde(rename_all = "SCREAMING_SNAKE_CASE")] pub enum PaymentStatus {
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1025, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1050_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename = "833")] TransactionAlreadyVoided, #[serde(rename = "834")] TransactionAlreadyCaptured, #[serde(rename = "835")] TransactionNotFound, } // Sync structures #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct VantivSyncResponse { #[serde(rename = "paymentId", skip_serializing_if = "Option::is_none")] pub payment_id: Option<u64>,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1050, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1050_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename = "833")] TransactionAlreadyVoided, #[serde(rename = "834")] TransactionAlreadyCaptured, #[serde(rename = "835")] TransactionNotFound, } // Sync structures #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct VantivSyncResponse { #[serde(rename = "paymentId", skip_serializing_if = "Option::is_none")] pub payment_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub request_uuid: Option<String>, pub payment_status: PaymentStatus, #[serde(skip_serializing_if = "Option::is_none")] pub payment_detail: Option<PaymentDetail>, } #[derive(Debug, strum::Display, Serialize, Deserialize, PartialEq, Eq)] #[serde(rename_all = "SCREAMING_SNAKE_CASE")] pub enum PaymentStatus { NotYetProcessed, ProcessedSuccessfully, TransactionDeclined, StatusUnavailable, PaymentStatusNotFound,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1050, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1050_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(rename = "833")] TransactionAlreadyVoided, #[serde(rename = "834")] TransactionAlreadyCaptured, #[serde(rename = "835")] TransactionNotFound, } // Sync structures #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct VantivSyncResponse { #[serde(rename = "paymentId", skip_serializing_if = "Option::is_none")] pub payment_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub request_uuid: Option<String>, pub payment_status: PaymentStatus, #[serde(skip_serializing_if = "Option::is_none")] pub payment_detail: Option<PaymentDetail>, } #[derive(Debug, strum::Display, Serialize, Deserialize, PartialEq, Eq)] #[serde(rename_all = "SCREAMING_SNAKE_CASE")] pub enum PaymentStatus { NotYetProcessed, ProcessedSuccessfully, TransactionDeclined, StatusUnavailable, PaymentStatusNotFound, } #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct PaymentDetail { #[serde(rename = "paymentId", skip_serializing_if = "Option::is_none")] pub payment_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub batch_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub session_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub response_reason_code: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub response_reason_message: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub reject_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub dupe_txn_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1050, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1075_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs NotYetProcessed, ProcessedSuccessfully, TransactionDeclined, StatusUnavailable, PaymentStatusNotFound, } #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct PaymentDetail { #[serde(rename = "paymentId", skip_serializing_if = "Option::is_none")] pub payment_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub batch_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1075, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1075_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs NotYetProcessed, ProcessedSuccessfully, TransactionDeclined, StatusUnavailable, PaymentStatusNotFound, } #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct PaymentDetail { #[serde(rename = "paymentId", skip_serializing_if = "Option::is_none")] pub payment_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub batch_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub session_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub response_reason_code: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub response_reason_message: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub reject_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub dupe_txn_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub amount: Option<StringMajorUnit>, #[serde(skip_serializing_if = "Option::is_none")] pub purchase_currency: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub post_day: Option<String>,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1075, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1075_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs NotYetProcessed, ProcessedSuccessfully, TransactionDeclined, StatusUnavailable, PaymentStatusNotFound, } #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct PaymentDetail { #[serde(rename = "paymentId", skip_serializing_if = "Option::is_none")] pub payment_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub batch_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub session_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub response_reason_code: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub response_reason_message: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub reject_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub dupe_txn_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub amount: Option<StringMajorUnit>, #[serde(skip_serializing_if = "Option::is_none")] pub purchase_currency: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub post_day: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub reported_timestamp: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub payment_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub merchant_order_number: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub merchant_txn_id: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub parent_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub reporting_group: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub txn_type: Option<String>, #[serde(rename = "eCommMerchantId", skip_serializing_if = "Option::is_none")] pub e_comm_merchant_id: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub organization_name: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub merchant_category_code: Option<String>,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1075, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1100_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs pub amount: Option<StringMajorUnit>, #[serde(skip_serializing_if = "Option::is_none")] pub purchase_currency: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub post_day: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub reported_timestamp: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub payment_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub merchant_order_number: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub merchant_txn_id: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub parent_id: Option<u64>,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1100, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1100_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs pub amount: Option<StringMajorUnit>, #[serde(skip_serializing_if = "Option::is_none")] pub purchase_currency: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub post_day: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub reported_timestamp: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub payment_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub merchant_order_number: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub merchant_txn_id: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub parent_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub reporting_group: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub txn_type: Option<String>, #[serde(rename = "eCommMerchantId", skip_serializing_if = "Option::is_none")] pub e_comm_merchant_id: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub organization_name: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub merchant_category_code: Option<String>, } // Sync error response #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1100, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1100_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs pub amount: Option<StringMajorUnit>, #[serde(skip_serializing_if = "Option::is_none")] pub purchase_currency: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub post_day: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub reported_timestamp: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub payment_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub merchant_order_number: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub merchant_txn_id: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub parent_id: Option<u64>, #[serde(skip_serializing_if = "Option::is_none")] pub reporting_group: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub txn_type: Option<String>, #[serde(rename = "eCommMerchantId", skip_serializing_if = "Option::is_none")] pub e_comm_merchant_id: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub organization_name: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub merchant_category_code: Option<String>, } // Sync error response #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct VantivSyncErrorResponse { pub error_messages: Vec<String>, } // Dispute structures #[derive(Debug, Deserialize, Serialize)] #[serde(rename = "chargebackRetrievalResponse", rename_all = "camelCase")] pub struct ChargebackRetrievalResponse { #[serde(rename = "@xmlns")] pub xmlns: String, pub transaction_id: String, #[serde(skip_serializing_if = "Option::is_none")] pub chargeback_case: Option<Vec<ChargebackCase>>, } #[derive(Debug, Deserialize, Serialize, Clone)] #[serde(rename_all = "camelCase")] pub struct ChargebackCase { pub case_id: String, pub merchant_id: String,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1100, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1125_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs } // Sync error response #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct VantivSyncErrorResponse { pub error_messages: Vec<String>, } // Dispute structures #[derive(Debug, Deserialize, Serialize)] #[serde(rename = "chargebackRetrievalResponse", rename_all = "camelCase")] pub struct ChargebackRetrievalResponse { #[serde(rename = "@xmlns")] pub xmlns: String,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1125, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1125_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs } // Sync error response #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct VantivSyncErrorResponse { pub error_messages: Vec<String>, } // Dispute structures #[derive(Debug, Deserialize, Serialize)] #[serde(rename = "chargebackRetrievalResponse", rename_all = "camelCase")] pub struct ChargebackRetrievalResponse { #[serde(rename = "@xmlns")] pub xmlns: String, pub transaction_id: String, #[serde(skip_serializing_if = "Option::is_none")] pub chargeback_case: Option<Vec<ChargebackCase>>, } #[derive(Debug, Deserialize, Serialize, Clone)] #[serde(rename_all = "camelCase")] pub struct ChargebackCase { pub case_id: String, pub merchant_id: String, #[serde(skip_serializing_if = "Option::is_none")] pub day_issued_by_bank: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub date_received_by_vantiv_cnp: Option<String>, pub vantiv_cnp_txn_id: String,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1125, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1125_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs } // Sync error response #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct VantivSyncErrorResponse { pub error_messages: Vec<String>, } // Dispute structures #[derive(Debug, Deserialize, Serialize)] #[serde(rename = "chargebackRetrievalResponse", rename_all = "camelCase")] pub struct ChargebackRetrievalResponse { #[serde(rename = "@xmlns")] pub xmlns: String, pub transaction_id: String, #[serde(skip_serializing_if = "Option::is_none")] pub chargeback_case: Option<Vec<ChargebackCase>>, } #[derive(Debug, Deserialize, Serialize, Clone)] #[serde(rename_all = "camelCase")] pub struct ChargebackCase { pub case_id: String, pub merchant_id: String, #[serde(skip_serializing_if = "Option::is_none")] pub day_issued_by_bank: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub date_received_by_vantiv_cnp: Option<String>, pub vantiv_cnp_txn_id: String, pub cycle: String, pub order_id: String, #[serde(skip_serializing_if = "Option::is_none")] pub card_number_last4: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub card_type: Option<String>, pub chargeback_amount: MinorUnit, pub chargeback_currency_type: Currency, #[serde(skip_serializing_if = "Option::is_none")] pub original_txn_day: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub chargeback_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub reason_code: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub reason_code_description: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub current_queue: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub acquirer_reference_number: Option<String>,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1125, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1150_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(skip_serializing_if = "Option::is_none")] pub day_issued_by_bank: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub date_received_by_vantiv_cnp: Option<String>, pub vantiv_cnp_txn_id: String, pub cycle: String, pub order_id: String, #[serde(skip_serializing_if = "Option::is_none")] pub card_number_last4: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub card_type: Option<String>, pub chargeback_amount: MinorUnit, pub chargeback_currency_type: Currency, #[serde(skip_serializing_if = "Option::is_none")] pub original_txn_day: Option<String>,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1150, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1150_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(skip_serializing_if = "Option::is_none")] pub day_issued_by_bank: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub date_received_by_vantiv_cnp: Option<String>, pub vantiv_cnp_txn_id: String, pub cycle: String, pub order_id: String, #[serde(skip_serializing_if = "Option::is_none")] pub card_number_last4: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub card_type: Option<String>, pub chargeback_amount: MinorUnit, pub chargeback_currency_type: Currency, #[serde(skip_serializing_if = "Option::is_none")] pub original_txn_day: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub chargeback_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub reason_code: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub reason_code_description: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub current_queue: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub acquirer_reference_number: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub chargeback_reference_number: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub bin: Option<String>, #[serde(skip_serializing_if = "Option::is_none")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1150, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1150_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(skip_serializing_if = "Option::is_none")] pub day_issued_by_bank: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub date_received_by_vantiv_cnp: Option<String>, pub vantiv_cnp_txn_id: String, pub cycle: String, pub order_id: String, #[serde(skip_serializing_if = "Option::is_none")] pub card_number_last4: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub card_type: Option<String>, pub chargeback_amount: MinorUnit, pub chargeback_currency_type: Currency, #[serde(skip_serializing_if = "Option::is_none")] pub original_txn_day: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub chargeback_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub reason_code: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub reason_code_description: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub current_queue: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub acquirer_reference_number: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub chargeback_reference_number: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub bin: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub payment_amount: Option<MinorUnit>, #[serde(skip_serializing_if = "Option::is_none")] pub reply_by_day: Option<String>, pub activity: Vec<Activity>, } #[derive(Debug, Deserialize, Serialize, Clone)] #[serde(rename_all = "camelCase")] pub struct Activity { pub activity_date: String, pub activity_type: String, #[serde(skip_serializing_if = "Option::is_none")] pub from_queue: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub to_queue: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub settlement_amount: Option<MinorUnit>, #[serde(skip_serializing_if = "Option::is_none")] pub notes: Option<String>, }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1150, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1175_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(skip_serializing_if = "Option::is_none")] pub chargeback_reference_number: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub bin: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub payment_amount: Option<MinorUnit>, #[serde(skip_serializing_if = "Option::is_none")] pub reply_by_day: Option<String>, pub activity: Vec<Activity>, } #[derive(Debug, Deserialize, Serialize, Clone)] #[serde(rename_all = "camelCase")] pub struct Activity { pub activity_date: String,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1175, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1175_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(skip_serializing_if = "Option::is_none")] pub chargeback_reference_number: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub bin: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub payment_amount: Option<MinorUnit>, #[serde(skip_serializing_if = "Option::is_none")] pub reply_by_day: Option<String>, pub activity: Vec<Activity>, } #[derive(Debug, Deserialize, Serialize, Clone)] #[serde(rename_all = "camelCase")] pub struct Activity { pub activity_date: String, pub activity_type: String, #[serde(skip_serializing_if = "Option::is_none")] pub from_queue: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub to_queue: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub settlement_amount: Option<MinorUnit>, #[serde(skip_serializing_if = "Option::is_none")] pub notes: Option<String>, } #[derive(Debug, Serialize)] #[serde(rename = "chargebackUpdateRequest", rename_all = "camelCase")] pub struct ChargebackUpdateRequest { #[serde(rename = "@xmlns")]
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1175, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1175_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[serde(skip_serializing_if = "Option::is_none")] pub chargeback_reference_number: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub bin: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub payment_amount: Option<MinorUnit>, #[serde(skip_serializing_if = "Option::is_none")] pub reply_by_day: Option<String>, pub activity: Vec<Activity>, } #[derive(Debug, Deserialize, Serialize, Clone)] #[serde(rename_all = "camelCase")] pub struct Activity { pub activity_date: String, pub activity_type: String, #[serde(skip_serializing_if = "Option::is_none")] pub from_queue: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub to_queue: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub settlement_amount: Option<MinorUnit>, #[serde(skip_serializing_if = "Option::is_none")] pub notes: Option<String>, } #[derive(Debug, Serialize)] #[serde(rename = "chargebackUpdateRequest", rename_all = "camelCase")] pub struct ChargebackUpdateRequest { #[serde(rename = "@xmlns")] pub xmlns: String, pub activity_type: String, #[serde(skip_serializing_if = "Option::is_none")] pub notes: Option<String>, } #[derive(Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct ChargebackDocumentUploadResponse { pub response_message: String, pub response_code: String, #[serde(skip_serializing_if = "Option::is_none")] pub document_id: Option<String>, } #[derive(Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct VantivDisputeErrorResponse { pub errors: Vec<ErrorInfo>, }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1175, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1200_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[derive(Debug, Serialize)] #[serde(rename = "chargebackUpdateRequest", rename_all = "camelCase")] pub struct ChargebackUpdateRequest { #[serde(rename = "@xmlns")] pub xmlns: String, pub activity_type: String, #[serde(skip_serializing_if = "Option::is_none")] pub notes: Option<String>, } #[derive(Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct ChargebackDocumentUploadResponse { pub response_message: String,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1200, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1200_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[derive(Debug, Serialize)] #[serde(rename = "chargebackUpdateRequest", rename_all = "camelCase")] pub struct ChargebackUpdateRequest { #[serde(rename = "@xmlns")] pub xmlns: String, pub activity_type: String, #[serde(skip_serializing_if = "Option::is_none")] pub notes: Option<String>, } #[derive(Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct ChargebackDocumentUploadResponse { pub response_message: String, pub response_code: String, #[serde(skip_serializing_if = "Option::is_none")] pub document_id: Option<String>, } #[derive(Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct VantivDisputeErrorResponse { pub errors: Vec<ErrorInfo>, } #[derive(Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct ErrorInfo { pub error: String,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1200, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1200_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[derive(Debug, Serialize)] #[serde(rename = "chargebackUpdateRequest", rename_all = "camelCase")] pub struct ChargebackUpdateRequest { #[serde(rename = "@xmlns")] pub xmlns: String, pub activity_type: String, #[serde(skip_serializing_if = "Option::is_none")] pub notes: Option<String>, } #[derive(Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct ChargebackDocumentUploadResponse { pub response_message: String, pub response_code: String, #[serde(skip_serializing_if = "Option::is_none")] pub document_id: Option<String>, } #[derive(Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct VantivDisputeErrorResponse { pub errors: Vec<ErrorInfo>, } #[derive(Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct ErrorInfo { pub error: String, } // Payment flow types #[derive(Debug, Serialize, Deserialize, PartialEq, Clone, Copy)] #[serde(rename_all = "lowercase")] pub enum WorldpayvantivPaymentFlow { Sale, Auth, Capture, Void, VoidPC, // VoidPostCapture } // Helper function to determine payment flow type from merchant transaction ID fn get_payment_flow_type( merchant_txn_id: &str, ) -> Result<WorldpayvantivPaymentFlow, ConnectorError> { let merchant_txn_id_lower = merchant_txn_id.to_lowercase(); if merchant_txn_id_lower.contains("auth") { Ok(WorldpayvantivPaymentFlow::Auth)
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1200, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1225_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[derive(Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct ErrorInfo { pub error: String, } // Payment flow types #[derive(Debug, Serialize, Deserialize, PartialEq, Clone, Copy)] #[serde(rename_all = "lowercase")] pub enum WorldpayvantivPaymentFlow { Sale, Auth, Capture, Void,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1225, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1225_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[derive(Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct ErrorInfo { pub error: String, } // Payment flow types #[derive(Debug, Serialize, Deserialize, PartialEq, Clone, Copy)] #[serde(rename_all = "lowercase")] pub enum WorldpayvantivPaymentFlow { Sale, Auth, Capture, Void, VoidPC, // VoidPostCapture } // Helper function to determine payment flow type from merchant transaction ID fn get_payment_flow_type( merchant_txn_id: &str, ) -> Result<WorldpayvantivPaymentFlow, ConnectorError> { let merchant_txn_id_lower = merchant_txn_id.to_lowercase(); if merchant_txn_id_lower.contains("auth") { Ok(WorldpayvantivPaymentFlow::Auth) } else if merchant_txn_id_lower.contains("sale") { Ok(WorldpayvantivPaymentFlow::Sale) } else if merchant_txn_id_lower.contains("voidpc") { Ok(WorldpayvantivPaymentFlow::VoidPC) } else if merchant_txn_id_lower.contains("void") {
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1225, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1225_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[derive(Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct ErrorInfo { pub error: String, } // Payment flow types #[derive(Debug, Serialize, Deserialize, PartialEq, Clone, Copy)] #[serde(rename_all = "lowercase")] pub enum WorldpayvantivPaymentFlow { Sale, Auth, Capture, Void, VoidPC, // VoidPostCapture } // Helper function to determine payment flow type from merchant transaction ID fn get_payment_flow_type( merchant_txn_id: &str, ) -> Result<WorldpayvantivPaymentFlow, ConnectorError> { let merchant_txn_id_lower = merchant_txn_id.to_lowercase(); if merchant_txn_id_lower.contains("auth") { Ok(WorldpayvantivPaymentFlow::Auth) } else if merchant_txn_id_lower.contains("sale") { Ok(WorldpayvantivPaymentFlow::Sale) } else if merchant_txn_id_lower.contains("voidpc") { Ok(WorldpayvantivPaymentFlow::VoidPC) } else if merchant_txn_id_lower.contains("void") { Ok(WorldpayvantivPaymentFlow::Void) } else if merchant_txn_id_lower.contains("capture") { Ok(WorldpayvantivPaymentFlow::Capture) } else { Err(ConnectorError::NotSupported { message: format!( "Unable to determine payment flow type from merchant transaction ID: {}", merchant_txn_id ), connector: "worldpayvantiv", }) } } // Helper function to determine attempt status based on payment flow and Vantiv response status fn determine_attempt_status_for_psync( payment_status: PaymentStatus, merchant_txn_id: &str, current_status: common_enums::AttemptStatus, ) -> Result<common_enums::AttemptStatus, ConnectorError> {
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1225, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1250_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs } else if merchant_txn_id_lower.contains("sale") { Ok(WorldpayvantivPaymentFlow::Sale) } else if merchant_txn_id_lower.contains("voidpc") { Ok(WorldpayvantivPaymentFlow::VoidPC) } else if merchant_txn_id_lower.contains("void") { Ok(WorldpayvantivPaymentFlow::Void) } else if merchant_txn_id_lower.contains("capture") { Ok(WorldpayvantivPaymentFlow::Capture) } else { Err(ConnectorError::NotSupported { message: format!( "Unable to determine payment flow type from merchant transaction ID: {}", merchant_txn_id ), connector: "worldpayvantiv",
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1250, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1250_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs } else if merchant_txn_id_lower.contains("sale") { Ok(WorldpayvantivPaymentFlow::Sale) } else if merchant_txn_id_lower.contains("voidpc") { Ok(WorldpayvantivPaymentFlow::VoidPC) } else if merchant_txn_id_lower.contains("void") { Ok(WorldpayvantivPaymentFlow::Void) } else if merchant_txn_id_lower.contains("capture") { Ok(WorldpayvantivPaymentFlow::Capture) } else { Err(ConnectorError::NotSupported { message: format!( "Unable to determine payment flow type from merchant transaction ID: {}", merchant_txn_id ), connector: "worldpayvantiv", }) } } // Helper function to determine attempt status based on payment flow and Vantiv response status fn determine_attempt_status_for_psync( payment_status: PaymentStatus, merchant_txn_id: &str, current_status: common_enums::AttemptStatus, ) -> Result<common_enums::AttemptStatus, ConnectorError> { let flow_type = get_payment_flow_type(merchant_txn_id)?; match payment_status { PaymentStatus::ProcessedSuccessfully => match flow_type { WorldpayvantivPaymentFlow::Sale | WorldpayvantivPaymentFlow::Capture => {
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1250, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1250_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs } else if merchant_txn_id_lower.contains("sale") { Ok(WorldpayvantivPaymentFlow::Sale) } else if merchant_txn_id_lower.contains("voidpc") { Ok(WorldpayvantivPaymentFlow::VoidPC) } else if merchant_txn_id_lower.contains("void") { Ok(WorldpayvantivPaymentFlow::Void) } else if merchant_txn_id_lower.contains("capture") { Ok(WorldpayvantivPaymentFlow::Capture) } else { Err(ConnectorError::NotSupported { message: format!( "Unable to determine payment flow type from merchant transaction ID: {}", merchant_txn_id ), connector: "worldpayvantiv", }) } } // Helper function to determine attempt status based on payment flow and Vantiv response status fn determine_attempt_status_for_psync( payment_status: PaymentStatus, merchant_txn_id: &str, current_status: common_enums::AttemptStatus, ) -> Result<common_enums::AttemptStatus, ConnectorError> { let flow_type = get_payment_flow_type(merchant_txn_id)?; match payment_status { PaymentStatus::ProcessedSuccessfully => match flow_type { WorldpayvantivPaymentFlow::Sale | WorldpayvantivPaymentFlow::Capture => { Ok(common_enums::AttemptStatus::Charged) } WorldpayvantivPaymentFlow::Auth => Ok(common_enums::AttemptStatus::Authorized), WorldpayvantivPaymentFlow::Void => Ok(common_enums::AttemptStatus::Voided), WorldpayvantivPaymentFlow::VoidPC => Ok(common_enums::AttemptStatus::VoidedPostCapture), }, PaymentStatus::TransactionDeclined => match flow_type { WorldpayvantivPaymentFlow::Sale | WorldpayvantivPaymentFlow::Capture => { Ok(common_enums::AttemptStatus::Failure) } WorldpayvantivPaymentFlow::Auth => Ok(common_enums::AttemptStatus::AuthorizationFailed), WorldpayvantivPaymentFlow::Void | WorldpayvantivPaymentFlow::VoidPC => { Ok(common_enums::AttemptStatus::VoidFailed) } }, PaymentStatus::PaymentStatusNotFound | PaymentStatus::NotYetProcessed | PaymentStatus::StatusUnavailable => Ok(current_status), } }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1250, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1275_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs let flow_type = get_payment_flow_type(merchant_txn_id)?; match payment_status { PaymentStatus::ProcessedSuccessfully => match flow_type { WorldpayvantivPaymentFlow::Sale | WorldpayvantivPaymentFlow::Capture => { Ok(common_enums::AttemptStatus::Charged) } WorldpayvantivPaymentFlow::Auth => Ok(common_enums::AttemptStatus::Authorized), WorldpayvantivPaymentFlow::Void => Ok(common_enums::AttemptStatus::Voided), WorldpayvantivPaymentFlow::VoidPC => Ok(common_enums::AttemptStatus::VoidedPostCapture), }, PaymentStatus::TransactionDeclined => match flow_type { WorldpayvantivPaymentFlow::Sale | WorldpayvantivPaymentFlow::Capture => { Ok(common_enums::AttemptStatus::Failure) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1275, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1275_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs let flow_type = get_payment_flow_type(merchant_txn_id)?; match payment_status { PaymentStatus::ProcessedSuccessfully => match flow_type { WorldpayvantivPaymentFlow::Sale | WorldpayvantivPaymentFlow::Capture => { Ok(common_enums::AttemptStatus::Charged) } WorldpayvantivPaymentFlow::Auth => Ok(common_enums::AttemptStatus::Authorized), WorldpayvantivPaymentFlow::Void => Ok(common_enums::AttemptStatus::Voided), WorldpayvantivPaymentFlow::VoidPC => Ok(common_enums::AttemptStatus::VoidedPostCapture), }, PaymentStatus::TransactionDeclined => match flow_type { WorldpayvantivPaymentFlow::Sale | WorldpayvantivPaymentFlow::Capture => { Ok(common_enums::AttemptStatus::Failure) } WorldpayvantivPaymentFlow::Auth => Ok(common_enums::AttemptStatus::AuthorizationFailed), WorldpayvantivPaymentFlow::Void | WorldpayvantivPaymentFlow::VoidPC => { Ok(common_enums::AttemptStatus::VoidFailed) } }, PaymentStatus::PaymentStatusNotFound | PaymentStatus::NotYetProcessed | PaymentStatus::StatusUnavailable => Ok(current_status), } } #[derive(Debug, strum::Display, Serialize, Deserialize, PartialEq, Clone, Copy)] #[strum(serialize_all = "lowercase")] #[serde(rename_all = "lowercase")] pub enum OperationId {
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1275, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1275_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs let flow_type = get_payment_flow_type(merchant_txn_id)?; match payment_status { PaymentStatus::ProcessedSuccessfully => match flow_type { WorldpayvantivPaymentFlow::Sale | WorldpayvantivPaymentFlow::Capture => { Ok(common_enums::AttemptStatus::Charged) } WorldpayvantivPaymentFlow::Auth => Ok(common_enums::AttemptStatus::Authorized), WorldpayvantivPaymentFlow::Void => Ok(common_enums::AttemptStatus::Voided), WorldpayvantivPaymentFlow::VoidPC => Ok(common_enums::AttemptStatus::VoidedPostCapture), }, PaymentStatus::TransactionDeclined => match flow_type { WorldpayvantivPaymentFlow::Sale | WorldpayvantivPaymentFlow::Capture => { Ok(common_enums::AttemptStatus::Failure) } WorldpayvantivPaymentFlow::Auth => Ok(common_enums::AttemptStatus::AuthorizationFailed), WorldpayvantivPaymentFlow::Void | WorldpayvantivPaymentFlow::VoidPC => { Ok(common_enums::AttemptStatus::VoidFailed) } }, PaymentStatus::PaymentStatusNotFound | PaymentStatus::NotYetProcessed | PaymentStatus::StatusUnavailable => Ok(current_status), } } #[derive(Debug, strum::Display, Serialize, Deserialize, PartialEq, Clone, Copy)] #[strum(serialize_all = "lowercase")] #[serde(rename_all = "lowercase")] pub enum OperationId { Sale, Auth, Capture, Void, #[strum(serialize = "voidPC")] VoidPC, Refund, } // Step 90-93: TryFrom for Authorize response impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > TryFrom< ResponseRouterData<
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1275, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1300_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[derive(Debug, strum::Display, Serialize, Deserialize, PartialEq, Clone, Copy)] #[strum(serialize_all = "lowercase")] #[serde(rename_all = "lowercase")] pub enum OperationId { Sale, Auth, Capture, Void, #[strum(serialize = "voidPC")] VoidPC, Refund, } // Step 90-93: TryFrom for Authorize response
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1300, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1300_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[derive(Debug, strum::Display, Serialize, Deserialize, PartialEq, Clone, Copy)] #[strum(serialize_all = "lowercase")] #[serde(rename_all = "lowercase")] pub enum OperationId { Sale, Auth, Capture, Void, #[strum(serialize = "voidPC")] VoidPC, Refund, } // Step 90-93: TryFrom for Authorize response impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > TryFrom< ResponseRouterData< CnpOnlineResponse, RouterDataV2< Authorize, PaymentFlowData, PaymentsAuthorizeData<T>,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1300, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1300_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs #[derive(Debug, strum::Display, Serialize, Deserialize, PartialEq, Clone, Copy)] #[strum(serialize_all = "lowercase")] #[serde(rename_all = "lowercase")] pub enum OperationId { Sale, Auth, Capture, Void, #[strum(serialize = "voidPC")] VoidPC, Refund, } // Step 90-93: TryFrom for Authorize response impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > TryFrom< ResponseRouterData< CnpOnlineResponse, RouterDataV2< Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData, >, >, > for RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData> { type Error = error_stack::Report<ConnectorError>; fn try_from( item: ResponseRouterData< CnpOnlineResponse, RouterDataV2< Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData, >, >, ) -> Result<Self, Self::Error> { match ( item.response.sale_response.as_ref(), item.response.authorization_response.as_ref(),
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1300, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1325_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs CnpOnlineResponse, RouterDataV2< Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData, >, >, > for RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData> { type Error = error_stack::Report<ConnectorError>; fn try_from( item: ResponseRouterData< CnpOnlineResponse, RouterDataV2<
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1325, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1325_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs CnpOnlineResponse, RouterDataV2< Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData, >, >, > for RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData> { type Error = error_stack::Report<ConnectorError>; fn try_from( item: ResponseRouterData< CnpOnlineResponse, RouterDataV2< Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData, >, >, ) -> Result<Self, Self::Error> { match ( item.response.sale_response.as_ref(), item.response.authorization_response.as_ref(), ) { (Some(sale_response), None) => { let status = get_attempt_status(WorldpayvantivPaymentFlow::Sale, sale_response.response)?;
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1325, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1325_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs CnpOnlineResponse, RouterDataV2< Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData, >, >, > for RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData> { type Error = error_stack::Report<ConnectorError>; fn try_from( item: ResponseRouterData< CnpOnlineResponse, RouterDataV2< Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData, >, >, ) -> Result<Self, Self::Error> { match ( item.response.sale_response.as_ref(), item.response.authorization_response.as_ref(), ) { (Some(sale_response), None) => { let status = get_attempt_status(WorldpayvantivPaymentFlow::Sale, sale_response.response)?; if is_payment_failure(status) { let error_response = ErrorResponse { code: sale_response.response.to_string(), message: sale_response.message.clone(), reason: Some(sale_response.message.clone()), status_code: item.http_code, attempt_status: Some(status), connector_transaction_id: Some(sale_response.cnp_txn_id.clone()), network_decline_code: None, network_advice_code: None, network_error_message: None, }; Ok(Self { resource_common_data: PaymentFlowData { status, ..item.router_data.resource_common_data }, response: Err(error_response), ..item.router_data
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1325, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1350_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs ) { (Some(sale_response), None) => { let status = get_attempt_status(WorldpayvantivPaymentFlow::Sale, sale_response.response)?; if is_payment_failure(status) { let error_response = ErrorResponse { code: sale_response.response.to_string(), message: sale_response.message.clone(), reason: Some(sale_response.message.clone()), status_code: item.http_code, attempt_status: Some(status), connector_transaction_id: Some(sale_response.cnp_txn_id.clone()), network_decline_code: None, network_advice_code: None,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1350, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1350_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs ) { (Some(sale_response), None) => { let status = get_attempt_status(WorldpayvantivPaymentFlow::Sale, sale_response.response)?; if is_payment_failure(status) { let error_response = ErrorResponse { code: sale_response.response.to_string(), message: sale_response.message.clone(), reason: Some(sale_response.message.clone()), status_code: item.http_code, attempt_status: Some(status), connector_transaction_id: Some(sale_response.cnp_txn_id.clone()), network_decline_code: None, network_advice_code: None, network_error_message: None, }; Ok(Self { resource_common_data: PaymentFlowData { status, ..item.router_data.resource_common_data }, response: Err(error_response), ..item.router_data }) } else { let payments_response = PaymentsResponseData::TransactionResponse { resource_id: ResponseId::ConnectorTransactionId( sale_response.cnp_txn_id.clone(),
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1350, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1350_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs ) { (Some(sale_response), None) => { let status = get_attempt_status(WorldpayvantivPaymentFlow::Sale, sale_response.response)?; if is_payment_failure(status) { let error_response = ErrorResponse { code: sale_response.response.to_string(), message: sale_response.message.clone(), reason: Some(sale_response.message.clone()), status_code: item.http_code, attempt_status: Some(status), connector_transaction_id: Some(sale_response.cnp_txn_id.clone()), network_decline_code: None, network_advice_code: None, network_error_message: None, }; Ok(Self { resource_common_data: PaymentFlowData { status, ..item.router_data.resource_common_data }, response: Err(error_response), ..item.router_data }) } else { let payments_response = PaymentsResponseData::TransactionResponse { resource_id: ResponseId::ConnectorTransactionId( sale_response.cnp_txn_id.clone(), ), redirection_data: None, mandate_reference: None, connector_metadata: None, network_txn_id: sale_response .network_transaction_id .clone() .map(|id| id.expose()), connector_response_reference_id: Some(sale_response.order_id.clone()), incremental_authorization_allowed: None, status_code: item.http_code, }; Ok(Self { resource_common_data: PaymentFlowData { status, ..item.router_data.resource_common_data }, response: Ok(payments_response), ..item.router_data
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1350, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1375_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs }) } else { let payments_response = PaymentsResponseData::TransactionResponse { resource_id: ResponseId::ConnectorTransactionId( sale_response.cnp_txn_id.clone(), ), redirection_data: None, mandate_reference: None, connector_metadata: None, network_txn_id: sale_response .network_transaction_id .clone() .map(|id| id.expose()), connector_response_reference_id: Some(sale_response.order_id.clone()), incremental_authorization_allowed: None,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1375, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1375_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs }) } else { let payments_response = PaymentsResponseData::TransactionResponse { resource_id: ResponseId::ConnectorTransactionId( sale_response.cnp_txn_id.clone(), ), redirection_data: None, mandate_reference: None, connector_metadata: None, network_txn_id: sale_response .network_transaction_id .clone() .map(|id| id.expose()), connector_response_reference_id: Some(sale_response.order_id.clone()), incremental_authorization_allowed: None, status_code: item.http_code, }; Ok(Self { resource_common_data: PaymentFlowData { status, ..item.router_data.resource_common_data }, response: Ok(payments_response), ..item.router_data }) } } (None, Some(auth_response)) => { let status =
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1375, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1375_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs }) } else { let payments_response = PaymentsResponseData::TransactionResponse { resource_id: ResponseId::ConnectorTransactionId( sale_response.cnp_txn_id.clone(), ), redirection_data: None, mandate_reference: None, connector_metadata: None, network_txn_id: sale_response .network_transaction_id .clone() .map(|id| id.expose()), connector_response_reference_id: Some(sale_response.order_id.clone()), incremental_authorization_allowed: None, status_code: item.http_code, }; Ok(Self { resource_common_data: PaymentFlowData { status, ..item.router_data.resource_common_data }, response: Ok(payments_response), ..item.router_data }) } } (None, Some(auth_response)) => { let status = get_attempt_status(WorldpayvantivPaymentFlow::Auth, auth_response.response)?; if is_payment_failure(status) { let error_response = ErrorResponse { code: auth_response.response.to_string(), message: auth_response.message.clone(), reason: Some(auth_response.message.clone()), status_code: item.http_code, attempt_status: Some(status), connector_transaction_id: Some(auth_response.cnp_txn_id.clone()), network_decline_code: None, network_advice_code: None, network_error_message: None, }; Ok(Self { resource_common_data: PaymentFlowData { status, ..item.router_data.resource_common_data },
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1375, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1400_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs }) } } (None, Some(auth_response)) => { let status = get_attempt_status(WorldpayvantivPaymentFlow::Auth, auth_response.response)?; if is_payment_failure(status) { let error_response = ErrorResponse { code: auth_response.response.to_string(), message: auth_response.message.clone(), reason: Some(auth_response.message.clone()), status_code: item.http_code, attempt_status: Some(status), connector_transaction_id: Some(auth_response.cnp_txn_id.clone()),
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1400, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1400_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs }) } } (None, Some(auth_response)) => { let status = get_attempt_status(WorldpayvantivPaymentFlow::Auth, auth_response.response)?; if is_payment_failure(status) { let error_response = ErrorResponse { code: auth_response.response.to_string(), message: auth_response.message.clone(), reason: Some(auth_response.message.clone()), status_code: item.http_code, attempt_status: Some(status), connector_transaction_id: Some(auth_response.cnp_txn_id.clone()), network_decline_code: None, network_advice_code: None, network_error_message: None, }; Ok(Self { resource_common_data: PaymentFlowData { status, ..item.router_data.resource_common_data }, response: Err(error_response), ..item.router_data }) } else { let payments_response = PaymentsResponseData::TransactionResponse {
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1400, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1400_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs }) } } (None, Some(auth_response)) => { let status = get_attempt_status(WorldpayvantivPaymentFlow::Auth, auth_response.response)?; if is_payment_failure(status) { let error_response = ErrorResponse { code: auth_response.response.to_string(), message: auth_response.message.clone(), reason: Some(auth_response.message.clone()), status_code: item.http_code, attempt_status: Some(status), connector_transaction_id: Some(auth_response.cnp_txn_id.clone()), network_decline_code: None, network_advice_code: None, network_error_message: None, }; Ok(Self { resource_common_data: PaymentFlowData { status, ..item.router_data.resource_common_data }, response: Err(error_response), ..item.router_data }) } else { let payments_response = PaymentsResponseData::TransactionResponse { resource_id: ResponseId::ConnectorTransactionId( auth_response.cnp_txn_id.clone(), ), redirection_data: None, mandate_reference: None, connector_metadata: None, network_txn_id: auth_response .network_transaction_id .clone() .map(|id| id.expose()), connector_response_reference_id: Some(auth_response.order_id.clone()), incremental_authorization_allowed: None, status_code: item.http_code, }; Ok(Self { resource_common_data: PaymentFlowData { status, ..item.router_data.resource_common_data },
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1400, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1425_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs response: Err(error_response), ..item.router_data }) } else { let payments_response = PaymentsResponseData::TransactionResponse { resource_id: ResponseId::ConnectorTransactionId( auth_response.cnp_txn_id.clone(), ), redirection_data: None, mandate_reference: None, connector_metadata: None, network_txn_id: auth_response .network_transaction_id .clone() .map(|id| id.expose()),
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1425, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1425_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs response: Err(error_response), ..item.router_data }) } else { let payments_response = PaymentsResponseData::TransactionResponse { resource_id: ResponseId::ConnectorTransactionId( auth_response.cnp_txn_id.clone(), ), redirection_data: None, mandate_reference: None, connector_metadata: None, network_txn_id: auth_response .network_transaction_id .clone() .map(|id| id.expose()), connector_response_reference_id: Some(auth_response.order_id.clone()), incremental_authorization_allowed: None, status_code: item.http_code, }; Ok(Self { resource_common_data: PaymentFlowData { status, ..item.router_data.resource_common_data }, response: Ok(payments_response), ..item.router_data }) } }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1425, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1425_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs response: Err(error_response), ..item.router_data }) } else { let payments_response = PaymentsResponseData::TransactionResponse { resource_id: ResponseId::ConnectorTransactionId( auth_response.cnp_txn_id.clone(), ), redirection_data: None, mandate_reference: None, connector_metadata: None, network_txn_id: auth_response .network_transaction_id .clone() .map(|id| id.expose()), connector_response_reference_id: Some(auth_response.order_id.clone()), incremental_authorization_allowed: None, status_code: item.http_code, }; Ok(Self { resource_common_data: PaymentFlowData { status, ..item.router_data.resource_common_data }, response: Ok(payments_response), ..item.router_data }) } } (None, None) => { let error_response = ErrorResponse { code: item.response.response_code, message: item.response.message.clone(), reason: Some(item.response.message.clone()), status_code: item.http_code, attempt_status: Some(common_enums::AttemptStatus::Failure), connector_transaction_id: None, network_decline_code: None, network_advice_code: None, network_error_message: None, }; Ok(Self { resource_common_data: PaymentFlowData { status: common_enums::AttemptStatus::Failure, ..item.router_data.resource_common_data }, response: Err(error_response), ..item.router_data
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1425, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1450_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs response: Ok(payments_response), ..item.router_data }) } } (None, None) => { let error_response = ErrorResponse { code: item.response.response_code, message: item.response.message.clone(), reason: Some(item.response.message.clone()), status_code: item.http_code, attempt_status: Some(common_enums::AttemptStatus::Failure), connector_transaction_id: None, network_decline_code: None, network_advice_code: None,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1450, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1450_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs response: Ok(payments_response), ..item.router_data }) } } (None, None) => { let error_response = ErrorResponse { code: item.response.response_code, message: item.response.message.clone(), reason: Some(item.response.message.clone()), status_code: item.http_code, attempt_status: Some(common_enums::AttemptStatus::Failure), connector_transaction_id: None, network_decline_code: None, network_advice_code: None, network_error_message: None, }; Ok(Self { resource_common_data: PaymentFlowData { status: common_enums::AttemptStatus::Failure, ..item.router_data.resource_common_data }, response: Err(error_response), ..item.router_data }) } (_, _) => Err(ConnectorError::UnexpectedResponseError( "Only one of 'sale_response' or 'authorization_response' is expected" .to_string()
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1450, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1450_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs response: Ok(payments_response), ..item.router_data }) } } (None, None) => { let error_response = ErrorResponse { code: item.response.response_code, message: item.response.message.clone(), reason: Some(item.response.message.clone()), status_code: item.http_code, attempt_status: Some(common_enums::AttemptStatus::Failure), connector_transaction_id: None, network_decline_code: None, network_advice_code: None, network_error_message: None, }; Ok(Self { resource_common_data: PaymentFlowData { status: common_enums::AttemptStatus::Failure, ..item.router_data.resource_common_data }, response: Err(error_response), ..item.router_data }) } (_, _) => Err(ConnectorError::UnexpectedResponseError( "Only one of 'sale_response' or 'authorization_response' is expected" .to_string() .into(), ) .into()), } } } // Helper functions for creating RawCardNumber from different sources #[allow(dead_code)] fn create_raw_card_number_from_string<T: PaymentMethodDataTypes>( card_string: String, ) -> Result<RawCardNumber<T>, error_stack::Report<ConnectorError>> where T::Inner: From<String>, { Ok(RawCardNumber(T::Inner::from(card_string))) } #[allow(dead_code)] fn get_payment_info<T: PaymentMethodDataTypes>(
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1450, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1475_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs }) } (_, _) => Err(ConnectorError::UnexpectedResponseError( "Only one of 'sale_response' or 'authorization_response' is expected" .to_string() .into(), ) .into()), } } } // Helper functions for creating RawCardNumber from different sources #[allow(dead_code)] fn create_raw_card_number_from_string<T: PaymentMethodDataTypes>(
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1475, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1475_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs }) } (_, _) => Err(ConnectorError::UnexpectedResponseError( "Only one of 'sale_response' or 'authorization_response' is expected" .to_string() .into(), ) .into()), } } } // Helper functions for creating RawCardNumber from different sources #[allow(dead_code)] fn create_raw_card_number_from_string<T: PaymentMethodDataTypes>( card_string: String, ) -> Result<RawCardNumber<T>, error_stack::Report<ConnectorError>> where T::Inner: From<String>, { Ok(RawCardNumber(T::Inner::from(card_string))) } #[allow(dead_code)] fn get_payment_info<T: PaymentMethodDataTypes>( payment_method_data: &PaymentMethodData<T>, payment_method_token: Option<PaymentMethodToken>, ) -> Result<PaymentInfo<T>, error_stack::Report<ConnectorError>> where T::Inner: From<String> + Clone,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1475, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1475_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs }) } (_, _) => Err(ConnectorError::UnexpectedResponseError( "Only one of 'sale_response' or 'authorization_response' is expected" .to_string() .into(), ) .into()), } } } // Helper functions for creating RawCardNumber from different sources #[allow(dead_code)] fn create_raw_card_number_from_string<T: PaymentMethodDataTypes>( card_string: String, ) -> Result<RawCardNumber<T>, error_stack::Report<ConnectorError>> where T::Inner: From<String>, { Ok(RawCardNumber(T::Inner::from(card_string))) } #[allow(dead_code)] fn get_payment_info<T: PaymentMethodDataTypes>( payment_method_data: &PaymentMethodData<T>, payment_method_token: Option<PaymentMethodToken>, ) -> Result<PaymentInfo<T>, error_stack::Report<ConnectorError>> where T::Inner: From<String> + Clone, { match payment_method_data { PaymentMethodData::Card(card_data) => { let card_type = match card_data.card_network.clone() { Some(network) => WorldpayvativCardType::try_from(network)?, None => { // Determine from card number if network not provided return Err(ConnectorError::MissingRequiredField { field_name: "card_network", } .into()); } }; let year_str = card_data.card_exp_year.peek(); let formatted_year = if year_str.len() == 4 { &year_str[2..] } else { year_str };
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1475, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1500_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs payment_method_data: &PaymentMethodData<T>, payment_method_token: Option<PaymentMethodToken>, ) -> Result<PaymentInfo<T>, error_stack::Report<ConnectorError>> where T::Inner: From<String> + Clone, { match payment_method_data { PaymentMethodData::Card(card_data) => { let card_type = match card_data.card_network.clone() { Some(network) => WorldpayvativCardType::try_from(network)?, None => { // Determine from card number if network not provided return Err(ConnectorError::MissingRequiredField { field_name: "card_network", }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1500, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1500_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs payment_method_data: &PaymentMethodData<T>, payment_method_token: Option<PaymentMethodToken>, ) -> Result<PaymentInfo<T>, error_stack::Report<ConnectorError>> where T::Inner: From<String> + Clone, { match payment_method_data { PaymentMethodData::Card(card_data) => { let card_type = match card_data.card_network.clone() { Some(network) => WorldpayvativCardType::try_from(network)?, None => { // Determine from card number if network not provided return Err(ConnectorError::MissingRequiredField { field_name: "card_network", } .into()); } }; let year_str = card_data.card_exp_year.peek(); let formatted_year = if year_str.len() == 4 { &year_str[2..] } else { year_str }; let exp_date = format!("{}{}", card_data.card_exp_month.peek(), formatted_year); let worldpay_card = WorldpayvantivCardData { card_type, number: card_data.card_number.clone(),
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1500, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1500_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs payment_method_data: &PaymentMethodData<T>, payment_method_token: Option<PaymentMethodToken>, ) -> Result<PaymentInfo<T>, error_stack::Report<ConnectorError>> where T::Inner: From<String> + Clone, { match payment_method_data { PaymentMethodData::Card(card_data) => { let card_type = match card_data.card_network.clone() { Some(network) => WorldpayvativCardType::try_from(network)?, None => { // Determine from card number if network not provided return Err(ConnectorError::MissingRequiredField { field_name: "card_network", } .into()); } }; let year_str = card_data.card_exp_year.peek(); let formatted_year = if year_str.len() == 4 { &year_str[2..] } else { year_str }; let exp_date = format!("{}{}", card_data.card_exp_month.peek(), formatted_year); let worldpay_card = WorldpayvantivCardData { card_type, number: card_data.card_number.clone(), exp_date: exp_date.into(), card_validation_num: Some(card_data.card_cvc.clone()), }; Ok(PaymentInfo::Card(CardData { card: worldpay_card, processing_type: None, network_transaction_id: None, })) } PaymentMethodData::Wallet(wallet_data) => { match wallet_data { WalletData::ApplePay(apple_pay_data) => { match payment_method_token { Some(PaymentMethodToken::ApplePayDecrypt(apple_pay_decrypted_data)) => { let card_type = determine_apple_pay_card_type( &apple_pay_data.payment_method.network, )?; // Extract expiry date from Apple Pay decrypted data let expiry_month: Secret<String> =
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1500, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1525_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs let exp_date = format!("{}{}", card_data.card_exp_month.peek(), formatted_year); let worldpay_card = WorldpayvantivCardData { card_type, number: card_data.card_number.clone(), exp_date: exp_date.into(), card_validation_num: Some(card_data.card_cvc.clone()), }; Ok(PaymentInfo::Card(CardData { card: worldpay_card, processing_type: None, network_transaction_id: None, })) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1525, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1525_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs let exp_date = format!("{}{}", card_data.card_exp_month.peek(), formatted_year); let worldpay_card = WorldpayvantivCardData { card_type, number: card_data.card_number.clone(), exp_date: exp_date.into(), card_validation_num: Some(card_data.card_cvc.clone()), }; Ok(PaymentInfo::Card(CardData { card: worldpay_card, processing_type: None, network_transaction_id: None, })) } PaymentMethodData::Wallet(wallet_data) => { match wallet_data { WalletData::ApplePay(apple_pay_data) => { match payment_method_token { Some(PaymentMethodToken::ApplePayDecrypt(apple_pay_decrypted_data)) => { let card_type = determine_apple_pay_card_type( &apple_pay_data.payment_method.network, )?; // Extract expiry date from Apple Pay decrypted data let expiry_month: Secret<String> = apple_pay_decrypted_data.get_expiry_month()?; let expiry_year = apple_pay_decrypted_data.get_four_digit_expiry_year()?; let formatted_year = &expiry_year.expose()[2..]; // Convert to 2-digit year let exp_date = format!("{}{}", expiry_month.expose(), formatted_year);
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1525, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1525_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs let exp_date = format!("{}{}", card_data.card_exp_month.peek(), formatted_year); let worldpay_card = WorldpayvantivCardData { card_type, number: card_data.card_number.clone(), exp_date: exp_date.into(), card_validation_num: Some(card_data.card_cvc.clone()), }; Ok(PaymentInfo::Card(CardData { card: worldpay_card, processing_type: None, network_transaction_id: None, })) } PaymentMethodData::Wallet(wallet_data) => { match wallet_data { WalletData::ApplePay(apple_pay_data) => { match payment_method_token { Some(PaymentMethodToken::ApplePayDecrypt(apple_pay_decrypted_data)) => { let card_type = determine_apple_pay_card_type( &apple_pay_data.payment_method.network, )?; // Extract expiry date from Apple Pay decrypted data let expiry_month: Secret<String> = apple_pay_decrypted_data.get_expiry_month()?; let expiry_year = apple_pay_decrypted_data.get_four_digit_expiry_year()?; let formatted_year = &expiry_year.expose()[2..]; // Convert to 2-digit year let exp_date = format!("{}{}", expiry_month.expose(), formatted_year); let card_number_string = apple_pay_decrypted_data .application_primary_account_number .expose(); let raw_card_number = create_raw_card_number_from_string::<T>(card_number_string)?; let worldpay_card = WorldpayvantivCardData { card_type, number: raw_card_number, exp_date: exp_date.into(), card_validation_num: None, // Apple Pay doesn't provide CVV }; Ok(PaymentInfo::Card(CardData { card: worldpay_card, processing_type: None, network_transaction_id: None, })) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1525, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1550_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs apple_pay_decrypted_data.get_expiry_month()?; let expiry_year = apple_pay_decrypted_data.get_four_digit_expiry_year()?; let formatted_year = &expiry_year.expose()[2..]; // Convert to 2-digit year let exp_date = format!("{}{}", expiry_month.expose(), formatted_year); let card_number_string = apple_pay_decrypted_data .application_primary_account_number .expose(); let raw_card_number = create_raw_card_number_from_string::<T>(card_number_string)?; let worldpay_card = WorldpayvantivCardData { card_type, number: raw_card_number,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1550, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1550_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs apple_pay_decrypted_data.get_expiry_month()?; let expiry_year = apple_pay_decrypted_data.get_four_digit_expiry_year()?; let formatted_year = &expiry_year.expose()[2..]; // Convert to 2-digit year let exp_date = format!("{}{}", expiry_month.expose(), formatted_year); let card_number_string = apple_pay_decrypted_data .application_primary_account_number .expose(); let raw_card_number = create_raw_card_number_from_string::<T>(card_number_string)?; let worldpay_card = WorldpayvantivCardData { card_type, number: raw_card_number, exp_date: exp_date.into(), card_validation_num: None, // Apple Pay doesn't provide CVV }; Ok(PaymentInfo::Card(CardData { card: worldpay_card, processing_type: None, network_transaction_id: None, })) } _ => Err(ConnectorError::MissingRequiredField { field_name: "apple_pay_decrypted_data", } .into()), }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1550, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1550_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs apple_pay_decrypted_data.get_expiry_month()?; let expiry_year = apple_pay_decrypted_data.get_four_digit_expiry_year()?; let formatted_year = &expiry_year.expose()[2..]; // Convert to 2-digit year let exp_date = format!("{}{}", expiry_month.expose(), formatted_year); let card_number_string = apple_pay_decrypted_data .application_primary_account_number .expose(); let raw_card_number = create_raw_card_number_from_string::<T>(card_number_string)?; let worldpay_card = WorldpayvantivCardData { card_type, number: raw_card_number, exp_date: exp_date.into(), card_validation_num: None, // Apple Pay doesn't provide CVV }; Ok(PaymentInfo::Card(CardData { card: worldpay_card, processing_type: None, network_transaction_id: None, })) } _ => Err(ConnectorError::MissingRequiredField { field_name: "apple_pay_decrypted_data", } .into()), } } WalletData::GooglePay(google_pay_data) => { match payment_method_token { Some(PaymentMethodToken::GooglePayDecrypt(google_pay_decrypted_data)) => { let card_type = determine_google_pay_card_type(&google_pay_data.info.card_network)?; // Extract expiry date from Google Pay decrypted data let expiry_month = google_pay_decrypted_data .payment_method_details .expiration_month .two_digits(); // Since CardExpirationYear doesn't have a public accessor, we need to deserialize it // This follows the pattern where year is extracted from the validated data let expiry_year_bytes = serde_json::to_vec( &google_pay_decrypted_data .payment_method_details .expiration_year, ) .change_context(ConnectorError::RequestEncodingFailed)?; let expiry_year: u16 = serde_json::from_slice(&expiry_year_bytes)
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1550, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1575_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs _ => Err(ConnectorError::MissingRequiredField { field_name: "apple_pay_decrypted_data", } .into()), } } WalletData::GooglePay(google_pay_data) => { match payment_method_token { Some(PaymentMethodToken::GooglePayDecrypt(google_pay_decrypted_data)) => { let card_type = determine_google_pay_card_type(&google_pay_data.info.card_network)?; // Extract expiry date from Google Pay decrypted data let expiry_month = google_pay_decrypted_data .payment_method_details .expiration_month
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1575, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1575_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs _ => Err(ConnectorError::MissingRequiredField { field_name: "apple_pay_decrypted_data", } .into()), } } WalletData::GooglePay(google_pay_data) => { match payment_method_token { Some(PaymentMethodToken::GooglePayDecrypt(google_pay_decrypted_data)) => { let card_type = determine_google_pay_card_type(&google_pay_data.info.card_network)?; // Extract expiry date from Google Pay decrypted data let expiry_month = google_pay_decrypted_data .payment_method_details .expiration_month .two_digits(); // Since CardExpirationYear doesn't have a public accessor, we need to deserialize it // This follows the pattern where year is extracted from the validated data let expiry_year_bytes = serde_json::to_vec( &google_pay_decrypted_data .payment_method_details .expiration_year, ) .change_context(ConnectorError::RequestEncodingFailed)?; let expiry_year: u16 = serde_json::from_slice(&expiry_year_bytes) .change_context(ConnectorError::RequestEncodingFailed)?; let formatted_year = format!("{:02}", expiry_year % 100); // Convert to 2-digit year let exp_date = format!("{}{}", expiry_month, formatted_year); let card_number_string = google_pay_decrypted_data
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1575, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1575_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs _ => Err(ConnectorError::MissingRequiredField { field_name: "apple_pay_decrypted_data", } .into()), } } WalletData::GooglePay(google_pay_data) => { match payment_method_token { Some(PaymentMethodToken::GooglePayDecrypt(google_pay_decrypted_data)) => { let card_type = determine_google_pay_card_type(&google_pay_data.info.card_network)?; // Extract expiry date from Google Pay decrypted data let expiry_month = google_pay_decrypted_data .payment_method_details .expiration_month .two_digits(); // Since CardExpirationYear doesn't have a public accessor, we need to deserialize it // This follows the pattern where year is extracted from the validated data let expiry_year_bytes = serde_json::to_vec( &google_pay_decrypted_data .payment_method_details .expiration_year, ) .change_context(ConnectorError::RequestEncodingFailed)?; let expiry_year: u16 = serde_json::from_slice(&expiry_year_bytes) .change_context(ConnectorError::RequestEncodingFailed)?; let formatted_year = format!("{:02}", expiry_year % 100); // Convert to 2-digit year let exp_date = format!("{}{}", expiry_month, formatted_year); let card_number_string = google_pay_decrypted_data .payment_method_details .pan .peek() .to_string(); let raw_card_number = create_raw_card_number_from_string::<T>(card_number_string)?; let worldpay_card = WorldpayvantivCardData { card_type, number: raw_card_number, exp_date: exp_date.into(), card_validation_num: None, // Google Pay doesn't provide CVV }; Ok(PaymentInfo::Card(CardData { card: worldpay_card, processing_type: None, network_transaction_id: None, })) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1575, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1600_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs .change_context(ConnectorError::RequestEncodingFailed)?; let formatted_year = format!("{:02}", expiry_year % 100); // Convert to 2-digit year let exp_date = format!("{}{}", expiry_month, formatted_year); let card_number_string = google_pay_decrypted_data .payment_method_details .pan .peek() .to_string(); let raw_card_number = create_raw_card_number_from_string::<T>(card_number_string)?; let worldpay_card = WorldpayvantivCardData { card_type, number: raw_card_number,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1600, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1600_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs .change_context(ConnectorError::RequestEncodingFailed)?; let formatted_year = format!("{:02}", expiry_year % 100); // Convert to 2-digit year let exp_date = format!("{}{}", expiry_month, formatted_year); let card_number_string = google_pay_decrypted_data .payment_method_details .pan .peek() .to_string(); let raw_card_number = create_raw_card_number_from_string::<T>(card_number_string)?; let worldpay_card = WorldpayvantivCardData { card_type, number: raw_card_number, exp_date: exp_date.into(), card_validation_num: None, // Google Pay doesn't provide CVV }; Ok(PaymentInfo::Card(CardData { card: worldpay_card, processing_type: None, network_transaction_id: None, })) } _ => Err(ConnectorError::MissingRequiredField { field_name: "google_pay_decrypted_data", } .into()), }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1600, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1600_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs .change_context(ConnectorError::RequestEncodingFailed)?; let formatted_year = format!("{:02}", expiry_year % 100); // Convert to 2-digit year let exp_date = format!("{}{}", expiry_month, formatted_year); let card_number_string = google_pay_decrypted_data .payment_method_details .pan .peek() .to_string(); let raw_card_number = create_raw_card_number_from_string::<T>(card_number_string)?; let worldpay_card = WorldpayvantivCardData { card_type, number: raw_card_number, exp_date: exp_date.into(), card_validation_num: None, // Google Pay doesn't provide CVV }; Ok(PaymentInfo::Card(CardData { card: worldpay_card, processing_type: None, network_transaction_id: None, })) } _ => Err(ConnectorError::MissingRequiredField { field_name: "google_pay_decrypted_data", } .into()), } } _ => Err(ConnectorError::NotSupported { message: "Wallet type".to_string(), connector: "worldpayvantiv", } .into()), } } _ => Err(ConnectorError::NotSupported { message: "Payment method".to_string(), connector: "worldpayvantiv", } .into()), } } #[allow(dead_code)] fn determine_apple_pay_card_type( network: &str, ) -> Result<WorldpayvativCardType, error_stack::Report<ConnectorError>> {
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1600, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_2054780185909450401_1625_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs _ => Err(ConnectorError::MissingRequiredField { field_name: "google_pay_decrypted_data", } .into()), } } _ => Err(ConnectorError::NotSupported { message: "Wallet type".to_string(), connector: "worldpayvantiv", } .into()), } } _ => Err(ConnectorError::NotSupported { message: "Payment method".to_string(),
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1625, "struct_name": null, "total_crates": null, "trait_name": null }