Example #1
0
 /// <summary>
 /// Initializes a new instance of the
 /// OBWriteInternationalConsentResponse5Data 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 consent 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 a single
 /// international payment.</param>
 /// <param name="readRefundAccount">Specifies to share the refund
 /// account details with PISP. Possible values include: 'No',
 /// 'Yes'</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="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="authorisation">The authorisation type request from the
 /// TPP.</param>
 /// <param name="sCASupportData">Supporting Data provided by TPP, when
 /// requesting SCA Exemption.</param>
 public OBWriteInternationalConsentResponse5Data(string consentId, System.DateTimeOffset creationDateTime, OBWriteInternationalConsentResponse5DataStatusEnum status, System.DateTimeOffset statusUpdateDateTime, OBWriteInternationalConsentResponse5DataInitiation initiation, OBWriteInternationalConsentResponse5DataReadRefundAccountEnum?readRefundAccount = default(OBWriteInternationalConsentResponse5DataReadRefundAccountEnum?), System.DateTimeOffset?cutOffDateTime = default(System.DateTimeOffset?), System.DateTimeOffset?expectedExecutionDateTime = default(System.DateTimeOffset?), System.DateTimeOffset?expectedSettlementDateTime = default(System.DateTimeOffset?), IList <OBWriteInternationalConsentResponse5DataChargesItem> charges = default(IList <OBWriteInternationalConsentResponse5DataChargesItem>), OBWriteInternationalConsentResponse5DataExchangeRateInformation exchangeRateInformation = default(OBWriteInternationalConsentResponse5DataExchangeRateInformation), OBWriteInternationalConsentResponse5DataAuthorisation authorisation = default(OBWriteInternationalConsentResponse5DataAuthorisation), OBWriteInternationalConsentResponse5DataSCASupportData sCASupportData = default(OBWriteInternationalConsentResponse5DataSCASupportData))
 {
     ConsentId                  = consentId;
     CreationDateTime           = creationDateTime;
     Status                     = status;
     StatusUpdateDateTime       = statusUpdateDateTime;
     ReadRefundAccount          = readRefundAccount;
     CutOffDateTime             = cutOffDateTime;
     ExpectedExecutionDateTime  = expectedExecutionDateTime;
     ExpectedSettlementDateTime = expectedSettlementDateTime;
     Charges                    = charges;
     ExchangeRateInformation    = exchangeRateInformation;
     Initiation                 = initiation;
     Authorisation              = authorisation;
     SCASupportData             = sCASupportData;
     CustomInit();
 }
Example #2
0
        internal static string ToSerializedValue(this OBWriteInternationalConsentResponse5DataStatusEnum value)
        {
            switch (value)
            {
            case OBWriteInternationalConsentResponse5DataStatusEnum.Authorised:
                return("Authorised");

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

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

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