Skip to content

Commit

Permalink
Release 3.0.0 (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
mobile-devopsteam-cko authored Apr 13, 2023
1 parent b4d8d23 commit 80bf2c5
Show file tree
Hide file tree
Showing 23 changed files with 491 additions and 89 deletions.
2 changes: 1 addition & 1 deletion Checkout3DS.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Checkout3DS"
s.version = "2.1.0"
s.version = "3.0.0"
s.summary = "Checkout 3DS SDK"
s.description = <<-DESC
The Checkout.com 3D Secure (3DS) mobile SDK allows you to provide a native 3DS2 experience in your mobile app, with visual styling that you can control.
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ typedef SWIFT_ENUM_NAMED(NSInteger, Checkout3DSAuthenticationError, "Authenticat
Checkout3DSAuthenticationErrorSdkPListModified = 1008,
/// Certificate Transparency for Checkout.com domains have been overridden by the app’s info.plist.
Checkout3DSAuthenticationErrorCertificateTransparencyOverriddenByApp = 1009,
/// A second SDK initialization request was made before the first request is completed
Checkout3DSAuthenticationErrorDuplicateSDKInitialised = 1010,
/// Standalone SDK is not intialised with required configurations
Checkout3DSAuthenticationErrorSdkNotInitialised = 1011,
/// No internet connectivity.
Checkout3DSAuthenticationErrorNoInternetConnectivity = 2000,
/// Connection failed.
Expand Down Expand Up @@ -370,6 +374,8 @@ typedef SWIFT_ENUM_NAMED(NSInteger, Checkout3DSAuthenticationError, "Authenticat
Checkout3DSAuthenticationErrorThreeDS2ProtocolError3562 = 3562,
/// The SDK identified an error in the 3D Secure process.
Checkout3DSAuthenticationErrorThreeDS2ProtocolError3563 = 3563,
/// The SDK identified an error in the 3D Secure process.
Checkout3DSAuthenticationErrorThreeDS2ProtocolError3564 = 3564,
/// An internal SDK error occurred.
Checkout3DSAuthenticationErrorInternalError4004 = 4004,
/// An internal SDK error occurred.
Expand Down Expand Up @@ -434,6 +440,8 @@ typedef SWIFT_ENUM_NAMED(NSInteger, Checkout3DSAuthenticationError, "Authenticat
Checkout3DSAuthenticationErrorInternalError4053 = 4053,
/// An internal SDK error occurred.
Checkout3DSAuthenticationErrorInternalError4054 = 4054,
/// Unable to validate session outcome from Sessions endpoint
Checkout3DSAuthenticationErrorInternalError4055 = 4055,
/// A response from the card issuer could not be validated.
Checkout3DSAuthenticationErrorThreeDS1ProtocolError5001 = 5001,
/// The card issuer reported an error.
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ import Swift
import UIKit
import WebKit
import _Concurrency
public struct AuthenticationRequestParameters : Swift.Encodable {
public let deviceData: Swift.String
public let sdkTransactionID: Swift.String
public let sdkAppID: Swift.String
public let sdkReferenceNumber: Swift.String
public let sdkEphemeralPublicKey: Swift.String
public let messageVersion: Swift.String
public init(deviceData: Swift.String, sdkTransactionID: Swift.String, sdkAppID: Swift.String, sdkReferenceNumber: Swift.String, sdkEphemeralPublicKey: Swift.String, mssageVersion: Swift.String)
public func encode(to encoder: Swift.Encoder) throws
}
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc final public class Checkout3DSService : ObjectiveC.NSObject {
@available(swift, obsoleted: 1.0)
@objc convenience override dynamic public init()
Expand All @@ -34,6 +44,16 @@ import _Concurrency
@objc public init(sessionID: Swift.String, sessionSecret: Swift.String, scheme: Swift.String)
@objc deinit
}
public struct ChallengeResult : Swift.Equatable {
public let sdkTransactionID: Swift.String
public let transactionStatus: Swift.String
public static func == (a: Checkout3DS.ChallengeResult, b: Checkout3DS.ChallengeResult) -> Swift.Bool
}
extension Checkout3DS.Standalone3DSService {
public enum Constants {
public static let challengeTimeout: Swift.Double
}
}
@objc(Checkout3DSButtonCustomizations) public protocol ButtonCustomizations {
@objc var verifyButtonCustomization: Checkout3DS.ButtonCustomization { get }
@objc var continueFlowButtonCustomization: Checkout3DS.ButtonCustomization { get }
Expand Down Expand Up @@ -85,6 +105,11 @@ import _Concurrency
get
}
}
public protocol ThreeDS2Service {
func createTransaction() -> Checkout3DS.Transaction
func getWarnings() -> Swift.Set<Checkout3DS.Warning>
func cleanUp()
}
@objc(Checkout3DSButtonCustomization) public protocol ButtonCustomization : Checkout3DS.Customization {
@objc var backgroundColor: UIKit.UIColor { get }
@objc var cornerRadius: CoreGraphics.CGFloat { get }
Expand Down Expand Up @@ -217,6 +242,8 @@ import _Concurrency
case concurrentAuthenticationRequest = 1007
case sdkPListModified = 1008
case certificateTransparencyOverriddenByApp = 1009
case duplicateSDKInitialised = 1010
case sdkNotInitialised = 1011
case noInternetConnectivity = 2000
case connectionFailed = 2001
case connectionTimeout = 2002
Expand Down Expand Up @@ -284,6 +311,7 @@ import _Concurrency
case threeDS2ProtocolError3561 = 3561
case threeDS2ProtocolError3562 = 3562
case threeDS2ProtocolError3563 = 3563
case threeDS2ProtocolError3564 = 3564
case internalError4004 = 4004
case internalError4005 = 4005
case internalError4018 = 4018
Expand Down Expand Up @@ -316,6 +344,7 @@ import _Concurrency
case internalError4052 = 4052
case internalError4053 = 4053
case internalError4054 = 4054
case internalError4055 = 4055
case threeDS1ProtocolError5001 = 5001
case threeDS1ProtocolError5002 = 5002
case threeDS1ProtocolError5003 = 5003
Expand All @@ -324,6 +353,9 @@ import _Concurrency
case threeDS1ProtocolError5007 = 5007
case threeDS1ProtocolError5008 = 5008
case threeDS1ProtocolError5500 = 5500
public var message: Swift.String {
get
}
public init?(rawValue: Swift.Int)
public typealias AllCases = [Checkout3DS.AuthenticationError]
public typealias RawValue = Swift.Int
Expand All @@ -341,6 +373,9 @@ import _Concurrency
@objc var font: UIKit.UIFont { get }
@objc var textColor: UIKit.UIColor { get }
}
public struct ChallengeParameters {
public init(threeDSServerTransactionID: Swift.String, acsTransactionID: Swift.String, acsRefNumber: Swift.String, acsSignedContent: Swift.String)
}
@objc(Checkout3DSDefaultFooterCustomization) public protocol FooterCustomization : Checkout3DS.Customization {
@objc var backgroundColor: UIKit.UIColor { get }
@objc var labelFont: UIKit.UIFont { get }
Expand All @@ -362,6 +397,9 @@ import _Concurrency
@inline(never) public func positiveCallback(jsonPtr: Swift.UnsafePointer<Swift.CChar>)
@inline(never) public func negativeCallback(jsonPtr: Swift.UnsafePointer<Swift.CChar>)
@inline(never) public func probeMethod()
public enum Standalone3DSService {
public static func initialize(with configuration: Checkout3DS.ThreeDS2ServiceConfiguration, environment: Checkout3DS.Environment = .production) throws -> Checkout3DS.ThreeDS2Service
}
extension Checkout3DS.Warning {
@objc public enum Severity : Swift.Int {
case low
Expand Down Expand Up @@ -390,6 +428,26 @@ extension Checkout3DS.Warning {
@objc public init(backgroundColor: UIKit.UIColor = UIColor(red: 251/255, green: 251/255, blue: 252/255, alpha: 1), headerTitle: Swift.String? = nil, buttonTitle: Swift.String? = nil, font: UIKit.UIFont = .preferredFont(forTextStyle: .headline), textColor: UIKit.UIColor = DefaultSystemColor.label)
@objc deinit
}
public struct ThreeDS2ServiceConfiguration {
public struct ConfigParameters {
public let directoryServerData: Checkout3DS.ThreeDS2ServiceConfiguration.DirectoryServerData
public let messageVersion: Swift.String
public let scheme: Swift.String
public init(directoryServerData: Checkout3DS.ThreeDS2ServiceConfiguration.DirectoryServerData, messageVersion: Swift.String, scheme: Swift.String)
}
public struct DirectoryServerData {
public let directoryServerID: Swift.String
public let directoryServerPublicKey: Swift.String
public let directoryServerRootCertificates: [Swift.String]
public init(directoryServerID: Swift.String, directoryServerPublicKey: Swift.String, directoryServerRootCertificates: [Swift.String])
}
public let configParameters: Checkout3DS.ThreeDS2ServiceConfiguration.ConfigParameters
public let locale: Foundation.Locale
public let uiCustomization: Checkout3DS.UICustomization
public let appURL: Foundation.URL?
public let challengeTimeout: Foundation.TimeInterval
public init(configParameters: Checkout3DS.ThreeDS2ServiceConfiguration.ConfigParameters, locale: Foundation.Locale = .autoupdatingCurrent, uiCustomization: Checkout3DS.UICustomization = DefaultUICustomization(), appURL: Foundation.URL? = nil, challengeTimeout: Foundation.TimeInterval = Standalone3DSService.Constants.challengeTimeout)
}
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(Checkout3DSDefaultSystemColor) public class DefaultSystemColor : ObjectiveC.NSObject {
@objc public static var label: UIKit.UIColor {
@objc get
Expand Down Expand Up @@ -458,6 +516,11 @@ extension QuartzCore.CALayerCornerCurve : Swift.Codable {
get
}
}
public protocol Transaction {
func getAuthenticationRequestParameters(completion: @escaping (Swift.Result<Checkout3DS.AuthenticationRequestParameters, Checkout3DS.AuthenticationError>) -> Swift.Void)
func doChallenge(challengeParameters: Checkout3DS.ChallengeParameters, completion: @escaping (Swift.Result<Checkout3DS.ChallengeResult, Checkout3DS.AuthenticationError>) -> Swift.Void)
func close()
}
@objc(Checkout3DSEntrySelectionCustomization) public protocol EntrySelectionCustomization : Checkout3DS.Customization {
@objc var borderWidth: CoreGraphics.CGFloat { get }
@objc var borderColor: CoreGraphics.CGColor { get }
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ import Swift
import UIKit
import WebKit
import _Concurrency
public struct AuthenticationRequestParameters : Swift.Encodable {
public let deviceData: Swift.String
public let sdkTransactionID: Swift.String
public let sdkAppID: Swift.String
public let sdkReferenceNumber: Swift.String
public let sdkEphemeralPublicKey: Swift.String
public let messageVersion: Swift.String
public init(deviceData: Swift.String, sdkTransactionID: Swift.String, sdkAppID: Swift.String, sdkReferenceNumber: Swift.String, sdkEphemeralPublicKey: Swift.String, mssageVersion: Swift.String)
public func encode(to encoder: Swift.Encoder) throws
}
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc final public class Checkout3DSService : ObjectiveC.NSObject {
@available(swift, obsoleted: 1.0)
@objc convenience override dynamic public init()
Expand All @@ -34,6 +44,16 @@ import _Concurrency
@objc public init(sessionID: Swift.String, sessionSecret: Swift.String, scheme: Swift.String)
@objc deinit
}
public struct ChallengeResult : Swift.Equatable {
public let sdkTransactionID: Swift.String
public let transactionStatus: Swift.String
public static func == (a: Checkout3DS.ChallengeResult, b: Checkout3DS.ChallengeResult) -> Swift.Bool
}
extension Checkout3DS.Standalone3DSService {
public enum Constants {
public static let challengeTimeout: Swift.Double
}
}
@objc(Checkout3DSButtonCustomizations) public protocol ButtonCustomizations {
@objc var verifyButtonCustomization: Checkout3DS.ButtonCustomization { get }
@objc var continueFlowButtonCustomization: Checkout3DS.ButtonCustomization { get }
Expand Down Expand Up @@ -85,6 +105,11 @@ import _Concurrency
get
}
}
public protocol ThreeDS2Service {
func createTransaction() -> Checkout3DS.Transaction
func getWarnings() -> Swift.Set<Checkout3DS.Warning>
func cleanUp()
}
@objc(Checkout3DSButtonCustomization) public protocol ButtonCustomization : Checkout3DS.Customization {
@objc var backgroundColor: UIKit.UIColor { get }
@objc var cornerRadius: CoreGraphics.CGFloat { get }
Expand Down Expand Up @@ -217,6 +242,8 @@ import _Concurrency
case concurrentAuthenticationRequest = 1007
case sdkPListModified = 1008
case certificateTransparencyOverriddenByApp = 1009
case duplicateSDKInitialised = 1010
case sdkNotInitialised = 1011
case noInternetConnectivity = 2000
case connectionFailed = 2001
case connectionTimeout = 2002
Expand Down Expand Up @@ -284,6 +311,7 @@ import _Concurrency
case threeDS2ProtocolError3561 = 3561
case threeDS2ProtocolError3562 = 3562
case threeDS2ProtocolError3563 = 3563
case threeDS2ProtocolError3564 = 3564
case internalError4004 = 4004
case internalError4005 = 4005
case internalError4018 = 4018
Expand Down Expand Up @@ -316,6 +344,7 @@ import _Concurrency
case internalError4052 = 4052
case internalError4053 = 4053
case internalError4054 = 4054
case internalError4055 = 4055
case threeDS1ProtocolError5001 = 5001
case threeDS1ProtocolError5002 = 5002
case threeDS1ProtocolError5003 = 5003
Expand All @@ -324,6 +353,9 @@ import _Concurrency
case threeDS1ProtocolError5007 = 5007
case threeDS1ProtocolError5008 = 5008
case threeDS1ProtocolError5500 = 5500
public var message: Swift.String {
get
}
public init?(rawValue: Swift.Int)
public typealias AllCases = [Checkout3DS.AuthenticationError]
public typealias RawValue = Swift.Int
Expand All @@ -341,6 +373,9 @@ import _Concurrency
@objc var font: UIKit.UIFont { get }
@objc var textColor: UIKit.UIColor { get }
}
public struct ChallengeParameters {
public init(threeDSServerTransactionID: Swift.String, acsTransactionID: Swift.String, acsRefNumber: Swift.String, acsSignedContent: Swift.String)
}
@objc(Checkout3DSDefaultFooterCustomization) public protocol FooterCustomization : Checkout3DS.Customization {
@objc var backgroundColor: UIKit.UIColor { get }
@objc var labelFont: UIKit.UIFont { get }
Expand All @@ -362,6 +397,9 @@ import _Concurrency
@inline(never) public func positiveCallback(jsonPtr: Swift.UnsafePointer<Swift.CChar>)
@inline(never) public func negativeCallback(jsonPtr: Swift.UnsafePointer<Swift.CChar>)
@inline(never) public func probeMethod()
public enum Standalone3DSService {
public static func initialize(with configuration: Checkout3DS.ThreeDS2ServiceConfiguration, environment: Checkout3DS.Environment = .production) throws -> Checkout3DS.ThreeDS2Service
}
extension Checkout3DS.Warning {
@objc public enum Severity : Swift.Int {
case low
Expand Down Expand Up @@ -390,6 +428,26 @@ extension Checkout3DS.Warning {
@objc public init(backgroundColor: UIKit.UIColor = UIColor(red: 251/255, green: 251/255, blue: 252/255, alpha: 1), headerTitle: Swift.String? = nil, buttonTitle: Swift.String? = nil, font: UIKit.UIFont = .preferredFont(forTextStyle: .headline), textColor: UIKit.UIColor = DefaultSystemColor.label)
@objc deinit
}
public struct ThreeDS2ServiceConfiguration {
public struct ConfigParameters {
public let directoryServerData: Checkout3DS.ThreeDS2ServiceConfiguration.DirectoryServerData
public let messageVersion: Swift.String
public let scheme: Swift.String
public init(directoryServerData: Checkout3DS.ThreeDS2ServiceConfiguration.DirectoryServerData, messageVersion: Swift.String, scheme: Swift.String)
}
public struct DirectoryServerData {
public let directoryServerID: Swift.String
public let directoryServerPublicKey: Swift.String
public let directoryServerRootCertificates: [Swift.String]
public init(directoryServerID: Swift.String, directoryServerPublicKey: Swift.String, directoryServerRootCertificates: [Swift.String])
}
public let configParameters: Checkout3DS.ThreeDS2ServiceConfiguration.ConfigParameters
public let locale: Foundation.Locale
public let uiCustomization: Checkout3DS.UICustomization
public let appURL: Foundation.URL?
public let challengeTimeout: Foundation.TimeInterval
public init(configParameters: Checkout3DS.ThreeDS2ServiceConfiguration.ConfigParameters, locale: Foundation.Locale = .autoupdatingCurrent, uiCustomization: Checkout3DS.UICustomization = DefaultUICustomization(), appURL: Foundation.URL? = nil, challengeTimeout: Foundation.TimeInterval = Standalone3DSService.Constants.challengeTimeout)
}
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(Checkout3DSDefaultSystemColor) public class DefaultSystemColor : ObjectiveC.NSObject {
@objc public static var label: UIKit.UIColor {
@objc get
Expand Down Expand Up @@ -458,6 +516,11 @@ extension QuartzCore.CALayerCornerCurve : Swift.Codable {
get
}
}
public protocol Transaction {
func getAuthenticationRequestParameters(completion: @escaping (Swift.Result<Checkout3DS.AuthenticationRequestParameters, Checkout3DS.AuthenticationError>) -> Swift.Void)
func doChallenge(challengeParameters: Checkout3DS.ChallengeParameters, completion: @escaping (Swift.Result<Checkout3DS.ChallengeResult, Checkout3DS.AuthenticationError>) -> Swift.Void)
func close()
}
@objc(Checkout3DSEntrySelectionCustomization) public protocol EntrySelectionCustomization : Checkout3DS.Customization {
@objc var borderWidth: CoreGraphics.CGFloat { get }
@objc var borderColor: CoreGraphics.CGColor { get }
Expand Down
Loading

0 comments on commit 80bf2c5

Please sign in to comment.