Skip to content

Commit

Permalink
Merge pull request #108 in MI/yandex-checkout-payments-swift from ~TV…
Browse files Browse the repository at this point in the history
…ERDOKHLEB/yandex-checkout-payments-swift:task/b2b/no-task/remove-default-methods to release/3.1.0

* commit '54ab8b920d603254f6fab8c4b3f6a72705b8947f':
  [NO-TASK] Delete default implementation for `TokenizationModuleOutput` protocol
  • Loading branch information
oltv00 committed Dec 23, 2019
2 parents c951153 + 54ab8b9 commit cebdc6c
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions YandexCheckoutPayments/Public/TokenizationModuleIO.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,20 @@ public protocol TokenizationModuleOutput: class {
/// In the process of running mSDK, allows you to run processes using the
/// `TokenizationModuleInput` protocol methods.
/// - error: `YandexCheckoutPaymentsError` error.
func didFinish(on module: TokenizationModuleInput,
with error: YandexCheckoutPaymentsError?)
func didFinish(
on module: TokenizationModuleInput,
with error: YandexCheckoutPaymentsError?
)

/// Will be called when the 3-D Secure process successfully passes.
///
/// - Parameters:
/// - module: Input for tokenization module.
/// In the process of running mSDK, allows you to run processes using the
/// `TokenizationModuleInput` protocol methods.
func didSuccessfullyPassedCardSec(on module: TokenizationModuleInput)
func didSuccessfullyPassedCardSec(
on module: TokenizationModuleInput
)

/// Will be called when the tokenization process successfully passes.
///
Expand All @@ -48,15 +52,3 @@ public protocol TokenizationModuleOutput: class {
paymentMethodType: PaymentMethodType
)
}

/// Default implementation for `TokenizationModuleOutput`
public extension TokenizationModuleOutput {
func didFinish(on module: TokenizationModuleInput,
with error: YandexCheckoutPaymentsError?) {}
func didSuccessfullyPassedCardSec(on module: TokenizationModuleInput) {}
func tokenizationModule(
_ module: TokenizationModuleInput,
didTokenize token: Tokens,
paymentMethodType: PaymentMethodType
) {}
}

0 comments on commit cebdc6c

Please sign in to comment.