react-native-candle 0.1.33 → 0.1.35

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.
Files changed (38) hide show
  1. package/ReactNativeCandle.podspec +1 -1
  2. package/ios/Sources/RNCandle.swift +131 -60
  3. package/lib/commonjs/index.js +28 -20
  4. package/lib/commonjs/index.js.map +1 -1
  5. package/lib/module/index.js +28 -20
  6. package/lib/module/index.js.map +1 -1
  7. package/lib/typescript/commonjs/src/index.d.ts +31 -28
  8. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  9. package/lib/typescript/commonjs/src/specs/RNCandle.nitro.d.ts +20 -10
  10. package/lib/typescript/commonjs/src/specs/RNCandle.nitro.d.ts.map +1 -1
  11. package/lib/typescript/module/src/index.d.ts +31 -28
  12. package/lib/typescript/module/src/index.d.ts.map +1 -1
  13. package/lib/typescript/module/src/specs/RNCandle.nitro.d.ts +20 -10
  14. package/lib/typescript/module/src/specs/RNCandle.nitro.d.ts.map +1 -1
  15. package/nitrogen/generated/ios/ReactNativeCandle-Swift-Cxx-Bridge.hpp +34 -22
  16. package/nitrogen/generated/ios/ReactNativeCandle-Swift-Cxx-Umbrella.hpp +15 -12
  17. package/nitrogen/generated/ios/c++/HybridRNCandleSpecSwift.hpp +15 -12
  18. package/nitrogen/generated/ios/swift/AssetAccount.swift +70 -11
  19. package/nitrogen/generated/ios/swift/AssetAccountKind.swift +4 -0
  20. package/nitrogen/generated/ios/swift/{FiatAccountDetails.swift → FiatAccount.swift} +32 -8
  21. package/nitrogen/generated/ios/swift/{LegalAccountKind.swift → FiatMarketAccountKind.swift} +14 -10
  22. package/nitrogen/generated/ios/swift/{MarketAccountDetails.swift → MarketAccount.swift} +31 -7
  23. package/nitrogen/generated/ios/swift/TransportAccount.swift +93 -0
  24. package/nitrogen/generated/ios/swift/TransportAccountKind.swift +42 -0
  25. package/nitrogen/generated/ios/swift/TransportAsset.swift +18 -6
  26. package/nitrogen/generated/shared/c++/AssetAccount.hpp +23 -20
  27. package/nitrogen/generated/shared/c++/AssetAccountKind.hpp +4 -0
  28. package/nitrogen/generated/shared/c++/{FiatAccountDetails.hpp → FiatAccount.hpp} +21 -10
  29. package/nitrogen/generated/shared/c++/FiatMarketAccountKind.hpp +90 -0
  30. package/nitrogen/generated/shared/c++/{MarketAccountDetails.hpp → MarketAccount.hpp} +21 -10
  31. package/nitrogen/generated/shared/c++/TransportAccount.hpp +94 -0
  32. package/nitrogen/generated/shared/c++/{LegalAccountKind.hpp → TransportAccountKind.hpp} +17 -21
  33. package/nitrogen/generated/shared/c++/TransportAsset.hpp +5 -1
  34. package/package.json +4 -4
  35. package/src/index.ts +62 -46
  36. package/src/specs/RNCandle.nitro.ts +27 -15
  37. package/nitrogen/generated/ios/swift/AssetAccountDetails.swift +0 -83
  38. package/nitrogen/generated/shared/c++/AssetAccountDetails.hpp +0 -78
@@ -20,8 +20,6 @@ namespace margelo::nitro::rncandle { struct Address; }
20
20
  namespace NitroModules { class AnyMap; }
21
21
  // Forward declaration of `AppUser` to properly resolve imports.
22
22
  namespace margelo::nitro::rncandle { struct AppUser; }
23
- // Forward declaration of `AssetAccountDetails` to properly resolve imports.
24
- namespace margelo::nitro::rncandle { struct AssetAccountDetails; }
25
23
  // Forward declaration of `AssetAccountKind` to properly resolve imports.
