Use full definitions for all transfer response models

This commit is contained in:
Nicholas Rempel 2021-12-02 17:05:28 -08:00 committed by masalachai
parent a4d6cf1c57
commit 6d1c749b67
4 changed files with 37 additions and 7 deletions

View File

@ -5,7 +5,6 @@ use epp_client_macros::*;
use super::XMLNS;
use crate::common::{DomainAuthInfo, ElementName, NoExtension, Period, StringValue};
use crate::request::{EppExtension, EppRequest};
use crate::response::ResponseStatus;
use serde::{Deserialize, Serialize};
#[derive(Debug)]
@ -31,7 +30,7 @@ pub struct DomainTransferApprove<E> {
impl<E: EppExtension> EppRequest<E> for DomainTransferApprove<E> {
type Input = DomainTransferReq;
type Output = ResponseStatus;
type Output = DomainTransferResponse;
fn into_parts(self) -> (Self::Input, Option<E>) {
(self.request, self.extension)
@ -46,7 +45,7 @@ pub struct DomainTransferReject<E> {
impl<E: EppExtension> EppRequest<E> for DomainTransferReject<E> {
type Input = DomainTransferReq;
type Output = ResponseStatus;
type Output = DomainTransferResponse;
fn into_parts(self) -> (Self::Input, Option<E>) {
(self.request, self.extension)
@ -61,7 +60,7 @@ pub struct DomainTransferCancel<E> {
impl<E: EppExtension> EppRequest<E> for DomainTransferCancel<E> {
type Input = DomainTransferReq;
type Output = ResponseStatus;
type Output = DomainTransferResponse;
fn into_parts(self) -> (Self::Input, Option<E>) {
(self.request, self.extension)

View File

@ -1,9 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<response>
<result code="1000">
<msg>Command completed successfully</msg>
</result>
<resData>
<domain:trnData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>eppdev.com</domain:name>
<domain:trStatus>clientApproved</domain:trStatus>
<domain:reID>29100134</domain:reID>
<domain:reDate>2021-12-02T23:55:51Z</domain:reDate>
<domain:acID>eppac</domain:acID>
<domain:acDate>2021-12-02T23:55:51Z</domain:acDate>
<domain:exDate>2026-12-02T23:55:51Z</domain:exDate>
</domain:trnData>
</resData>
<trID>
<clTRID>cltrid:1626454866</clTRID>
<svTRID>RO-6879-1627224678242975</svTRID>

View File

@ -1,9 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<response>
<result code="1000">
<msg>Command completed successfully</msg>
</result>
<resData>
<domain:trnData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>eppdev-transfer.com</domain:name>
<domain:trStatus>clientCancelled</domain:trStatus>
<domain:reID>29000333</domain:reID>
<domain:reDate>2021-12-03T21:44:35Z</domain:reDate>
<domain:acID>ClientY</domain:acID>
<domain:acDate>2021-12-03T21:44:35Z</domain:acDate>
</domain:trnData>
</resData>
<trID>
<clTRID>cltrid:1626454866</clTRID>
<svTRID>RO-6879-1627224678242975</svTRID>

View File

@ -1,9 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<response>
<result code="1000">
<msg>Command completed successfully</msg>
</result>
<resData>
<domain:trnData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>eppdev.com</domain:name>
<domain:trStatus>clientRejected</domain:trStatus>
<domain:reID>29000333</domain:reID>
<domain:reDate>2021-12-03T19:13:51Z</domain:reDate>
<domain:acID>eppac</domain:acID>
<domain:acDate>2021-12-03T19:13:51Z</domain:acDate>
</domain:trnData>
</resData>
<trID>
<clTRID>cltrid:1626454866</clTRID>
<svTRID>RO-6879-1627224678242975</svTRID>