Class CompanyInformation

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class CompanyInformation
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType

    Org.OData.Capabilities.V1.DeleteRestrictions

    Deletable = false

    Org.OData.Capabilities.V1.InsertRestrictions

    Insertable = false

    Org.OData.Capabilities.V1.UpdateRestrictions

    Updatable = true

    • Field Detail

      • currencyCode

        protected String currencyCode
      • currentFiscalYearStartDate

        protected LocalDate currentFiscalYearStartDate
      • displayName

        protected String displayName
      • email

        protected String email
      • faxNumber

        protected String faxNumber
      • industry

        protected String industry
      • phoneNumber

        protected String phoneNumber
      • picture

        protected String picture
      • taxRegistrationNumber

        protected String taxRegistrationNumber
      • website

        protected String website
    • Constructor Detail

      • CompanyInformation

        protected CompanyInformation()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • builderCompanyInformation

        public static CompanyInformation.Builder builderCompanyInformation()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class
      • getChangedFields

        public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
        Specified by:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • getCurrentFiscalYearStartDate

        public Optional<LocalDate> getCurrentFiscalYearStartDate()
      • getPicture

        public Optional<com.github.davidmoten.odata.client.StreamProvider> getPicture()
      • putPicture

        public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> putPicture()
        If metadata indicate that the stream is editable then returns a StreamUploader which can be used to upload the stream to the picture property, using HTTP PUT.
        Returns:
        a StreamUploader if upload permitted
      • putChunkedPicture

        public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> putChunkedPicture()
        If metadata indicate that the stream is editable then returns a StreamUploaderChunked which can be used to upload the stream to the picture property, using HTTP PUT.
        Returns:
        a StreamUploaderChunked if upload permitted
      • putPicture

        public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> putPicture​(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
      • postPicture

        public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> postPicture()
        If metadata indicate that the stream is editable then returns a StreamUploader which can be used to upload the stream to the picture property, using HTTP POST.
        Returns:
        a StreamUploader if upload permitted
      • postChunkedPicture

        public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> postChunkedPicture()
        If metadata indicate that the stream is editable then returns a StreamUploaderChunked which can be used to upload the stream to the picture property, using HTTP POST.
        Returns:
        a StreamUploaderChunked if upload permitted
      • postPicture

        public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> postPicture​(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
      • patchPicture

        public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> patchPicture()
        If metadata indicate that the stream is editable then returns a StreamUploader which can be used to upload the stream to the picture property, using HTTP PATCH.
        Returns:
        a StreamUploader if upload permitted
      • patchChunkedPicture

        public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> patchChunkedPicture()
        If metadata indicate that the stream is editable then returns a StreamUploaderChunked which can be used to upload the stream to the picture property, using HTTP PATCH.
        Returns:
        a StreamUploaderChunked if upload permitted
      • patchPicture

        public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> patchPicture​(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
      • getTaxRegistrationNumber

        public Optional<String> getTaxRegistrationNumber()
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public CompanyInformation patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public CompanyInformation put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected