public static CcvVerificationStatus ConvertCardVerificationStatus(V2.CcvVerificationStatus status) { CcvVerificationStatus ret = Mapper.Map <CcvVerificationStatus>(status); if (!Enum.IsDefined(typeof(CcvVerificationStatus), ret)) { ret = CcvVerificationStatus.Unknown; } return(ret); }
public static V1.CcvVerificationStatus ToV1(V2.CcvVerificationStatus status) { V1.CcvVerificationStatus v1result; switch (status) { case V2.CcvVerificationStatus.Match: v1result = V1.CcvVerificationStatus.Match; break; case V2.CcvVerificationStatus.NotMatch: v1result = V1.CcvVerificationStatus.Match; break; case V2.CcvVerificationStatus.NotProcessed: v1result = V1.CcvVerificationStatus.Match; break; case V2.CcvVerificationStatus.ShouldHaveBeenPresent: v1result = V1.CcvVerificationStatus.Match; break; case V2.CcvVerificationStatus.IssuerUnableToProcessRequest: v1result = V1.CcvVerificationStatus.Match; break; case V2.CcvVerificationStatus.RelyOnPreviousVerification: v1result = V1.CcvVerificationStatus.Match; break; case V2.CcvVerificationStatus.Unknown: default: v1result = V1.CcvVerificationStatus.Match; break; } return(v1result); }
public static CcvVerificationStatus ConvertCvvStatus(V2.CcvVerificationStatus status) { return(Mapper.Map <CcvVerificationStatus>(status)); }