Пример #1
0
        internal static string ToSerializedValue(this OBWriteDomesticConsentResponse5DataAuthorisationAuthorisationTypeEnum value)
        {
            switch (value)
            {
            case OBWriteDomesticConsentResponse5DataAuthorisationAuthorisationTypeEnum.Any:
                return("Any");

            case OBWriteDomesticConsentResponse5DataAuthorisationAuthorisationTypeEnum.Single:
                return("Single");
            }
            return(null);
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the
 /// OBWriteDomesticConsentResponse5DataAuthorisation class.
 /// </summary>
 /// <param name="authorisationType">Type of authorisation flow
 /// requested. Possible values include: 'Any', 'Single'</param>
 /// <param name="completionDateTime">Date and time at which the
 /// requested authorisation flow must be completed.All dates in the
 /// JSON payloads are represented in ISO 8601 date-time format.
 /// All date-time fields in responses must include the timezone. An
 /// example is below:
 /// 2017-04-05T10:43:07+00:00</param>
 public OBWriteDomesticConsentResponse5DataAuthorisation(OBWriteDomesticConsentResponse5DataAuthorisationAuthorisationTypeEnum authorisationType, System.DateTimeOffset?completionDateTime = default(System.DateTimeOffset?))
 {
     AuthorisationType  = authorisationType;
     CompletionDateTime = completionDateTime;
     CustomInit();
 }