vialink-react-native-sdk 2.0.14 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/vialink/reactnative/ViaLinkModule.kt +57 -1
- package/dist/ViaLinkSDK.d.ts +50 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/ios/Frameworks/ViaLinkCore.xcframework/Info.plist +5 -5
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Info.plist +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.abi.json +1160 -1
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.package.swiftinterface +34 -2
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.private.swiftinterface +34 -2
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.swiftinterface +34 -2
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/ViaLinkCore +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Info.plist +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.abi.json +1160 -1
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +34 -2
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +34 -2
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +34 -2
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.abi.json +1160 -1
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +34 -2
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +34 -2
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +34 -2
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/ViaLinkCore +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/_CodeSignature/CodeResources +1 -1
- package/ios/ViaLinkModule.m +4 -0
- package/ios/ViaLinkModule.swift +51 -2
- package/package.json +1 -1
- package/vialink-react-native-sdk.podspec +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.3 effective-5.10 (swiftlang-6.3.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.3.1 effective-5.10 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
|
|
3
3
|
// swift-module-flags: -target arm64-apple-ios15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -module-name ViaLinkCore -package-name vialink_ios_sdk
|
|
4
|
-
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.1
|
|
5
5
|
import CoreTelephony
|
|
6
6
|
import Foundation
|
|
7
7
|
import Network
|
|
@@ -16,6 +16,32 @@ public struct DeepLinkData : Swift.Sendable {
|
|
|
16
16
|
public let shortCode: Swift.String?
|
|
17
17
|
public init(path: Swift.String, params: [Swift.String : Swift.String] = [:], shortCode: Swift.String? = nil)
|
|
18
18
|
}
|
|
19
|
+
public struct PaymentInitiatedArgs : Swift.Sendable {
|
|
20
|
+
public let orderId: Swift.String
|
|
21
|
+
public let amount: Swift.Double
|
|
22
|
+
public let currency: Swift.String
|
|
23
|
+
public let linkId: Swift.Int?
|
|
24
|
+
public let paymentMethod: Swift.String?
|
|
25
|
+
public let metadata: [Swift.String : Swift.String]?
|
|
26
|
+
public init(orderId: Swift.String, amount: Swift.Double, currency: Swift.String, linkId: Swift.Int? = nil, paymentMethod: Swift.String? = nil, metadata: [Swift.String : Swift.String]? = nil)
|
|
27
|
+
}
|
|
28
|
+
public struct PaymentInitiatedResult : Swift.Sendable {
|
|
29
|
+
public let success: Swift.Bool
|
|
30
|
+
public let paymentEventId: Swift.String
|
|
31
|
+
public init(success: Swift.Bool, paymentEventId: Swift.String)
|
|
32
|
+
}
|
|
33
|
+
public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendable, Swift.Equatable {
|
|
34
|
+
case invalidOrderId
|
|
35
|
+
case invalidAmount
|
|
36
|
+
case invalidCurrency
|
|
37
|
+
case sdkNotInitialized
|
|
38
|
+
case invalidResponse
|
|
39
|
+
case networkFailure(Swift.String)
|
|
40
|
+
public var errorDescription: Swift.String? {
|
|
41
|
+
get
|
|
42
|
+
}
|
|
43
|
+
public static func == (lhs: ViaLinkCore.PaymentError, rhs: ViaLinkCore.PaymentError) -> Swift.Bool
|
|
44
|
+
}
|
|
19
45
|
@_hasMissingDesignatedInitializers final public class ViaLinkSDK : @unchecked Swift.Sendable {
|
|
20
46
|
public static let sdkVersion: Swift.String
|
|
21
47
|
public static let shared: ViaLinkCore.ViaLinkSDK
|
|
@@ -41,6 +67,12 @@ public struct DeepLinkData : Swift.Sendable {
|
|
|
41
67
|
get
|
|
42
68
|
}
|
|
43
69
|
}
|
|
70
|
+
final public var payment: ViaLinkCore.ViaLinkSDK.PaymentAPI {
|
|
71
|
+
get
|
|
72
|
+
}
|
|
73
|
+
public struct PaymentAPI {
|
|
74
|
+
public func initiated(_ args: ViaLinkCore.PaymentInitiatedArgs) async throws -> ViaLinkCore.PaymentInitiatedResult
|
|
75
|
+
}
|
|
44
76
|
@objc deinit
|
|
45
77
|
}
|
|
46
78
|
extension ViaLinkCore.ViaLinkSDK.CreateLinkError : Swift.Equatable {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.3 effective-5.10 (swiftlang-6.3.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.3.1 effective-5.10 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
|
|
3
3
|
// swift-module-flags: -target arm64-apple-ios15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -module-name ViaLinkCore -package-name vialink_ios_sdk
|
|
4
|
-
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.1
|
|
5
5
|
import CoreTelephony
|
|
6
6
|
import Foundation
|
|
7
7
|
import Network
|
|
@@ -16,6 +16,32 @@ public struct DeepLinkData : Swift.Sendable {
|
|
|
16
16
|
public let shortCode: Swift.String?
|
|
17
17
|
public init(path: Swift.String, params: [Swift.String : Swift.String] = [:], shortCode: Swift.String? = nil)
|
|
18
18
|
}
|
|
19
|
+
public struct PaymentInitiatedArgs : Swift.Sendable {
|
|
20
|
+
public let orderId: Swift.String
|
|
21
|
+
public let amount: Swift.Double
|
|
22
|
+
public let currency: Swift.String
|
|
23
|
+
public let linkId: Swift.Int?
|
|
24
|
+
public let paymentMethod: Swift.String?
|
|
25
|
+
public let metadata: [Swift.String : Swift.String]?
|
|
26
|
+
public init(orderId: Swift.String, amount: Swift.Double, currency: Swift.String, linkId: Swift.Int? = nil, paymentMethod: Swift.String? = nil, metadata: [Swift.String : Swift.String]? = nil)
|
|
27
|
+
}
|
|
28
|
+
public struct PaymentInitiatedResult : Swift.Sendable {
|
|
29
|
+
public let success: Swift.Bool
|
|
30
|
+
public let paymentEventId: Swift.String
|
|
31
|
+
public init(success: Swift.Bool, paymentEventId: Swift.String)
|
|
32
|
+
}
|
|
33
|
+
public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendable, Swift.Equatable {
|
|
34
|
+
case invalidOrderId
|
|
35
|
+
case invalidAmount
|
|
36
|
+
case invalidCurrency
|
|
37
|
+
case sdkNotInitialized
|
|
38
|
+
case invalidResponse
|
|
39
|
+
case networkFailure(Swift.String)
|
|
40
|
+
public var errorDescription: Swift.String? {
|
|
41
|
+
get
|
|
42
|
+
}
|
|
43
|
+
public static func == (lhs: ViaLinkCore.PaymentError, rhs: ViaLinkCore.PaymentError) -> Swift.Bool
|
|
44
|
+
}
|
|
19
45
|
@_hasMissingDesignatedInitializers final public class ViaLinkSDK : @unchecked Swift.Sendable {
|
|
20
46
|
public static let sdkVersion: Swift.String
|
|
21
47
|
public static let shared: ViaLinkCore.ViaLinkSDK
|
|
@@ -41,6 +67,12 @@ public struct DeepLinkData : Swift.Sendable {
|
|
|
41
67
|
get
|
|
42
68
|
}
|
|
43
69
|
}
|
|
70
|
+
final public var payment: ViaLinkCore.ViaLinkSDK.PaymentAPI {
|
|
71
|
+
get
|
|
72
|
+
}
|
|
73
|
+
public struct PaymentAPI {
|
|
74
|
+
public func initiated(_ args: ViaLinkCore.PaymentInitiatedArgs) async throws -> ViaLinkCore.PaymentInitiatedResult
|
|
75
|
+
}
|
|
44
76
|
@objc deinit
|
|
45
77
|
}
|
|
46
78
|
extension ViaLinkCore.ViaLinkSDK.CreateLinkError : Swift.Equatable {}
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.3 effective-5.10 (swiftlang-6.3.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.3.1 effective-5.10 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
|
|
3
3
|
// swift-module-flags: -target arm64-apple-ios15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -module-name ViaLinkCore -package-name vialink_ios_sdk
|
|
4
|
-
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.1
|
|
5
5
|
import CoreTelephony
|
|
6
6
|
import Foundation
|
|
7
7
|
import Network
|
|
@@ -16,6 +16,32 @@ public struct DeepLinkData : Swift.Sendable {
|
|
|
16
16
|
public let shortCode: Swift.String?
|
|
17
17
|
public init(path: Swift.String, params: [Swift.String : Swift.String] = [:], shortCode: Swift.String? = nil)
|
|
18
18
|
}
|
|
19
|
+
public struct PaymentInitiatedArgs : Swift.Sendable {
|
|
20
|
+
public let orderId: Swift.String
|
|
21
|
+
public let amount: Swift.Double
|
|
22
|
+
public let currency: Swift.String
|
|
23
|
+
public let linkId: Swift.Int?
|
|
24
|
+
public let paymentMethod: Swift.String?
|
|
25
|
+
public let metadata: [Swift.String : Swift.String]?
|
|
26
|
+
public init(orderId: Swift.String, amount: Swift.Double, currency: Swift.String, linkId: Swift.Int? = nil, paymentMethod: Swift.String? = nil, metadata: [Swift.String : Swift.String]? = nil)
|
|
27
|
+
}
|
|
28
|
+
public struct PaymentInitiatedResult : Swift.Sendable {
|
|
29
|
+
public let success: Swift.Bool
|
|
30
|
+
public let paymentEventId: Swift.String
|
|
31
|
+
public init(success: Swift.Bool, paymentEventId: Swift.String)
|
|
32
|
+
}
|
|
33
|
+
public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendable, Swift.Equatable {
|
|
34
|
+
case invalidOrderId
|
|
35
|
+
case invalidAmount
|
|
36
|
+
case invalidCurrency
|
|
37
|
+
case sdkNotInitialized
|
|
38
|
+
case invalidResponse
|
|
39
|
+
case networkFailure(Swift.String)
|
|
40
|
+
public var errorDescription: Swift.String? {
|
|
41
|
+
get
|
|
42
|
+
}
|
|
43
|
+
public static func == (lhs: ViaLinkCore.PaymentError, rhs: ViaLinkCore.PaymentError) -> Swift.Bool
|
|
44
|
+
}
|
|
19
45
|
@_hasMissingDesignatedInitializers final public class ViaLinkSDK : @unchecked Swift.Sendable {
|
|
20
46
|
public static let sdkVersion: Swift.String
|
|
21
47
|
public static let shared: ViaLinkCore.ViaLinkSDK
|
|
@@ -41,6 +67,12 @@ public struct DeepLinkData : Swift.Sendable {
|
|
|
41
67
|
get
|
|
42
68
|
}
|
|
43
69
|
}
|
|
70
|
+
final public var payment: ViaLinkCore.ViaLinkSDK.PaymentAPI {
|
|
71
|
+
get
|
|
72
|
+
}
|
|
73
|
+
public struct PaymentAPI {
|
|
74
|
+
public func initiated(_ args: ViaLinkCore.PaymentInitiatedArgs) async throws -> ViaLinkCore.PaymentInitiatedResult
|
|
75
|
+
}
|
|
44
76
|
@objc deinit
|
|
45
77
|
}
|
|
46
78
|
extension ViaLinkCore.ViaLinkSDK.CreateLinkError : Swift.Equatable {}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|