lib/brevo/models/body_5.rb in brevo-2.0.0 vs lib/brevo/models/body_5.rb in brevo-3.0.0
- old
+ new
@@ -12,39 +12,39 @@
require 'date'
module Brevo
class Body5
- # Contact ids for contacts to be linked with deal
+ # Contact ids for contacts to be linked with company
attr_accessor :link_contact_ids
- # Contact ids for contacts to be unlinked from deal
+ # Contact ids for contacts to be unlinked from company
attr_accessor :unlink_contact_ids
- # Company ids to be linked with deal
- attr_accessor :link_company_ids
+ # Deals ids for deals to be linked with company
+ attr_accessor :link_deals_ids
- # Company ids to be unlinked from deal
- attr_accessor :unlink_company_ids
+ # Deals ids for deals to be unlinked from company
+ attr_accessor :unlink_deals_ids
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'link_contact_ids' => :'linkContactIds',
:'unlink_contact_ids' => :'unlinkContactIds',
- :'link_company_ids' => :'linkCompanyIds',
- :'unlink_company_ids' => :'unlinkCompanyIds'
+ :'link_deals_ids' => :'linkDealsIds',
+ :'unlink_deals_ids' => :'unlinkDealsIds'
}
end
# Attribute type mapping.
def self.swagger_types
{
:'link_contact_ids' => :'Array<Integer>',
:'unlink_contact_ids' => :'Array<Integer>',
- :'link_company_ids' => :'Array<String>',
- :'unlink_company_ids' => :'Array<String>'
+ :'link_deals_ids' => :'Array<String>',
+ :'unlink_deals_ids' => :'Array<String>'
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -64,19 +64,19 @@
if (value = attributes[:'unlinkContactIds']).is_a?(Array)
self.unlink_contact_ids = value
end
end
- if attributes.has_key?(:'linkCompanyIds')
- if (value = attributes[:'linkCompanyIds']).is_a?(Array)
- self.link_company_ids = value
+ if attributes.has_key?(:'linkDealsIds')
+ if (value = attributes[:'linkDealsIds']).is_a?(Array)
+ self.link_deals_ids = value
end
end
- if attributes.has_key?(:'unlinkCompanyIds')
- if (value = attributes[:'unlinkCompanyIds']).is_a?(Array)
- self.unlink_company_ids = value
+ if attributes.has_key?(:'unlinkDealsIds')
+ if (value = attributes[:'unlinkDealsIds']).is_a?(Array)
+ self.unlink_deals_ids = value
end
end
end
# Show invalid properties with the reasons. Usually used together with valid?
@@ -97,12 +97,12 @@
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
link_contact_ids == o.link_contact_ids &&
unlink_contact_ids == o.unlink_contact_ids &&
- link_company_ids == o.link_company_ids &&
- unlink_company_ids == o.unlink_company_ids
+ link_deals_ids == o.link_deals_ids &&
+ unlink_deals_ids == o.unlink_deals_ids
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -110,10 +110,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [link_contact_ids, unlink_contact_ids, link_company_ids, unlink_company_ids].hash
+ [link_contact_ids, unlink_contact_ids, link_deals_ids, unlink_deals_ids].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself