internal static string ToSerializedValue(this OBWriteInternationalScheduledConsent5DataAuthorisationAuthorisationTypeEnum value) { switch (value) { case OBWriteInternationalScheduledConsent5DataAuthorisationAuthorisationTypeEnum.Any: return("Any"); case OBWriteInternationalScheduledConsent5DataAuthorisationAuthorisationTypeEnum.Single: return("Single"); } return(null); }
/// <summary> /// Initializes a new instance of the /// OBWriteInternationalScheduledConsent5DataAuthorisation 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 OBWriteInternationalScheduledConsent5DataAuthorisation(OBWriteInternationalScheduledConsent5DataAuthorisationAuthorisationTypeEnum authorisationType, System.DateTimeOffset?completionDateTime = default(System.DateTimeOffset?)) { AuthorisationType = authorisationType; CompletionDateTime = completionDateTime; CustomInit(); }