mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
refactor(connector): changed amount to minor Unit for stripe (#4786)
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:
@ -512,7 +512,8 @@ pub struct PaymentChargeRequest {
|
||||
pub charge_type: api_enums::PaymentChargeType,
|
||||
|
||||
/// Platform fees to be collected on the payment
|
||||
pub fees: i64,
|
||||
#[schema(value_type = i64, example = 6540)]
|
||||
pub fees: MinorUnit,
|
||||
|
||||
/// Identifier for the reseller's account to send the funds to
|
||||
pub transfer_account_id: String,
|
||||
@ -3547,7 +3548,8 @@ pub struct PaymentChargeResponse {
|
||||
pub charge_type: api_enums::PaymentChargeType,
|
||||
|
||||
/// Platform fees collected on the payment
|
||||
pub application_fees: i64,
|
||||
#[schema(value_type = i64, example = 6540)]
|
||||
pub application_fees: MinorUnit,
|
||||
|
||||
/// Identifier for the reseller's account where the funds were transferred
|
||||
pub transfer_account_id: String,
|
||||
|
||||
Reference in New Issue
Block a user