java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<BR_OneTimePartner>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.brazilnotafiscal.BR_OneTimePartner

public class BR_OneTimePartner extends VdmEntity<BR_OneTimePartner>
Brazil Nota Fiscal One Time Partner

Original entity name from the Odata EDM: A_BR_OneTimePartnerType

  • Field Details

    • ALL_FIELDS

      public static final BR_OneTimePartnerSelectable ALL_FIELDS
      Selector for all available fields of BR_OneTimePartner.
    • BR_NOTA_FISCAL

      public static final BR_OneTimePartnerField<String> BR_NOTA_FISCAL
      Use with available fluent helpers to apply the BR_NotaFiscal field to query operations.
    • BR_PARTNER_FUNCTION

      public static final BR_OneTimePartnerField<String> BR_PARTNER_FUNCTION
      Use with available fluent helpers to apply the BR_PartnerFunction field to query operations.
    • BUSINESS_PARTNER_NAME1

      public static final BR_OneTimePartnerField<String> BUSINESS_PARTNER_NAME1
      Use with available fluent helpers to apply the BusinessPartnerName1 field to query operations.
    • BUSINESS_PARTNER_NAME2

      public static final BR_OneTimePartnerField<String> BUSINESS_PARTNER_NAME2
      Use with available fluent helpers to apply the BusinessPartnerName2 field to query operations.
    • BR_PARTNER_CNPJ

      public static final BR_OneTimePartnerField<String> BR_PARTNER_CNPJ
      Use with available fluent helpers to apply the BR_PartnerCNPJ field to query operations.
    • BR_PARTNER_CPF

      public static final BR_OneTimePartnerField<String> BR_PARTNER_CPF
      Use with available fluent helpers to apply the BR_PartnerCPF field to query operations.
    • BR_PARTNER_STATE_TAX_NUMBER_ST

      public static final BR_OneTimePartnerField<String> BR_PARTNER_STATE_TAX_NUMBER_ST
      Use with available fluent helpers to apply the BR_PartnerStateTaxNumberST field to query operations.
    • BUSINESS_PARTNER_TAX_JURISDICTION

      public static final BR_OneTimePartnerField<String> BUSINESS_PARTNER_TAX_JURISDICTION
      Use with available fluent helpers to apply the BusinessPartnerTaxJurisdiction field to query operations.
    • BUSINESS_PARTNER_STREET_NAME_ONLY

      public static final BR_OneTimePartnerField<String> BUSINESS_PARTNER_STREET_NAME_ONLY
      Use with available fluent helpers to apply the BusinessPartnerStreetNameOnly field to query operations.
    • BUSINESS_PARTNER_STREET_NAME

      public static final BR_OneTimePartnerField<String> BUSINESS_PARTNER_STREET_NAME
      Use with available fluent helpers to apply the BusinessPartnerStreetName field to query operations.
    • BUSINESS_PARTNER_HOUSE_NUMBER

      public static final BR_OneTimePartnerField<String> BUSINESS_PARTNER_HOUSE_NUMBER
      Use with available fluent helpers to apply the BusinessPartnerHouseNumber field to query operations.
    • BP_HS_NMBR_SUPLMNT_TXT

      public static final BR_OneTimePartnerField<String> BP_HS_NMBR_SUPLMNT_TXT
      Use with available fluent helpers to apply the BPHsNmbrSuplmntTxt field to query operations.
    • BUSINESS_PARTNER_DISTRICT

      public static final BR_OneTimePartnerField<String> BUSINESS_PARTNER_DISTRICT
      Use with available fluent helpers to apply the BusinessPartnerDistrict field to query operations.
    • TO_BRNF_DOC

      public static final BR_OneTimePartnerOneToOneLink<BR_NFDocument> TO_BRNF_DOC
      Use with available fluent helpers to apply the to_BR_NFDoc navigation property to query operations.
  • Constructor Details

    • BR_OneTimePartner

      public BR_OneTimePartner()
    • BR_OneTimePartner

      public BR_OneTimePartner(@Nullable String bR_NotaFiscal, @Nullable String bR_PartnerFunction, @Nullable String businessPartnerName1, @Nullable String businessPartnerName2, @Nullable String bR_PartnerCNPJ, @Nullable String bR_PartnerCPF, @Nullable String bR_PartnerStateTaxNumberST, @Nullable String businessPartnerTaxJurisdiction, @Nullable String businessPartnerStreetNameOnly, @Nullable String businessPartnerStreetName, @Nullable String businessPartnerHouseNumber, @Nullable String bPHsNmbrSuplmntTxt, @Nullable String businessPartnerDistrict, @Nullable BR_NFDocument toBR_NFDoc)
  • Method Details

    • getType

      @Nonnull public Class<BR_OneTimePartner> getType()
      Specified by:
      getType in class VdmObject<BR_OneTimePartner>
    • setBR_NotaFiscal

      public void setBR_NotaFiscal(@Nullable String bR_NotaFiscal)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: BR_NotaFiscal

      Parameters:
      bR_NotaFiscal - Document Number
    • setBR_PartnerFunction

      public void setBR_PartnerFunction(@Nullable String bR_PartnerFunction)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: BR_PartnerFunction

      Parameters:
      bR_PartnerFunction - Nota Fiscal Partner Function
    • setBusinessPartnerName1

      public void setBusinessPartnerName1(@Nullable String businessPartnerName1)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: BusinessPartnerName1

      Parameters:
      businessPartnerName1 - Name 1
    • setBusinessPartnerName2

      public void setBusinessPartnerName2(@Nullable String businessPartnerName2)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: BusinessPartnerName2

      Parameters:
      businessPartnerName2 - Name 2
    • setBR_PartnerCNPJ

      public void setBR_PartnerCNPJ(@Nullable String bR_PartnerCNPJ)
      Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: BR_PartnerCNPJ

      Parameters:
      bR_PartnerCNPJ - Tax Number 1
    • setBR_PartnerCPF

      public void setBR_PartnerCPF(@Nullable String bR_PartnerCPF)
      Constraints: Not nullable, Maximum length: 11

      Original property name from the Odata EDM: BR_PartnerCPF

      Parameters:
      bR_PartnerCPF - Tax Number 2
    • setBR_PartnerStateTaxNumberST

      public void setBR_PartnerStateTaxNumberST(@Nullable String bR_PartnerStateTaxNumberST)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: BR_PartnerStateTaxNumberST

      Parameters:
      bR_PartnerStateTaxNumberST - State Tax Number
    • setBusinessPartnerTaxJurisdiction

      public void setBusinessPartnerTaxJurisdiction(@Nullable String businessPartnerTaxJurisdiction)
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: BusinessPartnerTaxJurisdiction

      Parameters:
      businessPartnerTaxJurisdiction - Tax Jurisdiction
    • setBusinessPartnerStreetNameOnly

      public void setBusinessPartnerStreetNameOnly(@Nullable String businessPartnerStreetNameOnly)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: BusinessPartnerStreetNameOnly

      Parameters:
      businessPartnerStreetNameOnly - Street
    • setBusinessPartnerStreetName

      public void setBusinessPartnerStreetName(@Nullable String businessPartnerStreetName)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: BusinessPartnerStreetName

      Parameters:
      businessPartnerStreetName - Street and House Number
    • setBusinessPartnerHouseNumber

      public void setBusinessPartnerHouseNumber(@Nullable String businessPartnerHouseNumber)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: BusinessPartnerHouseNumber

      Parameters:
      businessPartnerHouseNumber - House Number
    • setBPHsNmbrSuplmntTxt

      public void setBPHsNmbrSuplmntTxt(@Nullable String bPHsNmbrSuplmntTxt)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: BPHsNmbrSuplmntTxt

      Parameters:
      bPHsNmbrSuplmntTxt - House number supplement
    • setBusinessPartnerDistrict

      public void setBusinessPartnerDistrict(@Nullable String businessPartnerDistrict)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: BusinessPartnerDistrict

      Parameters:
      businessPartnerDistrict - District
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<BR_OneTimePartner>
    • getKey

      @Nonnull protected Map<String,Object> getKey()
      Overrides:
      getKey in class VdmObject<BR_OneTimePartner>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<BR_OneTimePartner>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<BR_OneTimePartner>
    • field

      @Nonnull public static <T> BR_OneTimePartnerField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> BR_OneTimePartnerField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<BR_OneTimePartner>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<BR_OneTimePartner>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<BR_OneTimePartner>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<BR_OneTimePartner>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<BR_OneTimePartner>
    • fetchBR_NFDoc

      @Nullable public BR_NFDocument fetchBR_NFDoc()
      Fetches the BR_NFDocument entity (one to one) associated with this entity. This corresponds to the OData navigation property to_BR_NFDoc.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated BR_NFDocument entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getBR_NFDocOrFetch

      @Nullable public BR_NFDocument getBR_NFDocOrFetch()
      Retrieval of associated BR_NFDocument entity (one to one). This corresponds to the OData navigation property to_BR_NFDoc.

      If the navigation property to_BR_NFDoc of a queried BR_OneTimePartner is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Returns:
      List of associated BR_NFDocument entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getBR_NFDocIfPresent

      @Nonnull public io.vavr.control.Option<BR_NFDocument> getBR_NFDocIfPresent()
      Retrieval of associated BR_NFDocument entity (one to one). This corresponds to the OData navigation property to_BR_NFDoc.

      If the navigation property for an entity BR_OneTimePartner has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property to_BR_NFDoc is already loaded, the result will contain the BR_NFDocument entity. If not, an Option with result state empty is returned.
    • setBR_NFDoc

      public void setBR_NFDoc(BR_NFDocument value)
      Overwrites the associated BR_NFDocument entity for the loaded navigation property to_BR_NFDoc.
      Parameters:
      value - New BR_NFDocument entity.
    • builder

      @Nonnull public static BR_OneTimePartner.BR_OneTimePartnerBuilder builder()
    • getBR_NotaFiscal

      @Nullable public String getBR_NotaFiscal()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: BR_NotaFiscal

      Returns:
      Document Number
    • getBR_PartnerFunction

      @Nullable public String getBR_PartnerFunction()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: BR_PartnerFunction

      Returns:
      Nota Fiscal Partner Function
    • getBusinessPartnerName1

      @Nullable public String getBusinessPartnerName1()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: BusinessPartnerName1

      Returns:
      Name 1
    • getBusinessPartnerName2

      @Nullable public String getBusinessPartnerName2()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: BusinessPartnerName2

      Returns:
      Name 2
    • getBR_PartnerCNPJ

      @Nullable public String getBR_PartnerCNPJ()
      Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: BR_PartnerCNPJ

      Returns:
      Tax Number 1
    • getBR_PartnerCPF

      @Nullable public String getBR_PartnerCPF()
      Constraints: Not nullable, Maximum length: 11

      Original property name from the Odata EDM: BR_PartnerCPF

      Returns:
      Tax Number 2
    • getBR_PartnerStateTaxNumberST

      @Nullable public String getBR_PartnerStateTaxNumberST()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: BR_PartnerStateTaxNumberST

      Returns:
      State Tax Number
    • getBusinessPartnerTaxJurisdiction

      @Nullable public String getBusinessPartnerTaxJurisdiction()
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: BusinessPartnerTaxJurisdiction

      Returns:
      Tax Jurisdiction
    • getBusinessPartnerStreetNameOnly

      @Nullable public String getBusinessPartnerStreetNameOnly()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: BusinessPartnerStreetNameOnly

      Returns:
      Street
    • getBusinessPartnerStreetName

      @Nullable public String getBusinessPartnerStreetName()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: BusinessPartnerStreetName

      Returns:
      Street and House Number
    • getBusinessPartnerHouseNumber

      @Nullable public String getBusinessPartnerHouseNumber()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: BusinessPartnerHouseNumber

      Returns:
      House Number
    • getBPHsNmbrSuplmntTxt

      @Nullable public String getBPHsNmbrSuplmntTxt()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: BPHsNmbrSuplmntTxt

      Returns:
      House number supplement
    • getBusinessPartnerDistrict

      @Nullable public String getBusinessPartnerDistrict()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: BusinessPartnerDistrict

      Returns:
      District
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<BR_OneTimePartner>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<BR_OneTimePartner>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<BR_OneTimePartner>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<BR_OneTimePartner>