mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	refactor: use hashmap deserializer for generic_link options (#5157)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -702,7 +702,7 @@ pub struct PayoutListFilters { | ||||
| pub struct PayoutLinkResponse { | ||||
|     pub payout_link_id: String, | ||||
|     #[schema(value_type = String)] | ||||
|     pub link: Secret<String>, | ||||
|     pub link: Secret<url::Url>, | ||||
| } | ||||
|  | ||||
| #[derive(Clone, Debug, serde::Deserialize, ToSchema, serde::Serialize)] | ||||
| @ -720,9 +720,9 @@ pub struct PayoutLinkDetails { | ||||
|     pub customer_id: id_type::CustomerId, | ||||
|     #[serde(with = "common_utils::custom_serde::iso8601")] | ||||
|     pub session_expiry: PrimitiveDateTime, | ||||
|     pub return_url: Option<String>, | ||||
|     pub return_url: Option<url::Url>, | ||||
|     #[serde(flatten)] | ||||
|     pub ui_config: link_utils::GenericLinkUIConfigFormData, | ||||
|     pub ui_config: link_utils::GenericLinkUiConfigFormData, | ||||
|     pub enabled_payment_methods: Vec<link_utils::EnabledPaymentMethod>, | ||||
|     pub amount: common_utils::types::StringMajorUnit, | ||||
|     pub currency: common_enums::Currency, | ||||
| @ -735,10 +735,10 @@ pub struct PayoutLinkStatusDetails { | ||||
|     pub customer_id: id_type::CustomerId, | ||||
|     #[serde(with = "common_utils::custom_serde::iso8601")] | ||||
|     pub session_expiry: PrimitiveDateTime, | ||||
|     pub return_url: Option<String>, | ||||
|     pub return_url: Option<url::Url>, | ||||
|     pub status: api_enums::PayoutStatus, | ||||
|     pub error_code: Option<String>, | ||||
|     pub error_message: Option<String>, | ||||
|     #[serde(flatten)] | ||||
|     pub ui_config: link_utils::GenericLinkUIConfigFormData, | ||||
|     pub ui_config: link_utils::GenericLinkUiConfigFormData, | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Kashif
					Kashif