/// <summary> /// Initializes a new instance of the <see cref="OBWriteInternationalResponse4DataRefund" /> class. /// </summary> /// <param name="creditor">creditor.</param> /// <param name="agent">agent.</param> /// <param name="account">account (required).</param> public OBWriteInternationalResponse4DataRefund(OBWriteInternationalResponse4DataRefundCreditor creditor = default(OBWriteInternationalResponse4DataRefundCreditor), OBWriteInternationalResponse4DataRefundAgent agent = default(OBWriteInternationalResponse4DataRefundAgent), OBWriteDomesticResponse4DataRefundAccount account = default(OBWriteDomesticResponse4DataRefundAccount)) { // to ensure "account" is required (not null) this.Account = account ?? throw new ArgumentNullException("account is a required property for OBWriteInternationalResponse4DataRefund and cannot be null"); this.Creditor = creditor; this.Agent = agent; }
/// <summary> /// Initializes a new instance of the <see cref="OBWriteDomesticResponse4DataRefund" /> class. /// </summary> /// <param name="account">account (required).</param> public OBWriteDomesticResponse4DataRefund(OBWriteDomesticResponse4DataRefundAccount account = default(OBWriteDomesticResponse4DataRefundAccount)) { // to ensure "account" is required (not null) this.Account = account ?? throw new ArgumentNullException("account is a required property for OBWriteDomesticResponse4DataRefund and cannot be null"); }