payme-mini-app 3.2.2 → 3.3.0-rc.1
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/README.md +10 -0
- package/ios-vendor/PayMEMiniApp.xcframework/Info.plist +44 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/Chopmat.json +1 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/Cuoi.json +1 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/Headers/PayMEMiniApp-Swift.h +331 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/Headers/PayMEMiniApp.h +19 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/Info.plist +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/Modules/PayMEMiniApp.swiftmodule/arm64-apple-ios.abi.json +9275 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/Modules/PayMEMiniApp.swiftmodule/arm64-apple-ios.private.swiftinterface +270 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/Modules/PayMEMiniApp.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/Modules/PayMEMiniApp.swiftmodule/arm64-apple-ios.swiftinterface +270 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/Modules/module.modulemap +11 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/Nhinthang.json +1 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/PayMEMiniApp +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/en.lproj/Localizable.strings +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/iconBack.png +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/iconCapture.png +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/kycCardBack.png +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/kycCardFront.png +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/sdkWebapp3-main.zip +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/updatePatchProgress.json +1 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64/PayMEMiniApp.framework/vi.lproj/Localizable.strings +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/Chopmat.json +1 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/Cuoi.json +1 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/Headers/PayMEMiniApp-Swift.h +658 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/Headers/PayMEMiniApp.h +19 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/Info.plist +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/Modules/PayMEMiniApp.swiftmodule/arm64-apple-ios-simulator.abi.json +9275 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/Modules/PayMEMiniApp.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +270 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/Modules/PayMEMiniApp.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/Modules/PayMEMiniApp.swiftmodule/arm64-apple-ios-simulator.swiftinterface +270 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/Modules/PayMEMiniApp.swiftmodule/x86_64-apple-ios-simulator.abi.json +9275 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/Modules/PayMEMiniApp.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +270 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/Modules/PayMEMiniApp.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/Modules/PayMEMiniApp.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +270 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/Modules/module.modulemap +11 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/Nhinthang.json +1 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/PayMEMiniApp +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/en.lproj/Localizable.strings +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/iconBack.png +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/iconCapture.png +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/kycCardBack.png +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/kycCardFront.png +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/sdkWebapp3-main.zip +0 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/updatePatchProgress.json +1 -0
- package/ios-vendor/PayMEMiniApp.xcframework/ios-arm64_x86_64-simulator/PayMEMiniApp.framework/vi.lproj/Localizable.strings +0 -0
- package/ios-vendor.json +4 -0
- package/package.json +7 -2
- package/payme-mini-app.podspec +12 -1
- package/scripts/vendor-ios.sh +29 -0
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios13.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name PayMEMiniApp
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
|
|
5
|
+
import AVFoundation
|
|
6
|
+
import Combine
|
|
7
|
+
import CommonCrypto
|
|
8
|
+
import ContactsUI
|
|
9
|
+
import CoreImage
|
|
10
|
+
import CoreNFC
|
|
11
|
+
import CryptoKit
|
|
12
|
+
import CryptoSwift
|
|
13
|
+
import Foundation
|
|
14
|
+
import GCDWebServer
|
|
15
|
+
import KalapaSDK
|
|
16
|
+
import LocalAuthentication
|
|
17
|
+
import Lottie
|
|
18
|
+
import Mixpanel
|
|
19
|
+
import NSLogger
|
|
20
|
+
import Network
|
|
21
|
+
@_exported import PayMEMiniApp
|
|
22
|
+
import Photos
|
|
23
|
+
import Security
|
|
24
|
+
import Swift
|
|
25
|
+
import SwiftyJSON
|
|
26
|
+
import SwiftyRSA
|
|
27
|
+
import UIKit
|
|
28
|
+
import Vision
|
|
29
|
+
import WebKit
|
|
30
|
+
import ZIPFoundation
|
|
31
|
+
import _Concurrency
|
|
32
|
+
import _StringProcessing
|
|
33
|
+
import _SwiftConcurrencyShims
|
|
34
|
+
public enum PayMEError : Swift.Error {
|
|
35
|
+
case miniApp(PayMEMiniApp.MiniAppError)
|
|
36
|
+
case userCancel
|
|
37
|
+
case systemCancel
|
|
38
|
+
case networking(PayMEMiniApp.NetworkError)
|
|
39
|
+
public var code: Swift.String {
|
|
40
|
+
get
|
|
41
|
+
}
|
|
42
|
+
public var description: Swift.String {
|
|
43
|
+
get
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
public enum NetworkError : Swift.Error {
|
|
47
|
+
case encodeFailed
|
|
48
|
+
case decodeFailed
|
|
49
|
+
case connectionLost
|
|
50
|
+
case timedOut
|
|
51
|
+
case noResponse
|
|
52
|
+
case server(description: Swift.String)
|
|
53
|
+
case other(description: Swift.String)
|
|
54
|
+
}
|
|
55
|
+
@objc @_hasMissingDesignatedInitializers @_Concurrency.MainActor @preconcurrency public class PayME : UIKit.UIViewController {
|
|
56
|
+
@_Concurrency.MainActor @preconcurrency public var walletDelegate: (any PayMEMiniApp.PayMEWalletDelegate)?
|
|
57
|
+
@_Concurrency.MainActor @preconcurrency public var delegate: (any PayMEMiniApp.PayMEDelegate)?
|
|
58
|
+
@_Concurrency.MainActor @preconcurrency final public let combine: PayMEMiniApp.PayMECombine
|
|
59
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
60
|
+
@_Concurrency.MainActor @preconcurrency public init(locale: PayMEMiniApp.Locale? = Locale.vi)
|
|
61
|
+
#endif
|
|
62
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
63
|
+
@available(*, deprecated, message: "Dùng PayME(locale:). SDK đã có sẵn key, `key` bị bỏ qua.")
|
|
64
|
+
@_Concurrency.MainActor @preconcurrency convenience public init(key: PayMEMiniApp.PayMEKey, locale: PayMEMiniApp.Locale? = Locale.vi)
|
|
65
|
+
#endif
|
|
66
|
+
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewWillAppear(_ animated: Swift.Bool)
|
|
67
|
+
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
|
68
|
+
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewWillDisappear(_ animated: Swift.Bool)
|
|
69
|
+
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidDisappear(_ animated: Swift.Bool)
|
|
70
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
71
|
+
@_Concurrency.MainActor @preconcurrency public func close(from currentVC: UIKit.UIViewController? = nil)
|
|
72
|
+
#endif
|
|
73
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
74
|
+
@_Concurrency.MainActor @preconcurrency public func open(with openData: PayMEMiniApp.PayMEOpeningParam, from currentVC: UIKit.UIViewController? = nil, type: PayMEMiniApp.PayMEOpeningType? = .screen)
|
|
75
|
+
#endif
|
|
76
|
+
@objc deinit
|
|
77
|
+
}
|
|
78
|
+
public enum BundleType : Swift.Equatable {
|
|
79
|
+
case local
|
|
80
|
+
case tunnel(domain: Swift.String)
|
|
81
|
+
public static func == (a: PayMEMiniApp.BundleType, b: PayMEMiniApp.BundleType) -> Swift.Bool
|
|
82
|
+
}
|
|
83
|
+
public enum Environment : Swift.String {
|
|
84
|
+
case local
|
|
85
|
+
case dev
|
|
86
|
+
case sbx
|
|
87
|
+
case prod
|
|
88
|
+
case staging
|
|
89
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
90
|
+
public init?(rawValue: Swift.String)
|
|
91
|
+
#endif
|
|
92
|
+
public typealias RawValue = Swift.String
|
|
93
|
+
public var rawValue: Swift.String {
|
|
94
|
+
get
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
public enum Locale : Swift.String {
|
|
98
|
+
case vi
|
|
99
|
+
case en
|
|
100
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
101
|
+
public init?(rawValue: Swift.String)
|
|
102
|
+
#endif
|
|
103
|
+
public typealias RawValue = Swift.String
|
|
104
|
+
public var rawValue: Swift.String {
|
|
105
|
+
get
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
@_hasMissingDesignatedInitializers public class PayMEConfig {
|
|
109
|
+
public static let instance: PayMEMiniApp.PayMEConfig
|
|
110
|
+
public var theme: PayMEMiniApp.Theme
|
|
111
|
+
public var env: PayMEMiniApp.Environment
|
|
112
|
+
public var locale: PayMEMiniApp.Locale
|
|
113
|
+
public func setBundleType(_ type: PayMEMiniApp.BundleType)
|
|
114
|
+
public func setDebugMode(_ isDebug: Swift.Bool)
|
|
115
|
+
public func setMode(_ mode: Swift.String)
|
|
116
|
+
public func setLanguage(_ lang: PayMEMiniApp.Locale)
|
|
117
|
+
@objc deinit
|
|
118
|
+
}
|
|
119
|
+
public protocol PayMEDelegate {
|
|
120
|
+
func onError(action: PayMEMiniApp.PayMEAction, error: PayMEMiniApp.PayMEError)
|
|
121
|
+
func onResponse(action: PayMEMiniApp.PayMEAction, response: Swift.Dictionary<Swift.String, Any>)
|
|
122
|
+
}
|
|
123
|
+
public protocol PayMEWalletDelegate {
|
|
124
|
+
func onSendTags(data: [Swift.String : Swift.String])
|
|
125
|
+
func onDeleteTags(data: [Swift.String])
|
|
126
|
+
func onChangeEnv(env: Swift.String)
|
|
127
|
+
func onChangeLocale(locale: Swift.String)
|
|
128
|
+
}
|
|
129
|
+
public struct MiniAppError {
|
|
130
|
+
}
|
|
131
|
+
extension PayMEMiniApp.PayME {
|
|
132
|
+
@_Concurrency.MainActor @preconcurrency public func getBalance(identityToken: Swift.String)
|
|
133
|
+
@_Concurrency.MainActor @preconcurrency public func getAccountInformation(identityToken: Swift.String)
|
|
134
|
+
@_Concurrency.MainActor @preconcurrency public func setLanguage(of language: PayMEMiniApp.Locale)
|
|
135
|
+
}
|
|
136
|
+
@_hasMissingDesignatedInitializers public class BiometricAuthenication {
|
|
137
|
+
@objc deinit
|
|
138
|
+
}
|
|
139
|
+
@_hasMissingDesignatedInitializers public class Console {
|
|
140
|
+
@objc deinit
|
|
141
|
+
}
|
|
142
|
+
@_hasMissingDesignatedInitializers public class Localization {
|
|
143
|
+
public static func setLanguage(_ locale: PayMEMiniApp.Locale)
|
|
144
|
+
public static func currentLocale() -> PayMEMiniApp.Locale
|
|
145
|
+
public static func isEnglish() -> Swift.Bool
|
|
146
|
+
@objc deinit
|
|
147
|
+
}
|
|
148
|
+
public enum PayMEAction : Swift.String {
|
|
149
|
+
case PayME
|
|
150
|
+
case Open
|
|
151
|
+
case Pay
|
|
152
|
+
case Payment
|
|
153
|
+
case TransferQR
|
|
154
|
+
case Service
|
|
155
|
+
case Deposit
|
|
156
|
+
case Withdraw
|
|
157
|
+
case Transfer
|
|
158
|
+
case KYC
|
|
159
|
+
case KalapaKYC
|
|
160
|
+
case GetBalance
|
|
161
|
+
case GetAccountInfo
|
|
162
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
163
|
+
public init?(rawValue: Swift.String)
|
|
164
|
+
#endif
|
|
165
|
+
public typealias RawValue = Swift.String
|
|
166
|
+
public var rawValue: Swift.String {
|
|
167
|
+
get
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
public struct PayMEKey {
|
|
171
|
+
public init(appId: Swift.String, publicKey: Swift.String, privateKey: Swift.String)
|
|
172
|
+
}
|
|
173
|
+
public struct PayMEPaymentParam {
|
|
174
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
175
|
+
public init(amount: Swift.Int, transactionId: Swift.String, note: Swift.String? = nil, ipnUrl: Swift.String? = nil, extraData: [Swift.String : Any]? = nil, isShowResult: Swift.Bool? = true)
|
|
176
|
+
#endif
|
|
177
|
+
}
|
|
178
|
+
public struct PayMEPaymentDirectParam {
|
|
179
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
180
|
+
public init(transaction: Swift.String, extraData: [Swift.String : Any]? = nil, isShowResult: Swift.Bool? = true)
|
|
181
|
+
#endif
|
|
182
|
+
}
|
|
183
|
+
public struct PayMETransferQRParam {
|
|
184
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
185
|
+
public init(amount: Swift.Int, swiftCode: Swift.String, bankNumber: Swift.String, cardHolder: Swift.String, partnerTransaction: Swift.String? = nil, note: Swift.String? = nil, extraData: [Swift.String : Any]? = nil, isShowResult: Swift.Bool? = true)
|
|
186
|
+
#endif
|
|
187
|
+
}
|
|
188
|
+
public struct PayMEServiceParam {
|
|
189
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
190
|
+
public init(service: Swift.String, extraData: [Swift.String : Any]? = nil, isBackToApp: Swift.Bool? = true, isShowResult: Swift.Bool? = true)
|
|
191
|
+
#endif
|
|
192
|
+
}
|
|
193
|
+
public struct PayMEPayParam {
|
|
194
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
195
|
+
public init(amount: Swift.Int? = 0, extraData: [Swift.String : Any]? = nil, description: Swift.String? = nil, isBackToApp: Swift.Bool? = true, isShowResult: Swift.Bool? = true)
|
|
196
|
+
#endif
|
|
197
|
+
}
|
|
198
|
+
public struct PayMEOpeningParam {
|
|
199
|
+
public static func payme() -> PayMEMiniApp.PayMEOpeningParam
|
|
200
|
+
public static func open(identityToken: Swift.String) -> PayMEMiniApp.PayMEOpeningParam
|
|
201
|
+
public static func kyc(identityToken: Swift.String) -> PayMEMiniApp.PayMEOpeningParam
|
|
202
|
+
public static func kalapaKYC(identityToken: Swift.String) -> PayMEMiniApp.PayMEOpeningParam
|
|
203
|
+
public static func service(identityToken: Swift.String, data: PayMEMiniApp.PayMEServiceParam) -> PayMEMiniApp.PayMEOpeningParam
|
|
204
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
205
|
+
public static func deposit(identityToken: Swift.String, data: PayMEMiniApp.PayMEPayParam? = nil) -> PayMEMiniApp.PayMEOpeningParam
|
|
206
|
+
#endif
|
|
207
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
208
|
+
public static func withdraw(identityToken: Swift.String, data: PayMEMiniApp.PayMEPayParam? = nil) -> PayMEMiniApp.PayMEOpeningParam
|
|
209
|
+
#endif
|
|
210
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
211
|
+
public static func transfer(identityToken: Swift.String, data: PayMEMiniApp.PayMEPayParam? = nil) -> PayMEMiniApp.PayMEOpeningParam
|
|
212
|
+
#endif
|
|
213
|
+
public static func pay(identityToken: Swift.String, data: PayMEMiniApp.PayMEPaymentParam) -> PayMEMiniApp.PayMEOpeningParam
|
|
214
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
215
|
+
public static func payment(identityToken: Swift.String? = nil, data: PayMEMiniApp.PayMEPaymentDirectParam) -> PayMEMiniApp.PayMEOpeningParam
|
|
216
|
+
#endif
|
|
217
|
+
public static func transferQR(identityToken: Swift.String, data: PayMEMiniApp.PayMETransferQRParam) -> PayMEMiniApp.PayMEOpeningParam
|
|
218
|
+
}
|
|
219
|
+
extension PayMEMiniApp.PayMEOpeningParam : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomReflectable {
|
|
220
|
+
public var description: Swift.String {
|
|
221
|
+
get
|
|
222
|
+
}
|
|
223
|
+
public var debugDescription: Swift.String {
|
|
224
|
+
get
|
|
225
|
+
}
|
|
226
|
+
public var customMirror: Swift.Mirror {
|
|
227
|
+
get
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
public enum PayMEOpeningType : Swift.String {
|
|
231
|
+
case modal
|
|
232
|
+
case screen
|
|
233
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
234
|
+
public init?(rawValue: Swift.String)
|
|
235
|
+
#endif
|
|
236
|
+
public typealias RawValue = Swift.String
|
|
237
|
+
public var rawValue: Swift.String {
|
|
238
|
+
get
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
public class Theme {
|
|
242
|
+
public var primary: UIKit.UIColor
|
|
243
|
+
public var background: UIKit.UIColor
|
|
244
|
+
public var textPrimary: UIKit.UIColor
|
|
245
|
+
public init(primary: UIKit.UIColor, background: UIKit.UIColor, textPrimary: UIKit.UIColor)
|
|
246
|
+
@objc deinit
|
|
247
|
+
}
|
|
248
|
+
@_hasMissingDesignatedInitializers public class PayMECombine {
|
|
249
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
250
|
+
@available(*, deprecated, message: "Dùng send(notification:). Sẽ bị gỡ ở 0.12.0 cùng kiểu SwiftyJSON.JSON.")
|
|
251
|
+
public var notificationSubject: Combine.CurrentValueSubject<SwiftyJSON.JSON?, Swift.Never> {
|
|
252
|
+
get
|
|
253
|
+
}
|
|
254
|
+
#endif
|
|
255
|
+
final public let urlSubject: Combine.CurrentValueSubject<Swift.String, Swift.Never>
|
|
256
|
+
public func send(notification: [Swift.AnyHashable : Any])
|
|
257
|
+
@objc deinit
|
|
258
|
+
}
|
|
259
|
+
extension PayMEMiniApp.Environment : Swift.Equatable {}
|
|
260
|
+
extension PayMEMiniApp.Environment : Swift.Hashable {}
|
|
261
|
+
extension PayMEMiniApp.Environment : Swift.RawRepresentable {}
|
|
262
|
+
extension PayMEMiniApp.Locale : Swift.Equatable {}
|
|
263
|
+
extension PayMEMiniApp.Locale : Swift.Hashable {}
|
|
264
|
+
extension PayMEMiniApp.Locale : Swift.RawRepresentable {}
|
|
265
|
+
extension PayMEMiniApp.PayMEAction : Swift.Equatable {}
|
|
266
|
+
extension PayMEMiniApp.PayMEAction : Swift.Hashable {}
|
|
267
|
+
extension PayMEMiniApp.PayMEAction : Swift.RawRepresentable {}
|
|
268
|
+
extension PayMEMiniApp.PayMEOpeningType : Swift.Equatable {}
|
|
269
|
+
extension PayMEMiniApp.PayMEOpeningType : Swift.Hashable {}
|
|
270
|
+
extension PayMEMiniApp.PayMEOpeningType : Swift.RawRepresentable {}
|
|
Binary file
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios13.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name PayMEMiniApp
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
|
|
5
|
+
import AVFoundation
|
|
6
|
+
import Combine
|
|
7
|
+
import CommonCrypto
|
|
8
|
+
import ContactsUI
|
|
9
|
+
import CoreImage
|
|
10
|
+
import CoreNFC
|
|
11
|
+
import CryptoKit
|
|
12
|
+
import CryptoSwift
|
|
13
|
+
import Foundation
|
|
14
|
+
import GCDWebServer
|
|
15
|
+
import KalapaSDK
|
|
16
|
+
import LocalAuthentication
|
|
17
|
+
import Lottie
|
|
18
|
+
import Mixpanel
|
|
19
|
+
import NSLogger
|
|
20
|
+
import Network
|
|
21
|
+
@_exported import PayMEMiniApp
|
|
22
|
+
import Photos
|
|
23
|
+
import Security
|
|
24
|
+
import Swift
|
|
25
|
+
import SwiftyJSON
|
|
26
|
+
import SwiftyRSA
|
|
27
|
+
import UIKit
|
|
28
|
+
import Vision
|
|
29
|
+
import WebKit
|
|
30
|
+
import ZIPFoundation
|
|
31
|
+
import _Concurrency
|
|
32
|
+
import _StringProcessing
|
|
33
|
+
import _SwiftConcurrencyShims
|
|
34
|
+
public enum PayMEError : Swift.Error {
|
|
35
|
+
case miniApp(PayMEMiniApp.MiniAppError)
|
|
36
|
+
case userCancel
|
|
37
|
+
case systemCancel
|
|
38
|
+
case networking(PayMEMiniApp.NetworkError)
|
|
39
|
+
public var code: Swift.String {
|
|
40
|
+
get
|
|
41
|
+
}
|
|
42
|
+
public var description: Swift.String {
|
|
43
|
+
get
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
public enum NetworkError : Swift.Error {
|
|
47
|
+
case encodeFailed
|
|
48
|
+
case decodeFailed
|
|
49
|
+
case connectionLost
|
|
50
|
+
case timedOut
|
|
51
|
+
case noResponse
|
|
52
|
+
case server(description: Swift.String)
|
|
53
|
+
case other(description: Swift.String)
|
|
54
|
+
}
|
|
55
|
+
@objc @_hasMissingDesignatedInitializers @_Concurrency.MainActor @preconcurrency public class PayME : UIKit.UIViewController {
|
|
56
|
+
@_Concurrency.MainActor @preconcurrency public var walletDelegate: (any PayMEMiniApp.PayMEWalletDelegate)?
|
|
57
|
+
@_Concurrency.MainActor @preconcurrency public var delegate: (any PayMEMiniApp.PayMEDelegate)?
|
|
58
|
+
@_Concurrency.MainActor @preconcurrency final public let combine: PayMEMiniApp.PayMECombine
|
|
59
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
60
|
+
@_Concurrency.MainActor @preconcurrency public init(locale: PayMEMiniApp.Locale? = Locale.vi)
|
|
61
|
+
#endif
|
|
62
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
63
|
+
@available(*, deprecated, message: "Dùng PayME(locale:). SDK đã có sẵn key, `key` bị bỏ qua.")
|
|
64
|
+
@_Concurrency.MainActor @preconcurrency convenience public init(key: PayMEMiniApp.PayMEKey, locale: PayMEMiniApp.Locale? = Locale.vi)
|
|
65
|
+
#endif
|
|
66
|
+
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewWillAppear(_ animated: Swift.Bool)
|
|
67
|
+
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
|
68
|
+
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewWillDisappear(_ animated: Swift.Bool)
|
|
69
|
+
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidDisappear(_ animated: Swift.Bool)
|
|
70
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
71
|
+
@_Concurrency.MainActor @preconcurrency public func close(from currentVC: UIKit.UIViewController? = nil)
|
|
72
|
+
#endif
|
|
73
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
74
|
+
@_Concurrency.MainActor @preconcurrency public func open(with openData: PayMEMiniApp.PayMEOpeningParam, from currentVC: UIKit.UIViewController? = nil, type: PayMEMiniApp.PayMEOpeningType? = .screen)
|
|
75
|
+
#endif
|
|
76
|
+
@objc deinit
|
|
77
|
+
}
|
|
78
|
+
public enum BundleType : Swift.Equatable {
|
|
79
|
+
case local
|
|
80
|
+
case tunnel(domain: Swift.String)
|
|
81
|
+
public static func == (a: PayMEMiniApp.BundleType, b: PayMEMiniApp.BundleType) -> Swift.Bool
|
|
82
|
+
}
|
|
83
|
+
public enum Environment : Swift.String {
|
|
84
|
+
case local
|
|
85
|
+
case dev
|
|
86
|
+
case sbx
|
|
87
|
+
case prod
|
|
88
|
+
case staging
|
|
89
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
90
|
+
public init?(rawValue: Swift.String)
|
|
91
|
+
#endif
|
|
92
|
+
public typealias RawValue = Swift.String
|
|
93
|
+
public var rawValue: Swift.String {
|
|
94
|
+
get
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
public enum Locale : Swift.String {
|
|
98
|
+
case vi
|
|
99
|
+
case en
|
|
100
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
101
|
+
public init?(rawValue: Swift.String)
|
|
102
|
+
#endif
|
|
103
|
+
public typealias RawValue = Swift.String
|
|
104
|
+
public var rawValue: Swift.String {
|
|
105
|
+
get
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
@_hasMissingDesignatedInitializers public class PayMEConfig {
|
|
109
|
+
public static let instance: PayMEMiniApp.PayMEConfig
|
|
110
|
+
public var theme: PayMEMiniApp.Theme
|
|
111
|
+
public var env: PayMEMiniApp.Environment
|
|
112
|
+
public var locale: PayMEMiniApp.Locale
|
|
113
|
+
public func setBundleType(_ type: PayMEMiniApp.BundleType)
|
|
114
|
+
public func setDebugMode(_ isDebug: Swift.Bool)
|
|
115
|
+
public func setMode(_ mode: Swift.String)
|
|
116
|
+
public func setLanguage(_ lang: PayMEMiniApp.Locale)
|
|
117
|
+
@objc deinit
|
|
118
|
+
}
|
|
119
|
+
public protocol PayMEDelegate {
|
|
120
|
+
func onError(action: PayMEMiniApp.PayMEAction, error: PayMEMiniApp.PayMEError)
|
|
121
|
+
func onResponse(action: PayMEMiniApp.PayMEAction, response: Swift.Dictionary<Swift.String, Any>)
|
|
122
|
+
}
|
|
123
|
+
public protocol PayMEWalletDelegate {
|
|
124
|
+
func onSendTags(data: [Swift.String : Swift.String])
|
|
125
|
+
func onDeleteTags(data: [Swift.String])
|
|
126
|
+
func onChangeEnv(env: Swift.String)
|
|
127
|
+
func onChangeLocale(locale: Swift.String)
|
|
128
|
+
}
|
|
129
|
+
public struct MiniAppError {
|
|
130
|
+
}
|
|
131
|
+
extension PayMEMiniApp.PayME {
|
|
132
|
+
@_Concurrency.MainActor @preconcurrency public func getBalance(identityToken: Swift.String)
|
|
133
|
+
@_Concurrency.MainActor @preconcurrency public func getAccountInformation(identityToken: Swift.String)
|
|
134
|
+
@_Concurrency.MainActor @preconcurrency public func setLanguage(of language: PayMEMiniApp.Locale)
|
|
135
|
+
}
|
|
136
|
+
@_hasMissingDesignatedInitializers public class BiometricAuthenication {
|
|
137
|
+
@objc deinit
|
|
138
|
+
}
|
|
139
|
+
@_hasMissingDesignatedInitializers public class Console {
|
|
140
|
+
@objc deinit
|
|
141
|
+
}
|
|
142
|
+
@_hasMissingDesignatedInitializers public class Localization {
|
|
143
|
+
public static func setLanguage(_ locale: PayMEMiniApp.Locale)
|
|
144
|
+
public static func currentLocale() -> PayMEMiniApp.Locale
|
|
145
|
+
public static func isEnglish() -> Swift.Bool
|
|
146
|
+
@objc deinit
|
|
147
|
+
}
|
|
148
|
+
public enum PayMEAction : Swift.String {
|
|
149
|
+
case PayME
|
|
150
|
+
case Open
|
|
151
|
+
case Pay
|
|
152
|
+
case Payment
|
|
153
|
+
case TransferQR
|
|
154
|
+
case Service
|
|
155
|
+
case Deposit
|
|
156
|
+
case Withdraw
|
|
157
|
+
case Transfer
|
|
158
|
+
case KYC
|
|
159
|
+
case KalapaKYC
|
|
160
|
+
case GetBalance
|
|
161
|
+
case GetAccountInfo
|
|
162
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
163
|
+
public init?(rawValue: Swift.String)
|
|
164
|
+
#endif
|
|
165
|
+
public typealias RawValue = Swift.String
|
|
166
|
+
public var rawValue: Swift.String {
|
|
167
|
+
get
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
public struct PayMEKey {
|
|
171
|
+
public init(appId: Swift.String, publicKey: Swift.String, privateKey: Swift.String)
|
|
172
|
+
}
|
|
173
|
+
public struct PayMEPaymentParam {
|
|
174
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
175
|
+
public init(amount: Swift.Int, transactionId: Swift.String, note: Swift.String? = nil, ipnUrl: Swift.String? = nil, extraData: [Swift.String : Any]? = nil, isShowResult: Swift.Bool? = true)
|
|
176
|
+
#endif
|
|
177
|
+
}
|
|
178
|
+
public struct PayMEPaymentDirectParam {
|
|
179
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
180
|
+
public init(transaction: Swift.String, extraData: [Swift.String : Any]? = nil, isShowResult: Swift.Bool? = true)
|
|
181
|
+
#endif
|
|
182
|
+
}
|
|
183
|
+
public struct PayMETransferQRParam {
|
|
184
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
185
|
+
public init(amount: Swift.Int, swiftCode: Swift.String, bankNumber: Swift.String, cardHolder: Swift.String, partnerTransaction: Swift.String? = nil, note: Swift.String? = nil, extraData: [Swift.String : Any]? = nil, isShowResult: Swift.Bool? = true)
|
|
186
|
+
#endif
|
|
187
|
+
}
|
|
188
|
+
public struct PayMEServiceParam {
|
|
189
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
190
|
+
public init(service: Swift.String, extraData: [Swift.String : Any]? = nil, isBackToApp: Swift.Bool? = true, isShowResult: Swift.Bool? = true)
|
|
191
|
+
#endif
|
|
192
|
+
}
|
|
193
|
+
public struct PayMEPayParam {
|
|
194
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
195
|
+
public init(amount: Swift.Int? = 0, extraData: [Swift.String : Any]? = nil, description: Swift.String? = nil, isBackToApp: Swift.Bool? = true, isShowResult: Swift.Bool? = true)
|
|
196
|
+
#endif
|
|
197
|
+
}
|
|
198
|
+
public struct PayMEOpeningParam {
|
|
199
|
+
public static func payme() -> PayMEMiniApp.PayMEOpeningParam
|
|
200
|
+
public static func open(identityToken: Swift.String) -> PayMEMiniApp.PayMEOpeningParam
|
|
201
|
+
public static func kyc(identityToken: Swift.String) -> PayMEMiniApp.PayMEOpeningParam
|
|
202
|
+
public static func kalapaKYC(identityToken: Swift.String) -> PayMEMiniApp.PayMEOpeningParam
|
|
203
|
+
public static func service(identityToken: Swift.String, data: PayMEMiniApp.PayMEServiceParam) -> PayMEMiniApp.PayMEOpeningParam
|
|
204
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
205
|
+
public static func deposit(identityToken: Swift.String, data: PayMEMiniApp.PayMEPayParam? = nil) -> PayMEMiniApp.PayMEOpeningParam
|
|
206
|
+
#endif
|
|
207
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
208
|
+
public static func withdraw(identityToken: Swift.String, data: PayMEMiniApp.PayMEPayParam? = nil) -> PayMEMiniApp.PayMEOpeningParam
|
|
209
|
+
#endif
|
|
210
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
211
|
+
public static func transfer(identityToken: Swift.String, data: PayMEMiniApp.PayMEPayParam? = nil) -> PayMEMiniApp.PayMEOpeningParam
|
|
212
|
+
#endif
|
|
213
|
+
public static func pay(identityToken: Swift.String, data: PayMEMiniApp.PayMEPaymentParam) -> PayMEMiniApp.PayMEOpeningParam
|
|
214
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
215
|
+
public static func payment(identityToken: Swift.String? = nil, data: PayMEMiniApp.PayMEPaymentDirectParam) -> PayMEMiniApp.PayMEOpeningParam
|
|
216
|
+
#endif
|
|
217
|
+
public static func transferQR(identityToken: Swift.String, data: PayMEMiniApp.PayMETransferQRParam) -> PayMEMiniApp.PayMEOpeningParam
|
|
218
|
+
}
|
|
219
|
+
extension PayMEMiniApp.PayMEOpeningParam : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomReflectable {
|
|
220
|
+
public var description: Swift.String {
|
|
221
|
+
get
|
|
222
|
+
}
|
|
223
|
+
public var debugDescription: Swift.String {
|
|
224
|
+
get
|
|
225
|
+
}
|
|
226
|
+
public var customMirror: Swift.Mirror {
|
|
227
|
+
get
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
public enum PayMEOpeningType : Swift.String {
|
|
231
|
+
case modal
|
|
232
|
+
case screen
|
|
233
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
234
|
+
public init?(rawValue: Swift.String)
|
|
235
|
+
#endif
|
|
236
|
+
public typealias RawValue = Swift.String
|
|
237
|
+
public var rawValue: Swift.String {
|
|
238
|
+
get
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
public class Theme {
|
|
242
|
+
public var primary: UIKit.UIColor
|
|
243
|
+
public var background: UIKit.UIColor
|
|
244
|
+
public var textPrimary: UIKit.UIColor
|
|
245
|
+
public init(primary: UIKit.UIColor, background: UIKit.UIColor, textPrimary: UIKit.UIColor)
|
|
246
|
+
@objc deinit
|
|
247
|
+
}
|
|
248
|
+
@_hasMissingDesignatedInitializers public class PayMECombine {
|
|
249
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
250
|
+
@available(*, deprecated, message: "Dùng send(notification:). Sẽ bị gỡ ở 0.12.0 cùng kiểu SwiftyJSON.JSON.")
|
|
251
|
+
public var notificationSubject: Combine.CurrentValueSubject<SwiftyJSON.JSON?, Swift.Never> {
|
|
252
|
+
get
|
|
253
|
+
}
|
|
254
|
+
#endif
|
|
255
|
+
final public let urlSubject: Combine.CurrentValueSubject<Swift.String, Swift.Never>
|
|
256
|
+
public func send(notification: [Swift.AnyHashable : Any])
|
|
257
|
+
@objc deinit
|
|
258
|
+
}
|
|
259
|
+
extension PayMEMiniApp.Environment : Swift.Equatable {}
|
|
260
|
+
extension PayMEMiniApp.Environment : Swift.Hashable {}
|
|
261
|
+
extension PayMEMiniApp.Environment : Swift.RawRepresentable {}
|
|
262
|
+
extension PayMEMiniApp.Locale : Swift.Equatable {}
|
|
263
|
+
extension PayMEMiniApp.Locale : Swift.Hashable {}
|
|
264
|
+
extension PayMEMiniApp.Locale : Swift.RawRepresentable {}
|
|
265
|
+
extension PayMEMiniApp.PayMEAction : Swift.Equatable {}
|
|
266
|
+
extension PayMEMiniApp.PayMEAction : Swift.Hashable {}
|
|
267
|
+
extension PayMEMiniApp.PayMEAction : Swift.RawRepresentable {}
|
|
268
|
+
extension PayMEMiniApp.PayMEOpeningType : Swift.Equatable {}
|
|
269
|
+
extension PayMEMiniApp.PayMEOpeningType : Swift.Hashable {}
|
|
270
|
+
extension PayMEMiniApp.PayMEOpeningType : Swift.RawRepresentable {}
|