-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
EP-163: Create properties checkout #1145
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Left a few nit pick comments but otherwise awesome! Also great to have a pledge data extension class 馃帀 馃殌
@@ -0,0 +1,46 @@ | |||
@file:JvmName("PledgeDataExt") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I don't think we need this annotation as the compiler is already generating this java class with this name under the hood. Might be good to keep it though for consistency/readability.
* | ||
* @return Double | ||
*/ | ||
fun CheckoutData.bonus() = this.bonusAmount()?.let { it } ?: 0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the let
call can be removed
@@ -4,13 +4,14 @@ import com.kickstarter.libs.RefTag | |||
import com.kickstarter.libs.utils.RewardUtils.isItemized | |||
import com.kickstarter.libs.utils.RewardUtils.isShippable | |||
import com.kickstarter.libs.utils.RewardUtils.isTimeLimitedEnd | |||
import com.kickstarter.libs.utils.extensions.totalAmount | |||
import com.kickstarter.libs.utils.extensions.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove wild card import
馃摬 What
Added properties:
馃洜 How
馃憖 See
| | |
馃搵 QA
Manage your pledge
screenStory 馃摉
EP-163