/// <summary>
 /// Initializes a new instance of the <see cref="OBWriteDomesticConsentResponse2" /> class.
 /// </summary>
 /// <param name="data">data (required).</param>
 /// <param name="risk">risk (required).</param>
 /// <param name="links">links (required).</param>
 /// <param name="meta">meta (required).</param>
 public OBWriteDomesticConsentResponse2(OBWriteDataDomesticConsentResponse2 data = default(OBWriteDataDomesticConsentResponse2), OBRisk1 risk = default(OBRisk1), Links links = default(Links), Meta meta = default(Meta))
 {
     // to ensure "data" is required (not null)
     this.Data = data ?? throw new ArgumentNullException("data is a required property for OBWriteDomesticConsentResponse2 and cannot be null");
     // to ensure "risk" is required (not null)
     this.Risk = risk ?? throw new ArgumentNullException("risk is a required property for OBWriteDomesticConsentResponse2 and cannot be null");
     // to ensure "links" is required (not null)
     this.Links = links ?? throw new ArgumentNullException("links is a required property for OBWriteDomesticConsentResponse2 and cannot be null");
     // to ensure "meta" is required (not null)
     this.Meta = meta ?? throw new ArgumentNullException("meta is a required property for OBWriteDomesticConsentResponse2 and cannot be null");
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OBWriteInternationalResponse2" /> class.
 /// </summary>
 /// <param name="data">data (required).</param>
 /// <param name="links">links (required).</param>
 /// <param name="meta">meta (required).</param>
 public OBWriteInternationalResponse2(OBWriteDataInternationalResponse2 data = default(OBWriteDataInternationalResponse2), Links links = default(Links), Meta meta = default(Meta))
 {
     // to ensure "data" is required (not null)
     this.Data = data ?? throw new ArgumentNullException("data is a required property for OBWriteInternationalResponse2 and cannot be null");
     // to ensure "links" is required (not null)
     this.Links = links ?? throw new ArgumentNullException("links is a required property for OBWriteInternationalResponse2 and cannot be null");
     // to ensure "meta" is required (not null)
     this.Meta = meta ?? throw new ArgumentNullException("meta is a required property for OBWriteInternationalResponse2 and cannot be null");
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OBWriteInternationalStandingOrderConsentResponse3" /> class.
 /// </summary>
 /// <param name="data">data (required).</param>
 /// <param name="risk">risk (required).</param>
 /// <param name="links">links (required).</param>
 /// <param name="meta">meta (required).</param>
 public OBWriteInternationalStandingOrderConsentResponse3(OBWriteDataInternationalStandingOrderConsentResponse3 data = default(OBWriteDataInternationalStandingOrderConsentResponse3), OBRisk1 risk = default(OBRisk1), Links links = default(Links), Meta meta = default(Meta))
 {
     // to ensure "data" is required (not null)
     this.Data = data ?? throw new ArgumentNullException("data is a required property for OBWriteInternationalStandingOrderConsentResponse3 and cannot be null");
     // to ensure "risk" is required (not null)
     this.Risk = risk ?? throw new ArgumentNullException("risk is a required property for OBWriteInternationalStandingOrderConsentResponse3 and cannot be null");
     // to ensure "links" is required (not null)
     this.Links = links ?? throw new ArgumentNullException("links is a required property for OBWriteInternationalStandingOrderConsentResponse3 and cannot be null");
     // to ensure "meta" is required (not null)
     this.Meta = meta ?? throw new ArgumentNullException("meta is a required property for OBWriteInternationalStandingOrderConsentResponse3 and cannot be null");
 }