@@ -161,15 +161,25 @@ pub struct Capture {
161
161
#[ derive( Debug , Serialize , Deserialize ) ]
162
162
#[ serde( rename_all = "camelCase" ) ]
163
163
pub struct VantivAddressData {
164
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
164
165
pub name : Option < Secret < String > > ,
166
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
165
167
pub address_line1 : Option < Secret < String > > ,
168
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
166
169
pub address_line2 : Option < Secret < String > > ,
170
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
167
171
pub address_line3 : Option < Secret < String > > ,
172
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
168
173
pub city : Option < String > ,
174
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
169
175
pub state : Option < Secret < String > > ,
176
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
170
177
pub zip : Option < Secret < String > > ,
178
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
171
179
pub email : Option < common_utils:: pii:: Email > ,
180
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
172
181
pub country : Option < common_enums:: CountryAlpha2 > ,
182
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
173
183
pub phone : Option < Secret < String > > ,
174
184
}
175
185
@@ -706,7 +716,8 @@ fn get_enhanced_data(
706
716
707
717
let tax_exempt = match l2_l3_data. tax_status {
708
718
Some ( common_enums:: TaxStatus :: Exempt ) => Some ( true ) ,
709
- _ => Some ( false ) ,
719
+ Some ( common_enums:: TaxStatus :: Taxable ) => Some ( false ) ,
720
+ None => None ,
710
721
} ;
711
722
712
723
let enhanced_data = EnhancedData {
0 commit comments