Skip to content
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

Merged
merged 10 commits into from
Mar 9, 2021

Conversation

Arkariang
Copy link
Contributor

@Arkariang Arkariang commented Mar 3, 2021

馃摬 What

Added properties:

  • checkout_add_ons_count_total
  • checkout_add_ons_count_unique
  • checkout_add_ons_minimum_usd
  • checkout_bonus_amount_usd
  • checkout_reward_minimum_usd
  • checkout_shipping_amount_usd:

馃洜 How

  • All addOns related properties are collected on Checkout step, but storaged on pledgeData.

馃憖 See

Project_WithAddOns_Unique
Project_WAddOns
Project_WOAddOns_No_USD
| | |

馃搵 QA

  • Pledge to a project with addOns, if the project is from US the values will be the same as you see on the Manage your pledge screen
  • Pledge to a project with addOns, but a project from other country different from US, on this new properties you'll se the conversion from the project currency to us dolars

Story 馃摉

EP-163

@Arkariang Arkariang marked this pull request as ready for review March 3, 2021 22:46
Copy link
Contributor

@leighdouglas leighdouglas left a 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")
Copy link
Contributor

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
Copy link
Contributor

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.*
Copy link
Contributor

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

@Arkariang Arkariang merged commit 7a184be into master Mar 9, 2021
@Arkariang Arkariang deleted the imartin/EP-163-create-properties-checkout branch March 9, 2021 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants