@@ -192,6 +192,7 @@ pub struct Sale {
192
192
pub id : String ,
193
193
#[ serde( rename = "@reportGroup" ) ]
194
194
pub report_group : String ,
195
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
195
196
#[ serde( rename = "@customerId" ) ]
196
197
pub customer_id : Option < String > ,
197
198
pub order_id : String ,
@@ -212,6 +213,7 @@ pub struct RefundRequest {
212
213
pub report_group : String ,
213
214
#[ serde( rename = "@id" ) ]
214
215
pub id : String ,
216
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
215
217
#[ serde( rename = "@customerId" ) ]
216
218
pub customer_id : Option < String > ,
217
219
pub cnp_txn_id : String ,
@@ -695,6 +697,7 @@ pub struct CaptureResponse {
695
697
pub id : String ,
696
698
#[ serde( rename = "@reportGroup" ) ]
697
699
pub report_group : String ,
700
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
698
701
#[ serde( rename = "@customerId" ) ]
699
702
pub customer_id : Option < String > ,
700
703
#[ serde( rename = "cnpTxnId" ) ]
@@ -719,6 +722,7 @@ pub struct PaymentResponse {
719
722
pub id : String ,
720
723
#[ serde( rename = "@reportGroup" ) ]
721
724
pub report_group : String ,
725
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
722
726
#[ serde( rename = "@customerId" ) ]
723
727
pub customer_id : Option < String > ,
724
728
pub cnp_txn_id : String ,
@@ -738,6 +742,7 @@ pub struct AuthReversalResponse {
738
742
pub id : String ,
739
743
#[ serde( rename = "@reportGroup" ) ]
740
744
pub report_group : String ,
745
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
741
746
#[ serde( rename = "@customerId" ) ]
742
747
pub customer_id : Option < String > ,
743
748
pub cnp_txn_id : String ,
0 commit comments