Interface ShippingFactory

All Known Implementing Classes:
ShippingFactoryImpl

public interface ShippingFactory
  • Method Details

    • createShippingDomainFromRequest

      List<ShippingDomain> createShippingDomainFromRequest(ShippingRequest shippingRequest)

      method The createSubscriptionDomain Method.

      This method creates the subscription domain object from the subscription data transfer object

      Parameters:
      shippingRequest - The subscription data transfer request object.
      Returns:
      The subscription domain object
    • createShippingDomain

      List<ShippingDomain> createShippingDomain(List<ShippingEntity> shipping)

      method The createSubscriptionDomain Method.

      This method creates the subscription domain object from the subscription entity object

      Parameters:
      shipping - The subscription entity object.
      Returns:
      The subscription domain object
    • createShippingEntity

      List<ShippingEntity> createShippingEntity(SubscriptionEntity subscriptionEntity, List<ShippingDomain> shippingDomain)

      method The createSubscriptionDomain Method.

      This method creates the subscription domain object from the subscription entity object

      Parameters:
      subscriptionEntity - The entity of subscription.
      shippingDomain - The subscription domain object.
      Returns:
      The entity object
    • createShippingDTO

      ShippingResponse createShippingDTO(List<ShippingDomain> shippingDomains)

      method The createSubscriptionDTO Method.

      This method creates the list of subscription data transfer response objects from the list of subscription domain object

      Parameters:
      shippingDomains - The list of subscription domains object.
      Returns:
      The list of subscription data transfer response objects