Skip to content

Commit

Permalink
fix(ad-hoc): typos (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-vysotskyi-cko authored May 24, 2024
1 parent 3e9d43a commit 6a69317
Show file tree
Hide file tree
Showing 39 changed files with 73 additions and 73 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ extension ProcessOutConfiguration {
/// Creates production configuration.
///
/// - Parameters:
/// - appVersion: when application parameter is set, it takes precedance over this parameter.
/// - appVersion: when application parameter is set, it takes precedence over this parameter.
public static func production(
projectId: String,
application: Application? = nil,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ final class UrlSessionHttpConnector: HttpConnector {

private struct Response: Decodable {

/// Indicates whether request was processed successfuly.
/// Indicates whether request was processed successfully.
let success: Bool
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct DeviceMetadata: Encodable {
/// Width of the screen in pixels.
let appScreenWidth: Int

/// Height of the screen in pixles.
/// Height of the screen in pixels.
let appScreenHeight: Int

/// Time zone offset in minutes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class LocalEventEmitter: POEventEmitter, @unchecked Sendable {
lock.unlock()
var isHandled = false
for subscription in eventSubscriptions {
// Event should be delievered to all subscribers.
// Event should be delivered to all subscribers.
isHandled = subscription.listener(event) || isHandled
}
if !isHandled {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

struct PhoneNumberFormat: Decodable {

/// Formatting patern.
/// Formatting pattern.
let pattern: String

/// Leading digits pattern.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct LogEvent {
/// Actual log message.
let message: String

/// The string that categorizes event.
/// The string that categorises event.
let category: String

/// Date associated with message.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
self.interpolation = stringInterpolation
}

/// Creates an instance initialized to the given string value.
/// Creates an instance initialised to the given string value.
///
/// - Parameter value: The value of the new instance.
public init(stringLiteral value: String) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,51 +9,51 @@ protocol MarkdownVisitor<Result> {

associatedtype Result

/// Vists unknown node.
/// Visits unknown node.
func visit(node: MarkdownUnknown) -> Result

/// Vists document.
/// Visits document.
func visit(document: MarkdownDocument) -> Result

/// Vists emphasis node.
/// Visits emphasis node.
func visit(emphasis: MarkdownEmphasis) -> Result

/// Vists list node.
/// Visits list node.
func visit(list: MarkdownList) -> Result

/// Vists list item.
/// Visits list item.
func visit(listItem: MarkdownListItem) -> Result

/// Vists paragraph node.
/// Visits paragraph node.
func visit(paragraph: MarkdownParagraph) -> Result

/// Vists strong node.
/// Visits strong node.
func visit(strong: MarkdownStrong) -> Result

/// Vists text node.
/// Visits text node.
func visit(text: MarkdownText) -> Result

/// Vists softbreak node.
/// Visits softbreak node.
func visit(softbreak: MarkdownSoftbreak) -> Result

/// Vists linebreak node.
/// Visits linebreak node.
func visit(linebreak: MarkdownLinebreak) -> Result

/// Vists heading node.
/// Visits heading node.
func visit(heading: MarkdownHeading) -> Result

/// Vists block quote.
/// Visits block quote.
func visit(blockQuote: MarkdownBlockQuote) -> Result

/// Vists code block
/// Visits code block
func visit(codeBlock: MarkdownCodeBlock) -> Result

/// Vists thematic break.
/// Visits thematic break.
func visit(thematicBreak: MarkdownThematicBreak) -> Result

/// Vists code span.
/// Visits code span.
func visit(codeSpan: MarkdownCodeSpan) -> Result

/// Vists link node.
/// Visits link node.
func visit(link: MarkdownLink) -> Result
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

protocol CardsRepository: PORepository {

/// Allows to retrieve card issuer information based on iin.
/// Allows to retrieve card issuer information based on IIN.
///
/// - Parameters:
/// - iin: Card issuer identification number. Corresponds to the first 6 or 8 digits of the main card number.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public struct POCardTokenizationRequest: Encodable {
/// Preferred scheme defined by the Customer.
public let preferredScheme: String?

/// Metada related to the card.
/// Metadata related to the card.
public let metadata: [String: String]?

public init(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public struct POAssignCustomerTokenRequest: Encodable { // sourcery: AutoCodingK
/// Can be used for a 3DS2 request to indicate which third party SDK is used for the call.
public let thirdPartySdkVersion: String?

/// Additional matadata.
/// Additional metadata.
public let metadata: [String: String]?

/// Creates request instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

protocol TelemetryRepository: PORepository {

/// Submits telemetery.
/// Submits telemetry.
func submit(telemetry: Telemetry) async throws
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class DefaultThreeDSService: ThreeDSService {
// MARK: - ThreeDSService

func handle(action: ThreeDSCustomerAction, delegate: Delegate) async throws -> String {
// todo(andrii-vysotskyi): when async delegate methods are publically available ensure
// todo(andrii-vysotskyi): when async delegate methods are publicly available ensure
// that thrown errors are mapped to POFailure if needed.
switch action.type {
case .fingerprintMobile:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ final class DefaultAlternativePaymentMethodsService: POAlternativePaymentMethods

func alternativePaymentMethodResponse(url: URL) throws -> POAlternativePaymentMethodResponse {
guard let components = URLComponents(url: url, resolvingAgainstBaseURL: true) else {
let message = "Invalid or malformed Alternative Payment Mehod URL response provided."
let message = "Invalid or malformed Alternative Payment Method URL response provided."
throw POFailure(message: message, code: .generic(.mobile), underlyingError: nil)
}
let queryItems = components.queryItems ?? []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

/// Request describing parameters that are used to creat URL that user can be redirected to initiate
/// Request describing parameters that are used to create URL that user can be redirected to initiate
/// alternative payment.
///
/// - NOTE: Make sure to supply proper`additionalData` specific for particular payment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public typealias POCardsServiceType = POCardsService
/// Provides set of methods to tokenize and manipulate cards.
public protocol POCardsService: POService {

/// Allows to retrieve card issuer information based on iin.
/// Allows to retrieve card issuer information based on IIN.
///
/// - Parameters:
/// - iin: Card issuer identification number. Corresponds to the first 6 or 8 digits of the main card number.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public typealias POCustomerTokensServiceType = POCustomerTokensService
/// for Merchant Initiated Transactions (MITs).
public protocol POCustomerTokensService: POService {

/// Assigns new source to existing customer token and optionaly verifies it.
/// Assigns new source to existing customer token and optionally verifies it.
func assignCustomerToken(
request: POAssignCustomerTokenRequest, threeDSService: PO3DSService
) async throws -> POCustomerToken
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public final class PO3DSRedirectViewControllerBuilder {
return self
}

/// Returns view controller that caller should encorporate into view controllers hierarchy.
/// Returns view controller that caller should incorporate into view controllers hierarchy.
///
/// - Note: Caller should dismiss view controller after completion is called.
/// - Note: Returned object's delegate shouldn't be modified.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public final class PONativeAlternativePaymentMethodViewControllerBuilder { // sw
return self
}

/// Returns view controller that caller should encorporate into view controllers hierarchy.
/// Returns view controller that caller should incorporate into view controllers hierarchy.
/// If instance can't be created assertion failure is triggered.
///
/// - NOTE: Caller should dismiss view controller after completion is called.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public struct PONativeAlternativePaymentMethodConfiguration {
/// - Parameters:
/// - title: Action title. Pass `nil` title to use default value.
/// - disabledFor: By default user can interact with action immediately after it becomes visible, it is
/// possible to make it initialy disabled for given amount of time.
/// possible to make it initially disabled for given amount of time.
case cancel(title: String? = nil, disabledFor: TimeInterval = 0)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ public enum PONativeAlternativePaymentMethodEvent {
case willStart

/// Indicates that implementation successfully loaded initial portion of data and currently waiting for user
/// to fulfill needed info.
/// to fulfil needed info.
case didStart

/// This event is emitted when a user clicks the "Cancel payment" button, prompting the system to display a
/// confirmation dialog. This event signifies the initiation of the cancellation confirmation process.
///
/// This event can be used for tracking user interactions related to payment cancellations. It helps in
/// understanding user behavior, particularly the frequency and context in which users consider canceling a payment.
/// understanding user behaviour, particularly the frequency and context in which users consider canceling a payment.
case didRequestCancelConfirmation

/// Event is sent when the user changes any editable value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ protocol ViewModel<State>: AnyObject {

associatedtype State

/// Interactor's state.
/// View model's state.
var state: State { get }

/// A closure that is invoked after the object has changed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UIKit
/// Holds typesetting information that could be applied to displayed text.
public struct POTypography {

/// Font assosiated with given typography.
/// Font associated with given typography.
public let font: UIFont

/// Line height. If not set explicitly equals to font's line height.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UIKit
/// Possible activity indicator styles.
public enum POActivityIndicatorStyle {

/// Custom actvity indicator.
/// Custom activity indicator.
case custom(POActivityIndicatorView)

/// System activity indicator.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protocol CodeTextFieldDelegate: AnyObject {

/// Asks the delegate whether to process the pressing of the Return button for the text field.
///
/// - Returns: `true` if the text field should implement its default behavior for the return button;
/// - Returns: `true` if the text field should implement its default behaviour for the return button;
/// otherwise, `false`.
func codeTextFieldShouldReturn(_ textField: CodeTextField) -> Bool
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ import Checkout3DS

protocol AuthenticationErrorMapper {

/// Converts given authentication error to processout error.
/// Converts given authentication error to ProcessOut error.
func convert(error: Checkout3DS.AuthenticationError) -> POFailure
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ import Checkout3DS

protocol ConfigurationMapper {

/// Converts given processout configuration to Checkout config parameters.
/// Converts given ProcessOut configuration to Checkout config parameters.
func convert(configuration: PO3DS2Configuration) -> ThreeDS2ServiceConfiguration.ConfigParameters
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public protocol POCheckout3DSServiceDelegate: AnyObject {
func willCreateAuthenticationRequest(configuration: PO3DS2Configuration)

/// Asks implementation to create `ThreeDS2ServiceConfiguration` using `configParameters`. This method
/// could be used to customize underlying 3DS SDK appearance and bahaviour.
/// could be used to customize underlying 3DS SDK appearance and behavior.
func configuration(
with parameters: Checkout3DS.ThreeDS2ServiceConfiguration.ConfigParameters
) -> Checkout3DS.ThreeDS2ServiceConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,51 +9,51 @@ protocol MarkdownVisitor<Result> {

associatedtype Result

/// Vists unknown node.
/// Visits unknown node.
func visit(node: MarkdownUnknown) -> Result

/// Vists document.
/// Visits document.
func visit(document: MarkdownDocument) -> Result

/// Vists emphasis node.
/// Visits emphasis node.
func visit(emphasis: MarkdownEmphasis) -> Result

/// Vists list node.
/// Visits list node.
func visit(list: MarkdownList) -> Result

/// Vists list item.
/// Visits list item.
func visit(listItem: MarkdownListItem) -> Result

/// Vists paragraph node.
/// Visits paragraph node.
func visit(paragraph: MarkdownParagraph) -> Result

/// Vists strong node.
/// Visits strong node.
func visit(strong: MarkdownStrong) -> Result

/// Vists text node.
/// Visits text node.
func visit(text: MarkdownText) -> Result

/// Vists softbreak node.
/// Visits softbreak node.
func visit(softbreak: MarkdownSoftbreak) -> Result

/// Vists linebreak node.
/// Visits linebreak node.
func visit(linebreak: MarkdownLinebreak) -> Result

/// Vists heading node.
/// Visits heading node.
func visit(heading: MarkdownHeading) -> Result

/// Vists block quote.
/// Visits block quote.
func visit(blockQuote: MarkdownBlockQuote) -> Result

/// Vists code block
/// Visits code block
func visit(codeBlock: MarkdownCodeBlock) -> Result

/// Vists thematic break.
/// Visits thematic break.
func visit(thematicBreak: MarkdownThematicBreak) -> Result

/// Vists code span.
/// Visits code span.
func visit(codeSpan: MarkdownCodeSpan) -> Result

/// Vists link node.
/// Visits link node.
func visit(link: MarkdownLink) -> Result
}
Loading

0 comments on commit 6a69317

Please sign in to comment.