コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the
 /// OBWriteDomesticStandingOrderResponse5Data class.
 /// </summary>
 /// <param name="domesticStandingOrderId">OB: Unique identification as
 /// assigned by the ASPSP to uniquely identify the domestic 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 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 domestic standing
 /// order.</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 OBWriteDomesticStandingOrderResponse5Data(string domesticStandingOrderId, string consentId, System.DateTimeOffset creationDateTime, OBWriteDomesticStandingOrderResponse5DataStatusEnum status, System.DateTimeOffset statusUpdateDateTime, OBWriteDomesticStandingOrderResponse5DataInitiation initiation, OBWriteDomesticStandingOrderResponse5DataRefund refund = default(OBWriteDomesticStandingOrderResponse5DataRefund), IList <OBWriteDomesticStandingOrderResponse5DataChargesItem> charges = default(IList <OBWriteDomesticStandingOrderResponse5DataChargesItem>), OBWriteDomesticStandingOrderResponse5DataMultiAuthorisation multiAuthorisation = default(OBWriteDomesticStandingOrderResponse5DataMultiAuthorisation))
 {
     DomesticStandingOrderId = domesticStandingOrderId;
     ConsentId            = consentId;
     CreationDateTime     = creationDateTime;
     Status               = status;
     StatusUpdateDateTime = statusUpdateDateTime;
     Refund               = refund;
     Charges              = charges;
     Initiation           = initiation;
     MultiAuthorisation   = multiAuthorisation;
     CustomInit();
 }
コード例 #2
0
        internal static string ToSerializedValue(this OBWriteDomesticStandingOrderResponse5DataStatusEnum value)
        {
            switch (value)
            {
            case OBWriteDomesticStandingOrderResponse5DataStatusEnum.Cancelled:
                return("Cancelled");

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

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

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