mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	refactor(connector): added amount framework to paypal, payouts and routing (#4865)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Hrithikesh <61539176+hrithikesh026@users.noreply.github.com> Co-authored-by: Narayan Bhat <narayan.bhat@juspay.in>
This commit is contained in:
		| @ -366,7 +366,7 @@ pub struct PayoutCreateResponse { | ||||
|  | ||||
|     /// The payout amount. Amount for the payout in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc., | ||||
|     #[schema(value_type = i64, example = 1000)] | ||||
|     pub amount: i64, | ||||
|     pub amount: common_utils::types::MinorUnit, | ||||
|  | ||||
|     /// Recipient's currency for the payout request | ||||
|     #[schema(value_type = Currency, example = "USD")] | ||||
| @ -501,7 +501,8 @@ pub struct PayoutAttemptResponse { | ||||
|     #[schema(value_type = PayoutStatus, example = "failed")] | ||||
|     pub status: api_enums::PayoutStatus, | ||||
|     /// The payout attempt amount. Amount for the payout in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc., | ||||
|     pub amount: i64, | ||||
|     #[schema(value_type = i64, example = 6583)] | ||||
|     pub amount: common_utils::types::MinorUnit, | ||||
|     /// The currency of the amount of the payout attempt | ||||
|     #[schema(value_type = Option<Currency>, example = "USD")] | ||||
|     pub currency: Option<api_enums::Currency>, | ||||
| @ -723,7 +724,7 @@ pub struct PayoutLinkDetails { | ||||
|     #[serde(flatten)] | ||||
|     pub ui_config: link_utils::GenericLinkUIConfigFormData, | ||||
|     pub enabled_payment_methods: Vec<link_utils::EnabledPaymentMethod>, | ||||
|     pub amount: String, | ||||
|     pub amount: common_utils::types::StringMajorUnit, | ||||
|     pub currency: common_enums::Currency, | ||||
| } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Sahkal Poddar
					Sahkal Poddar