Module jonix.onix2

Class NewSupplier

java.lang.Object
com.tectonica.jonix.onix2.NewSupplier
All Implemented Interfaces:
OnixComposite, OnixComposite.OnixSuperComposite, OnixTag, Serializable

public class NewSupplier extends Object implements OnixComposite.OnixSuperComposite, Serializable

New supplier composite

A group of data elements which together specify a new supply source to which orders are referred. Use only when the code in <ProductAvailability> or <AvailabilityCode> indicates “no longer available from us, refer to new supplier”. Only one occurrence of the composite is permitted in this context.

Reference name <NewSupplier>
Short tag <newsupplier>

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • NewSupplier

      public NewSupplier()
    • NewSupplier

      public NewSupplier(Element element)
  • Method Details

    • _initialize

      public void _initialize()
      Description copied from interface: OnixComposite
      This is an internal API. Since Jonix 8.0, composite objects are being populated lazily. This method initiates the population process, and is invoked internally by the accessor APIs of the composites
      Specified by:
      _initialize in interface OnixComposite
    • exists

      public boolean exists()
      Description copied from interface: OnixTag
      indicates whether this tag exists in the ONIX record
      Specified by:
      exists in interface OnixTag
      Returns:
      whether this tag (<NewSupplier> or <newsupplier>) is explicitly provided in the ONIX XML
    • ifExists

      public void ifExists(Consumer<NewSupplier> action)
    • getXmlElement

      public Element getXmlElement()
      Description copied from interface: OnixComposite
      For advanced use-cases only.
      Specified by:
      getXmlElement in interface OnixComposite
      Returns:
      native representation of the XML element underlying to this tag
    • supplierEANLocationNumber

      public SupplierEANLocationNumber supplierEANLocationNumber()

      An EAN-13 location number identifying a supplier. Now also known as an “EAN-UCC Global Location Number” or GLN. Optional and non-repeating, but each occurrence of the <NewSupplier> composite must carry either at least one supplier identifier, or a <SupplierName>.

      Jonix-Comment: this field is required
    • supplierSAN

      public SupplierSAN supplierSAN()

      A book trade Standard Address Number identifying a supplier. Used in the US and UK. Optional, but each occurrence of the <NewSupplier> composite must carry either at least one supplier identifier, or a <SupplierName>.

      Jonix-Comment: this field is optional
    • supplierName

      public SupplierName supplierName()

      The name of a supplier. Optional and non-repeating; required if no supplier identifier is sent in an occurrence of the <NewSupplier> composite.

      Jonix-Comment: this field is optional
    • supplierIdentifiers

      A repeatable group of data elements which together define the identifier of a supplier in accordance with a specified scheme, and allowing different types of supplier identifier to be included without defining additional data elements. Optional, but each occurrence of the <NewSupplier> composite must carry either at least one supplier identifier, or a <SupplierName>.

      Jonix-Comment: this list may be empty
    • telephoneNumbers

      public ListOfOnixElement<TelephoneNumber,String> telephoneNumbers()

      A telephone number of a supply source from which the product may be ordered by a trade customer. Optional and repeatable.

      Jonix-Comment: this list may be empty
    • faxNumbers

      public ListOfOnixElement<FaxNumber,String> faxNumbers()

      A fax number of a supply source from which the product may be ordered by a trade customer. Optional and repeatable.

      Jonix-Comment: this list may be empty
    • emailAddresss

      public ListOfOnixElement<EmailAddress,String> emailAddresss()

      An email address for a supply source from which the product may be ordered by a trade customer. Optional and repeatable.

      Jonix-Comment: this list may be empty