// --------------------------------------------------------[] private static MipFeedSubmissionCompleteStatus ExtraCheckAvailabilityCompleteStatus( XmlDocument xml, MipFeedSubmissionCompleteStatus overallStatus) { var errorIdNode = xml.SelectSingleNode( "/inventoryResponse/error/errorID" ); if( errorIdNode != null ) { return MipFeedSubmissionCompleteStatus.Failure; } return overallStatus; }
// --------------------------------------------------------[] private static MipFeedSubmissionCompleteStatus ExtraCheckProductCompleteStatus( XmlDocument xml, MipFeedSubmissionCompleteStatus status) { return status; }
// --------------------------------------------------------[] private static MipFeedSubmissionCompleteStatus ExtraCheckDistributionCompleteStatus( XmlDocument xml, MipFeedSubmissionCompleteStatus overallStatus) { return overallStatus; }
// --------------------------------------------------------[] private static MipFeedSubmissionOverallStatus ToOverallStatus( MipFeedSubmissionCompleteStatus completeStatus ) { switch( completeStatus ) { case MipFeedSubmissionCompleteStatus.Unknown : return MipFeedSubmissionOverallStatus.Unknown; case MipFeedSubmissionCompleteStatus.Failure : return MipFeedSubmissionOverallStatus.Failure; case MipFeedSubmissionCompleteStatus.Success : return MipFeedSubmissionOverallStatus.Success; } return MipFeedSubmissionOverallStatus.Unknown; }