Updated on 2026-08-14
This commit is contained in:
parent
009575eaa7
commit
11334b807c
3 changed files with 21 additions and 11 deletions
|
|
@ -18,10 +18,10 @@ class ReferralConverter @Inject constructor() : Converter<ReferralResponse, Refe
|
|||
return if (referral != null) {
|
||||
ReferralData.ParticipantData(
|
||||
award = conditions.award,
|
||||
discount = conditions.discount,
|
||||
discountType = DiscountType.valueOf(conditions.discountType.name),
|
||||
discount = conditions.discount.amount,
|
||||
discountType = DiscountType.valueOf(conditions.discount.discountType.name),
|
||||
tosLink = conditions.tosLink,
|
||||
tokens = tokenConverter.convertList(conditions.tokens),
|
||||
tokens = tokenConverter.convertList(conditions.awards.map { it.token }),
|
||||
referral = ReferralInfo(
|
||||
shareLink = referral.shareLink,
|
||||
address = referral.address,
|
||||
|
|
@ -33,10 +33,10 @@ class ReferralConverter @Inject constructor() : Converter<ReferralResponse, Refe
|
|||
} else {
|
||||
ReferralData.NonParticipantData(
|
||||
award = conditions.award,
|
||||
discount = conditions.discount,
|
||||
discountType = DiscountType.valueOf(conditions.discountType.name),
|
||||
discount = conditions.discount.amount,
|
||||
discountType = DiscountType.valueOf(conditions.discount.discountType.name),
|
||||
tosLink = conditions.tosLink,
|
||||
tokens = tokenConverter.convertList(conditions.tokens),
|
||||
tokens = tokenConverter.convertList(conditions.awards.map { it.token }),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue