/// <summary> /// Initializes a new instance of the <see cref="OBWriteDomesticConsentResponse4DataCharges" /> class. /// </summary> /// <param name="chargeBearer">chargeBearer (required).</param> /// <param name="type">Charge type, in a coded form. (required).</param> /// <param name="amount">amount (required).</param> public OBWriteDomesticConsentResponse4DataCharges(OBChargeBearerType1Code chargeBearer = default(OBChargeBearerType1Code), string type = default(string), OBActiveOrHistoricCurrencyAndAmount amount = default(OBActiveOrHistoricCurrencyAndAmount)) { this.ChargeBearer = chargeBearer; // to ensure "type" is required (not null) this.Type = type ?? throw new ArgumentNullException("type is a required property for OBWriteDomesticConsentResponse4DataCharges and cannot be null"); // to ensure "amount" is required (not null) this.Amount = amount ?? throw new ArgumentNullException("amount is a required property for OBWriteDomesticConsentResponse4DataCharges and cannot be null"); }
/// <summary> /// Initializes a new instance of the <see cref="OBCharge2" /> class. /// </summary> /// <param name="chargeBearer">chargeBearer (required).</param> /// <param name="type">Charge type, in a coded form. (required).</param> /// <param name="amount">amount (required).</param> public OBCharge2(OBChargeBearerType1Code chargeBearer = default(OBChargeBearerType1Code), string type = default(string), OBCharge2Amount amount = default(OBCharge2Amount)) { this.ChargeBearer = chargeBearer; // to ensure "type" is required (not null) this.Type = type ?? throw new ArgumentNullException("type is a required property for OBCharge2 and cannot be null"); // to ensure "amount" is required (not null) this.Amount = amount ?? throw new ArgumentNullException("amount is a required property for OBCharge2 and cannot be null"); }