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

[PWN-9260] [WIP] Withdrawal #1479

Merged
merged 3 commits into from
Jul 20, 2023
Merged

Conversation

sidorov-panda
Copy link
Contributor

@sidorov-panda sidorov-panda commented Jul 19, 2023

Link jira to issue

https://p2pvalidator.atlassian.net/browse/PWN-9260

Description of the changes

@github-actions github-actions bot changed the title [WIP] Withdrawal [PWN-9260] [WIP] Withdrawal Jul 19, 2023
@@ -424,6 +424,68 @@ extension Resolver: ResolverRegistering {
}
.scope(.session)

register {
StrigaBankTransferUserDataRepository(
Copy link
Collaborator

Choose a reason for hiding this comment

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

what has changed here?

title: viewModel.actionTitle.uppercaseFirst,
style: .primaryWhite,
expandable: true,
isEnabled: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

it is by default, no? or you will update it later?

@sidorov-panda sidorov-panda changed the base branch from feature/pwn-8165-striga to feature/PWN-9256 July 20, 2023 09:42
Base automatically changed from feature/PWN-9256 to feature/pwn-8165-striga July 20, 2023 10:18
@@ -17,4 +19,7 @@ public protocol BankTransferUserDataRepository {
func clearCache() async

func getWallet(userId: String) async throws -> UserWallet?

func withdrawalInfo() async throws -> WithdrawalInfo?
Copy link
Collaborator

Choose a reason for hiding this comment

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

get probably as other methods

@@ -22,6 +23,10 @@ public protocol BankTransferService<Provider> where Provider: BankTransferUserDa
func resendSMS() async throws

func getKYCToken() async throws -> String

// WithdrowalProvider
Copy link
Collaborator

Choose a reason for hiding this comment

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

not a part of WithdrowalProvider i guess


public func withdrawalInfo() async throws -> Provider.WithdrawalInfo? {
try await repository.withdrawalInfo()

Copy link
Collaborator

Choose a reason for hiding this comment

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

space

public struct StrigaWithdrawalInfo: Codable {
public var IBAN: String?
public var BIC: String?
public var receiver: String
Copy link
Collaborator

Choose a reason for hiding this comment

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

let maybe

@@ -88,6 +99,8 @@ extension StrigaLocalProviderImpl: StrigaLocalProvider {
case registration
case account
case whitelisted
case withdrawalInfo

Copy link
Collaborator

Choose a reason for hiding this comment

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

space

@@ -412,3 +412,21 @@ private extension UserWallet {
self.accounts = UserAccounts(eur: eur, usdc: usdc)
}
}

extension StrigaBankTransferUserDataRepository {
Copy link
Collaborator

Choose a reason for hiding this comment

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

might wanna put a mark on it? MARK: - Withdrawal

@@ -42,6 +42,8 @@ final class BankTransferClaimCoordinator: Coordinator<BankTransferClaimCoordinat
override func start() -> AnyPublisher<BankTransferClaimCoordinatorResult, Never> {
// Start OTP Coordinator
bankTransferService.value.state
.prefix(1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

why ?

submitLabel: .next
)
}
Text("Your bank account name must match the name registered to your Key App account")
Copy link
Collaborator

Choose a reason for hiding this comment

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

texts

}
}

//struct WithdrawView_Previews: PreviewProvider {
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove if it can be used?

@lisemyon lisemyon merged commit 2cb5d8e into feature/pwn-8165-striga Jul 20, 2023
22 of 24 checks passed
@lisemyon lisemyon deleted the feature/pwn-9260 branch July 20, 2023 10:44
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.

2 participants