diff --git a/Xendit.framework/Headers/Xendit-Swift.h b/Xendit.framework/Headers/Xendit-Swift.h index fa4f1c2..56d866e 100644 --- a/Xendit.framework/Headers/Xendit-Swift.h +++ b/Xendit.framework/Headers/Xendit-Swift.h @@ -1,6 +1,6 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Generated by Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7) +// Generated by Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" @@ -299,7 +299,7 @@ SWIFT_CLASS_NAMED("XenditError") -typedef SWIFT_ENUM_NAMED(NSUInteger, XENLogLevel, "XenditLogLevel", closed) { +typedef SWIFT_ENUM_NAMED(NSUInteger, XENLogLevel, "XenditLogLevel", open) { XENLogLevelVerbose = 0, XENLogLevelInfo = 1, XENLogLevelWarning = 2, @@ -312,7 +312,7 @@ typedef SWIFT_ENUM_NAMED(NSUInteger, XENLogLevel, "XenditLogLevel", closed) { #pragma clang diagnostic pop #elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__ -// Generated by Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7) +// Generated by Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" @@ -611,7 +611,7 @@ SWIFT_CLASS_NAMED("XenditError") -typedef SWIFT_ENUM_NAMED(NSUInteger, XENLogLevel, "XenditLogLevel", closed) { +typedef SWIFT_ENUM_NAMED(NSUInteger, XENLogLevel, "XenditLogLevel", open) { XENLogLevelVerbose = 0, XENLogLevelInfo = 1, XENLogLevelWarning = 2, diff --git a/Xendit.framework/Info.plist b/Xendit.framework/Info.plist index 56869b2..c261e35 100644 Binary files a/Xendit.framework/Info.plist and b/Xendit.framework/Info.plist differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/arm.swiftdoc b/Xendit.framework/Modules/Xendit.swiftmodule/arm.swiftdoc index c1d93fc..1afa95a 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/arm.swiftdoc and b/Xendit.framework/Modules/Xendit.swiftmodule/arm.swiftdoc differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/arm.swiftinterface b/Xendit.framework/Modules/Xendit.swiftmodule/arm.swiftinterface new file mode 100644 index 0000000..f7af0b3 --- /dev/null +++ b/Xendit.framework/Modules/Xendit.swiftmodule/arm.swiftinterface @@ -0,0 +1,106 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) +// swift-module-flags: -target armv7-apple-ios8.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name Xendit +import SystemConfiguration.CaptiveNetwork +import CoreLocation +import Foundation +import Swift +import SystemConfiguration +import UIKit +import WebKit +@_exported import Xendit +@objcMembers @objc(XENAuthentication) open class XenditAuthentication : ObjectiveC.NSObject { + @objc(authenticationID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objc(XENLogLevel) public enum XenditLogLevel : Swift.UInt { + case verbose + case info + case warning + case error + public typealias RawValue = Swift.UInt + public init?(rawValue: Swift.UInt) + public var rawValue: Swift.UInt { + get + } +} +@objcMembers @objc(XENError) open class XenditError : ObjectiveC.NSObject { + @objc(errorCode) open var errorCode: Swift.String! + @objc open var message: Swift.String! + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENAuthenticationData) open class AuthenticationData : ObjectiveC.NSObject { + @objc open var tokenId: Swift.String! + @objc open var cardCvn: Swift.String! + @objc open var amount: Foundation.NSNumber! + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENCCToken) open class XenditCCToken : ObjectiveC.NSObject { + @objc(tokenID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationId: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc open var maskedCardNumber: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(Xendit) open class Xendit : ObjectiveC.NSObject { + @objc public static var publishableKey: Swift.String? + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, shouldAuthenticate: Swift.Bool, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, cardCVN: Swift.String, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func isCardNumberValid(cardNumber: Swift.String) -> Swift.Bool + @objc public static func isExpiryValid(cardExpirationMonth: Swift.String, cardExpirationYear: Swift.String) -> Swift.Bool + @objc public static func isCvnValid(creditCardCVN: Swift.String) -> Swift.Bool + @objc public static func isCvnValidForCardType(creditCardCVN: Swift.String, cardNumber: Swift.String) -> Swift.Bool + public static func setLogLevel(_ level: Xendit.XenditLogLevel?) + public static func setLogDNALevel(_ level: Xendit.ISHLogDNALevel?) + @objc override dynamic public init() + @objc deinit +} +public enum CYBCardTypes { + case VISA + case MASTERCARD + case AMEX + case DISCOVER + case JCB + case VISA_ELECTRON + case DANKORT + case MAESTRO + case UNKNOWN + public static func == (a: Xendit.CYBCardTypes, b: Xendit.CYBCardTypes) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +@objcMembers @objc(XENCardData) open class CardData : ObjectiveC.NSObject { + @objc open var cardNumber: Swift.String! + @objc open var cardExpMonth: Swift.String! + @objc open var cardExpYear: Swift.String! + @objc open var cardCvn: Swift.String? + @objc open var amount: Foundation.NSNumber! + @objc open var isMultipleUse: Swift.Bool + @objc override dynamic public init() + @objc open var maskedNumber: Swift.String { + @objc get + } + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc deinit +} +@objc @objcMembers open class WebViewConstants : ObjectiveC.NSObject { + @objc public static var templateHTMLWithAuthenticateURL: Swift.String + @objc override dynamic public init() + @objc deinit +} diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/arm.swiftmodule b/Xendit.framework/Modules/Xendit.swiftmodule/arm.swiftmodule index e34b948..134d7e0 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/arm.swiftmodule and b/Xendit.framework/Modules/Xendit.swiftmodule/arm.swiftmodule differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/arm64-apple-ios.swiftdoc b/Xendit.framework/Modules/Xendit.swiftmodule/arm64-apple-ios.swiftdoc index 2ba9619..3fa8d27 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/arm64-apple-ios.swiftdoc and b/Xendit.framework/Modules/Xendit.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/arm64-apple-ios.swiftinterface b/Xendit.framework/Modules/Xendit.swiftmodule/arm64-apple-ios.swiftinterface new file mode 100644 index 0000000..30a27d8 --- /dev/null +++ b/Xendit.framework/Modules/Xendit.swiftmodule/arm64-apple-ios.swiftinterface @@ -0,0 +1,106 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) +// swift-module-flags: -target arm64-apple-ios8.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name Xendit +import SystemConfiguration.CaptiveNetwork +import CoreLocation +import Foundation +import Swift +import SystemConfiguration +import UIKit +import WebKit +@_exported import Xendit +@objcMembers @objc(XENAuthentication) open class XenditAuthentication : ObjectiveC.NSObject { + @objc(authenticationID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objc(XENLogLevel) public enum XenditLogLevel : Swift.UInt { + case verbose + case info + case warning + case error + public typealias RawValue = Swift.UInt + public init?(rawValue: Swift.UInt) + public var rawValue: Swift.UInt { + get + } +} +@objcMembers @objc(XENError) open class XenditError : ObjectiveC.NSObject { + @objc(errorCode) open var errorCode: Swift.String! + @objc open var message: Swift.String! + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENAuthenticationData) open class AuthenticationData : ObjectiveC.NSObject { + @objc open var tokenId: Swift.String! + @objc open var cardCvn: Swift.String! + @objc open var amount: Foundation.NSNumber! + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENCCToken) open class XenditCCToken : ObjectiveC.NSObject { + @objc(tokenID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationId: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc open var maskedCardNumber: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(Xendit) open class Xendit : ObjectiveC.NSObject { + @objc public static var publishableKey: Swift.String? + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, shouldAuthenticate: Swift.Bool, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, cardCVN: Swift.String, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func isCardNumberValid(cardNumber: Swift.String) -> Swift.Bool + @objc public static func isExpiryValid(cardExpirationMonth: Swift.String, cardExpirationYear: Swift.String) -> Swift.Bool + @objc public static func isCvnValid(creditCardCVN: Swift.String) -> Swift.Bool + @objc public static func isCvnValidForCardType(creditCardCVN: Swift.String, cardNumber: Swift.String) -> Swift.Bool + public static func setLogLevel(_ level: Xendit.XenditLogLevel?) + public static func setLogDNALevel(_ level: Xendit.ISHLogDNALevel?) + @objc override dynamic public init() + @objc deinit +} +public enum CYBCardTypes { + case VISA + case MASTERCARD + case AMEX + case DISCOVER + case JCB + case VISA_ELECTRON + case DANKORT + case MAESTRO + case UNKNOWN + public static func == (a: Xendit.CYBCardTypes, b: Xendit.CYBCardTypes) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +@objcMembers @objc(XENCardData) open class CardData : ObjectiveC.NSObject { + @objc open var cardNumber: Swift.String! + @objc open var cardExpMonth: Swift.String! + @objc open var cardExpYear: Swift.String! + @objc open var cardCvn: Swift.String? + @objc open var amount: Foundation.NSNumber! + @objc open var isMultipleUse: Swift.Bool + @objc override dynamic public init() + @objc open var maskedNumber: Swift.String { + @objc get + } + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc deinit +} +@objc @objcMembers open class WebViewConstants : ObjectiveC.NSObject { + @objc public static var templateHTMLWithAuthenticateURL: Swift.String + @objc override dynamic public init() + @objc deinit +} diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/arm64-apple-ios.swiftmodule b/Xendit.framework/Modules/Xendit.swiftmodule/arm64-apple-ios.swiftmodule index 7ad3e7e..6ab1126 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/arm64-apple-ios.swiftmodule and b/Xendit.framework/Modules/Xendit.swiftmodule/arm64-apple-ios.swiftmodule differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/arm64.swiftdoc b/Xendit.framework/Modules/Xendit.swiftmodule/arm64.swiftdoc index 2ba9619..3fa8d27 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/arm64.swiftdoc and b/Xendit.framework/Modules/Xendit.swiftmodule/arm64.swiftdoc differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/arm64.swiftinterface b/Xendit.framework/Modules/Xendit.swiftmodule/arm64.swiftinterface new file mode 100644 index 0000000..30a27d8 --- /dev/null +++ b/Xendit.framework/Modules/Xendit.swiftmodule/arm64.swiftinterface @@ -0,0 +1,106 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) +// swift-module-flags: -target arm64-apple-ios8.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name Xendit +import SystemConfiguration.CaptiveNetwork +import CoreLocation +import Foundation +import Swift +import SystemConfiguration +import UIKit +import WebKit +@_exported import Xendit +@objcMembers @objc(XENAuthentication) open class XenditAuthentication : ObjectiveC.NSObject { + @objc(authenticationID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objc(XENLogLevel) public enum XenditLogLevel : Swift.UInt { + case verbose + case info + case warning + case error + public typealias RawValue = Swift.UInt + public init?(rawValue: Swift.UInt) + public var rawValue: Swift.UInt { + get + } +} +@objcMembers @objc(XENError) open class XenditError : ObjectiveC.NSObject { + @objc(errorCode) open var errorCode: Swift.String! + @objc open var message: Swift.String! + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENAuthenticationData) open class AuthenticationData : ObjectiveC.NSObject { + @objc open var tokenId: Swift.String! + @objc open var cardCvn: Swift.String! + @objc open var amount: Foundation.NSNumber! + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENCCToken) open class XenditCCToken : ObjectiveC.NSObject { + @objc(tokenID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationId: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc open var maskedCardNumber: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(Xendit) open class Xendit : ObjectiveC.NSObject { + @objc public static var publishableKey: Swift.String? + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, shouldAuthenticate: Swift.Bool, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, cardCVN: Swift.String, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func isCardNumberValid(cardNumber: Swift.String) -> Swift.Bool + @objc public static func isExpiryValid(cardExpirationMonth: Swift.String, cardExpirationYear: Swift.String) -> Swift.Bool + @objc public static func isCvnValid(creditCardCVN: Swift.String) -> Swift.Bool + @objc public static func isCvnValidForCardType(creditCardCVN: Swift.String, cardNumber: Swift.String) -> Swift.Bool + public static func setLogLevel(_ level: Xendit.XenditLogLevel?) + public static func setLogDNALevel(_ level: Xendit.ISHLogDNALevel?) + @objc override dynamic public init() + @objc deinit +} +public enum CYBCardTypes { + case VISA + case MASTERCARD + case AMEX + case DISCOVER + case JCB + case VISA_ELECTRON + case DANKORT + case MAESTRO + case UNKNOWN + public static func == (a: Xendit.CYBCardTypes, b: Xendit.CYBCardTypes) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +@objcMembers @objc(XENCardData) open class CardData : ObjectiveC.NSObject { + @objc open var cardNumber: Swift.String! + @objc open var cardExpMonth: Swift.String! + @objc open var cardExpYear: Swift.String! + @objc open var cardCvn: Swift.String? + @objc open var amount: Foundation.NSNumber! + @objc open var isMultipleUse: Swift.Bool + @objc override dynamic public init() + @objc open var maskedNumber: Swift.String { + @objc get + } + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc deinit +} +@objc @objcMembers open class WebViewConstants : ObjectiveC.NSObject { + @objc public static var templateHTMLWithAuthenticateURL: Swift.String + @objc override dynamic public init() + @objc deinit +} diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/arm64.swiftmodule b/Xendit.framework/Modules/Xendit.swiftmodule/arm64.swiftmodule index 7ad3e7e..6ab1126 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/arm64.swiftmodule and b/Xendit.framework/Modules/Xendit.swiftmodule/arm64.swiftmodule differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/armv7-apple-ios.swiftdoc b/Xendit.framework/Modules/Xendit.swiftmodule/armv7-apple-ios.swiftdoc index c1d93fc..1afa95a 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/armv7-apple-ios.swiftdoc and b/Xendit.framework/Modules/Xendit.swiftmodule/armv7-apple-ios.swiftdoc differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/armv7-apple-ios.swiftinterface b/Xendit.framework/Modules/Xendit.swiftmodule/armv7-apple-ios.swiftinterface new file mode 100644 index 0000000..f7af0b3 --- /dev/null +++ b/Xendit.framework/Modules/Xendit.swiftmodule/armv7-apple-ios.swiftinterface @@ -0,0 +1,106 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) +// swift-module-flags: -target armv7-apple-ios8.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name Xendit +import SystemConfiguration.CaptiveNetwork +import CoreLocation +import Foundation +import Swift +import SystemConfiguration +import UIKit +import WebKit +@_exported import Xendit +@objcMembers @objc(XENAuthentication) open class XenditAuthentication : ObjectiveC.NSObject { + @objc(authenticationID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objc(XENLogLevel) public enum XenditLogLevel : Swift.UInt { + case verbose + case info + case warning + case error + public typealias RawValue = Swift.UInt + public init?(rawValue: Swift.UInt) + public var rawValue: Swift.UInt { + get + } +} +@objcMembers @objc(XENError) open class XenditError : ObjectiveC.NSObject { + @objc(errorCode) open var errorCode: Swift.String! + @objc open var message: Swift.String! + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENAuthenticationData) open class AuthenticationData : ObjectiveC.NSObject { + @objc open var tokenId: Swift.String! + @objc open var cardCvn: Swift.String! + @objc open var amount: Foundation.NSNumber! + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENCCToken) open class XenditCCToken : ObjectiveC.NSObject { + @objc(tokenID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationId: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc open var maskedCardNumber: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(Xendit) open class Xendit : ObjectiveC.NSObject { + @objc public static var publishableKey: Swift.String? + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, shouldAuthenticate: Swift.Bool, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, cardCVN: Swift.String, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func isCardNumberValid(cardNumber: Swift.String) -> Swift.Bool + @objc public static func isExpiryValid(cardExpirationMonth: Swift.String, cardExpirationYear: Swift.String) -> Swift.Bool + @objc public static func isCvnValid(creditCardCVN: Swift.String) -> Swift.Bool + @objc public static func isCvnValidForCardType(creditCardCVN: Swift.String, cardNumber: Swift.String) -> Swift.Bool + public static func setLogLevel(_ level: Xendit.XenditLogLevel?) + public static func setLogDNALevel(_ level: Xendit.ISHLogDNALevel?) + @objc override dynamic public init() + @objc deinit +} +public enum CYBCardTypes { + case VISA + case MASTERCARD + case AMEX + case DISCOVER + case JCB + case VISA_ELECTRON + case DANKORT + case MAESTRO + case UNKNOWN + public static func == (a: Xendit.CYBCardTypes, b: Xendit.CYBCardTypes) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +@objcMembers @objc(XENCardData) open class CardData : ObjectiveC.NSObject { + @objc open var cardNumber: Swift.String! + @objc open var cardExpMonth: Swift.String! + @objc open var cardExpYear: Swift.String! + @objc open var cardCvn: Swift.String? + @objc open var amount: Foundation.NSNumber! + @objc open var isMultipleUse: Swift.Bool + @objc override dynamic public init() + @objc open var maskedNumber: Swift.String { + @objc get + } + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc deinit +} +@objc @objcMembers open class WebViewConstants : ObjectiveC.NSObject { + @objc public static var templateHTMLWithAuthenticateURL: Swift.String + @objc override dynamic public init() + @objc deinit +} diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/armv7-apple-ios.swiftmodule b/Xendit.framework/Modules/Xendit.swiftmodule/armv7-apple-ios.swiftmodule index e34b948..134d7e0 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/armv7-apple-ios.swiftmodule and b/Xendit.framework/Modules/Xendit.swiftmodule/armv7-apple-ios.swiftmodule differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/armv7.swiftdoc b/Xendit.framework/Modules/Xendit.swiftmodule/armv7.swiftdoc index c1d93fc..1afa95a 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/armv7.swiftdoc and b/Xendit.framework/Modules/Xendit.swiftmodule/armv7.swiftdoc differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/armv7.swiftinterface b/Xendit.framework/Modules/Xendit.swiftmodule/armv7.swiftinterface new file mode 100644 index 0000000..f7af0b3 --- /dev/null +++ b/Xendit.framework/Modules/Xendit.swiftmodule/armv7.swiftinterface @@ -0,0 +1,106 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) +// swift-module-flags: -target armv7-apple-ios8.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name Xendit +import SystemConfiguration.CaptiveNetwork +import CoreLocation +import Foundation +import Swift +import SystemConfiguration +import UIKit +import WebKit +@_exported import Xendit +@objcMembers @objc(XENAuthentication) open class XenditAuthentication : ObjectiveC.NSObject { + @objc(authenticationID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objc(XENLogLevel) public enum XenditLogLevel : Swift.UInt { + case verbose + case info + case warning + case error + public typealias RawValue = Swift.UInt + public init?(rawValue: Swift.UInt) + public var rawValue: Swift.UInt { + get + } +} +@objcMembers @objc(XENError) open class XenditError : ObjectiveC.NSObject { + @objc(errorCode) open var errorCode: Swift.String! + @objc open var message: Swift.String! + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENAuthenticationData) open class AuthenticationData : ObjectiveC.NSObject { + @objc open var tokenId: Swift.String! + @objc open var cardCvn: Swift.String! + @objc open var amount: Foundation.NSNumber! + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENCCToken) open class XenditCCToken : ObjectiveC.NSObject { + @objc(tokenID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationId: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc open var maskedCardNumber: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(Xendit) open class Xendit : ObjectiveC.NSObject { + @objc public static var publishableKey: Swift.String? + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, shouldAuthenticate: Swift.Bool, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, cardCVN: Swift.String, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func isCardNumberValid(cardNumber: Swift.String) -> Swift.Bool + @objc public static func isExpiryValid(cardExpirationMonth: Swift.String, cardExpirationYear: Swift.String) -> Swift.Bool + @objc public static func isCvnValid(creditCardCVN: Swift.String) -> Swift.Bool + @objc public static func isCvnValidForCardType(creditCardCVN: Swift.String, cardNumber: Swift.String) -> Swift.Bool + public static func setLogLevel(_ level: Xendit.XenditLogLevel?) + public static func setLogDNALevel(_ level: Xendit.ISHLogDNALevel?) + @objc override dynamic public init() + @objc deinit +} +public enum CYBCardTypes { + case VISA + case MASTERCARD + case AMEX + case DISCOVER + case JCB + case VISA_ELECTRON + case DANKORT + case MAESTRO + case UNKNOWN + public static func == (a: Xendit.CYBCardTypes, b: Xendit.CYBCardTypes) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +@objcMembers @objc(XENCardData) open class CardData : ObjectiveC.NSObject { + @objc open var cardNumber: Swift.String! + @objc open var cardExpMonth: Swift.String! + @objc open var cardExpYear: Swift.String! + @objc open var cardCvn: Swift.String? + @objc open var amount: Foundation.NSNumber! + @objc open var isMultipleUse: Swift.Bool + @objc override dynamic public init() + @objc open var maskedNumber: Swift.String { + @objc get + } + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc deinit +} +@objc @objcMembers open class WebViewConstants : ObjectiveC.NSObject { + @objc public static var templateHTMLWithAuthenticateURL: Swift.String + @objc override dynamic public init() + @objc deinit +} diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/armv7.swiftmodule b/Xendit.framework/Modules/Xendit.swiftmodule/armv7.swiftmodule index e34b948..134d7e0 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/armv7.swiftmodule and b/Xendit.framework/Modules/Xendit.swiftmodule/armv7.swiftmodule differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/i386-apple-ios-simulator.swiftdoc b/Xendit.framework/Modules/Xendit.swiftmodule/i386-apple-ios-simulator.swiftdoc index b281b9f..d2004f9 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/i386-apple-ios-simulator.swiftdoc and b/Xendit.framework/Modules/Xendit.swiftmodule/i386-apple-ios-simulator.swiftdoc differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/i386-apple-ios-simulator.swiftinterface b/Xendit.framework/Modules/Xendit.swiftmodule/i386-apple-ios-simulator.swiftinterface new file mode 100644 index 0000000..0b37f7a --- /dev/null +++ b/Xendit.framework/Modules/Xendit.swiftmodule/i386-apple-ios-simulator.swiftinterface @@ -0,0 +1,106 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) +// swift-module-flags: -target i386-apple-ios8.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name Xendit +import SystemConfiguration.CaptiveNetwork +import CoreLocation +import Foundation +import Swift +import SystemConfiguration +import UIKit +import WebKit +@_exported import Xendit +@objcMembers @objc(XENAuthentication) open class XenditAuthentication : ObjectiveC.NSObject { + @objc(authenticationID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objc(XENLogLevel) public enum XenditLogLevel : Swift.UInt { + case verbose + case info + case warning + case error + public typealias RawValue = Swift.UInt + public init?(rawValue: Swift.UInt) + public var rawValue: Swift.UInt { + get + } +} +@objcMembers @objc(XENError) open class XenditError : ObjectiveC.NSObject { + @objc(errorCode) open var errorCode: Swift.String! + @objc open var message: Swift.String! + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENAuthenticationData) open class AuthenticationData : ObjectiveC.NSObject { + @objc open var tokenId: Swift.String! + @objc open var cardCvn: Swift.String! + @objc open var amount: Foundation.NSNumber! + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENCCToken) open class XenditCCToken : ObjectiveC.NSObject { + @objc(tokenID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationId: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc open var maskedCardNumber: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(Xendit) open class Xendit : ObjectiveC.NSObject { + @objc public static var publishableKey: Swift.String? + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, shouldAuthenticate: Swift.Bool, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, cardCVN: Swift.String, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func isCardNumberValid(cardNumber: Swift.String) -> Swift.Bool + @objc public static func isExpiryValid(cardExpirationMonth: Swift.String, cardExpirationYear: Swift.String) -> Swift.Bool + @objc public static func isCvnValid(creditCardCVN: Swift.String) -> Swift.Bool + @objc public static func isCvnValidForCardType(creditCardCVN: Swift.String, cardNumber: Swift.String) -> Swift.Bool + public static func setLogLevel(_ level: Xendit.XenditLogLevel?) + public static func setLogDNALevel(_ level: Xendit.ISHLogDNALevel?) + @objc override dynamic public init() + @objc deinit +} +public enum CYBCardTypes { + case VISA + case MASTERCARD + case AMEX + case DISCOVER + case JCB + case VISA_ELECTRON + case DANKORT + case MAESTRO + case UNKNOWN + public static func == (a: Xendit.CYBCardTypes, b: Xendit.CYBCardTypes) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +@objcMembers @objc(XENCardData) open class CardData : ObjectiveC.NSObject { + @objc open var cardNumber: Swift.String! + @objc open var cardExpMonth: Swift.String! + @objc open var cardExpYear: Swift.String! + @objc open var cardCvn: Swift.String? + @objc open var amount: Foundation.NSNumber! + @objc open var isMultipleUse: Swift.Bool + @objc override dynamic public init() + @objc open var maskedNumber: Swift.String { + @objc get + } + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc deinit +} +@objc @objcMembers open class WebViewConstants : ObjectiveC.NSObject { + @objc public static var templateHTMLWithAuthenticateURL: Swift.String + @objc override dynamic public init() + @objc deinit +} diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/i386-apple-ios-simulator.swiftmodule b/Xendit.framework/Modules/Xendit.swiftmodule/i386-apple-ios-simulator.swiftmodule index 6dde9d7..922624e 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/i386-apple-ios-simulator.swiftmodule and b/Xendit.framework/Modules/Xendit.swiftmodule/i386-apple-ios-simulator.swiftmodule differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/i386.swiftdoc b/Xendit.framework/Modules/Xendit.swiftmodule/i386.swiftdoc index b281b9f..d2004f9 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/i386.swiftdoc and b/Xendit.framework/Modules/Xendit.swiftmodule/i386.swiftdoc differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/i386.swiftinterface b/Xendit.framework/Modules/Xendit.swiftmodule/i386.swiftinterface new file mode 100644 index 0000000..0b37f7a --- /dev/null +++ b/Xendit.framework/Modules/Xendit.swiftmodule/i386.swiftinterface @@ -0,0 +1,106 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) +// swift-module-flags: -target i386-apple-ios8.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name Xendit +import SystemConfiguration.CaptiveNetwork +import CoreLocation +import Foundation +import Swift +import SystemConfiguration +import UIKit +import WebKit +@_exported import Xendit +@objcMembers @objc(XENAuthentication) open class XenditAuthentication : ObjectiveC.NSObject { + @objc(authenticationID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objc(XENLogLevel) public enum XenditLogLevel : Swift.UInt { + case verbose + case info + case warning + case error + public typealias RawValue = Swift.UInt + public init?(rawValue: Swift.UInt) + public var rawValue: Swift.UInt { + get + } +} +@objcMembers @objc(XENError) open class XenditError : ObjectiveC.NSObject { + @objc(errorCode) open var errorCode: Swift.String! + @objc open var message: Swift.String! + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENAuthenticationData) open class AuthenticationData : ObjectiveC.NSObject { + @objc open var tokenId: Swift.String! + @objc open var cardCvn: Swift.String! + @objc open var amount: Foundation.NSNumber! + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENCCToken) open class XenditCCToken : ObjectiveC.NSObject { + @objc(tokenID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationId: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc open var maskedCardNumber: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(Xendit) open class Xendit : ObjectiveC.NSObject { + @objc public static var publishableKey: Swift.String? + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, shouldAuthenticate: Swift.Bool, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, cardCVN: Swift.String, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func isCardNumberValid(cardNumber: Swift.String) -> Swift.Bool + @objc public static func isExpiryValid(cardExpirationMonth: Swift.String, cardExpirationYear: Swift.String) -> Swift.Bool + @objc public static func isCvnValid(creditCardCVN: Swift.String) -> Swift.Bool + @objc public static func isCvnValidForCardType(creditCardCVN: Swift.String, cardNumber: Swift.String) -> Swift.Bool + public static func setLogLevel(_ level: Xendit.XenditLogLevel?) + public static func setLogDNALevel(_ level: Xendit.ISHLogDNALevel?) + @objc override dynamic public init() + @objc deinit +} +public enum CYBCardTypes { + case VISA + case MASTERCARD + case AMEX + case DISCOVER + case JCB + case VISA_ELECTRON + case DANKORT + case MAESTRO + case UNKNOWN + public static func == (a: Xendit.CYBCardTypes, b: Xendit.CYBCardTypes) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +@objcMembers @objc(XENCardData) open class CardData : ObjectiveC.NSObject { + @objc open var cardNumber: Swift.String! + @objc open var cardExpMonth: Swift.String! + @objc open var cardExpYear: Swift.String! + @objc open var cardCvn: Swift.String? + @objc open var amount: Foundation.NSNumber! + @objc open var isMultipleUse: Swift.Bool + @objc override dynamic public init() + @objc open var maskedNumber: Swift.String { + @objc get + } + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc deinit +} +@objc @objcMembers open class WebViewConstants : ObjectiveC.NSObject { + @objc public static var templateHTMLWithAuthenticateURL: Swift.String + @objc override dynamic public init() + @objc deinit +} diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/i386.swiftmodule b/Xendit.framework/Modules/Xendit.swiftmodule/i386.swiftmodule index 6dde9d7..922624e 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/i386.swiftmodule and b/Xendit.framework/Modules/Xendit.swiftmodule/i386.swiftmodule differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/Xendit.framework/Modules/Xendit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc index 73daa39..eae6f78 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and b/Xendit.framework/Modules/Xendit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/Xendit.framework/Modules/Xendit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface new file mode 100644 index 0000000..d09191b --- /dev/null +++ b/Xendit.framework/Modules/Xendit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -0,0 +1,106 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) +// swift-module-flags: -target x86_64-apple-ios8.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name Xendit +import SystemConfiguration.CaptiveNetwork +import CoreLocation +import Foundation +import Swift +import SystemConfiguration +import UIKit +import WebKit +@_exported import Xendit +@objcMembers @objc(XENAuthentication) open class XenditAuthentication : ObjectiveC.NSObject { + @objc(authenticationID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objc(XENLogLevel) public enum XenditLogLevel : Swift.UInt { + case verbose + case info + case warning + case error + public typealias RawValue = Swift.UInt + public init?(rawValue: Swift.UInt) + public var rawValue: Swift.UInt { + get + } +} +@objcMembers @objc(XENError) open class XenditError : ObjectiveC.NSObject { + @objc(errorCode) open var errorCode: Swift.String! + @objc open var message: Swift.String! + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENAuthenticationData) open class AuthenticationData : ObjectiveC.NSObject { + @objc open var tokenId: Swift.String! + @objc open var cardCvn: Swift.String! + @objc open var amount: Foundation.NSNumber! + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENCCToken) open class XenditCCToken : ObjectiveC.NSObject { + @objc(tokenID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationId: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc open var maskedCardNumber: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(Xendit) open class Xendit : ObjectiveC.NSObject { + @objc public static var publishableKey: Swift.String? + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, shouldAuthenticate: Swift.Bool, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, cardCVN: Swift.String, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func isCardNumberValid(cardNumber: Swift.String) -> Swift.Bool + @objc public static func isExpiryValid(cardExpirationMonth: Swift.String, cardExpirationYear: Swift.String) -> Swift.Bool + @objc public static func isCvnValid(creditCardCVN: Swift.String) -> Swift.Bool + @objc public static func isCvnValidForCardType(creditCardCVN: Swift.String, cardNumber: Swift.String) -> Swift.Bool + public static func setLogLevel(_ level: Xendit.XenditLogLevel?) + public static func setLogDNALevel(_ level: Xendit.ISHLogDNALevel?) + @objc override dynamic public init() + @objc deinit +} +public enum CYBCardTypes { + case VISA + case MASTERCARD + case AMEX + case DISCOVER + case JCB + case VISA_ELECTRON + case DANKORT + case MAESTRO + case UNKNOWN + public static func == (a: Xendit.CYBCardTypes, b: Xendit.CYBCardTypes) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +@objcMembers @objc(XENCardData) open class CardData : ObjectiveC.NSObject { + @objc open var cardNumber: Swift.String! + @objc open var cardExpMonth: Swift.String! + @objc open var cardExpYear: Swift.String! + @objc open var cardCvn: Swift.String? + @objc open var amount: Foundation.NSNumber! + @objc open var isMultipleUse: Swift.Bool + @objc override dynamic public init() + @objc open var maskedNumber: Swift.String { + @objc get + } + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc deinit +} +@objc @objcMembers open class WebViewConstants : ObjectiveC.NSObject { + @objc public static var templateHTMLWithAuthenticateURL: Swift.String + @objc override dynamic public init() + @objc deinit +} diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule b/Xendit.framework/Modules/Xendit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule index 76472cb..f3f31d6 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule and b/Xendit.framework/Modules/Xendit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/x86_64.swiftdoc b/Xendit.framework/Modules/Xendit.swiftmodule/x86_64.swiftdoc index 73daa39..eae6f78 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/x86_64.swiftdoc and b/Xendit.framework/Modules/Xendit.swiftmodule/x86_64.swiftdoc differ diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/x86_64.swiftinterface b/Xendit.framework/Modules/Xendit.swiftmodule/x86_64.swiftinterface new file mode 100644 index 0000000..d09191b --- /dev/null +++ b/Xendit.framework/Modules/Xendit.swiftmodule/x86_64.swiftinterface @@ -0,0 +1,106 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) +// swift-module-flags: -target x86_64-apple-ios8.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name Xendit +import SystemConfiguration.CaptiveNetwork +import CoreLocation +import Foundation +import Swift +import SystemConfiguration +import UIKit +import WebKit +@_exported import Xendit +@objcMembers @objc(XENAuthentication) open class XenditAuthentication : ObjectiveC.NSObject { + @objc(authenticationID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objc(XENLogLevel) public enum XenditLogLevel : Swift.UInt { + case verbose + case info + case warning + case error + public typealias RawValue = Swift.UInt + public init?(rawValue: Swift.UInt) + public var rawValue: Swift.UInt { + get + } +} +@objcMembers @objc(XENError) open class XenditError : ObjectiveC.NSObject { + @objc(errorCode) open var errorCode: Swift.String! + @objc open var message: Swift.String! + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENAuthenticationData) open class AuthenticationData : ObjectiveC.NSObject { + @objc open var tokenId: Swift.String! + @objc open var cardCvn: Swift.String! + @objc open var amount: Foundation.NSNumber! + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(XENCCToken) open class XenditCCToken : ObjectiveC.NSObject { + @objc(tokenID) open var id: Swift.String! + @objc open var status: Swift.String! + @objc open var authenticationId: Swift.String! + @objc open var authenticationURL: Swift.String? + @objc open var maskedCardNumber: Swift.String? + @objc override dynamic public init() + @objc deinit +} +@objcMembers @objc(Xendit) open class Xendit : ObjectiveC.NSObject { + @objc public static var publishableKey: Swift.String? + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, shouldAuthenticate: Swift.Bool, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createToken(fromViewController: UIKit.UIViewController, cardData: Xendit.CardData!, completion: @escaping (Xendit.XenditCCToken?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, cardCVN: Swift.String, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func createAuthentication(fromViewController: UIKit.UIViewController, tokenId: Swift.String, amount: Foundation.NSNumber, completion: @escaping (Xendit.XenditAuthentication?, Xendit.XenditError?) -> Swift.Void) + @objc public static func isCardNumberValid(cardNumber: Swift.String) -> Swift.Bool + @objc public static func isExpiryValid(cardExpirationMonth: Swift.String, cardExpirationYear: Swift.String) -> Swift.Bool + @objc public static func isCvnValid(creditCardCVN: Swift.String) -> Swift.Bool + @objc public static func isCvnValidForCardType(creditCardCVN: Swift.String, cardNumber: Swift.String) -> Swift.Bool + public static func setLogLevel(_ level: Xendit.XenditLogLevel?) + public static func setLogDNALevel(_ level: Xendit.ISHLogDNALevel?) + @objc override dynamic public init() + @objc deinit +} +public enum CYBCardTypes { + case VISA + case MASTERCARD + case AMEX + case DISCOVER + case JCB + case VISA_ELECTRON + case DANKORT + case MAESTRO + case UNKNOWN + public static func == (a: Xendit.CYBCardTypes, b: Xendit.CYBCardTypes) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +@objcMembers @objc(XENCardData) open class CardData : ObjectiveC.NSObject { + @objc open var cardNumber: Swift.String! + @objc open var cardExpMonth: Swift.String! + @objc open var cardExpYear: Swift.String! + @objc open var cardCvn: Swift.String? + @objc open var amount: Foundation.NSNumber! + @objc open var isMultipleUse: Swift.Bool + @objc override dynamic public init() + @objc open var maskedNumber: Swift.String { + @objc get + } + @objc override dynamic open var description: Swift.String { + @objc get + } + @objc deinit +} +@objc @objcMembers open class WebViewConstants : ObjectiveC.NSObject { + @objc public static var templateHTMLWithAuthenticateURL: Swift.String + @objc override dynamic public init() + @objc deinit +} diff --git a/Xendit.framework/Modules/Xendit.swiftmodule/x86_64.swiftmodule b/Xendit.framework/Modules/Xendit.swiftmodule/x86_64.swiftmodule index 76472cb..f3f31d6 100644 Binary files a/Xendit.framework/Modules/Xendit.swiftmodule/x86_64.swiftmodule and b/Xendit.framework/Modules/Xendit.swiftmodule/x86_64.swiftmodule differ diff --git a/Xendit.framework/Xendit b/Xendit.framework/Xendit index 569f9d4..dccd58f 100755 Binary files a/Xendit.framework/Xendit and b/Xendit.framework/Xendit differ diff --git a/Xendit.podspec b/Xendit.podspec index 914322c..385ab9a 100644 --- a/Xendit.podspec +++ b/Xendit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Xendit" - s.version = "2.0.8" + s.version = "2.0.9" s.summary = "Xendit makes it easy to collect credit card data securely without it having to touch your server" s.homepage = "https://www.xendit.co" s.license = "MIT" diff --git a/XenditExample/XenditExample.xcodeproj/project.pbxproj b/XenditExample/XenditExample.xcodeproj/project.pbxproj index e2bba5e..f71e4fd 100644 --- a/XenditExample/XenditExample.xcodeproj/project.pbxproj +++ b/XenditExample/XenditExample.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 46; + objectVersion = 52; objects = { /* Begin PBXBuildFile section */ @@ -26,7 +26,7 @@ 9467EB561E8EA7E500AF2EE9 /* ObjCCreateTokenViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9467EB551E8EA7E500AF2EE9 /* ObjCCreateTokenViewController.m */; }; 9467EB591E8EA80800AF2EE9 /* ObjCCreateAuthorizationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9467EB581E8EA80800AF2EE9 /* ObjCCreateAuthorizationViewController.m */; }; 9467EB5C1E8EA81600AF2EE9 /* ObjCValifateCardViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9467EB5B1E8EA81600AF2EE9 /* ObjCValifateCardViewController.m */; }; - 9467EBC51E8EB09700AF2EE9 /* Xendit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 944C41871E8E58C000142EE0 /* Xendit.framework */; }; + 9467EBC51E8EB09700AF2EE9 /* Xendit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 944C41871E8E58C000142EE0 /* Xendit.framework */; settings = {ATTRIBUTES = (Required, ); }; }; 9467EBC61E8EB09700AF2EE9 /* Xendit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 944C41871E8E58C000142EE0 /* Xendit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 9467EBCD1E8EB42800AF2EE9 /* UIAlertController+CustomAlert.m in Sources */ = {isa = PBXBuildFile; fileRef = 9467EBCC1E8EB42800AF2EE9 /* UIAlertController+CustomAlert.m */; }; /* End PBXBuildFile section */ @@ -252,7 +252,7 @@ }; }; buildConfigurationList = 944C416D1E8E58A600142EE0 /* Build configuration list for PBXProject "XenditExample" */; - compatibilityVersion = "Xcode 3.2"; + compatibilityVersion = "Xcode 11.0"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( @@ -463,7 +463,8 @@ IPHONEOS_DEPLOYMENT_TARGET = 10.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; SWIFT_VERSION = 3.0; VALIDATE_PRODUCT = YES; }; @@ -480,10 +481,13 @@ ); INFOPLIST_FILE = XenditExample/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); PRODUCT_BUNDLE_IDENTIFIER = co.xendit.XenditExample; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; }; name = Debug; }; @@ -498,10 +502,13 @@ ); INFOPLIST_FILE = XenditExample/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); PRODUCT_BUNDLE_IDENTIFIER = co.xendit.XenditExample; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; }; name = Release; }; @@ -510,15 +517,21 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_ASSET_PATHS = ""; + DEVELOPMENT_TEAM = T835VZAQ37; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/..", ); INFOPLIST_FILE = XenditExampleObjC/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); PRODUCT_BUNDLE_IDENTIFIER = co.xendit.XenditExampleObjC; PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; }; name = Debug; }; @@ -527,15 +540,21 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_ASSET_PATHS = ""; + DEVELOPMENT_TEAM = T835VZAQ37; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/..", ); INFOPLIST_FILE = XenditExampleObjC/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); PRODUCT_BUNDLE_IDENTIFIER = co.xendit.XenditExampleObjC; PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; }; name = Release; }; diff --git a/XenditExample/XenditExample/Controllers/CreateAuthentification.swift b/XenditExample/XenditExample/Controllers/CreateAuthentification.swift index bbc1026..e190a73 100644 --- a/XenditExample/XenditExample/Controllers/CreateAuthentification.swift +++ b/XenditExample/XenditExample/Controllers/CreateAuthentification.swift @@ -31,7 +31,7 @@ class CreateAuthentification: UIViewController { let tokenID = tokenIDTextField.text let amount = amountTextField.text - guard (tokenID?.characters.count)! > 0, (amount?.characters.count)! > 0 else { + guard (tokenID?.count)! > 0, (amount?.count)! > 0 else { showAlert(title: "Error", message: "Some fields are empty. Please fill all fields.") return } diff --git a/XenditExample/XenditExample/Controllers/CreateTokenViewController.swift b/XenditExample/XenditExample/Controllers/CreateTokenViewController.swift index 3792469..e69d9b2 100644 --- a/XenditExample/XenditExample/Controllers/CreateTokenViewController.swift +++ b/XenditExample/XenditExample/Controllers/CreateTokenViewController.swift @@ -43,7 +43,7 @@ class CreateTokenViewController: UIViewController { cardData.cardCvn = cardCvnTextField.text cardData.isMultipleUse = isMultipleUseSwitch.isOn - if (amountTextField.text?.characters.count)! > 0 { + if (amountTextField.text?.count)! > 0 { let int = Int(amountTextField.text!) cardData.amount = NSNumber(value: int!) }