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:
Swangi Kumari
2024-10-18 18:49:04 +05:30
committed by GitHub
parent 3cf6210176
commit 368e6b5310
6 changed files with 38 additions and 0 deletions

View File

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