NTP-1234 | Add Defaults for Offer Experience Bottom Sheet (#15181)
This commit is contained in:
@@ -116,10 +116,9 @@ data class DefaultConfigContent(
|
||||
campaignId = "upi_default_config",
|
||||
titlePrefix = "Win up to",
|
||||
titleSuffix = "1,000",
|
||||
descriptionPrefix = "on any bill payment ",
|
||||
descriptionPrefix = "on every payment ",
|
||||
descriptionSuffix = "via Navi UPI",
|
||||
iconUrl =
|
||||
"https://public-assets.prod.navi-sa.in/navi-pay/png/upi-profile-icons/self_transfer.png",
|
||||
iconUrl = "https://public-assets.prod.navi-sa.in/navi-pay/svg/np_navi_upi.svg",
|
||||
applicableInfo = listOf("Applicable only if you pay via Navi UPI"),
|
||||
offerStrip =
|
||||
OfferResponse.OfferStrip(
|
||||
@@ -128,6 +127,7 @@ data class DefaultConfigContent(
|
||||
),
|
||||
offerAppliedStrip =
|
||||
OfferResponse.OfferStrip(prefixText = "You will get up to", suffixText = "1,000"),
|
||||
categoryName = "ALL UPI PAYMENTS",
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
@@ -221,6 +221,7 @@ constructor(
|
||||
tags = listOf(BAU),
|
||||
offerStrip = bauOfferInfo.offerStrip,
|
||||
offerAppliedStrip = bauOfferInfo.offerAppliedStrip,
|
||||
categoryName = bauOfferInfo.categoryName,
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -45,7 +45,13 @@ class OfferResponseToOfferDataMapper @Inject constructor() {
|
||||
offerAppliedStrip = selectedMap?.offerAppliedStrip,
|
||||
sessionAttributesInfo = offerResponse.sessionAttributesInfo,
|
||||
tags = offerResponse.tags,
|
||||
categoryName = selectedMap?.earnOffer?.categoryName,
|
||||
categoryName =
|
||||
selectedMap?.earnOffer?.categoryName
|
||||
?: when (vertical) {
|
||||
ModuleNameV2.NAVIPAY -> DEFAULT_CATEGORY_NAME_NAVIPAY
|
||||
ModuleNameV2.BBPS -> DEFAULT_CATEGORY_NAME_BILLPAY
|
||||
else -> null
|
||||
},
|
||||
ctaData = selectedMap?.earnOffer?.ctaData,
|
||||
)
|
||||
}
|
||||
@@ -53,5 +59,8 @@ class OfferResponseToOfferDataMapper @Inject constructor() {
|
||||
companion object {
|
||||
private const val BILLPAY = "billPay"
|
||||
private const val NAVIPAY = "naviPay"
|
||||
|
||||
private const val DEFAULT_CATEGORY_NAME_BILLPAY = "ALL BILLS & RECHARGES"
|
||||
private const val DEFAULT_CATEGORY_NAME_NAVIPAY = "ALL UPI PAYMENTS"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user