26
24
  namespace margelo::nitro::rncandle { enum class AssetAccountKind; }
27
25
  // Forward declaration of `AssetAccountQuery` to properly resolve imports.
@@ -36,20 +34,20 @@ namespace margelo::nitro::rncandle { struct AssetAccountsResponse; }
36
34
  namespace margelo::nitro::rncandle { struct Coordinates; }
37
35
  // Forward declaration of `Counterparty` to properly resolve imports.
38
36
  namespace margelo::nitro::rncandle { struct Counterparty; }
39
- // Forward declaration of `FiatAccountDetails` to properly resolve imports.
40
- namespace margelo::nitro::rncandle { struct FiatAccountDetails; }
37
+ // Forward declaration of `FiatAccount` to properly resolve imports.
38
+ namespace margelo::nitro::rncandle { struct FiatAccount; }
41
39
  // Forward declaration of `FiatAssetQuoteRequest` to properly resolve imports.
42
40
  namespace margelo::nitro::rncandle { struct FiatAssetQuoteRequest; }
43
41
  // Forward declaration of `FiatAssetRef` to properly resolve imports.
44
42
  namespace margelo::nitro::rncandle { struct FiatAssetRef; }
45
43
  // Forward declaration of `FiatAsset` to properly resolve imports.
46
44
  namespace margelo::nitro::rncandle { struct FiatAsset; }
45
+ // Forward declaration of `FiatMarketAccountKind` to properly resolve imports.
46
+ namespace margelo::nitro::rncandle { enum class FiatMarketAccountKind; }
47
47
  // Forward declaration of `HybridRNCandleSpec` to properly resolve imports.
48
48
  namespace margelo::nitro::rncandle { class HybridRNCandleSpec; }
49
49
  // Forward declaration of `InactiveLinkedAccountDetails` to properly resolve imports.
50
50
  namespace margelo::nitro::rncandle { struct InactiveLinkedAccountDetails; }
51
- // Forward declaration of `LegalAccountKind` to properly resolve imports.
52
- namespace margelo::nitro::rncandle { enum class LegalAccountKind; }
53
51
  // Forward declaration of `LinkedAccountDetails` to properly resolve imports.
54
52
  namespace margelo::nitro::rncandle { struct LinkedAccountDetails; }
55
53
  // Forward declaration of `LinkedAccountRef` to properly resolve imports.
@@ -58,8 +56,8 @@ namespace margelo::nitro::rncandle { struct LinkedAccountRef; }
58
56
  namespace margelo::nitro::rncandle { struct LinkedAccountStatusRef; }
59
57
  // Forward declaration of `LinkedAccount` to properly resolve imports.
60
58
  namespace margelo::nitro::rncandle { struct LinkedAccount; }
61
- // Forward declaration of `MarketAccountDetails` to properly resolve imports.
62
- namespace margelo::nitro::rncandle { struct MarketAccountDetails; }
59
+ // Forward declaration of `MarketAccount` to properly resolve imports.
60
+ namespace margelo::nitro::rncandle { struct MarketAccount; }
63
61
  // Forward declaration of `MarketAssetQuoteRequest` to properly resolve imports.
64
62
  namespace margelo::nitro::rncandle { struct MarketAssetQuoteRequest; }
65
63
  // Forward declaration of `MarketTradeAssetRef` to properly resolve imports.
@@ -116,6 +114,10 @@ namespace margelo::nitro::rncandle { enum class TradeState; }
116
114
  namespace margelo::nitro::rncandle { struct Trade; }
117
115
  // Forward declaration of `TradesResponse` to properly resolve imports.
118
116
  namespace margelo::nitro::rncandle { struct TradesResponse; }
