/// <summary> /// Initializes a new instance of the <see cref="CreateContactFromOpportunity" /> class. /// </summary> /// <param name="entity">entity (required).</param> public CreateContactFromOpportunity(Opportunity entity = default(Opportunity)) { // to ensure "entity" is required (not null) if (entity == null) { throw new InvalidDataException("entity is a required property for CreateContactFromOpportunity and cannot be null"); } else { this.Entity = entity; } }
/// <summary> /// Initializes a new instance of the <see cref="CreateOpportunitySalesOrder" /> class. /// </summary> /// <param name="entity">entity (required).</param> /// <param name="parameters">parameters (required).</param> public CreateOpportunitySalesOrder(Opportunity entity = default(Opportunity), CreateOpportunitySalesOrderParameters parameters = default(CreateOpportunitySalesOrderParameters)) { // to ensure "entity" is required (not null) if (entity == null) { throw new InvalidDataException("entity is a required property for CreateOpportunitySalesOrder 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 CreateOpportunitySalesOrder and cannot be null"); } else { this.Parameters = parameters; } }
/// <summary> /// Initializes a new instance of the <see cref="CreateAccountFromOpportunity" /> class. /// </summary> /// <param name="entity">entity (required).</param> /// <param name="parameters">parameters (required).</param> public CreateAccountFromOpportunity(Opportunity entity = default(Opportunity), ConvertContactToBusinessAccountParameters parameters = default(ConvertContactToBusinessAccountParameters)) { // to ensure "entity" is required (not null) if (entity == null) { throw new InvalidDataException("entity is a required property for CreateAccountFromOpportunity 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 CreateAccountFromOpportunity and cannot be null"); } else { this.Parameters = parameters; } }