Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the
 /// OBWriteDomesticResponse4DataMultiAuthorisation class.
 /// </summary>
 /// <param name="status">Specifies the status of the authorisation flow
 /// in code form. Possible values include: 'Authorised',
 /// 'AwaitingFurtherAuthorisation', 'Rejected'</param>
 /// <param name="numberRequired">Number of authorisations required for
 /// payment order (total required at the start of the multi
 /// authorisation journey).</param>
 /// <param name="numberReceived">Number of authorisations
 /// received.</param>
 /// <param name="lastUpdateDateTime">Last date and time at the
 /// authorisation flow 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="expirationDateTime">Date and time at which the
 /// requested authorisation flow must be completed.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>
 public OBWriteDomesticResponse4DataMultiAuthorisation(OBWriteDomesticResponse4DataMultiAuthorisationStatusEnum status, int?numberRequired = default(int?), int?numberReceived = default(int?), System.DateTimeOffset?lastUpdateDateTime = default(System.DateTimeOffset?), System.DateTimeOffset?expirationDateTime = default(System.DateTimeOffset?))
 {
     Status             = status;
     NumberRequired     = numberRequired;
     NumberReceived     = numberReceived;
     LastUpdateDateTime = lastUpdateDateTime;
     ExpirationDateTime = expirationDateTime;
     CustomInit();
 }
Ejemplo n.º 2
0
        internal static string ToSerializedValue(this OBWriteDomesticResponse4DataMultiAuthorisationStatusEnum value)
        {
            switch (value)
            {
            case OBWriteDomesticResponse4DataMultiAuthorisationStatusEnum.Authorised:
                return("Authorised");

            case OBWriteDomesticResponse4DataMultiAuthorisationStatusEnum.AwaitingFurtherAuthorisation:
                return("AwaitingFurtherAuthorisation");

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