117
+ // Forward declaration of `TransportAccountKind` to properly resolve imports.
118
+ namespace margelo::nitro::rncandle { enum class TransportAccountKind; }
119
+ // Forward declaration of `TransportAccount` to properly resolve imports.
120
+ namespace margelo::nitro::rncandle { struct TransportAccount; }
119
121
  // Forward declaration of `TransportAssetQuoteRequest` to properly resolve imports.
120
122
  namespace margelo::nitro::rncandle { struct TransportAssetQuoteRequest; }
121
123
  // Forward declaration of `TransportAssetRef` to properly resolve imports.
@@ -136,25 +138,24 @@ namespace margelo::nitro::rncandle { struct WireDetails; }
136
138
  #include "Address.hpp"
137
139
  #include "AppUser.hpp"
138
140
  #include "AssetAccount.hpp"
139
- #include "AssetAccountDetails.hpp"
140
141
  #include "AssetAccountKind.hpp"
141
142
  #include "AssetAccountQuery.hpp"
142
143
  #include "AssetAccountRef.hpp"
143
144
  #include "AssetAccountsResponse.hpp"
144
145
  #include "Coordinates.hpp"
145
146
  #include "Counterparty.hpp"
146
- #include "FiatAccountDetails.hpp"
147
+ #include "FiatAccount.hpp"
147
148
  #include "FiatAsset.hpp"
148
149
  #include "FiatAssetQuoteRequest.hpp"
149
150
  #include "FiatAssetRef.hpp"
151
+ #include "FiatMarketAccountKind.hpp"
150
152
  #include "HybridRNCandleSpec.hpp"
151
153
  #include "InactiveLinkedAccountDetails.hpp"
152
- #include "LegalAccountKind.hpp"
153
154
  #include "LinkedAccount.hpp"
154
155
  #include "LinkedAccountDetails.hpp"
155
156
  #include "LinkedAccountRef.hpp"
156
157
  #include "LinkedAccountStatusRef.hpp"
157
- #include "MarketAccountDetails.hpp"
158
+ #include "MarketAccount.hpp"
158
159
  #include "MarketAssetQuoteRequest.hpp"
159
160
  #include "MarketTradeAsset.hpp"
160
161
  #include "MarketTradeAssetRef.hpp"
@@ -183,6 +184,8 @@ namespace margelo::nitro::rncandle { struct WireDetails; }
183
184
  #include "TradeRef.hpp"
184
185
  #include "TradeState.hpp"
185
186
  #include "TradesResponse.hpp"
187
+ #include "TransportAccount.hpp"
188
+ #include "TransportAccountKind.hpp"
186
189
  #include "TransportAsset.hpp"
187
190
  #include "TransportAssetQuoteRequest.hpp"
188
191
  #include "TransportAssetRef.hpp"
@@ -74,20 +74,22 @@ namespace margelo::nitro::rncandle { struct LinkedAccountStatusRef; }
74
74
  namespace margelo::nitro::rncandle { enum class StatePayload; }
75
75
  // Forward declaration of `AssetAccount` to properly resolve imports.
76
76
  namespace margelo::nitro::rncandle { struct AssetAccount; }
77
- // Forward declaration of `LegalAccountKind` to properly resolve imports.
78
- namespace margelo::nitro::rncandle { enum class LegalAccountKind; }
79
- // Forward declaration of `AssetAccountDetails` to properly resolve imports.
80
- namespace margelo::nitro::rncandle { struct AssetAccountDetails; }
81
- // Forward declaration of `FiatAccountDetails` to properly resolve imports.
82
- namespace margelo::nitro::rncandle { struct FiatAccountDetails; }
77
+ // Forward declaration of `FiatAccount` to properly resolve imports.
78
+ namespace margelo::nitro::rncandle { struct FiatAccount; }
79
+ // Forward declaration of `FiatMarketAccountKind` to properly resolve imports.
80
+ namespace margelo::nitro::rncandle { enum class FiatMarketAccountKind; }
83
81
  // Forward declaration of `ACHDetails` to properly resolve imports.
