mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
refactor(core): populate shipping_cost in payment response (#6351)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -4093,6 +4093,10 @@ pub struct PaymentsResponse {
|
||||
#[schema(value_type = i64, example = 6540)]
|
||||
pub net_amount: MinorUnit,
|
||||
|
||||
/// The shipping cost for the payment.
|
||||
#[schema(value_type = Option<i64>, example = 6540)]
|
||||
pub shipping_cost: Option<MinorUnit>,
|
||||
|
||||
/// The maximum amount that could be captured from the payment
|
||||
#[schema(value_type = i64, minimum = 100, example = 6540)]
|
||||
pub amount_capturable: MinorUnit,
|
||||
|
||||
Reference in New Issue
Block a user