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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/hw 51305 create pay pal account #12

Merged
merged 17 commits into from
May 10, 2019

Conversation

jsaini-hw
Copy link
Collaborator

No description provided.

Copy link

@syyang-hw syyang-hw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good just few comments

private func deactivatePayPalAccount(_ token: String) {
Hyperwallet.shared.deactivatePayPalAccount(transferMethodToken: token,
notes: "Deactivating the PayPal Account",
completion: deactivateTransferMethodHandler())

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation.

@@ -95,7 +95,7 @@ final class AddTransferMethodPresenter {
else {
return
}
var hyperwalletTransferMethod: HyperwalletTransferMethod

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we still can leave it because for most of the cases we don't need to initialize a hyperwalletTransferMethod.

@@ -115,11 +115,7 @@ final class AddTransferMethodPresenter {
.build()

default:
hyperwalletTransferMethod = HyperwalletTransferMethod()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can keep this line.

@@ -178,7 +196,13 @@ class ListTransferMethodPresenterTests: XCTestCase {
transferMethodProfileType: "INDIVIDUAL")
.build()
bankCard.setField(key: "token", value: "trm-123456789")
let transferMethods = [bankAccount, bankCard]

let payPalAccount = HyperwalletPayPalAccount.Builder(transferMethodCountry: "US",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use HyperwalletPayPalAccount.Builder(token: "trm-123456789").build()

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't. We need country and currency as well

gmeyer-hw
gmeyer-hw previously approved these changes May 8, 2019
syyang-hw
syyang-hw previously approved these changes May 8, 2019
Copy link

@syyang-hw syyang-hw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@jsaini-hw jsaini-hw dismissed stale reviews from syyang-hw and gmeyer-hw via 977d4df May 8, 2019 23:16
syyang-hw
syyang-hw previously approved these changes May 8, 2019
Copy link

@syyang-hw syyang-hw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

gmeyer-hw
gmeyer-hw previously approved these changes May 8, 2019
@jsaini-hw jsaini-hw dismissed stale reviews from gmeyer-hw and syyang-hw via fc1530b May 9, 2019 20:57
jsaini-hw added 2 commits May 9, 2019 14:20
…unt' of https://github.com/hyperwallet/hyperwallet-ios-ui-sdk into feature/HW-51305-Create-PayPal-Account

# Conflicts:
#	HyperwalletUISDK.xcodeproj/project.pbxproj
#	Sources/TransferMethod/AddTransferMethodViewController.swift
#	UITests/TransferMethod/ListTransferMethodTests.swift
syyang-hw
syyang-hw previously approved these changes May 9, 2019
Copy link

@syyang-hw syyang-hw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

gmeyer-hw
gmeyer-hw previously approved these changes May 9, 2019
@jsaini-hw jsaini-hw dismissed stale reviews from gmeyer-hw and syyang-hw via d9fd285 May 9, 2019 23:28
@ekan-hw ekan-hw merged commit 71a9fc1 into development May 10, 2019
@jsaini-hw jsaini-hw deleted the feature/HW-51305-Create-PayPal-Account branch August 16, 2019 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants