mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
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:
committed by
GitHub
parent
165ead6108
commit
3d4fd2f719
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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";
|
||||
|
||||
Reference in New Issue
Block a user