コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the
 /// OBWriteInternationalStandingOrderConsentResponse4Data class.
 /// </summary>
 /// <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: 'Authorised', 'AwaitingAuthorisation',
 /// 'Consumed', 'Rejected'</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="cutOffDateTime">Specified cut-off date and time for
 /// the payment consent.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="authorisation">The authorisation type request from the
 /// TPP.</param>
 /// <param name="sCASupportData">Supporting Data provided by TPP, when
 /// requesting SCA Exemption.</param>
 public OBWriteInternationalStandingOrderConsentResponse4Data(string consentId, System.DateTimeOffset creationDateTime, OBWriteInternationalStandingOrderConsentResponse4DataStatusEnum status, System.DateTimeOffset statusUpdateDateTime, OBWriteInternationalStandingOrderConsentResponse4DataInitiation initiation, System.DateTimeOffset?cutOffDateTime = default(System.DateTimeOffset?), IList <OBWriteInternationalStandingOrderConsentResponse4DataChargesItem> charges = default(IList <OBWriteInternationalStandingOrderConsentResponse4DataChargesItem>), OBWriteInternationalStandingOrderConsentResponse4DataAuthorisation authorisation = default(OBWriteInternationalStandingOrderConsentResponse4DataAuthorisation), OBWriteInternationalStandingOrderConsentResponse4DataSCASupportData sCASupportData = default(OBWriteInternationalStandingOrderConsentResponse4DataSCASupportData))
 {
     ConsentId            = consentId;
     CreationDateTime     = creationDateTime;
     Status               = status;
     StatusUpdateDateTime = statusUpdateDateTime;
     CutOffDateTime       = cutOffDateTime;
     Charges              = charges;
     Initiation           = initiation;
     Authorisation        = authorisation;
     SCASupportData       = sCASupportData;
     CustomInit();
 }
コード例 #2
0
        internal static string ToSerializedValue(this OBWriteInternationalStandingOrderConsentResponse4DataStatusEnum value)
        {
            switch (value)
            {
            case OBWriteInternationalStandingOrderConsentResponse4DataStatusEnum.Authorised:
                return("Authorised");

            case OBWriteInternationalStandingOrderConsentResponse4DataStatusEnum.AwaitingAuthorisation:
                return("AwaitingAuthorisation");

            case OBWriteInternationalStandingOrderConsentResponse4DataStatusEnum.Consumed:
                return("Consumed");

            case OBWriteInternationalStandingOrderConsentResponse4DataStatusEnum.Rejected:
                return("Rejected");
            }
            return(null);
        }