Example #1
0
 /// <summary>
 /// Initializes a new instance of the
 /// OBWriteInternationalScheduledResponse5Data class.
 /// </summary>
 /// <param name="internationalScheduledPaymentId">OB: Unique
 /// identification as assigned by the ASPSP to uniquely identify the
 /// international scheduled 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
 /// international 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="exchangeRateInformation">Further detailed information
 /// on the exchange rate that has been used in the payment
 /// transaction.</param>
 /// <param name="multiAuthorisation">The multiple authorisation flow
 /// response from the ASPSP.</param>
 public OBWriteInternationalScheduledResponse5Data(string internationalScheduledPaymentId, string consentId, System.DateTimeOffset creationDateTime, OBWriteInternationalScheduledResponse5DataStatusEnum status, System.DateTimeOffset statusUpdateDateTime, OBWriteInternationalScheduledResponse5DataInitiation initiation, System.DateTimeOffset? expectedExecutionDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? expectedSettlementDateTime = default(System.DateTimeOffset?), OBWriteInternationalScheduledResponse5DataRefund refund = default(OBWriteInternationalScheduledResponse5DataRefund), IList<OBWriteInternationalScheduledResponse5DataChargesItem> charges = default(IList<OBWriteInternationalScheduledResponse5DataChargesItem>), OBWriteInternationalScheduledResponse5DataExchangeRateInformation exchangeRateInformation = default(OBWriteInternationalScheduledResponse5DataExchangeRateInformation), OBWriteInternationalScheduledResponse5DataMultiAuthorisation multiAuthorisation = default(OBWriteInternationalScheduledResponse5DataMultiAuthorisation))
 {
     InternationalScheduledPaymentId = internationalScheduledPaymentId;
     ConsentId = consentId;
     CreationDateTime = creationDateTime;
     Status = status;
     StatusUpdateDateTime = statusUpdateDateTime;
     ExpectedExecutionDateTime = expectedExecutionDateTime;
     ExpectedSettlementDateTime = expectedSettlementDateTime;
     Refund = refund;
     Charges = charges;
     ExchangeRateInformation = exchangeRateInformation;
     Initiation = initiation;
     MultiAuthorisation = multiAuthorisation;
     CustomInit();
 }
Example #2
0
        internal static string ToSerializedValue(this OBWriteInternationalScheduledResponse5DataStatusEnum value)
        {
            switch (value)
            {
            case OBWriteInternationalScheduledResponse5DataStatusEnum.Cancelled:
                return("Cancelled");

            case OBWriteInternationalScheduledResponse5DataStatusEnum.InitiationCompleted:
                return("InitiationCompleted");

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

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