Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ValidateBusinessAccountAddresses" /> class.
 /// </summary>
 /// <param name="entity">entity (required).</param>
 public ValidateBusinessAccountAddresses(BusinessAccount entity = default(BusinessAccount))
 {
     // to ensure "entity" is required (not null)
     if (entity == null)
     {
         throw new InvalidDataException("entity is a required property for ValidateBusinessAccountAddresses and cannot be null");
     }
     else
     {
         this.Entity = entity;
     }
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConvertBusinessAccountToVendor" /> class.
 /// </summary>
 /// <param name="entity">entity (required).</param>
 public ConvertBusinessAccountToVendor(BusinessAccount entity = default(BusinessAccount))
 {
     // to ensure "entity" is required (not null)
     if (entity == null)
     {
         throw new InvalidDataException("entity is a required property for ConvertBusinessAccountToVendor and cannot be null");
     }
     else
     {
         this.Entity = entity;
     }
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChangeBusinessAccountID" /> class.
 /// </summary>
 /// <param name="entity">entity (required).</param>
 /// <param name="parameters">parameters (required).</param>
 public ChangeBusinessAccountID(BusinessAccount entity = default(BusinessAccount), ChangeBusinessAccountIDParameters parameters = default(ChangeBusinessAccountIDParameters))
 {
     // to ensure "entity" is required (not null)
     if (entity == null)
     {
         throw new InvalidDataException("entity is a required property for ChangeBusinessAccountID and cannot be null");
     }
     else
     {
         this.Entity = entity;
     }
     // to ensure "parameters" is required (not null)
     if (parameters == null)
     {
         throw new InvalidDataException("parameters is a required property for ChangeBusinessAccountID and cannot be null");
     }
     else
     {
         this.Parameters = parameters;
     }
 }