Class DefaultCisClientShippingService

    • Constructor Detail

      • DefaultCisClientShippingService

        public DefaultCisClientShippingService()
    • Method Detail

      • createShipment

        public CisShipment createShipment​(java.lang.String xClientRef,
                                          java.lang.String tenantId,
                                          CisShipment cisShipment)
        Description copied from interface: CisClientShippingService
        Creates a shipment.
        Specified by:
        createShipment in interface CisClientShippingService
        Parameters:
        xClientRef - client ref to pass in the header
        tenantId - tenantId to pass in the header
        cisShipment - shipment to create
        Returns:
        the shipment
      • getLabel

        public byte[] getLabel​(java.lang.String xClientRef,
                               java.lang.String tenantId,
                               java.net.URI labelLocation)
        Description copied from interface: CisClientShippingService
        Gets the shipment label.
        Specified by:
        getLabel in interface CisClientShippingService
        Parameters:
        xClientRef - client ref to pass in the header
        tenantId - tenantId to pass in the header
        labelLocation - location of the label
        Returns:
        the label as a stream (can be different files format, see the media type of the rest response)
      • ping

        public boolean ping​(java.lang.String xCisClientRef,
                            java.lang.String tenantId)
        Description copied from interface: CisClientService
        Checks if service is functioning and connecting with current credentials.
        Specified by:
        ping in interface CisClientService
        Parameters:
        xCisClientRef - client ref to pass in the header
        tenantId - tenantId to pass in the header
        Returns:
        flag if the service is accessible or not
      • setShippingClient

        public void setShippingClient​(ShippingClient shippingClient)