/// <summary> /// Initializes a new instance of the OBWriteFileConsentResponse3Data /// class. /// </summary> /// <param name="consentId">OB: Unique identification as assigned by /// the ASPSP to uniquely identify the consent resource.</param> /// <param name="creationDateTime">Date and time at which the resource /// was created.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> /// <param name="status">Specifies the status of consent resource in /// code form. Possible values include: 'Authorised', /// 'AwaitingAuthorisation', 'AwaitingUpload', 'Consumed', /// 'Rejected'</param> /// <param name="statusUpdateDateTime">Date and time at which the /// consent resource status was updated.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> /// <param name="initiation">The Initiation payload is sent by the /// initiating party to the ASPSP. It is used to request movement of /// funds using a payment file.</param> /// <param name="cutOffDateTime">Specified cut-off date and time for /// the payment consent.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> /// <param name="authorisation">The authorisation type request from the /// TPP.</param> /// <param name="sCASupportData">Supporting Data provided by TPP, when /// requesting SCA Exemption.</param> public OBWriteFileConsentResponse3Data(string consentId, System.DateTimeOffset creationDateTime, OBWriteFileConsentResponse3DataStatusEnum status, System.DateTimeOffset statusUpdateDateTime, OBWriteFileConsentResponse3DataInitiation initiation, System.DateTimeOffset?cutOffDateTime = default(System.DateTimeOffset?), IList <OBWriteFileConsentResponse3DataChargesItem> charges = default(IList <OBWriteFileConsentResponse3DataChargesItem>), OBWriteFileConsentResponse3DataAuthorisation authorisation = default(OBWriteFileConsentResponse3DataAuthorisation), OBWriteFileConsentResponse3DataSCASupportData sCASupportData = default(OBWriteFileConsentResponse3DataSCASupportData)) { ConsentId = consentId; CreationDateTime = creationDateTime; Status = status; StatusUpdateDateTime = statusUpdateDateTime; CutOffDateTime = cutOffDateTime; Charges = charges; Initiation = initiation; Authorisation = authorisation; SCASupportData = sCASupportData; CustomInit(); }
internal static string ToSerializedValue(this OBWriteFileConsentResponse3DataStatusEnum value) { switch (value) { case OBWriteFileConsentResponse3DataStatusEnum.Authorised: return("Authorised"); case OBWriteFileConsentResponse3DataStatusEnum.AwaitingAuthorisation: return("AwaitingAuthorisation"); case OBWriteFileConsentResponse3DataStatusEnum.AwaitingUpload: return("AwaitingUpload"); case OBWriteFileConsentResponse3DataStatusEnum.Consumed: return("Consumed"); case OBWriteFileConsentResponse3DataStatusEnum.Rejected: return("Rejected"); } return(null); }