Skip to content

Commit aa29c5d

Browse files
fix: set default for optional udfs in PaymentInfo struct (#185)
1 parent 7013c24 commit aa29c5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/decider/gatewaydecider/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ pub struct PaymentInfo {
968968
currency: Currency,
969969
country: Option<CountryISO2>,
970970
customer_id: Option<ETCu::CustomerId>,
971-
#[serde(deserialize_with = "deserialize_optional_udfs_to_hashmap")]
971+
#[serde(default, deserialize_with = "deserialize_optional_udfs_to_hashmap")]
972972
udfs: Option<UDFs>,
973973
preferred_gateway: Option<String>,
974974
payment_type: TxnObjectType,

0 commit comments

Comments
 (0)