Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the
 /// OBWriteInternationalStandingOrderResponse4Data class.
 /// </summary>
 /// <param name="internationalStandingOrderId">OB: Unique
 /// identification as assigned by the ASPSP to uniquely identify the
 /// international standing order 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 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 resource in code form.
 /// 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 an international
 /// standing order.</param>
 /// <param name="multiAuthorisation">The multiple authorisation flow
 /// response from the ASPSP.</param>
 public OBWriteInternationalStandingOrderResponse4Data(string internationalStandingOrderId, string consentId, System.DateTimeOffset creationDateTime, OBWriteInternationalStandingOrderResponse4DataStatusEnum status, System.DateTimeOffset statusUpdateDateTime, OBWriteInternationalStandingOrderResponse4DataInitiation initiation, IList <OBWriteInternationalStandingOrderResponse4DataChargesItem> charges = default(IList <OBWriteInternationalStandingOrderResponse4DataChargesItem>), OBWriteInternationalStandingOrderResponse4DataMultiAuthorisation multiAuthorisation = default(OBWriteInternationalStandingOrderResponse4DataMultiAuthorisation))
 {
     InternationalStandingOrderId = internationalStandingOrderId;
     ConsentId            = consentId;
     CreationDateTime     = creationDateTime;
     Status               = status;
     StatusUpdateDateTime = statusUpdateDateTime;
     Charges              = charges;
     Initiation           = initiation;
     MultiAuthorisation   = multiAuthorisation;
     CustomInit();
 }
Beispiel #2
0
        internal static string ToSerializedValue(this OBWriteInternationalStandingOrderResponse4DataStatusEnum value)
        {
            switch (value)
            {
            case OBWriteInternationalStandingOrderResponse4DataStatusEnum.Cancelled:
                return("Cancelled");

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

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

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