Class LegalEntity


  • public class LegalEntity
    extends Object
    LegalEntity
    • Method Detail

      • capabilities

        public LegalEntity capabilities​(Map<String,​LegalEntityCapability> capabilities)
        Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.
        Parameters:
        capabilities - Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.
        Returns:
        the current LegalEntity instance, allowing for method chaining
      • getCapabilities

        public Map<String,​LegalEntityCapability> getCapabilities()
        Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.
        Returns:
        capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.
      • setCapabilities

        public void setCapabilities​(Map<String,​LegalEntityCapability> capabilities)
        Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.
        Parameters:
        capabilities - Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.
      • documentDetails

        public LegalEntity documentDetails​(List<DocumentReference> documentDetails)
        List of documents uploaded for the legal entity.
        Parameters:
        documentDetails - List of documents uploaded for the legal entity.
        Returns:
        the current LegalEntity instance, allowing for method chaining
      • getDocumentDetails

        public List<DocumentReference> getDocumentDetails()
        List of documents uploaded for the legal entity.
        Returns:
        documentDetails List of documents uploaded for the legal entity.
      • setDocumentDetails

        public void setDocumentDetails​(List<DocumentReference> documentDetails)
        List of documents uploaded for the legal entity.
        Parameters:
        documentDetails - List of documents uploaded for the legal entity.
      • documents

        @Deprecated
        public LegalEntity documents​(List<EntityReference> documents)
        Deprecated.
        since Legal Entity Management API v1 Use the `documentDetails` array instead.
        List of documents uploaded for the legal entity.
        Parameters:
        documents - List of documents uploaded for the legal entity.
        Returns:
        the current LegalEntity instance, allowing for method chaining
      • getDocuments

        @Deprecated
        public List<EntityReference> getDocuments()
        Deprecated.
        // deprecated since Legal Entity Management API v1: Use the `documentDetails` array instead.
        List of documents uploaded for the legal entity.
        Returns:
        documents List of documents uploaded for the legal entity.
      • setDocuments

        @Deprecated
        public void setDocuments​(List<EntityReference> documents)
        Deprecated.
        since Legal Entity Management API v1 Use the `documentDetails` array instead.
        List of documents uploaded for the legal entity.
        Parameters:
        documents - List of documents uploaded for the legal entity.
      • entityAssociations

        public LegalEntity entityAssociations​(List<LegalEntityAssociation> entityAssociations)
        List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories.
        Parameters:
        entityAssociations - List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories.
        Returns:
        the current LegalEntity instance, allowing for method chaining
      • getEntityAssociations

        public List<LegalEntityAssociation> getEntityAssociations()
        List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories.
        Returns:
        entityAssociations List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories.
      • setEntityAssociations

        public void setEntityAssociations​(List<LegalEntityAssociation> entityAssociations)
        List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories.
        Parameters:
        entityAssociations - List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories.
      • getId

        public String getId()
        The unique identifier of the legal entity.
        Returns:
        id The unique identifier of the legal entity.
      • individual

        public LegalEntity individual​(Individual individual)
        individual
        Parameters:
        individual -
        Returns:
        the current LegalEntity instance, allowing for method chaining
      • getIndividual

        public Individual getIndividual()
        Get individual
        Returns:
        individual
      • setIndividual

        public void setIndividual​(Individual individual)
        individual
        Parameters:
        individual -
      • organization

        public LegalEntity organization​(Organization organization)
        organization
        Parameters:
        organization -
        Returns:
        the current LegalEntity instance, allowing for method chaining
      • getOrganization

        public Organization getOrganization()
        Get organization
        Returns:
        organization
      • setOrganization

        public void setOrganization​(Organization organization)
        organization
        Parameters:
        organization -
      • problems

        public LegalEntity problems​(List<CapabilityProblem> problems)
        List of verification errors related to capabilities for the legal entity.
        Parameters:
        problems - List of verification errors related to capabilities for the legal entity.
        Returns:
        the current LegalEntity instance, allowing for method chaining
      • getProblems

        public List<CapabilityProblem> getProblems()
        List of verification errors related to capabilities for the legal entity.
        Returns:
        problems List of verification errors related to capabilities for the legal entity.
      • setProblems

        public void setProblems​(List<CapabilityProblem> problems)
        List of verification errors related to capabilities for the legal entity.
        Parameters:
        problems - List of verification errors related to capabilities for the legal entity.
      • reference

        public LegalEntity reference​(String reference)
        Your reference for the legal entity, maximum 150 characters.
        Parameters:
        reference - Your reference for the legal entity, maximum 150 characters.
        Returns:
        the current LegalEntity instance, allowing for method chaining
      • getReference

        public String getReference()
        Your reference for the legal entity, maximum 150 characters.
        Returns:
        reference Your reference for the legal entity, maximum 150 characters.
      • setReference

        public void setReference​(String reference)
        Your reference for the legal entity, maximum 150 characters.
        Parameters:
        reference - Your reference for the legal entity, maximum 150 characters.
      • soleProprietorship

        public LegalEntity soleProprietorship​(SoleProprietorship soleProprietorship)
        soleProprietorship
        Parameters:
        soleProprietorship -
        Returns:
        the current LegalEntity instance, allowing for method chaining
      • getSoleProprietorship

        public SoleProprietorship getSoleProprietorship()
        Get soleProprietorship
        Returns:
        soleProprietorship
      • setSoleProprietorship

        public void setSoleProprietorship​(SoleProprietorship soleProprietorship)
        soleProprietorship
        Parameters:
        soleProprietorship -
      • getTransferInstruments

        public List<TransferInstrumentReference> getTransferInstruments()
        List of transfer instruments that the legal entity owns.
        Returns:
        transferInstruments List of transfer instruments that the legal entity owns.
      • trust

        public LegalEntity trust​(Trust trust)
        trust
        Parameters:
        trust -
        Returns:
        the current LegalEntity instance, allowing for method chaining
      • getTrust

        public Trust getTrust()
        Get trust
        Returns:
        trust
      • setTrust

        public void setTrust​(Trust trust)
        trust
        Parameters:
        trust -
      • type

        public LegalEntity type​(LegalEntity.TypeEnum type)
        The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**.
        Parameters:
        type - The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**.
        Returns:
        the current LegalEntity instance, allowing for method chaining
      • getType

        public LegalEntity.TypeEnum getType()
        The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**.
        Returns:
        type The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**.
      • setType

        public void setType​(LegalEntity.TypeEnum type)
        The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**.
        Parameters:
        type - The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**.
      • unincorporatedPartnership

        public LegalEntity unincorporatedPartnership​(UnincorporatedPartnership unincorporatedPartnership)
        unincorporatedPartnership
        Parameters:
        unincorporatedPartnership -
        Returns:
        the current LegalEntity instance, allowing for method chaining
      • getUnincorporatedPartnership

        public UnincorporatedPartnership getUnincorporatedPartnership()
        Get unincorporatedPartnership
        Returns:
        unincorporatedPartnership
      • setUnincorporatedPartnership

        public void setUnincorporatedPartnership​(UnincorporatedPartnership unincorporatedPartnership)
        unincorporatedPartnership
        Parameters:
        unincorporatedPartnership -
      • getVerificationDeadlines

        public List<VerificationDeadline> getVerificationDeadlines()
        List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.
        Returns:
        verificationDeadlines List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.
      • verificationPlan

        public LegalEntity verificationPlan​(String verificationPlan)
        A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification).
        Parameters:
        verificationPlan - A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification).
        Returns:
        the current LegalEntity instance, allowing for method chaining
      • getVerificationPlan

        public String getVerificationPlan()
        A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification).
        Returns:
        verificationPlan A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification).
      • setVerificationPlan

        public void setVerificationPlan​(String verificationPlan)
        A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification).
        Parameters:
        verificationPlan - A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification).
      • includeNullValues

        public LegalEntity includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • equals

        public boolean equals​(Object o)
        Return true if this LegalEntity object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • fromJson

        public static LegalEntity fromJson​(String jsonString)
                                    throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of LegalEntity given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of LegalEntity
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to LegalEntity
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of LegalEntity to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException