Make transfer exDate optional

This commit is contained in:
Nicholas Rempel 2021-12-03 10:26:34 -08:00 committed by masalachai
parent fe47e27c99
commit a4d6cf1c57
2 changed files with 4 additions and 4 deletions

View File

@ -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<StringValue>,
}
/// Type that represents the &lt;resData&gt; tag for domain transfer response

View File

@ -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());