-
Notifications
You must be signed in to change notification settings - Fork 11
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
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.
looks good just few comments
private func deactivatePayPalAccount(_ token: String) { | ||
Hyperwallet.shared.deactivatePayPalAccount(transferMethodToken: token, | ||
notes: "Deactivating the PayPal Account", | ||
completion: deactivateTransferMethodHandler()) |
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.
indentation.
@@ -95,7 +95,7 @@ final class AddTransferMethodPresenter { | |||
else { | |||
return | |||
} | |||
var hyperwalletTransferMethod: HyperwalletTransferMethod |
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.
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() |
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.
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", |
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.
We should use HyperwalletPayPalAccount.Builder(token: "trm-123456789").build()
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.
We can't. We need country and currency as well
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.
Looks good.
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.
Looks good.
…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
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.
Looks good.
Conflicts: HyperwalletUISDK.xcodeproj/project.pbxproj
No description provided.