Class CrmDealsPostRequest

java.lang.Object
software.xdev.brevo.model.CrmDealsPostRequest

public class CrmDealsPostRequest extends Object
CrmDealsPostRequest
  • Field Details

  • Constructor Details

    • CrmDealsPostRequest

      public CrmDealsPostRequest()
  • Method Details

    • name

      public CrmDealsPostRequest name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Name of deal
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • attributes

      public CrmDealsPostRequest attributes(@Nullable Object attributes)
    • getAttributes

      @Nullable public Object getAttributes()
      Attributes for deal creation To assign owner of a Deal you can send attributes.deal_owner and utilize the account email or ID. If you want to create a deal on a specific pipeline and stage you can use the following attributes `pipeline` and `deal_stage`. Pipeline and deal_stage are ids you can fetch using this endpoint `/crm/pipeline/details/{pipelineID}`
      Returns:
      attributes
    • setAttributes

      public void setAttributes(@Nullable Object attributes)
    • linkedContactsIds

      public CrmDealsPostRequest linkedContactsIds(@Nullable List<Long> linkedContactsIds)
    • addLinkedContactsIdsItem

      public CrmDealsPostRequest addLinkedContactsIdsItem(Long linkedContactsIdsItem)
    • getLinkedContactsIds

      @Nullable public List<Long> getLinkedContactsIds()
      Contact ids to be linked with deal
      Returns:
      linkedContactsIds
    • setLinkedContactsIds

      public void setLinkedContactsIds(@Nullable List<Long> linkedContactsIds)
    • linkedCompaniesIds

      public CrmDealsPostRequest linkedCompaniesIds(@Nullable List<String> linkedCompaniesIds)
    • addLinkedCompaniesIdsItem

      public CrmDealsPostRequest addLinkedCompaniesIdsItem(String linkedCompaniesIdsItem)
    • getLinkedCompaniesIds

      @Nullable public List<String> getLinkedCompaniesIds()
      Company ids to be linked with deal
      Returns:
      linkedCompaniesIds
    • setLinkedCompaniesIds

      public void setLinkedCompaniesIds(@Nullable List<String> linkedCompaniesIds)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string