File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
hyperswitch_connectors/src/connectors/worldpayvantiv Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1196,6 +1196,7 @@ pub struct PaymentsRequest {
1196
1196
pub payment_channel : Option < common_enums:: PaymentChannel > ,
1197
1197
1198
1198
/// Your tax status for this order or transaction.
1199
+ #[ schema( value_type = Option <TaxStatus >) ]
1199
1200
pub tax_status : Option < api_enums:: TaxStatus > ,
1200
1201
1201
1202
/// Total amount of the discount you have applied to the order or transaction.
Original file line number Diff line number Diff line change @@ -687,7 +687,10 @@ fn get_enhanced_data(
687
687
. enumerate ( )
688
688
. map ( |( i, order) | LineItemData {
689
689
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 > ( ) ) ,
691
694
product_code : order. product_id . clone ( ) ,
692
695
quantity : Some ( order. quantity . to_string ( ) . clone ( ) ) ,
693
696
unit_of_measure : order. unit_of_measure . clone ( ) ,
You can’t perform that action at this time.
0 commit comments