/// <summary> /// Initializes a new instance of the <see cref="OBWriteDomestic2Data" /> class. /// </summary> /// <param name="consentId">OB: Unique identification as assigned by the ASPSP to uniquely identify the consent resource. (required).</param> /// <param name="initiation">initiation (required).</param> public OBWriteDomestic2Data(string consentId = default(string), OBWriteDomestic2DataInitiation initiation = default(OBWriteDomestic2DataInitiation)) { // to ensure "consentId" is required (not null) this.ConsentId = consentId ?? throw new ArgumentNullException("consentId is a required property for OBWriteDomestic2Data and cannot be null"); // to ensure "initiation" is required (not null) this.Initiation = initiation ?? throw new ArgumentNullException("initiation is a required property for OBWriteDomestic2Data and cannot be null"); }
/// <summary> /// Initializes a new instance of the <see cref="OBWriteDomesticResponse4Data" /> class. /// </summary> /// <param name="domesticPaymentId">OB: Unique identification as assigned by the ASPSP to uniquely identify the domestic payment resource. (required).</param> /// <param name="consentId">OB: Unique identification as assigned by the ASPSP to uniquely identify the consent resource. (required).</param> /// <param name="creationDateTime">Date and time at which the message 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 (required).</param> /// <param name="status">Specifies the status of the payment information group. (required).</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 (required).</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="refund">refund.</param> /// <param name="charges">charges.</param> /// <param name="initiation">initiation (required).</param> /// <param name="multiAuthorisation">multiAuthorisation.</param> public OBWriteDomesticResponse4Data(string domesticPaymentId = default(string), string consentId = default(string), DateTimeOffset creationDateTime = default(DateTimeOffset), StatusEnum status = default(StatusEnum), DateTimeOffset statusUpdateDateTime = default(DateTimeOffset), DateTimeOffset expectedExecutionDateTime = default(DateTimeOffset), DateTimeOffset expectedSettlementDateTime = default(DateTimeOffset), OBWriteDomesticResponse4DataRefund refund = default(OBWriteDomesticResponse4DataRefund), List <OBWriteDomesticConsentResponse4DataCharges> charges = default(List <OBWriteDomesticConsentResponse4DataCharges>), OBWriteDomestic2DataInitiation initiation = default(OBWriteDomestic2DataInitiation), OBWriteDomesticResponse4DataMultiAuthorisation multiAuthorisation = default(OBWriteDomesticResponse4DataMultiAuthorisation)) { // to ensure "domesticPaymentId" is required (not null) this.DomesticPaymentId = domesticPaymentId ?? throw new ArgumentNullException("domesticPaymentId is a required property for OBWriteDomesticResponse4Data and cannot be null"); // to ensure "consentId" is required (not null) this.ConsentId = consentId ?? throw new ArgumentNullException("consentId is a required property for OBWriteDomesticResponse4Data and cannot be null"); this.CreationDateTime = creationDateTime; this.Status = status; this.StatusUpdateDateTime = statusUpdateDateTime; // to ensure "initiation" is required (not null) this.Initiation = initiation ?? throw new ArgumentNullException("initiation is a required property for OBWriteDomesticResponse4Data and cannot be null"); this.ExpectedExecutionDateTime = expectedExecutionDateTime; this.ExpectedSettlementDateTime = expectedSettlementDateTime; this.Refund = refund; this.Charges = charges; this.MultiAuthorisation = multiAuthorisation; }
/// <summary> /// Initializes a new instance of the <see cref="OBWriteDomesticConsent4Data" /> class. /// </summary> /// <param name="readRefundAccount">Specifies to share the refund account details with PISP.</param> /// <param name="initiation">initiation (required).</param> /// <param name="authorisation">authorisation.</param> /// <param name="sCASupportData">sCASupportData.</param> public OBWriteDomesticConsent4Data(ReadRefundAccountEnum?readRefundAccount = default(ReadRefundAccountEnum?), OBWriteDomestic2DataInitiation initiation = default(OBWriteDomestic2DataInitiation), OBWriteDomesticConsent4DataAuthorisation authorisation = default(OBWriteDomesticConsent4DataAuthorisation), OBWriteDomesticConsent4DataSCASupportData sCASupportData = default(OBWriteDomesticConsent4DataSCASupportData)) { // to ensure "initiation" is required (not null) this.Initiation = initiation ?? throw new ArgumentNullException("initiation is a required property for OBWriteDomesticConsent4Data and cannot be null"); this.ReadRefundAccount = readRefundAccount; this.Authorisation = authorisation; this.SCASupportData = sCASupportData; }
/// <summary> /// Initializes a new instance of the <see cref="OBWriteDomesticConsentResponse4Data" /> class. /// </summary> /// <param name="consentId">OB: Unique identification as assigned by the ASPSP to uniquely identify the consent resource. (required).</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 (required).</param> /// <param name="status">Specifies the status of consent resource in code form. (required).</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 (required).</param> /// <param name="readRefundAccount">Specifies to share the refund account details with PISP.</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="charges">charges.</param> /// <param name="initiation">initiation (required).</param> /// <param name="authorisation">authorisation.</param> /// <param name="sCASupportData">sCASupportData.</param> public OBWriteDomesticConsentResponse4Data(string consentId = default(string), DateTimeOffset creationDateTime = default(DateTimeOffset), StatusEnum status = default(StatusEnum), DateTimeOffset statusUpdateDateTime = default(DateTimeOffset), ReadRefundAccountEnum?readRefundAccount = default(ReadRefundAccountEnum?), DateTimeOffset cutOffDateTime = default(DateTimeOffset), DateTimeOffset expectedExecutionDateTime = default(DateTimeOffset), DateTimeOffset expectedSettlementDateTime = default(DateTimeOffset), List <OBWriteDomesticConsentResponse4DataCharges> charges = default(List <OBWriteDomesticConsentResponse4DataCharges>), OBWriteDomestic2DataInitiation initiation = default(OBWriteDomestic2DataInitiation), OBWriteDomesticConsent4DataAuthorisation authorisation = default(OBWriteDomesticConsent4DataAuthorisation), OBWriteDomesticConsent4DataSCASupportData sCASupportData = default(OBWriteDomesticConsent4DataSCASupportData)) { // to ensure "consentId" is required (not null) this.ConsentId = consentId ?? throw new ArgumentNullException("consentId is a required property for OBWriteDomesticConsentResponse4Data and cannot be null"); this.CreationDateTime = creationDateTime; this.Status = status; this.StatusUpdateDateTime = statusUpdateDateTime; // to ensure "initiation" is required (not null) this.Initiation = initiation ?? throw new ArgumentNullException("initiation is a required property for OBWriteDomesticConsentResponse4Data and cannot be null"); this.ReadRefundAccount = readRefundAccount; this.CutOffDateTime = cutOffDateTime; this.ExpectedExecutionDateTime = expectedExecutionDateTime; this.ExpectedSettlementDateTime = expectedSettlementDateTime; this.Charges = charges; this.Authorisation = authorisation; this.SCASupportData = sCASupportData; }