@onramper/onramper-react-native 1.0.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/CHANGELOG.md +21 -0
- package/LICENSE +202 -0
- package/NOTICE +5 -0
- package/OnramperReactNative.podspec +36 -0
- package/README.md +114 -0
- package/app.plugin.js +51 -0
- package/ios/Frameworks/LICENSE +202 -0
- package/ios/Frameworks/NOTICE +5 -0
- package/ios/Frameworks/OnramperSDK.xcframework/Info.plist +48 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/OnramperSDK.framework/Info.plist +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/OnramperSDK.framework/Modules/OnramperSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/OnramperSDK.framework/Modules/OnramperSDK.swiftmodule/arm64-apple-ios.swiftinterface +548 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/OnramperSDK.framework/OnramperSDK +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/OnramperSDK.framework/OnramperSDK_OnramperSDK.bundle/Info.plist +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/OnramperSDK.framework/OnramperSDK_OnramperSDK.bundle/PrivacyInfo.xcprivacy +27 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/OnramperSDK.framework/PrivacyInfo.xcprivacy +27 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/dSYMs/OnramperSDK.framework.dSYM/Contents/Info.plist +20 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/dSYMs/OnramperSDK.framework.dSYM/Contents/Resources/DWARF/OnramperSDK +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/dSYMs/OnramperSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/OnramperSDK.yml +2518 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/Info.plist +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/Modules/OnramperSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/Modules/OnramperSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +548 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/Modules/OnramperSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/Modules/OnramperSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +548 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/OnramperSDK +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/OnramperSDK_OnramperSDK.bundle/Info.plist +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/OnramperSDK_OnramperSDK.bundle/PrivacyInfo.xcprivacy +27 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/PrivacyInfo.xcprivacy +27 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/OnramperSDK.framework.dSYM/Contents/Info.plist +20 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/OnramperSDK.framework.dSYM/Contents/Resources/DWARF/OnramperSDK +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/OnramperSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/OnramperSDK.yml +2518 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/OnramperSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/OnramperSDK.yml +2487 -0
- package/ios/HybridOnramperCheckoutButton.swift +112 -0
- package/ios/HybridOnramperNitro.swift +194 -0
- package/ios/OnramperCheckoutBridge.swift +88 -0
- package/ios/OnramperSDKBridge.swift +185 -0
- package/ios/PreparedIntentRegistry.swift +78 -0
- package/lib/commonjs/OnramperCheckoutButtonView.js +16 -0
- package/lib/commonjs/OnramperCheckoutButtonView.js.map +1 -0
- package/lib/commonjs/OnramperClient.js +161 -0
- package/lib/commonjs/OnramperClient.js.map +1 -0
- package/lib/commonjs/OnramperNative.js +22 -0
- package/lib/commonjs/OnramperNative.js.map +1 -0
- package/lib/commonjs/errors.js +35 -0
- package/lib/commonjs/errors.js.map +1 -0
- package/lib/commonjs/events.js +6 -0
- package/lib/commonjs/events.js.map +1 -0
- package/lib/commonjs/generated/OnramperCheckoutButtonConfig.json +10 -0
- package/lib/commonjs/index.js +27 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/specs/OnramperCheckoutButton.nitro.js +6 -0
- package/lib/commonjs/specs/OnramperCheckoutButton.nitro.js.map +1 -0
- package/lib/commonjs/specs/OnramperNitro.nitro.js +6 -0
- package/lib/commonjs/specs/OnramperNitro.nitro.js.map +1 -0
- package/lib/commonjs/types.js +6 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/module/OnramperCheckoutButtonView.js +11 -0
- package/lib/module/OnramperCheckoutButtonView.js.map +1 -0
- package/lib/module/OnramperClient.js +156 -0
- package/lib/module/OnramperClient.js.map +1 -0
- package/lib/module/OnramperNative.js +18 -0
- package/lib/module/OnramperNative.js.map +1 -0
- package/lib/module/errors.js +30 -0
- package/lib/module/errors.js.map +1 -0
- package/lib/module/events.js +4 -0
- package/lib/module/events.js.map +1 -0
- package/lib/module/generated/OnramperCheckoutButtonConfig.json +10 -0
- package/lib/module/index.js +8 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/specs/OnramperCheckoutButton.nitro.js +4 -0
- package/lib/module/specs/OnramperCheckoutButton.nitro.js.map +1 -0
- package/lib/module/specs/OnramperNitro.nitro.js +4 -0
- package/lib/module/specs/OnramperNitro.nitro.js.map +1 -0
- package/lib/module/types.js +4 -0
- package/lib/module/types.js.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/OnramperCheckoutButtonView.d.ts +9 -0
- package/lib/typescript/commonjs/src/OnramperCheckoutButtonView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/OnramperClient.d.ts +49 -0
- package/lib/typescript/commonjs/src/OnramperClient.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/OnramperNative.d.ts +9 -0
- package/lib/typescript/commonjs/src/OnramperNative.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/errors.d.ts +13 -0
- package/lib/typescript/commonjs/src/errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/events.d.ts +48 -0
- package/lib/typescript/commonjs/src/events.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/specs/OnramperCheckoutButton.nitro.d.ts +10 -0
- package/lib/typescript/commonjs/src/specs/OnramperCheckoutButton.nitro.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/specs/OnramperNitro.nitro.d.ts +39 -0
- package/lib/typescript/commonjs/src/specs/OnramperNitro.nitro.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types.d.ts +127 -0
- package/lib/typescript/commonjs/src/types.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/OnramperCheckoutButtonView.d.ts +9 -0
- package/lib/typescript/module/src/OnramperCheckoutButtonView.d.ts.map +1 -0
- package/lib/typescript/module/src/OnramperClient.d.ts +49 -0
- package/lib/typescript/module/src/OnramperClient.d.ts.map +1 -0
- package/lib/typescript/module/src/OnramperNative.d.ts +9 -0
- package/lib/typescript/module/src/OnramperNative.d.ts.map +1 -0
- package/lib/typescript/module/src/errors.d.ts +13 -0
- package/lib/typescript/module/src/errors.d.ts.map +1 -0
- package/lib/typescript/module/src/events.d.ts +48 -0
- package/lib/typescript/module/src/events.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +9 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/specs/OnramperCheckoutButton.nitro.d.ts +10 -0
- package/lib/typescript/module/src/specs/OnramperCheckoutButton.nitro.d.ts.map +1 -0
- package/lib/typescript/module/src/specs/OnramperNitro.nitro.d.ts +39 -0
- package/lib/typescript/module/src/specs/OnramperNitro.nitro.d.ts.map +1 -0
- package/lib/typescript/module/src/types.d.ts +127 -0
- package/lib/typescript/module/src/types.d.ts.map +1 -0
- package/nitro.json +19 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/ios/OnramperReactNative+autolinking.rb +62 -0
- package/nitrogen/generated/ios/OnramperReactNative-Swift-Cxx-Bridge.cpp +107 -0
- package/nitrogen/generated/ios/OnramperReactNative-Swift-Cxx-Bridge.hpp +299 -0
- package/nitrogen/generated/ios/OnramperReactNative-Swift-Cxx-Umbrella.hpp +60 -0
- package/nitrogen/generated/ios/OnramperReactNativeAutolinking.mm +41 -0
- package/nitrogen/generated/ios/OnramperReactNativeAutolinking.swift +38 -0
- package/nitrogen/generated/ios/c++/HybridOnramperCheckoutButtonSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridOnramperCheckoutButtonSpecSwift.hpp +81 -0
- package/nitrogen/generated/ios/c++/HybridOnramperNitroSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridOnramperNitroSpecSwift.hpp +150 -0
- package/nitrogen/generated/ios/c++/views/HybridOnramperCheckoutButtonComponent.mm +122 -0
- package/nitrogen/generated/ios/swift/Func_std__shared_ptr_Promise_std__shared_ptr_Promise_NitroSessionCredentials____.swift +61 -0
- package/nitrogen/generated/ios/swift/Func_void.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_NitroSessionCredentials.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_PreparedIntentResult.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__shared_ptr_Promise_NitroSessionCredentials__.swift +66 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +46 -0
- package/nitrogen/generated/ios/swift/HybridOnramperCheckoutButtonSpec.swift +55 -0
- package/nitrogen/generated/ios/swift/HybridOnramperCheckoutButtonSpec_cxx.swift +156 -0
- package/nitrogen/generated/ios/swift/HybridOnramperNitroSpec.swift +63 -0
- package/nitrogen/generated/ios/swift/HybridOnramperNitroSpec_cxx.swift +309 -0
- package/nitrogen/generated/ios/swift/NitroSessionCredentials.swift +34 -0
- package/nitrogen/generated/ios/swift/OnramperNitroConfig.swift +49 -0
- package/nitrogen/generated/ios/swift/PreparedIntentResult.swift +34 -0
- package/nitrogen/generated/shared/c++/HybridOnramperCheckoutButtonSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridOnramperCheckoutButtonSpec.hpp +63 -0
- package/nitrogen/generated/shared/c++/HybridOnramperNitroSpec.cpp +29 -0
- package/nitrogen/generated/shared/c++/HybridOnramperNitroSpec.hpp +80 -0
- package/nitrogen/generated/shared/c++/NitroSessionCredentials.hpp +87 -0
- package/nitrogen/generated/shared/c++/OnramperNitroConfig.hpp +99 -0
- package/nitrogen/generated/shared/c++/PreparedIntentResult.hpp +87 -0
- package/nitrogen/generated/shared/c++/views/HybridOnramperCheckoutButtonComponent.cpp +83 -0
- package/nitrogen/generated/shared/c++/views/HybridOnramperCheckoutButtonComponent.hpp +111 -0
- package/nitrogen/generated/shared/json/OnramperCheckoutButtonConfig.json +10 -0
- package/package.json +107 -0
- package/src/OnramperCheckoutButtonView.tsx +15 -0
- package/src/OnramperClient.ts +170 -0
- package/src/OnramperNative.ts +19 -0
- package/src/errors.ts +69 -0
- package/src/events.ts +23 -0
- package/src/generated/OnramperCheckoutButtonConfig.json +10 -0
- package/src/index.ts +30 -0
- package/src/specs/OnramperCheckoutButton.nitro.ts +16 -0
- package/src/specs/OnramperNitro.nitro.ts +60 -0
- package/src/types.ts +133 -0
|
@@ -0,0 +1,548 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2.4 effective-5.10 (swiftlang-6.2.4.1.4 clang-1700.6.4.2)
|
|
3
|
+
// swift-module-flags: -target x86_64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -module-name OnramperSDK -package-name sdk_ios
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.4
|
|
5
|
+
import Combine
|
|
6
|
+
import CryptoKit
|
|
7
|
+
import DeviceCheck
|
|
8
|
+
import Foundation
|
|
9
|
+
import Foundation/*.Bundle*/
|
|
10
|
+
import Foundation/*.ProcessInfo*/
|
|
11
|
+
import Foundation/*.URL*/
|
|
12
|
+
import Security
|
|
13
|
+
import Swift
|
|
14
|
+
import SwiftUI
|
|
15
|
+
import UIKit
|
|
16
|
+
import WebKit
|
|
17
|
+
import _Concurrency
|
|
18
|
+
import _StringProcessing
|
|
19
|
+
import _SwiftConcurrencyShims
|
|
20
|
+
import _WebKit_SwiftUI
|
|
21
|
+
import os.log
|
|
22
|
+
import os
|
|
23
|
+
extension OnramperSDK.ToSItemType {
|
|
24
|
+
public var displayName: Swift.String {
|
|
25
|
+
get
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
extension OnramperSDK.ToSRequirement {
|
|
29
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
30
|
+
public func consentSentenceMarkdown(buttonLabel: Swift.String) -> Swift.String?
|
|
31
|
+
#endif
|
|
32
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
33
|
+
public func consentSentencePlainText(buttonLabel: Swift.String) -> Swift.String?
|
|
34
|
+
#endif
|
|
35
|
+
}
|
|
36
|
+
public enum LogLevel : Swift.Int, Swift.Sendable, Swift.Comparable {
|
|
37
|
+
case off
|
|
38
|
+
case error
|
|
39
|
+
case info
|
|
40
|
+
case debug
|
|
41
|
+
public static func < (lhs: OnramperSDK.LogLevel, rhs: OnramperSDK.LogLevel) -> Swift.Bool
|
|
42
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
43
|
+
public init?(rawValue: Swift.Int)
|
|
44
|
+
#endif
|
|
45
|
+
public typealias RawValue = Swift.Int
|
|
46
|
+
public var rawValue: Swift.Int {
|
|
47
|
+
get
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
public enum OnramperError : Foundation.LocalizedError, Swift.Equatable, Swift.Sendable {
|
|
51
|
+
case notInitialized
|
|
52
|
+
case initializationFailed(Swift.String)
|
|
53
|
+
case attestationFailed(Swift.String)
|
|
54
|
+
case invalidStateTransition(from: Swift.String, to: Swift.String)
|
|
55
|
+
case invalidState(expected: Swift.String, actual: Swift.String)
|
|
56
|
+
case networkError(code: Swift.Int, message: Swift.String)
|
|
57
|
+
case decodingError(Swift.String)
|
|
58
|
+
case timeout
|
|
59
|
+
case requirementNotSatisfied(Swift.String)
|
|
60
|
+
case amountOutOfRange(min: Swift.Double, max: Swift.Double)
|
|
61
|
+
case oidcFlowCancelled
|
|
62
|
+
case oidcTokenExchangeFailed(Swift.String)
|
|
63
|
+
case oidcFlowFailed(Swift.String)
|
|
64
|
+
case userTokenInvalid
|
|
65
|
+
case userTokenRefreshFailed(Swift.String)
|
|
66
|
+
case webviewLoadFailed(Swift.String)
|
|
67
|
+
case deepLinkFailed(Swift.String)
|
|
68
|
+
case invalidRequest(field: Swift.String?, debugInfo: Swift.String?)
|
|
69
|
+
case quoteUnavailable(debugInfo: Swift.String?)
|
|
70
|
+
case checkoutForbidden(debugInfo: Swift.String?)
|
|
71
|
+
case temporaryFailure(retryAfter: Foundation.TimeInterval?, debugInfo: Swift.String?)
|
|
72
|
+
case unrecoverable(debugInfo: Swift.String?)
|
|
73
|
+
case configurationError(reason: Swift.String)
|
|
74
|
+
case deviceBlocked
|
|
75
|
+
case securityStorageFailed(status: Swift.Int32)
|
|
76
|
+
case securityTrustFailed(host: Swift.String)
|
|
77
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
78
|
+
public var errorDescription: Swift.String? {
|
|
79
|
+
get
|
|
80
|
+
}
|
|
81
|
+
#endif
|
|
82
|
+
public static func == (a: OnramperSDK.OnramperError, b: OnramperSDK.OnramperError) -> Swift.Bool
|
|
83
|
+
}
|
|
84
|
+
public enum CheckoutEvent : Swift.Sendable {
|
|
85
|
+
case stateChanged(OnramperSDK.OnramperState)
|
|
86
|
+
case checkoutStarted(Swift.String)
|
|
87
|
+
case loginRequired([OnramperSDK.CheckoutRequirement])
|
|
88
|
+
case readyToCheckout
|
|
89
|
+
case requirementSatisfied(OnramperSDK.CheckoutRequirementType)
|
|
90
|
+
case checkoutFinalized(OnramperSDK.CheckoutFinalizeResponse)
|
|
91
|
+
case renderingStarted(url: Foundation.URL, renderType: OnramperSDK.RenderType)
|
|
92
|
+
case completed(checkoutId: Swift.String)
|
|
93
|
+
case failed(OnramperSDK.OnramperError)
|
|
94
|
+
case checkoutCancelled
|
|
95
|
+
case providerReady
|
|
96
|
+
case paymentAuthorized
|
|
97
|
+
case paymentProcessing
|
|
98
|
+
case paymentCancelled
|
|
99
|
+
case providerError(reason: Swift.String)
|
|
100
|
+
}
|
|
101
|
+
@_Concurrency.MainActor public protocol OnramperDelegate : AnyObject {
|
|
102
|
+
@_Concurrency.MainActor func onramperClient(_ client: OnramperSDK.OnramperClient, didChangeState state: OnramperSDK.OnramperState)
|
|
103
|
+
@_Concurrency.MainActor func onramperClient(_ client: OnramperSDK.OnramperClient, didStartCheckout checkoutId: Swift.String)
|
|
104
|
+
@_Concurrency.MainActor func onramperClient(_ client: OnramperSDK.OnramperClient, didRequireLogin requirements: [OnramperSDK.CheckoutRequirement])
|
|
105
|
+
@_Concurrency.MainActor func onramperClient(_ client: OnramperSDK.OnramperClient, didBecomeReadyToCheckout checkoutId: Swift.String)
|
|
106
|
+
@_Concurrency.MainActor func onramperClient(_ client: OnramperSDK.OnramperClient, didCompleteCheckout checkoutId: Swift.String)
|
|
107
|
+
@_Concurrency.MainActor func onramperClient(_ client: OnramperSDK.OnramperClient, didFailWithError error: OnramperSDK.OnramperError)
|
|
108
|
+
@_Concurrency.MainActor func onramperClient(_ client: OnramperSDK.OnramperClient, didReceiveProviderEvent event: OnramperSDK.CheckoutEvent)
|
|
109
|
+
}
|
|
110
|
+
extension OnramperSDK.OnramperDelegate {
|
|
111
|
+
@_Concurrency.MainActor public func onramperClient(_ client: OnramperSDK.OnramperClient, didChangeState state: OnramperSDK.OnramperState)
|
|
112
|
+
@_Concurrency.MainActor public func onramperClient(_ client: OnramperSDK.OnramperClient, didStartCheckout checkoutId: Swift.String)
|
|
113
|
+
@_Concurrency.MainActor public func onramperClient(_ client: OnramperSDK.OnramperClient, didRequireLogin requirements: [OnramperSDK.CheckoutRequirement])
|
|
114
|
+
@_Concurrency.MainActor public func onramperClient(_ client: OnramperSDK.OnramperClient, didBecomeReadyToCheckout checkoutId: Swift.String)
|
|
115
|
+
@_Concurrency.MainActor public func onramperClient(_ client: OnramperSDK.OnramperClient, didCompleteCheckout checkoutId: Swift.String)
|
|
116
|
+
@_Concurrency.MainActor public func onramperClient(_ client: OnramperSDK.OnramperClient, didFailWithError error: OnramperSDK.OnramperError)
|
|
117
|
+
@_Concurrency.MainActor public func onramperClient(_ client: OnramperSDK.OnramperClient, didReceiveProviderEvent event: OnramperSDK.CheckoutEvent)
|
|
118
|
+
}
|
|
119
|
+
public struct CheckoutFinalizeRequest : Swift.Codable, Swift.Sendable {
|
|
120
|
+
public let headlessCheckoutId: Swift.String
|
|
121
|
+
public let quote: OnramperSDK.QuoteResponse
|
|
122
|
+
public let onramperTransactionData: OnramperSDK.OnramperTransactionData
|
|
123
|
+
public var requirementCompletions: [OnramperSDK.RequirementCompletion]?
|
|
124
|
+
public var partnerContext: Swift.String?
|
|
125
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
126
|
+
public init(headlessCheckoutId: Swift.String, quote: OnramperSDK.QuoteResponse, onramperTransactionData: OnramperSDK.OnramperTransactionData, requirementCompletions: [OnramperSDK.RequirementCompletion]? = nil, partnerContext: Swift.String? = nil)
|
|
127
|
+
#endif
|
|
128
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
129
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
130
|
+
}
|
|
131
|
+
public enum CompletionRequirementType : Swift.String, Swift.Codable, Swift.Sendable {
|
|
132
|
+
case tos
|
|
133
|
+
case privacyPolicy
|
|
134
|
+
case userAgreement
|
|
135
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
136
|
+
public init?(rawValue: Swift.String)
|
|
137
|
+
#endif
|
|
138
|
+
public typealias RawValue = Swift.String
|
|
139
|
+
public var rawValue: Swift.String {
|
|
140
|
+
get
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
public struct RequirementCompletion : Swift.Codable, Swift.Sendable {
|
|
144
|
+
public let requirementType: OnramperSDK.CompletionRequirementType
|
|
145
|
+
public let completionData: OnramperSDK.RequirementCompletion.CompletionData
|
|
146
|
+
public init(requirementType: OnramperSDK.CompletionRequirementType, completionData: OnramperSDK.RequirementCompletion.CompletionData)
|
|
147
|
+
public enum CompletionData : Swift.Codable, Swift.Sendable {
|
|
148
|
+
case tos(OnramperSDK.ToSRequirementCompletion)
|
|
149
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
150
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
151
|
+
}
|
|
152
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
153
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
154
|
+
}
|
|
155
|
+
public struct ToSRequirementCompletion : Swift.Codable, Swift.Sendable {
|
|
156
|
+
public let agreementAcceptedAt: Swift.String
|
|
157
|
+
public init(agreementAcceptedAt: Swift.String)
|
|
158
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
159
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
160
|
+
}
|
|
161
|
+
public struct CheckoutFinalizeResponse : Swift.Codable, Swift.Sendable {
|
|
162
|
+
public let headlessCheckoutId: Swift.String
|
|
163
|
+
public let headlessCheckoutData: OnramperSDK.HeadlessCheckoutData
|
|
164
|
+
public init(headlessCheckoutId: Swift.String, headlessCheckoutData: OnramperSDK.HeadlessCheckoutData)
|
|
165
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
166
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
167
|
+
}
|
|
168
|
+
public struct HeadlessCheckoutData : Swift.Codable, Swift.Sendable {
|
|
169
|
+
public let checkoutPaymentType: OnramperSDK.CheckoutPaymentType
|
|
170
|
+
public let url: Swift.String
|
|
171
|
+
public let renderType: OnramperSDK.RenderType
|
|
172
|
+
public init(checkoutPaymentType: OnramperSDK.CheckoutPaymentType, url: Swift.String, renderType: OnramperSDK.RenderType)
|
|
173
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
174
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
175
|
+
}
|
|
176
|
+
public struct CheckoutIntentRequest : Swift.Codable, Swift.Sendable {
|
|
177
|
+
public let onramperTransactionData: OnramperSDK.OnramperTransactionData
|
|
178
|
+
public var onlyOnramps: [Swift.String]?
|
|
179
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
180
|
+
public init(onramperTransactionData: OnramperSDK.OnramperTransactionData, onlyOnramps: [Swift.String]? = nil)
|
|
181
|
+
#endif
|
|
182
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
183
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
184
|
+
}
|
|
185
|
+
public struct OnramperTransactionData : Swift.Codable, Swift.Sendable {
|
|
186
|
+
public let source: Swift.String
|
|
187
|
+
public var destination: Swift.String?
|
|
188
|
+
public let amount: Swift.Double
|
|
189
|
+
public let type: OnramperSDK.TransactionType
|
|
190
|
+
public let country: Swift.String?
|
|
191
|
+
public var subdivision: Swift.String?
|
|
192
|
+
public let paymentMethod: Swift.String
|
|
193
|
+
public let wallet: OnramperSDK.WalletInfo
|
|
194
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
195
|
+
public init(source: Swift.String, destination: Swift.String? = nil, amount: Swift.Double, type: OnramperSDK.TransactionType, country: Swift.String? = nil, subdivision: Swift.String? = nil, paymentMethod: Swift.String, wallet: OnramperSDK.WalletInfo)
|
|
196
|
+
#endif
|
|
197
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
198
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
199
|
+
}
|
|
200
|
+
public struct WalletInfo : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
201
|
+
public let network: Swift.String
|
|
202
|
+
public let address: Swift.String
|
|
203
|
+
public var memo: Swift.String?
|
|
204
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
205
|
+
public init(network: Swift.String, address: Swift.String, memo: Swift.String? = nil)
|
|
206
|
+
#endif
|
|
207
|
+
public static func == (a: OnramperSDK.WalletInfo, b: OnramperSDK.WalletInfo) -> Swift.Bool
|
|
208
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
209
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
210
|
+
}
|
|
211
|
+
public struct CheckoutIntentResponse : Swift.Codable, Swift.Sendable {
|
|
212
|
+
public let quote: OnramperSDK.QuoteResponse
|
|
213
|
+
public let headlessCheckoutId: Swift.String
|
|
214
|
+
public let checkoutRequirements: [OnramperSDK.CheckoutRequirement]
|
|
215
|
+
public init(quote: OnramperSDK.QuoteResponse, headlessCheckoutId: Swift.String, checkoutRequirements: [OnramperSDK.CheckoutRequirement])
|
|
216
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
217
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
218
|
+
}
|
|
219
|
+
public enum CheckoutRequirementType : Swift.String, Swift.Codable, Swift.Sendable {
|
|
220
|
+
case tos
|
|
221
|
+
case amountLimit
|
|
222
|
+
case userInfo
|
|
223
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
224
|
+
public init?(rawValue: Swift.String)
|
|
225
|
+
#endif
|
|
226
|
+
public typealias RawValue = Swift.String
|
|
227
|
+
public var rawValue: Swift.String {
|
|
228
|
+
get
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
public enum ToSItemType : Swift.String, Swift.Codable, Swift.Sendable {
|
|
232
|
+
case tos
|
|
233
|
+
case privacyPolicy
|
|
234
|
+
case userAgreement
|
|
235
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
236
|
+
public init?(rawValue: Swift.String)
|
|
237
|
+
#endif
|
|
238
|
+
public typealias RawValue = Swift.String
|
|
239
|
+
public var rawValue: Swift.String {
|
|
240
|
+
get
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
public struct ToSItem : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
244
|
+
public let type: OnramperSDK.ToSItemType
|
|
245
|
+
public let required: Swift.Bool
|
|
246
|
+
public let satisfied: Swift.Bool
|
|
247
|
+
public let url: Swift.String?
|
|
248
|
+
public let content: Swift.String?
|
|
249
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
250
|
+
public init(type: OnramperSDK.ToSItemType, required: Swift.Bool, satisfied: Swift.Bool, url: Swift.String? = nil, content: Swift.String? = nil)
|
|
251
|
+
#endif
|
|
252
|
+
public static func == (a: OnramperSDK.ToSItem, b: OnramperSDK.ToSItem) -> Swift.Bool
|
|
253
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
254
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
255
|
+
}
|
|
256
|
+
public struct ToSRequirement : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
257
|
+
public let providerId: Swift.String
|
|
258
|
+
public let items: [OnramperSDK.ToSItem]
|
|
259
|
+
public init(providerId: Swift.String, items: [OnramperSDK.ToSItem])
|
|
260
|
+
public var pendingItems: [OnramperSDK.ToSItem] {
|
|
261
|
+
get
|
|
262
|
+
}
|
|
263
|
+
public static func == (a: OnramperSDK.ToSRequirement, b: OnramperSDK.ToSRequirement) -> Swift.Bool
|
|
264
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
265
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
266
|
+
}
|
|
267
|
+
public struct AmountLimitRequirement : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
268
|
+
public let providerId: Swift.String
|
|
269
|
+
public let minAmountLimit: Swift.Double?
|
|
270
|
+
public let maxAmountLimit: Swift.Double?
|
|
271
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
272
|
+
public init(providerId: Swift.String, minAmountLimit: Swift.Double? = nil, maxAmountLimit: Swift.Double? = nil)
|
|
273
|
+
#endif
|
|
274
|
+
public static func == (a: OnramperSDK.AmountLimitRequirement, b: OnramperSDK.AmountLimitRequirement) -> Swift.Bool
|
|
275
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
276
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
277
|
+
}
|
|
278
|
+
public enum UserInfoFieldType : Swift.String, Swift.Codable, Swift.Sendable {
|
|
279
|
+
case firstName
|
|
280
|
+
case lastName
|
|
281
|
+
case email
|
|
282
|
+
case emailVerification
|
|
283
|
+
case phoneNumber
|
|
284
|
+
case phoneVerification
|
|
285
|
+
case ssnLastFour
|
|
286
|
+
case address
|
|
287
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
288
|
+
public init?(rawValue: Swift.String)
|
|
289
|
+
#endif
|
|
290
|
+
public typealias RawValue = Swift.String
|
|
291
|
+
public var rawValue: Swift.String {
|
|
292
|
+
get
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
public struct UserInfoField : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
296
|
+
public let type: OnramperSDK.UserInfoFieldType
|
|
297
|
+
public let required: Swift.Bool
|
|
298
|
+
public let satisfied: Swift.Bool
|
|
299
|
+
public init(type: OnramperSDK.UserInfoFieldType, required: Swift.Bool, satisfied: Swift.Bool)
|
|
300
|
+
public static func == (a: OnramperSDK.UserInfoField, b: OnramperSDK.UserInfoField) -> Swift.Bool
|
|
301
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
302
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
303
|
+
}
|
|
304
|
+
public struct UserInfoRequirement : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
305
|
+
public let providerId: Swift.String
|
|
306
|
+
public let fields: [OnramperSDK.UserInfoField]
|
|
307
|
+
public init(providerId: Swift.String, fields: [OnramperSDK.UserInfoField])
|
|
308
|
+
public var oidcRequiredFields: [Swift.String] {
|
|
309
|
+
get
|
|
310
|
+
}
|
|
311
|
+
public static func == (a: OnramperSDK.UserInfoRequirement, b: OnramperSDK.UserInfoRequirement) -> Swift.Bool
|
|
312
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
313
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
314
|
+
}
|
|
315
|
+
public enum CheckoutRequirement : Swift.Sendable, Swift.Equatable {
|
|
316
|
+
case tos(OnramperSDK.ToSRequirement)
|
|
317
|
+
case amountLimit(OnramperSDK.AmountLimitRequirement)
|
|
318
|
+
case userInfo(OnramperSDK.UserInfoRequirement)
|
|
319
|
+
public var type: OnramperSDK.CheckoutRequirementType {
|
|
320
|
+
get
|
|
321
|
+
}
|
|
322
|
+
public static func == (a: OnramperSDK.CheckoutRequirement, b: OnramperSDK.CheckoutRequirement) -> Swift.Bool
|
|
323
|
+
}
|
|
324
|
+
extension OnramperSDK.CheckoutRequirement : Swift.Codable {
|
|
325
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
326
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
327
|
+
}
|
|
328
|
+
public struct QuoteResponse : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
329
|
+
public let quoteId: Swift.String?
|
|
330
|
+
public let ramp: Swift.String?
|
|
331
|
+
public let rate: Swift.Double?
|
|
332
|
+
public let networkFee: Swift.Double?
|
|
333
|
+
public let transactionFee: Swift.Double?
|
|
334
|
+
public let payout: Swift.Double?
|
|
335
|
+
public let paymentMethod: Swift.String?
|
|
336
|
+
public let recommendations: [Swift.String]?
|
|
337
|
+
public let errors: [OnramperSDK.QuoteError]?
|
|
338
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
339
|
+
public init(quoteId: Swift.String? = nil, ramp: Swift.String? = nil, rate: Swift.Double? = nil, networkFee: Swift.Double? = nil, transactionFee: Swift.Double? = nil, payout: Swift.Double? = nil, paymentMethod: Swift.String? = nil, recommendations: [Swift.String]? = nil, errors: [OnramperSDK.QuoteError]? = nil)
|
|
340
|
+
#endif
|
|
341
|
+
public static func == (a: OnramperSDK.QuoteResponse, b: OnramperSDK.QuoteResponse) -> Swift.Bool
|
|
342
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
343
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
344
|
+
}
|
|
345
|
+
public enum TransactionType : Swift.String, Swift.Codable, Swift.Sendable {
|
|
346
|
+
case buy
|
|
347
|
+
case sell
|
|
348
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
349
|
+
public init?(rawValue: Swift.String)
|
|
350
|
+
#endif
|
|
351
|
+
public typealias RawValue = Swift.String
|
|
352
|
+
public var rawValue: Swift.String {
|
|
353
|
+
get
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
public struct QuoteError : Swift.Codable, Swift.Sendable, Swift.Equatable {
|
|
357
|
+
public let type: Swift.String?
|
|
358
|
+
public let message: Swift.String?
|
|
359
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
360
|
+
public init(type: Swift.String? = nil, message: Swift.String? = nil)
|
|
361
|
+
#endif
|
|
362
|
+
public static func == (a: OnramperSDK.QuoteError, b: OnramperSDK.QuoteError) -> Swift.Bool
|
|
363
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
364
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
365
|
+
}
|
|
366
|
+
public enum CheckoutPaymentType : Swift.String, Swift.Codable, Swift.Sendable {
|
|
367
|
+
case applePay
|
|
368
|
+
case revolutPay
|
|
369
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
370
|
+
public init?(rawValue: Swift.String)
|
|
371
|
+
#endif
|
|
372
|
+
public typealias RawValue = Swift.String
|
|
373
|
+
public var rawValue: Swift.String {
|
|
374
|
+
get
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
public enum RenderType : Swift.String, Swift.Codable, Swift.Sendable {
|
|
378
|
+
case webview
|
|
379
|
+
case deeplink
|
|
380
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
381
|
+
public init?(rawValue: Swift.String)
|
|
382
|
+
#endif
|
|
383
|
+
public typealias RawValue = Swift.String
|
|
384
|
+
public var rawValue: Swift.String {
|
|
385
|
+
get
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
@_hasMissingDesignatedInitializers @_Concurrency.MainActor final public class OnramperClient : Foundation.ObservableObject {
|
|
389
|
+
@Combine.Published @_projectedValueProperty($state) @_Concurrency.MainActor final public var state: OnramperSDK.OnramperState {
|
|
390
|
+
get
|
|
391
|
+
}
|
|
392
|
+
@_Concurrency.MainActor final public var $state: Combine.Published<OnramperSDK.OnramperState>.Publisher {
|
|
393
|
+
get
|
|
394
|
+
}
|
|
395
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
396
|
+
@Combine.Published @_projectedValueProperty($lastError) @_Concurrency.MainActor final public var lastError: OnramperSDK.OnramperError? {
|
|
397
|
+
get
|
|
398
|
+
}
|
|
399
|
+
#endif
|
|
400
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
401
|
+
@_Concurrency.MainActor final public var $lastError: Combine.Published<OnramperSDK.OnramperError?>.Publisher {
|
|
402
|
+
get
|
|
403
|
+
}
|
|
404
|
+
#endif
|
|
405
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
406
|
+
@Combine.Published @_projectedValueProperty($tosRequirements) @_Concurrency.MainActor final public var tosRequirements: [OnramperSDK.ToSRequirement]? {
|
|
407
|
+
get
|
|
408
|
+
}
|
|
409
|
+
#endif
|
|
410
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
411
|
+
@_Concurrency.MainActor final public var $tosRequirements: Combine.Published<[OnramperSDK.ToSRequirement]?>.Publisher {
|
|
412
|
+
get
|
|
413
|
+
}
|
|
414
|
+
#endif
|
|
415
|
+
@_Concurrency.MainActor final public let configuration: OnramperSDK.OnramperConfiguration
|
|
416
|
+
@_Concurrency.MainActor weak final public var delegate: (any OnramperSDK.OnramperDelegate)?
|
|
417
|
+
@_Concurrency.MainActor final public var sessionId: Swift.String? {
|
|
418
|
+
get
|
|
419
|
+
}
|
|
420
|
+
@_Concurrency.MainActor final public var events: _Concurrency.AsyncStream<OnramperSDK.CheckoutEvent> {
|
|
421
|
+
get
|
|
422
|
+
}
|
|
423
|
+
@_Concurrency.MainActor convenience public init(configuration: OnramperSDK.OnramperConfiguration)
|
|
424
|
+
@_Concurrency.MainActor final public func initialize(sessionId: Swift.String, sessionToken: Swift.String) async throws
|
|
425
|
+
@_Concurrency.MainActor final public func getCheckoutRequirements(_ request: OnramperSDK.CheckoutIntentRequest, buttonStyle: OnramperSDK.CheckoutButtonStyle = CheckoutButtonStyle()) async throws -> OnramperSDK.CheckoutRequirementsResult
|
|
426
|
+
@_Concurrency.MainActor final public func reset() async
|
|
427
|
+
@_Concurrency.MainActor final public func signOut() async
|
|
428
|
+
public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
|
|
429
|
+
@objc deinit
|
|
430
|
+
}
|
|
431
|
+
public struct SessionCredentials : Swift.Sendable {
|
|
432
|
+
public let sessionId: Swift.String
|
|
433
|
+
public let sessionToken: Swift.String
|
|
434
|
+
public init(sessionId: Swift.String, sessionToken: Swift.String)
|
|
435
|
+
}
|
|
436
|
+
public struct OnramperConfiguration : Swift.Sendable {
|
|
437
|
+
public let apiKey: Swift.String
|
|
438
|
+
public let clientId: Swift.String
|
|
439
|
+
public let environment: OnramperSDK.OnramperConfiguration.Environment
|
|
440
|
+
public let theme: OnramperSDK.OnramperConfiguration.Theme
|
|
441
|
+
public let logLevel: OnramperSDK.LogLevel
|
|
442
|
+
public let isEventLoggingEnabled: Swift.Bool
|
|
443
|
+
public let isEventConsoleLoggingEnabled: Swift.Bool
|
|
444
|
+
public let sessionExpirationHandler: @Sendable () async throws -> OnramperSDK.SessionCredentials
|
|
445
|
+
public enum Theme : Swift.Sendable {
|
|
446
|
+
case system
|
|
447
|
+
case light
|
|
448
|
+
case dark
|
|
449
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
450
|
+
public var colorScheme: SwiftUICore.ColorScheme? {
|
|
451
|
+
get
|
|
452
|
+
}
|
|
453
|
+
#endif
|
|
454
|
+
public static func == (a: OnramperSDK.OnramperConfiguration.Theme, b: OnramperSDK.OnramperConfiguration.Theme) -> Swift.Bool
|
|
455
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
456
|
+
public var hashValue: Swift.Int {
|
|
457
|
+
get
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
public enum Environment : Swift.Sendable {
|
|
461
|
+
case development
|
|
462
|
+
case production
|
|
463
|
+
public static func == (a: OnramperSDK.OnramperConfiguration.Environment, b: OnramperSDK.OnramperConfiguration.Environment) -> Swift.Bool
|
|
464
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
465
|
+
public var hashValue: Swift.Int {
|
|
466
|
+
get
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
public init(apiKey: Swift.String, clientId: Swift.String, environment: OnramperSDK.OnramperConfiguration.Environment = .production, theme: OnramperSDK.OnramperConfiguration.Theme = .system, logLevel: OnramperSDK.LogLevel = .off, isEventLoggingEnabled: Swift.Bool = false, isEventConsoleLoggingEnabled: Swift.Bool = false, sessionExpirationHandler: @escaping @Sendable () async throws -> OnramperSDK.SessionCredentials)
|
|
470
|
+
}
|
|
471
|
+
public enum OnramperState : Swift.Sendable {
|
|
472
|
+
case idle
|
|
473
|
+
case initializing
|
|
474
|
+
case ready
|
|
475
|
+
case checkoutPreparing
|
|
476
|
+
case requireLogin([OnramperSDK.CheckoutRequirement])
|
|
477
|
+
case authenticating
|
|
478
|
+
case readyToCheckout
|
|
479
|
+
case finalizing
|
|
480
|
+
case rendering(OnramperSDK.OnramperState.RenderContext)
|
|
481
|
+
case completed
|
|
482
|
+
case failed(OnramperSDK.OnramperError)
|
|
483
|
+
public struct RenderContext : Swift.Sendable {
|
|
484
|
+
public let url: Foundation.URL
|
|
485
|
+
public let renderType: OnramperSDK.RenderType
|
|
486
|
+
public let paymentType: OnramperSDK.CheckoutPaymentType
|
|
487
|
+
public init(url: Foundation.URL, renderType: OnramperSDK.RenderType, paymentType: OnramperSDK.CheckoutPaymentType)
|
|
488
|
+
}
|
|
489
|
+
public var label: Swift.String {
|
|
490
|
+
get
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
public struct CheckoutButtonStyle : Swift.Sendable {
|
|
494
|
+
public var backgroundColor: SwiftUICore.Color
|
|
495
|
+
public var foregroundColor: SwiftUICore.Color
|
|
496
|
+
public var borderRadius: CoreFoundation.CGFloat
|
|
497
|
+
public init(backgroundColor: SwiftUICore.Color = .blue, foregroundColor: SwiftUICore.Color = .white, borderRadius: CoreFoundation.CGFloat = 12)
|
|
498
|
+
}
|
|
499
|
+
public struct CheckoutRequirementsResult {
|
|
500
|
+
public let button: OnramperSDK.OnramperCheckoutButton
|
|
501
|
+
public let quote: OnramperSDK.QuoteResponse
|
|
502
|
+
public init(button: OnramperSDK.OnramperCheckoutButton, quote: OnramperSDK.QuoteResponse)
|
|
503
|
+
}
|
|
504
|
+
@_Concurrency.MainActor @preconcurrency public struct OnramperCheckoutButton : SwiftUICore.View {
|
|
505
|
+
@_Concurrency.MainActor @preconcurrency public var body: some SwiftUICore.View {
|
|
506
|
+
get
|
|
507
|
+
}
|
|
508
|
+
public typealias Body = @_opaqueReturnTypeOf("$s11OnramperSDK0A14CheckoutButtonV4bodyQrvp", 0) __
|
|
509
|
+
}
|
|
510
|
+
@_Concurrency.MainActor @preconcurrency public struct OnramperCheckoutView : SwiftUICore.View {
|
|
511
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
512
|
+
@_Concurrency.MainActor @preconcurrency public init(sdk: OnramperSDK.OnramperClient, onClose: (() -> Swift.Void)? = nil)
|
|
513
|
+
#endif
|
|
514
|
+
@_Concurrency.MainActor @preconcurrency public var body: some SwiftUICore.View {
|
|
515
|
+
get
|
|
516
|
+
}
|
|
517
|
+
public typealias Body = @_opaqueReturnTypeOf("$s11OnramperSDK0A12CheckoutViewV4bodyQrvp", 0) __
|
|
518
|
+
}
|
|
519
|
+
extension OnramperSDK.ToSItemType : Swift.Equatable {}
|
|
520
|
+
extension OnramperSDK.ToSItemType : Swift.Hashable {}
|
|
521
|
+
extension OnramperSDK.ToSItemType : Swift.RawRepresentable {}
|
|
522
|
+
extension OnramperSDK.LogLevel : Swift.Hashable {}
|
|
523
|
+
extension OnramperSDK.LogLevel : Swift.RawRepresentable {}
|
|
524
|
+
extension OnramperSDK.CompletionRequirementType : Swift.Equatable {}
|
|
525
|
+
extension OnramperSDK.CompletionRequirementType : Swift.Hashable {}
|
|
526
|
+
extension OnramperSDK.CompletionRequirementType : Swift.RawRepresentable {}
|
|
527
|
+
extension OnramperSDK.CheckoutRequirementType : Swift.Equatable {}
|
|
528
|
+
extension OnramperSDK.CheckoutRequirementType : Swift.Hashable {}
|
|
529
|
+
extension OnramperSDK.CheckoutRequirementType : Swift.RawRepresentable {}
|
|
530
|
+
extension OnramperSDK.UserInfoFieldType : Swift.Equatable {}
|
|
531
|
+
extension OnramperSDK.UserInfoFieldType : Swift.Hashable {}
|
|
532
|
+
extension OnramperSDK.UserInfoFieldType : Swift.RawRepresentable {}
|
|
533
|
+
extension OnramperSDK.TransactionType : Swift.Equatable {}
|
|
534
|
+
extension OnramperSDK.TransactionType : Swift.Hashable {}
|
|
535
|
+
extension OnramperSDK.TransactionType : Swift.RawRepresentable {}
|
|
536
|
+
extension OnramperSDK.CheckoutPaymentType : Swift.Equatable {}
|
|
537
|
+
extension OnramperSDK.CheckoutPaymentType : Swift.Hashable {}
|
|
538
|
+
extension OnramperSDK.CheckoutPaymentType : Swift.RawRepresentable {}
|
|
539
|
+
extension OnramperSDK.RenderType : Swift.Equatable {}
|
|
540
|
+
extension OnramperSDK.RenderType : Swift.Hashable {}
|
|
541
|
+
extension OnramperSDK.RenderType : Swift.RawRepresentable {}
|
|
542
|
+
extension OnramperSDK.OnramperClient : Swift.Sendable {}
|
|
543
|
+
extension OnramperSDK.OnramperConfiguration.Theme : Swift.Equatable {}
|
|
544
|
+
extension OnramperSDK.OnramperConfiguration.Theme : Swift.Hashable {}
|
|
545
|
+
extension OnramperSDK.OnramperConfiguration.Environment : Swift.Equatable {}
|
|
546
|
+
extension OnramperSDK.OnramperConfiguration.Environment : Swift.Hashable {}
|
|
547
|
+
extension OnramperSDK.OnramperCheckoutButton : Swift.Sendable {}
|
|
548
|
+
extension OnramperSDK.OnramperCheckoutView : Swift.Sendable {}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>NSPrivacyCollectedDataTypes</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
9
|
+
<string>NSPrivacyCollectedDataTypeDeviceID</string>
|
|
10
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
11
|
+
<array>
|
|
12
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
13
|
+
</array>
|
|
14
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
15
|
+
<false/>
|
|
16
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
17
|
+
<false/>
|
|
18
|
+
</dict>
|
|
19
|
+
</array>
|
|
20
|
+
<key>NSPrivacyAccessedAPITypes</key>
|
|
21
|
+
<array/>
|
|
22
|
+
<key>NSPrivacyTracking</key>
|
|
23
|
+
<false/>
|
|
24
|
+
<key>NSPrivacyTrackingDomains</key>
|
|
25
|
+
<array/>
|
|
26
|
+
</dict>
|
|
27
|
+
</plist>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>NSPrivacyCollectedDataTypes</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
9
|
+
<string>NSPrivacyCollectedDataTypeDeviceID</string>
|
|
10
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
11
|
+
<array>
|
|
12
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
13
|
+
</array>
|
|
14
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
15
|
+
<false/>
|
|
16
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
17
|
+
<false/>
|
|
18
|
+
</dict>
|
|
19
|
+
</array>
|
|
20
|
+
<key>NSPrivacyAccessedAPITypes</key>
|
|
21
|
+
<array/>
|
|
22
|
+
<key>NSPrivacyTracking</key>
|
|
23
|
+
<false/>
|
|
24
|
+
<key>NSPrivacyTrackingDomains</key>
|
|
25
|
+
<array/>
|
|
26
|
+
</dict>
|
|
27
|
+
</plist>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>English</string>
|
|
7
|
+
<key>CFBundleIdentifier</key>
|
|
8
|
+
<string>com.apple.xcode.dsym.sdk-ios.OnramperSDK</string>
|
|
9
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
10
|
+
<string>6.0</string>
|
|
11
|
+
<key>CFBundlePackageType</key>
|
|
12
|
+
<string>dSYM</string>
|
|
13
|
+
<key>CFBundleSignature</key>
|
|
14
|
+
<string>????</string>
|
|
15
|
+
<key>CFBundleShortVersionString</key>
|
|
16
|
+
<string>1.0</string>
|
|
17
|
+
<key>CFBundleVersion</key>
|
|
18
|
+
<string>1</string>
|
|
19
|
+
</dict>
|
|
20
|
+
</plist>
|