/// <summary> /// Initializes a new instance of the /// OBWriteDomesticScheduledResponse4Data class. /// </summary> /// <param name="domesticScheduledPaymentId">OB: Unique identification /// as assigned by the ASPSP to uniquely identify the domestic schedule /// payment resource.</param> /// <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 message /// 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 the payment order /// resource. Possible values include: 'Cancelled', /// 'InitiationCompleted', 'InitiationFailed', /// 'InitiationPending'</param> /// <param name="statusUpdateDateTime">Date and time at which the /// 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 from the debtor account to a creditor for a single scheduled /// domestic payment.</param> /// <param name="expectedExecutionDateTime">Expected execution date and /// time for the payment resource.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="expectedSettlementDateTime">Expected settlement date /// and time for the payment resource.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="refund">Unambiguous identification of the refund /// account to which a refund will be made as a result of the /// transaction.</param> /// <param name="multiAuthorisation">The multiple authorisation flow /// response from the ASPSP.</param> public OBWriteDomesticScheduledResponse4Data(string domesticScheduledPaymentId, string consentId, System.DateTimeOffset creationDateTime, OBWriteDomesticScheduledResponse4DataStatusEnum status, System.DateTimeOffset statusUpdateDateTime, OBWriteDomesticScheduledResponse4DataInitiation initiation, System.DateTimeOffset?expectedExecutionDateTime = default(System.DateTimeOffset?), System.DateTimeOffset?expectedSettlementDateTime = default(System.DateTimeOffset?), OBWriteDomesticScheduledResponse4DataRefund refund = default(OBWriteDomesticScheduledResponse4DataRefund), IList <OBWriteDomesticScheduledResponse4DataChargesItem> charges = default(IList <OBWriteDomesticScheduledResponse4DataChargesItem>), OBWriteDomesticScheduledResponse4DataMultiAuthorisation multiAuthorisation = default(OBWriteDomesticScheduledResponse4DataMultiAuthorisation)) { DomesticScheduledPaymentId = domesticScheduledPaymentId; ConsentId = consentId; CreationDateTime = creationDateTime; Status = status; StatusUpdateDateTime = statusUpdateDateTime; ExpectedExecutionDateTime = expectedExecutionDateTime; ExpectedSettlementDateTime = expectedSettlementDateTime; Refund = refund; Charges = charges; Initiation = initiation; MultiAuthorisation = multiAuthorisation; CustomInit(); }
internal static string ToSerializedValue(this OBWriteDomesticScheduledResponse4DataStatusEnum value) { switch (value) { case OBWriteDomesticScheduledResponse4DataStatusEnum.Cancelled: return("Cancelled"); case OBWriteDomesticScheduledResponse4DataStatusEnum.InitiationCompleted: return("InitiationCompleted"); case OBWriteDomesticScheduledResponse4DataStatusEnum.InitiationFailed: return("InitiationFailed"); case OBWriteDomesticScheduledResponse4DataStatusEnum.InitiationPending: return("InitiationPending"); } return(null); }