Skip to content

Commit

Permalink
Merge pull request #71 in MI/yandex-checkout-payments-swift from ~TVE…
Browse files Browse the repository at this point in the history
…RDOKHLEB/yandex-checkout-payments-swift:task/b2b/no-task/fix-metrics to feature/money-auth-sdk

* commit 'f2f3ef42a1e49a933e09f1f0afa6ca634dd43484':
  [NO-TASK] Fix metrics
  • Loading branch information
AutoMergeBot authored and AutoMergeBot committed Oct 17, 2020
2 parents aa93f13 + f2f3ef4 commit e52aaef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ enum AnalyticsEvent {
/// The user is not authorized.
case withoutAuth

/// Successfully completed authorization in Yandex.Login.
case yandexLogin
/// Successfully completed authorization in Money center authorization
case moneyAuth

/// Successful payment authorization in the wallet.
case paymentAuth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ struct AnalyticsProvider: AnalyticsProviding {
if hasReusableWalletToken {
authType = .paymentAuth
tokenType = .multiple
// TODO: MOC-762
// } else if authorizationService.getYandexToken() != nil {
// authType = .yandexLogin
// tokenType = .single
} else if keyValueStoring.getString(
for: KeyValueStoringKeys.moneyCenterAuthToken
) != nil {
authType = .moneyAuth
tokenType = .single
} else {
authType = .withoutAuth
tokenType = nil
}

return (authType, tokenType)
}
}

0 comments on commit e52aaef

Please sign in to comment.