Skip to content

Commit 2f72ec6

Browse files
committed
fix/format
1 parent 8d4d8cf commit 2f72ec6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

crates/api_models/src/payments.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,7 @@ pub struct PaymentsRequest {
11961196
pub payment_channel: Option<common_enums::PaymentChannel>,
11971197

11981198
/// Your tax status for this order or transaction.
1199+
#[schema(value_type = Option<TaxStatus>)]
11991200
pub tax_status: Option<api_enums::TaxStatus>,
12001201

12011202
/// Total amount of the discount you have applied to the order or transaction.

crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,10 @@ fn get_enhanced_data(
687687
.enumerate()
688688
.map(|(i, order)| LineItemData {
689689
item_sequence_number: Some((i + 1).to_string()),
690-
item_description: order.description.clone(),
690+
item_description: order
691+
.description
692+
.as_ref()
693+
.map(|desc| desc.chars().take(19).collect::<String>()),
691694
product_code: order.product_id.clone(),
692695
quantity: Some(order.quantity.to_string().clone()),
693696
unit_of_measure: order.unit_of_measure.clone(),

0 commit comments

Comments
 (0)