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)]
pub struct MessageDomainTransferData {
/// XML namespace for message response data
#[serde(rename = "xmlns:obj", alias = "xmlns")]
#[serde(rename = "xmlns:domain", alias = "xmlns")]
xmlns: String,
/// The name of the domain under transfer
#[serde(rename = "obj:name", alias = "name")]
#[serde(rename = "domain:name", alias = "name")]
pub name: StringValue,
/// The domain transfer status
#[serde(rename = "obj:trStatus", alias = "trStatus")]
#[serde(rename = "domain:trStatus", alias = "trStatus")]
pub transfer_status: StringValue,
/// The epp user who requested the transfer
#[serde(rename = "obj:reID", alias = "reID")]
#[serde(rename = "domain:reID", alias = "reID")]
pub requester_id: StringValue,
/// The date of the transfer request
#[serde(rename = "obj:reDate", alias = "reDate")]
#[serde(rename = "domain:reDate", alias = "reDate")]
pub requested_at: StringValue,
/// 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,
/// 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,
/// The domain expiry date
#[serde(rename = "obj:exDate", alias = "exDate")]
#[serde(rename = "domain:exDate", alias = "exDate")]
pub expiring_at: StringValue,
}
@ -132,6 +132,6 @@ pub struct MessageDomainTransferData {
#[derive(Serialize, Deserialize, Debug)]
pub struct MessagePollResponse {
/// Data under the <trnData> tag
#[serde(rename = "obj:trnData", alias = "trnData")]
#[serde(rename = "domain:trnData", alias = "trnData")]
pub message_data: MessageDomainTransferData,
}

View File

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