fix(router): change click_to_pay const to snake_case and remove camel_case serde rename for clicktopay metadata (#6852)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sai Harsha Vardhan
2024-12-16 19:24:50 +05:30
committed by GitHub
parent 165ead6108
commit 3d4fd2f719
5 changed files with 37 additions and 39 deletions

View File

@ -6235,50 +6235,50 @@
"ClickToPaySessionResponse": {
"type": "object",
"required": [
"dpaId",
"dpaName",
"dpa_id",
"dpa_name",
"locale",
"cardBrands",
"acquirerBin",
"acquirerMerchantId",
"merchantCategoryCode",
"merchantCountryCode",
"transactionAmount",
"transactionCurrencyCode"
"card_brands",
"acquirer_bin",
"acquirer_merchant_id",
"merchant_category_code",
"merchant_country_code",
"transaction_amount",
"transaction_currency_code"
],
"properties": {
"dpaId": {
"dpa_id": {
"type": "string"
},
"dpaName": {
"dpa_name": {
"type": "string"
},
"locale": {
"type": "string"
},
"cardBrands": {
"card_brands": {
"type": "array",
"items": {
"type": "string"
}
},
"acquirerBin": {
"acquirer_bin": {
"type": "string"
},
"acquirerMerchantId": {
"acquirer_merchant_id": {
"type": "string"
},
"merchantCategoryCode": {
"merchant_category_code": {
"type": "string"
},
"merchantCountryCode": {
"merchant_country_code": {
"type": "string"
},
"transactionAmount": {
"transaction_amount": {
"type": "string",
"example": "38.02"
},
"transactionCurrencyCode": {
"transaction_currency_code": {
"$ref": "#/components/schemas/Currency"
}
}

View File

@ -8679,50 +8679,50 @@
"ClickToPaySessionResponse": {
"type": "object",
"required": [
"dpaId",
"dpaName",
"dpa_id",
"dpa_name",
"locale",
"cardBrands",
"acquirerBin",
"acquirerMerchantId",
"merchantCategoryCode",
"merchantCountryCode",
"transactionAmount",
"transactionCurrencyCode"
"card_brands",
"acquirer_bin",
"acquirer_merchant_id",
"merchant_category_code",
"merchant_country_code",
"transaction_amount",
"transaction_currency_code"
],
"properties": {
"dpaId": {
"dpa_id": {
"type": "string"
},
"dpaName": {
"dpa_name": {
"type": "string"
},
"locale": {
"type": "string"
},
"cardBrands": {
"card_brands": {
"type": "array",
"items": {
"type": "string"
}
},
"acquirerBin": {
"acquirer_bin": {
"type": "string"
},
"acquirerMerchantId": {
"acquirer_merchant_id": {
"type": "string"
},
"merchantCategoryCode": {
"merchant_category_code": {
"type": "string"
},
"merchantCountryCode": {
"merchant_country_code": {
"type": "string"
},
"transactionAmount": {
"transaction_amount": {
"type": "string",
"example": "38.02"
},
"transactionCurrencyCode": {
"transaction_currency_code": {
"$ref": "#/components/schemas/Currency"
}
}

View File

@ -6984,7 +6984,6 @@ pub struct ExtendedCardInfoResponse {
}
#[derive(Debug, Clone, Eq, PartialEq, serde::Serialize, ToSchema)]
#[serde(rename_all = "camelCase")]
pub struct ClickToPaySessionResponse {
pub dpa_id: String,
pub dpa_name: String,

View File

@ -521,7 +521,6 @@ pub struct HeaderPayload {
}
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ClickToPayMetaData {
pub dpa_id: String,
pub dpa_name: String,

View File

@ -209,4 +209,4 @@ pub const VAULT_GET_FINGERPRINT_FLOW_TYPE: &str = "get_fingerprint_vault";
pub const DYNAMIC_ROUTING_MAX_VOLUME: u8 = 100;
/// Click To Pay
pub const CLICK_TO_PAY: &str = "CLICK_TO_PAY";
pub const CLICK_TO_PAY: &str = "click_to_pay";