Package com.skava.subscription.factory
Interface ShippingFactory
- All Known Implementing Classes:
ShippingFactoryImpl
public interface ShippingFactory
-
Method Summary
Modifier and TypeMethodDescriptioncreateShippingDomain
(List<ShippingEntity> shipping) method The createSubscriptionDomain Method.createShippingDomainFromRequest
(ShippingRequest shippingRequest) method The createSubscriptionDomain Method.createShippingDTO
(List<ShippingDomain> shippingDomains) method The createSubscriptionDTO Method.createShippingEntity
(SubscriptionEntity subscriptionEntity, List<ShippingDomain> shippingDomain) method The createSubscriptionDomain Method.
-
Method Details
-
createShippingDomainFromRequest
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
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
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
-