Class VoucherifyClientLoggerUtil
java.lang.Object
org.bhn.promotion.voucherify.utils.VoucherifyClientLoggerUtil
This class contains methods to prepare logging info for SDK's
external public api's invocation
-
Method Summary
Modifier and TypeMethodDescriptiongetLogInfoForAddPromotionTiersToCampaign(String campaignId, io.voucherify.client.model.PromotionsTiersCreateRequestBody promotionsTiersCreateRequestBody) Generates Logging Information from the selected input paramsgetLogInfoForCreateProductCollection(io.voucherify.client.model.ProductCollectionsCreateRequestBody productCollectionsCreateRequestBody) Generates Logging Information from the selected input paramsgetLogInfoForCreateValidationRuleAssignment(String validationRuleId, Boolean force, io.voucherify.client.model.ValidationRulesAssignmentsCreateRequestBody assignmentsCreateRequestBody) Generates Logging Information from the selected input paramsgetLogInfoForDeleteValidationRuleAssignment(String validationRuleId, String assignmentId) Generates Logging Information from the selected input paramsgetLogInfoForValidationRulesCreateRequestBody(io.voucherify.client.model.ValidationRulesCreateRequestBody requestBody) Generates Logging Information from the selected input paramsgetLogInfoForVouchersCreateWithSpecificCodeRequestBody(String code, io.voucherify.client.model.VouchersCreateWithSpecificCodeRequestBody requestBody) Generates logging information from the selected attributes
-
Method Details
-
getLogInfoForVouchersCreateWithSpecificCodeRequestBody
public static Map<String,String> getLogInfoForVouchersCreateWithSpecificCodeRequestBody(String code, io.voucherify.client.model.VouchersCreateWithSpecificCodeRequestBody requestBody) Generates logging information from the selected attributes- Parameters:
code- voucher code identifier.requestBody- to create a voucher with specific code- Returns:
- logInfo Map containing the logging attributes.
-
getLogInfoForValidationRulesCreateRequestBody
public static Map<String,String> getLogInfoForValidationRulesCreateRequestBody(io.voucherify.client.model.ValidationRulesCreateRequestBody requestBody) Generates Logging Information from the selected input params- Parameters:
requestBody- to create validation rules- Returns:
- logInfo Map containing the logging attributes.
-
getLogInfoForCreateValidationRuleAssignment
public static Map<String,String> getLogInfoForCreateValidationRuleAssignment(String validationRuleId, Boolean force, io.voucherify.client.model.ValidationRulesAssignmentsCreateRequestBody assignmentsCreateRequestBody) Generates Logging Information from the selected input params- Parameters:
validationRuleId- validation rule identifier.force- to force the creation validation rules assignmentassignmentsCreateRequestBody- to create validation rules assignment- Returns:
- logInfo Map containing the logging attributes.
-
getLogInfoForAddPromotionTiersToCampaign
public static Map<String,String> getLogInfoForAddPromotionTiersToCampaign(String campaignId, io.voucherify.client.model.PromotionsTiersCreateRequestBody promotionsTiersCreateRequestBody) Generates Logging Information from the selected input params- Parameters:
campaignId- campaignId for the Promotion tier.promotionsTiersCreateRequestBody- to create a promotion tier- Returns:
- logInfo Map containing the logging attributes.
-
getLogInfoForCreateProductCollection
public static Map<String,String> getLogInfoForCreateProductCollection(io.voucherify.client.model.ProductCollectionsCreateRequestBody productCollectionsCreateRequestBody) Generates Logging Information from the selected input params- Parameters:
productCollectionsCreateRequestBody- to create a product collection- Returns:
- logInfo Map containing the logging attributes.
-
getLogInfoForDeleteValidationRuleAssignment
public static Map<String,String> getLogInfoForDeleteValidationRuleAssignment(String validationRuleId, String assignmentId) Generates Logging Information from the selected input params- Parameters:
validationRuleId- validation rule identifierassignmentId- rule assignment identifier- Returns:
- logInfo Map containing the logging attributes.
-