Fix poll model

This commit is contained in:
Nicholas Rempel 2021-12-02 16:00:18 -08:00 committed by masalachai
parent edb2a2627d
commit c9135754e5
2 changed files with 18 additions and 18 deletions

View File

@ -103,28 +103,28 @@ pub struct MessagePollRequest {
#[derive(Serialize, Deserialize, Debug)] #[derive(Serialize, Deserialize, Debug)]
pub struct MessageDomainTransferData { pub struct MessageDomainTransferData {
/// XML namespace for message response data /// XML namespace for message response data
#[serde(rename = "xmlns:obj", alias = "xmlns")] #[serde(rename = "xmlns:domain", alias = "xmlns")]
xmlns: String, xmlns: String,
/// The name of the domain under transfer /// The name of the domain under transfer
#[serde(rename = "obj:name", alias = "name")] #[serde(rename = "domain:name", alias = "name")]
pub name: StringValue, pub name: StringValue,
/// The domain transfer status /// The domain transfer status
#[serde(rename = "obj:trStatus", alias = "trStatus")] #[serde(rename = "domain:trStatus", alias = "trStatus")]
pub transfer_status: StringValue, pub transfer_status: StringValue,
/// The epp user who requested the transfer /// The epp user who requested the transfer
#[serde(rename = "obj:reID", alias = "reID")] #[serde(rename = "domain:reID", alias = "reID")]
pub requester_id: StringValue, pub requester_id: StringValue,
/// The date of the transfer request /// The date of the transfer request
#[serde(rename = "obj:reDate", alias = "reDate")] #[serde(rename = "domain:reDate", alias = "reDate")]
pub requested_at: StringValue, pub requested_at: StringValue,
/// The epp user who should acknowledge the transfer request /// The epp user who should acknowledge the transfer request
#[serde(rename = "obj:acID", alias = "acID")] #[serde(rename = "domain:acID", alias = "acID")]
pub ack_id: StringValue, pub ack_id: StringValue,
/// The date by which the transfer request should be acknowledged /// The date by which the transfer request should be acknowledged
#[serde(rename = "obj:acDate", alias = "acDate")] #[serde(rename = "domain:acDate", alias = "acDate")]
pub ack_by: StringValue, pub ack_by: StringValue,
/// The domain expiry date /// The domain expiry date
#[serde(rename = "obj:exDate", alias = "exDate")] #[serde(rename = "domain:exDate", alias = "exDate")]
pub expiring_at: StringValue, pub expiring_at: StringValue,
} }
@ -132,6 +132,6 @@ pub struct MessageDomainTransferData {
#[derive(Serialize, Deserialize, Debug)] #[derive(Serialize, Deserialize, Debug)]
pub struct MessagePollResponse { pub struct MessagePollResponse {
/// Data under the <trnData> tag /// Data under the <trnData> tag
#[serde(rename = "obj:trnData", alias = "trnData")] #[serde(rename = "domain:trnData", alias = "trnData")]
pub message_data: MessageDomainTransferData, pub message_data: MessageDomainTransferData,
} }

View File

@ -9,15 +9,15 @@
<msg>Transfer requested.</msg> <msg>Transfer requested.</msg>
</msgQ> </msgQ>
<resData> <resData>
<obj:trnData xmlns:obj="urn:ietf:params:xml:ns:obj-1.0"> <domain:trnData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<obj:name>eppdev-transfer.com</obj:name> <domain:name>eppdev-transfer.com</domain:name>
<obj:trStatus>pending</obj:trStatus> <domain:trStatus>pending</domain:trStatus>
<obj:reID>eppdev</obj:reID> <domain:reID>eppdev</domain:reID>
<obj:reDate>2021-07-23T15:31:21.0Z</obj:reDate> <domain:reDate>2021-07-23T15:31:21.0Z</domain:reDate>
<obj:acID>ClientY</obj:acID> <domain:acID>ClientY</domain:acID>
<obj:acDate>2021-07-28T15:31:21.0Z</obj:acDate> <domain:acDate>2021-07-28T15:31:21.0Z</domain:acDate>
<obj:exDate>2022-07-02T14:53:19.0Z</obj:exDate> <domain:exDate>2022-07-02T14:53:19.0Z</domain:exDate>
</obj:trnData> </domain:trnData>
</resData> </resData>
<trID> <trID>
<clTRID>cltrid:1626454866</clTRID> <clTRID>cltrid:1626454866</clTRID>