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:
Sahkal Poddar
2024-06-11 13:27:24 +05:30
committed by GitHub
parent 4d0c89362a
commit b705757be3
27 changed files with 184 additions and 58 deletions

View File

@ -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,