84
82
  namespace margelo::nitro::rncandle { struct ACHDetails; }
85
83
  // Forward declaration of `ACHAccountKind` to properly resolve imports.
86
84
  namespace margelo::nitro::rncandle { enum class ACHAccountKind; }
87
85
  // Forward declaration of `WireDetails` to properly resolve imports.
88
86
  namespace margelo::nitro::rncandle { struct WireDetails; }
89
- // Forward declaration of `MarketAccountDetails` to properly resolve imports.
90
- namespace margelo::nitro::rncandle { struct MarketAccountDetails; }
87
+ // Forward declaration of `MarketAccount` to properly resolve imports.
88
+ namespace margelo::nitro::rncandle { struct MarketAccount; }
89
+ // Forward declaration of `TransportAccount` to properly resolve imports.
90
+ namespace margelo::nitro::rncandle { struct TransportAccount; }
91
+ // Forward declaration of `TransportAccountKind` to properly resolve imports.
92
+ namespace margelo::nitro::rncandle { enum class TransportAccountKind; }
91
93
  // Forward declaration of `AssetAccountQuery` to properly resolve imports.
92
94
  namespace margelo::nitro::rncandle { struct AssetAccountQuery; }
93
95
  // Forward declaration of `AssetAccountKind` to properly resolve imports.
@@ -167,13 +169,14 @@ namespace margelo::nitro::rncandle { struct ToolCall; }
167
169
  #include "LinkedAccountStatusRef.hpp"
168
170
  #include "StatePayload.hpp"
169
171
  #include "AssetAccount.hpp"
170
- #include "LegalAccountKind.hpp"
171
- #include "AssetAccountDetails.hpp"
172
- #include "FiatAccountDetails.hpp"
172
+ #include "FiatAccount.hpp"
173
+ #include "FiatMarketAccountKind.hpp"
173
174
  #include "ACHDetails.hpp"
174
175
  #include "ACHAccountKind.hpp"
175
176
  #include "WireDetails.hpp"
176
- #include "MarketAccountDetails.hpp"
177
+ #include "MarketAccount.hpp"
178
+ #include "TransportAccount.hpp"
179
+ #include "TransportAccountKind.hpp"
177
180
  #include "AssetAccountQuery.hpp"
178
181
  #include "AssetAccountKind.hpp"
179
182
  #include "AssetAccountRef.hpp"
