Пример #1
0
 /// <summary>
 /// Initializes a new instance of the OBWriteFileResponse2Data class.
 /// </summary>
 /// <param name="filePaymentId">OB: Unique identification as assigned
 /// by the ASPSP to uniquely identify the file 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: '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 using a payment file.</param>
 /// <param name="multiAuthorisation">The multiple authorisation flow
 /// response from the ASPSP.</param>
 public OBWriteFileResponse2Data(string filePaymentId, string consentId, System.DateTimeOffset creationDateTime, OBWriteFileResponse2DataStatusEnum status, System.DateTimeOffset statusUpdateDateTime, OBWriteFileResponse2DataInitiation initiation, IList <OBWriteFileResponse2DataChargesItem> charges = default(IList <OBWriteFileResponse2DataChargesItem>), OBWriteFileResponse2DataMultiAuthorisation multiAuthorisation = default(OBWriteFileResponse2DataMultiAuthorisation))
 {
     FilePaymentId        = filePaymentId;
     ConsentId            = consentId;
     CreationDateTime     = creationDateTime;
     Status               = status;
     StatusUpdateDateTime = statusUpdateDateTime;
     Charges              = charges;
     Initiation           = initiation;
     MultiAuthorisation   = multiAuthorisation;
     CustomInit();
 }
Пример #2
0
        internal static string ToSerializedValue(this OBWriteFileResponse2DataStatusEnum value)
        {
            switch (value)
            {
            case OBWriteFileResponse2DataStatusEnum.InitiationCompleted:
                return("InitiationCompleted");

            case OBWriteFileResponse2DataStatusEnum.InitiationFailed:
                return("InitiationFailed");

            case OBWriteFileResponse2DataStatusEnum.InitiationPending:
                return("InitiationPending");
            }
            return(null);
        }