diff --git a/epp-client/src/domain/transfer.rs b/epp-client/src/domain/transfer.rs index e9660c4..39f5edc 100644 --- a/epp-client/src/domain/transfer.rs +++ b/epp-client/src/domain/transfer.rs @@ -529,7 +529,7 @@ pub struct DomainTransferResponseData { pub ack_by: StringValue, /// The domain expiry date #[serde(rename = "exDate")] - pub expiring_at: StringValue, + pub expiring_at: Option, } /// Type that represents the <resData> tag for domain transfer response diff --git a/epp-client/src/tests/de.rs b/epp-client/src/tests/de.rs index ee575b3..fc95649 100644 --- a/epp-client/src/tests/de.rs +++ b/epp-client/src/tests/de.rs @@ -393,10 +393,10 @@ mod response { assert_eq!(result.transfer_data.ack_id, "ClientY".into()); assert_eq!(result.transfer_data.ack_by, "2021-07-28T15:31:21.0Z".into()); assert_eq!( - result.transfer_data.expiring_at, + *result.transfer_data.expiring_at.as_ref().unwrap(), "2022-07-02T14:53:19.0Z".into() ); - assert_eq!(object.tr_ids.client_tr_id.unwrap(), CLTRID.into()); + assert_eq!(*object.tr_ids.client_tr_id.as_ref().unwrap(), CLTRID.into()); assert_eq!(object.tr_ids.server_tr_id, SVTRID.into()); } @@ -456,7 +456,7 @@ mod response { assert_eq!(result.transfer_data.ack_id, "ClientY".into()); assert_eq!(result.transfer_data.ack_by, "2021-07-28T15:31:21.0Z".into()); assert_eq!( - result.transfer_data.expiring_at, + *result.transfer_data.expiring_at.as_ref().unwrap(), "2022-07-02T14:53:19.0Z".into() ); assert_eq!(object.tr_ids.client_tr_id.unwrap(), CLTRID.into());