@@ -16,40 +16,99 @@ extension AssetAccount {
16
16
  /**
17
17
  * Create a new instance of `AssetAccount`.
18
18
  */
19
- public init(legalAccountKind: LegalAccountKind, nickname: String, details: AssetAccountDetails) {
20
- self.init(legalAccountKind, std.string(nickname), details)
19
+ public init(
20
+ fiatAccount: FiatAccount?, marketAccount: MarketAccount?, transportAccount: TransportAccount?
21
+ ) {
22
+ self.init(
23
+ { () -> bridge.std__optional_FiatAccount_ in
24
+ if let __unwrappedValue = fiatAccount {
25
+ return bridge.create_std__optional_FiatAccount_(__unwrappedValue)
26
+ } else {
27
+ return .init()
28
+ }
29
+ }(),
30
+ { () -> bridge.std__optional_MarketAccount_ in
31
+ if let __unwrappedValue = marketAccount {
32
+ return bridge.create_std__optional_MarketAccount_(__unwrappedValue)
33
+ } else {
34
+ return .init()
35
+ }
36
+ }(),
37
+ { () -> bridge.std__optional_TransportAccount_ in
38
+ if let __unwrappedValue = transportAccount {
39
+ return bridge.create_std__optional_TransportAccount_(__unwrappedValue)
40
+ } else {
41
+ return .init()
42
+ }
43
+ }())
21
44
  }
22
45
 
23
- public var legalAccountKind: LegalAccountKind {
46
+ public var fiatAccount: FiatAccount? {
24
47
  @inline(__always)
25
48
  get {
26
- return self.__legalAccountKind
49
+ return { () -> FiatAccount? in
50
+ if let __unwrapped = self.__fiatAccount.value {
51
+ return __unwrapped
52
+ } else {
53
+ return nil
54
+ }
55
+ }()
27
56
  }
28
57
  @inline(__always)
29
58
  set {
30
- self.__legalAccountKind = newValue
59
+ self.__fiatAccount = { () -> bridge.std__optional_FiatAccount_ in
60
+ if let __unwrappedValue = newValue {
61
+ return bridge.create_std__optional_FiatAccount_(__unwrappedValue)
62
+ } else {
63
+ return .init()
64
+ }
65
+ }()
31
66
  }
32
67
  }
33
68
 
34
- public var nickname: String {
69
+ public var marketAccount: MarketAccount? {
35
70
  @inline(__always)
36
71
  get {
37
- return String(self.__nickname)
72
+ return { () -> MarketAccount? in
73
+ if let __unwrapped = self.__marketAccount.value {
74
+ return __unwrapped
75
+ } else {
76
+ return nil
77
+ }
78
+ }()
38
79
  }
39
80
  @inline(__always)
40
81
  set {
41
- self.__nickname = std.string(newValue)
82
+ self.__marketAccount = { () -> bridge.std__optional_MarketAccount_ in
83
+ if let __unwrappedValue = newValue {
84
+ return bridge.create_std__optional_MarketAccount_(__unwrappedValue)
85
+ } else {
86
+ return .init()
87
+ }
88
+ }()
42
89
  }
43
90
  }
44
91
 
45
- public var details: AssetAccountDetails {
92
+ public var transportAccount: TransportAccount? {
46
93
  @inline(__always)
47
94
  get {
48
- return self.__details
95
+ return { () -> TransportAccount? in
96
+ if let __unwrapped = self.__transportAccount.value {
97
+ return __unwrapped
98
+ } else {
99
+ return nil
100
+ }
101
+ }()
49
102
  }
50
103
  @inline(__always)
51
104
  set {
52
- self.__details = newValue
105
+ self.__transportAccount = { () -> bridge.std__optional_TransportAccount_ in
106
+ if let __unwrappedValue = newValue {
107
+ return bridge.create_std__optional_TransportAccount_(__unwrappedValue)
108
+ } else {
109
+ return .init()
110
+ }
111
+ }()
53
112
  }
54
113
  }
55
114
  }
@@ -21,6 +21,8 @@ extension AssetAccountKind {
21
21
  self = .stock
22
22
  case "crypto":
23
23
  self = .crypto
24
+ case "transport":
25
+ self = .transport
24
26
  default:
25
27
  return nil
26
28
  }
@@ -37,6 +39,8 @@ extension AssetAccountKind {
37
39
  return "stock"
38
40
  case .crypto:
39
41
  return "crypto"
42
+ case .transport:
43
+ return "transport"
40
44
  }
41
45
  }
42
46
  }
@@ -1,5 +1,5 @@
1
1
  ///
2
- /// FiatAccountDetails.swift
2
+ /// FiatAccount.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
@@ -7,21 +7,23 @@
7
7
 
8
8
  import NitroModules
9
9
 
10
- /// Represents an instance of `FiatAccountDetails`, backed by a C++ struct.
11
- public typealias FiatAccountDetails = margelo.nitro.rncandle.FiatAccountDetails
10
+ /// Represents an instance of `FiatAccount`, backed by a C++ struct.
11
+ public typealias FiatAccount = margelo.nitro.rncandle.FiatAccount
12
12
 
13
- extension FiatAccountDetails {
13
+ extension FiatAccount {
14
14
  private typealias bridge = margelo.nitro.rncandle.bridge.swift
15
15
 
16
16
  /**
17
- * Create a new instance of `FiatAccountDetails`.
17
+ * Create a new instance of `FiatAccount`.
18
18
  */
19
19
  public init(
20
- assetKind: String, serviceAccountID: String, currencyCode: String, balance: Double?,
21
- ach: ACHDetails?, wire: WireDetails?, linkedAccountID: String, service: Service
20
+ assetKind: String, serviceAccountID: String, accountKind: FiatMarketAccountKind,
21
+ nickname: String, currencyCode: String, balance: Double?, ach: ACHDetails?, wire: WireDetails?,
22
+ linkedAccountID: String, service: Service
22
23
  ) {
23
24
  self.init(
24
- std.string(assetKind), std.string(serviceAccountID), std.string(currencyCode),
25
+ std.string(assetKind), std.string(serviceAccountID), accountKind, std.string(nickname),
26
+ std.string(currencyCode),
25
27
  { () -> bridge.std__optional_double_ in
26
28
  if let __unwrappedValue = balance {
27
29
  return bridge.create_std__optional_double_(__unwrappedValue)
@@ -67,6 +69,28 @@ extension FiatAccountDetails {
67
69
  }
68
70
  }
69
71
 
72
+ public var accountKind: FiatMarketAccountKind {
73
+ @inline(__always)
74
+ get {
75
+ return self.__accountKind
76
+ }
77
+ @inline(__always)
78
+ set {
79
+ self.__accountKind = newValue
80
+ }
81
+ }
82
+
83
+ public var nickname: String {
84
+ @inline(__always)
85
+ get {
86
+ return String(self.__nickname)
87
+ }
88
+ @inline(__always)
89
+ set {
90
+ self.__nickname = std.string(newValue)
91
+ }
92
+ }
93
+
70
94
  public var currencyCode: String {
71
95
  @inline(__always)
72
96
  get {
@@ -1,16 +1,16 @@
1
1
  ///
2
- /// LegalAccountKind.swift
2
+ /// FiatMarketAccountKind.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- /// Represents the JS union `LegalAccountKind`, backed by a C++ enum.
9
- public typealias LegalAccountKind = margelo.nitro.rncandle.LegalAccountKind
8
+ /// Represents the JS union `FiatMarketAccountKind`, backed by a C++ enum.
9
+ public typealias FiatMarketAccountKind = margelo.nitro.rncandle.FiatMarketAccountKind
10
10
 
11
- extension LegalAccountKind {
11
+ extension FiatMarketAccountKind {
12
12
  /**
13
- * Get a LegalAccountKind for the given String value, or
13
+ * Get a FiatMarketAccountKind for the given String value, or
14
14
  * return `nil` if the given value was invalid/unknown.
15
15
  */
16
16
  public init?(fromString string: String) {
@@ -19,17 +19,19 @@ extension LegalAccountKind {
19
19
  self = .individual
20
20
  case "joint":
21
21
  self = .joint
22
- case "traditionalIra":
22
+ case "traditionalIRA":
23
23
  self = .traditionalira
24
- case "rothIra":
24
+ case "rothIRA":
25
25
  self = .rothira
26
+ case "business":
27
+ self = .business
26
28
  default:
27
29
  return nil
28
30
  }
29
31
  }
30
32
 
31
33
  /**
32
- * Get the String value this LegalAccountKind represents.
34
+ * Get the String value this FiatMarketAccountKind represents.
33
35
  */
34
36
  public var stringValue: String {
35
37
  switch self {
@@ -38,9 +40,11 @@ extension LegalAccountKind {
38
40
  case .joint:
39
41
  return "joint"
40
42
  case .traditionalira:
41
- return "traditionalIra"
43
+ return "traditionalIRA"
42
44
  case .rothira:
43
- return "rothIra"
45
+ return "rothIRA"
46
+ case .business:
47
+ return "business"
44
48
  }
45
49
  }
46
50
  }
@@ -1,5 +1,5 @@
1
1
  ///
2
- /// MarketAccountDetails.swift
2
+ /// MarketAccount.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
@@ -7,20 +7,22 @@
7
7
 
8
8
  import NitroModules
9
9
 
10
- /// Represents an instance of `MarketAccountDetails`, backed by a C++ struct.
11
- public typealias MarketAccountDetails = margelo.nitro.rncandle.MarketAccountDetails
10
+ /// Represents an instance of `MarketAccount`, backed by a C++ struct.
11
+ public typealias MarketAccount = margelo.nitro.rncandle.MarketAccount
12
12
 
13
- extension MarketAccountDetails {
13
+ extension MarketAccount {
14
14
  private typealias bridge = margelo.nitro.rncandle.bridge.swift
15
15
 
16
16
  /**
17
- * Create a new instance of `MarketAccountDetails`.
17
+ * Create a new instance of `MarketAccount`.
18
18
  */
19
19
  public init(
20
- assetKind: String, serviceAccountID: String, linkedAccountID: String, service: Service
20
+ assetKind: String, serviceAccountID: String, accountKind: FiatMarketAccountKind,
21
+ nickname: String, linkedAccountID: String, service: Service
21
22
  ) {
22
23
  self.init(
23
- std.string(assetKind), std.string(serviceAccountID), std.string(linkedAccountID), service)
24
+ std.string(assetKind), std.string(serviceAccountID), accountKind, std.string(nickname),
25
+ std.string(linkedAccountID), service)
24
26
  }
25
27
 
26
28
  public var assetKind: String {
@@ -45,6 +47,28 @@ extension MarketAccountDetails {
45
47
  }
46
48
  }
47
49
 
50
+ public var accountKind: FiatMarketAccountKind {
51
+ @inline(__always)
52
+ get {
53
+ return self.__accountKind
54
+ }
55
+ @inline(__always)
56
+ set {
57
+ self.__accountKind = newValue
58
+ }
59
+ }
60
+
61
+ public var nickname: String {
62
+ @inline(__always)
63
+ get {
64
+ return String(self.__nickname)
65
+ }
66
+ @inline(__always)
67
+ set {
68
+ self.__nickname = std.string(newValue)
69
+ }
70
+ }
71
+
48
72
  public var linkedAccountID: String {
49
73
  @inline(__always)
50
74
  get {
@@ -0,0 +1,93 @@
1
+ ///
2
+ /// TransportAccount.swift
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ import NitroModules
9
+
10
+ /// Represents an instance of `TransportAccount`, backed by a C++ struct.
11
+ public typealias TransportAccount = margelo.nitro.rncandle.TransportAccount
12
+
13
+ extension TransportAccount {
14
+ private typealias bridge = margelo.nitro.rncandle.bridge.swift
15
+
16
+ /**
17
+ * Create a new instance of `TransportAccount`.
18
+ */
19
+ public init(
20
+ assetKind: String, serviceAccountID: String, accountKind: TransportAccountKind,
21
+ nickname: String, linkedAccountID: String, service: Service
22
+ ) {
23
+ self.init(
24
+ std.string(assetKind), std.string(serviceAccountID), accountKind, std.string(nickname),
25
+ std.string(linkedAccountID), service)
26
+ }
27
+
28
+ public var assetKind: String {
29
+ @inline(__always)
30
+ get {
31
+ return String(self.__assetKind)
32
+ }
33
+ @inline(__always)
34
+ set {
35
+ self.__assetKind = std.string(newValue)
36
+ }
37
+ }
38
+
39
+ public var serviceAccountID: String {
40
+ @inline(__always)
41
+ get {
42
+ return String(self.__serviceAccountID)
43
+ }
44
+ @inline(__always)
45
+ set {
46
+ self.__serviceAccountID = std.string(newValue)
47
+ }
48
+ }
49
+
50
+ public var accountKind: TransportAccountKind {
51
+ @inline(__always)
52
+ get {
53
+ return self.__accountKind
54
+ }
55
+ @inline(__always)
56
+ set {
57
+ self.__accountKind = newValue
58
+ }
59
+ }
60
+
61
+ public var nickname: String {
62
+ @inline(__always)
63
+ get {
64
+ return String(self.__nickname)
65
+ }
66
+ @inline(__always)
67
+ set {
68
+ self.__nickname = std.string(newValue)
69
+ }
70
+ }
71
+
72
+ public var linkedAccountID: String {
73
+ @inline(__always)
74
+ get {
75
+ return String(self.__linkedAccountID)
76
+ }
77
+ @inline(__always)
78
+ set {
79
+ self.__linkedAccountID = std.string(newValue)
80
+ }
81
+ }
82
+
83
+ public var service: Service {
84
+ @inline(__always)
85
+ get {
86
+ return self.__service
87
+ }
88
+ @inline(__always)
89
+ set {
90
+ self.__service = newValue
91
+ }
92
+ }
93
+ }
@@ -0,0 +1,42 @@
1
+ ///
2
+ /// TransportAccountKind.swift
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ /// Represents the JS union `TransportAccountKind`, backed by a C++ enum.
9
+ public typealias TransportAccountKind = margelo.nitro.rncandle.TransportAccountKind
10
+
11
+ extension TransportAccountKind {
12
+ /**
13
+ * Get a TransportAccountKind for the given String value, or
14
+ * return `nil` if the given value was invalid/unknown.
15
+ */
16
+ public init?(fromString string: String) {
17
+ switch string {
18
+ case "individual":
19
+ self = .individual
20
+ case "joint":
21
+ self = .joint
22
+ case "business":
23
+ self = .business
24
+ default:
25
+ return nil
26
+ }
27
+ }
28
+
29
+ /**
30
+ * Get the String value this TransportAccountKind represents.
31
+ */
32
+ public var stringValue: String {
33
+ switch self {
34
+ case .individual:
35
+ return "individual"
36
+ case .joint:
37
+ return "joint"
38
+ case .business:
39
+ return "business"
40
+ }
41
+ }
42
+ }
@@ -17,15 +17,16 @@ extension TransportAsset {
17
17
  * Create a new instance of `TransportAsset`.
18
18
  */
19
19
  public init(
20
- assetKind: String, serviceTradeID: String, serviceAssetID: String, name: String,
21
- description: String, imageURL: String, originCoordinates: Coordinates, originAddress: Address,
22
- destinationCoordinates: Coordinates, destinationAddress: Address, seats: Double,
23
- departureDateTime: String, arrivalDateTime: String, linkedAccountID: String, service: Service
20
+ assetKind: String, serviceTradeID: String, serviceAssetID: String, serviceAccountID: String,
21
+ name: String, description: String, imageURL: String, originCoordinates: Coordinates,
22
+ originAddress: Address, destinationCoordinates: Coordinates, destinationAddress: Address,
23
+ seats: Double, departureDateTime: String, arrivalDateTime: String, linkedAccountID: String,
24
+ service: Service
24
25
  ) {
25
26
  self.init(
26
27
  std.string(assetKind), std.string(serviceTradeID), std.string(serviceAssetID),
27
- std.string(name), std.string(description), std.string(imageURL), originCoordinates,
28
- originAddress, destinationCoordinates, destinationAddress, seats,
28
+ std.string(serviceAccountID), std.string(name), std.string(description), std.string(imageURL),
29
+ originCoordinates, originAddress, destinationCoordinates, destinationAddress, seats,
29
30
  std.string(departureDateTime), std.string(arrivalDateTime), std.string(linkedAccountID),
30
31
  service)
31
32
  }
@@ -63,6 +64,17 @@ extension TransportAsset {
63
64
  }
64
65
  }
65
66
 
67
+ public var serviceAccountID: String {
68
+ @inline(__always)
69
+ get {
70
+ return String(self.__serviceAccountID)
71
+ }
72
+ @inline(__always)
73
+ set {
74
+ self.__serviceAccountID = std.string(newValue)
75
+ }
76
+ }
77
+
66
78
  public var name: String {
67
79
  @inline(__always)
68
80
  get {