Class PimcorePromotionModelMapperImpl
java.lang.Object
org.bhn.promotion.voucherify.mapper.PimcorePromotionModelMapperImpl
- All Implemented Interfaces:
PimcorePromotionModelMapper
@Generated(value="org.mapstruct.ap.MappingProcessor",
date="2026-01-14T11:42:57+0530",
comments="version: 1.6.0, compiler: javac, environment: Java 17.0.13 (Amazon.com Inc.)")
public class PimcorePromotionModelMapperImpl
extends Object
implements PimcorePromotionModelMapper
-
Field Summary
Fields inherited from interface org.bhn.promotion.voucherify.mapper.PimcorePromotionModelMapper
INSTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidupdatePimcorePromotionModelFromCampaign(io.voucherify.client.model.CampaignsGetResponseBody campaign, PimcorePromotionModel pimcorePromotionModel) Updates an existingPimcorePromotionModelinstance with values from aCampaignsGetResponseBody.voidupdatePimcorePromotionModelFromPromotion(io.voucherify.client.model.PromotionsTiersGetResponseBody promotionTier, PimcorePromotionModel pimcorePromotionModel) Updates an existingPimcorePromotionModelinstance with values from aPromotionsTiersGetResponseBody.voidupdatePimcorePromotionModelFromPromotion(WebhookRequest.WebhookModel.BaseModel webhookModel, PimcorePromotionModel pimcorePromotionModel) Updates the specifiedPimcorePromotionModelinstance with values from a givenWebhookRequest.WebhookModel.BaseModelwebhook model.voidupdatePimcorePromotionModelFromVoucher(io.voucherify.client.model.VouchersGetResponseBody voucher, PimcorePromotionModel pimcorePromotionModel) Updates an existingPimcorePromotionModelinstance with values from aVouchersGetResponseBody.voidupdatePimcorePromotionModelToDelete(String id, PimcorePromotionModel pimcorePromotionModel) Updates the specifiedPimcorePromotionModelinstance to mark it for deletion using values from a givenWebhookRequest.WebhookModel.BaseModelwebhook model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bhn.promotion.voucherify.mapper.PimcorePromotionModelMapper
getLocalDateTimeFromOffSetDateTime, mapAmountLimit, mapAmountOff, mapPercentOff
-
Constructor Details
-
PimcorePromotionModelMapperImpl
public PimcorePromotionModelMapperImpl()
-
-
Method Details
-
updatePimcorePromotionModelFromCampaign
public void updatePimcorePromotionModelFromCampaign(io.voucherify.client.model.CampaignsGetResponseBody campaign, PimcorePromotionModel pimcorePromotionModel) Description copied from interface:PimcorePromotionModelMapperUpdates an existingPimcorePromotionModelinstance with values from aCampaignsGetResponseBody.- Specified by:
updatePimcorePromotionModelFromCampaignin interfacePimcorePromotionModelMapper- Parameters:
campaign- the source CampaignsGetResponseBody containing datapimcorePromotionModel- the target PimcorePromotionModel instance to update
-
updatePimcorePromotionModelFromPromotion
public void updatePimcorePromotionModelFromPromotion(io.voucherify.client.model.PromotionsTiersGetResponseBody promotionTier, PimcorePromotionModel pimcorePromotionModel) Description copied from interface:PimcorePromotionModelMapperUpdates an existingPimcorePromotionModelinstance with values from aPromotionsTiersGetResponseBody.- Specified by:
updatePimcorePromotionModelFromPromotionin interfacePimcorePromotionModelMapper- Parameters:
promotionTier- the source PromotionsTiersGetResponseBody containing datapimcorePromotionModel- the target PimcorePromotionModel instance to update
-
updatePimcorePromotionModelFromVoucher
public void updatePimcorePromotionModelFromVoucher(io.voucherify.client.model.VouchersGetResponseBody voucher, PimcorePromotionModel pimcorePromotionModel) Description copied from interface:PimcorePromotionModelMapperUpdates an existingPimcorePromotionModelinstance with values from aVouchersGetResponseBody.- Specified by:
updatePimcorePromotionModelFromVoucherin interfacePimcorePromotionModelMapper- Parameters:
voucher- the source VouchersGetResponseBody containing datapimcorePromotionModel- the target PimcorePromotionModel instance to update
-
updatePimcorePromotionModelFromPromotion
public void updatePimcorePromotionModelFromPromotion(WebhookRequest.WebhookModel.BaseModel webhookModel, PimcorePromotionModel pimcorePromotionModel) Description copied from interface:PimcorePromotionModelMapperUpdates the specifiedPimcorePromotionModelinstance with values from a givenWebhookRequest.WebhookModel.BaseModelwebhook model.- Specified by:
updatePimcorePromotionModelFromPromotionin interfacePimcorePromotionModelMapper- Parameters:
webhookModel- The sourceWebhookRequest.WebhookModel.BaseModelobject containing the ID to be mapped to the promotion model.pimcorePromotionModel- The targetPimcorePromotionModelinstance that will be updated with the values from the webhook model.
-
updatePimcorePromotionModelToDelete
public void updatePimcorePromotionModelToDelete(String id, PimcorePromotionModel pimcorePromotionModel) Description copied from interface:PimcorePromotionModelMapperUpdates the specifiedPimcorePromotionModelinstance to mark it for deletion using values from a givenWebhookRequest.WebhookModel.BaseModelwebhook model.- Specified by:
updatePimcorePromotionModelToDeletein interfacePimcorePromotionModelMapper- Parameters:
id- The ID to be mapped to bothpromotionIdandentityIdof the promotion model.pimcorePromotionModel- The targetPimcorePromotionModelinstance that will be updated to reflect the deletion status.
-