Class DefaultUnifiedUICreateUpdateATPCOBaggageStrategy

java.lang.Object
de.hybris.platform.unifieduibackofficeservices.strategies.impl.AbstractCreateUpdateATPCOServiceStrategy
de.hybris.platform.unifieduibackofficeservices.strategies.impl.DefaultUnifiedUICreateUpdateATPCOBaggageStrategy
All Implemented Interfaces:
UnifiedUIATPCOBaggageCarryOnServiceStrategy

public class DefaultUnifiedUICreateUpdateATPCOBaggageStrategy extends AbstractCreateUpdateATPCOServiceStrategy implements UnifiedUIATPCOBaggageCarryOnServiceStrategy
The Unified UI implementation of UnifiedUIATPCOBaggageCarryOnServiceStrategy interface, to create/update an ATPCO baggage product.
  • Field Details

  • Constructor Details

    • DefaultUnifiedUICreateUpdateATPCOBaggageStrategy

      public DefaultUnifiedUICreateUpdateATPCOBaggageStrategy()
  • Method Details

    • createUpdateATPCOBaggageCarryOnProduct

      public void createUpdateATPCOBaggageCarryOnProduct(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion, Set<String> productNotCreated, List<ShoppingBaggageProductModel> shoppingBaggageProducts)
      Description copied from interface: UnifiedUIATPCOBaggageCarryOnServiceStrategy
      This method will either create or update an existing ATPCO baggage/carryOn in the system from the merchandising data service response.
      Specified by:
      createUpdateATPCOBaggageCarryOnProduct in interface UnifiedUIATPCOBaggageCarryOnServiceStrategy
      Parameters:
      ancillaryProduct - the services to create/update in the system
      catalogVersion - the catalog version
      productNotCreated - the list of product to be filled with the code of the product that are not created due to some issues
      shoppingBaggageProducts - the list of baggages/carry on to be updated
    • createATPCOBaggageService

      protected void createATPCOBaggageService(AncillaryProduct ancillaryProduct, CatalogVersionModel catalogVersion, Set<String> productNotCreatedUpdate) throws de.hybris.platform.servicelayer.exceptions.ModelSavingException
      Creates an ATPCO baggage service for each ancillary retrieved from the dataService response.
      Parameters:
      ancillaryProduct - the service retrieved from the dataService response
      catalogVersion - the catalog version
      productNotCreatedUpdate - the list of product that has not been created/updated
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelSavingException
    • updateATPCOBaggageService

      protected void updateATPCOBaggageService(ShoppingBaggageProductModel atpcoService, CatalogVersionModel catalogVersion, AncillaryProduct ancillaryProduct, Set<String> productNotCreatedUpdate) throws de.hybris.platform.servicelayer.exceptions.ModelSavingException
      Updates an ATPCO baggage service.
      Parameters:
      atpcoService - the atpco service
      catalogVersion - the catalog version
      ancillaryProduct - the ancillary product
      productNotCreatedUpdate - the list of product that has not been created/updated
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelSavingException
    • getProsRefundTypeRefundReissueMapping

      protected Map<String,String> getProsRefundTypeRefundReissueMapping()
      Gets pros refund type refund reissue mapping.
      Returns:
      the pros refund type refund reissue mapping
    • setProsRefundTypeRefundReissueMapping

      public void setProsRefundTypeRefundReissueMapping(Map<String,String> prosRefundTypeRefundReissueMapping)
      Sets pros refund type refund reissue mapping.
      Parameters:
      prosRefundTypeRefundReissueMapping - the pros refund type refund reissue mapping