paynl-pos-sdk-react-native 0.0.16

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 (44) hide show
  1. package/PaynlSdkReactNative.podspec +44 -0
  2. package/README.md +4 -0
  3. package/android/build.gradle +115 -0
  4. package/android/generated/java/com/paynl/sdk/reactnative/NativePayNlSdkSpec.java +82 -0
  5. package/android/generated/jni/CMakeLists.txt +36 -0
  6. package/android/generated/jni/RNPaynlSdkSpec-generated.cpp +88 -0
  7. package/android/generated/jni/RNPaynlSdkSpec.h +31 -0
  8. package/android/generated/jni/react/renderer/components/RNPaynlSdkSpec/RNPaynlSdkSpecJSI-generated.cpp +92 -0
  9. package/android/generated/jni/react/renderer/components/RNPaynlSdkSpec/RNPaynlSdkSpecJSI.h +1876 -0
  10. package/android/gradle.properties +7 -0
  11. package/android/src/main/AndroidManifest.xml +3 -0
  12. package/android/src/main/java/com/paynl/sdk/reactnative/PayNlSdkPackage.kt +34 -0
  13. package/android/src/main/java/com/paynl/sdk/reactnative/PayNlUtils.kt +289 -0
  14. package/android/src/newarch/java/com/paynl/sdk/reactnative/PayNlSdkModule.kt +212 -0
  15. package/android/src/oldarch/java/com/paynl/sdk/reactnative/PayNlSdkModule.kt +233 -0
  16. package/ios/PayNlPosService.swift +203 -0
  17. package/ios/PaynlSdk.h +16 -0
  18. package/ios/PaynlSdk.mm +260 -0
  19. package/ios/generated/RNPaynlSdkSpec/RNPaynlSdkSpec-generated.mm +210 -0
  20. package/ios/generated/RNPaynlSdkSpec/RNPaynlSdkSpec.h +935 -0
  21. package/ios/generated/RNPaynlSdkSpecJSI-generated.cpp +92 -0
  22. package/ios/generated/RNPaynlSdkSpecJSI.h +1876 -0
  23. package/lib/commonjs/NativePayNlSdk.js +9 -0
  24. package/lib/commonjs/NativePayNlSdk.js.map +1 -0
  25. package/lib/commonjs/index.js +14 -0
  26. package/lib/commonjs/index.js.map +1 -0
  27. package/lib/module/NativePayNlSdk.js +5 -0
  28. package/lib/module/NativePayNlSdk.js.map +1 -0
  29. package/lib/module/index.js +5 -0
  30. package/lib/module/index.js.map +1 -0
  31. package/lib/typescript/commonjs/package.json +1 -0
  32. package/lib/typescript/commonjs/src/NativePayNlSdk.d.ts +346 -0
  33. package/lib/typescript/commonjs/src/NativePayNlSdk.d.ts.map +1 -0
  34. package/lib/typescript/commonjs/src/index.d.ts +5 -0
  35. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  36. package/lib/typescript/module/package.json +1 -0
  37. package/lib/typescript/module/src/NativePayNlSdk.d.ts +346 -0
  38. package/lib/typescript/module/src/NativePayNlSdk.d.ts.map +1 -0
  39. package/lib/typescript/module/src/index.d.ts +5 -0
  40. package/lib/typescript/module/src/index.d.ts.map +1 -0
  41. package/package.json +157 -0
  42. package/react-native.config.js +12 -0
  43. package/src/NativePayNlSdk.ts +393 -0
  44. package/src/index.ts +5 -0
@@ -0,0 +1,935 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleObjCpp
8
+ *
9
+ * We create an umbrella header (and corresponding implementation) here since
10
+ * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
+ * must have a single output. More files => more genrule()s => slower builds.
12
+ */
13
+
14
+ #ifndef __cplusplus
15
+ #error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
16
+ #endif
17
+
18
+ // Avoid multiple includes of RNPaynlSdkSpec symbols
19
+ #ifndef RNPaynlSdkSpec_H
20
+ #define RNPaynlSdkSpec_H
21
+
22
+ #import <Foundation/Foundation.h>
23
+ #import <RCTRequired/RCTRequired.h>
24
+ #import <RCTTypeSafety/RCTConvertHelpers.h>
25
+ #import <RCTTypeSafety/RCTTypedModuleConstants.h>
26
+ #import <React/RCTBridgeModule.h>
27
+ #import <React/RCTCxxConvert.h>
28
+ #import <React/RCTManagedPointer.h>
29
+ #import <ReactCommon/RCTTurboModule.h>
30
+ #import <optional>
31
+ #import <vector>
32
+
33
+
34
+ NS_ASSUME_NONNULL_BEGIN
35
+ namespace JS {
36
+ namespace NativePayNlSdk {
37
+ struct PaymentOverlayParams {
38
+ std::optional<bool> enabled() const;
39
+ std::optional<double> closeDelayInMs() const;
40
+ NSString *logoImage() const;
41
+ NSString *waitingCardAnimation() const;
42
+ NSString *buttonShape() const;
43
+ NSString *amountTextFontFamily() const;
44
+ NSString *payerMessageTextFontFamily() const;
45
+ NSString *backgroundColor() const;
46
+ NSString *amountTextColor() const;
47
+ NSString *payerMessageTextColor() const;
48
+ NSString *progressBarColor() const;
49
+ NSString *successColor() const;
50
+ NSString *errorColor() const;
51
+ NSString *buttonTextColor() const;
52
+ NSString *cancelButtonLabel() const;
53
+ NSString *closeButtonLabel() const;
54
+ NSString *ticketButtonLabel() const;
55
+ NSString *waitingCardLabel() const;
56
+ NSString *processingCardLabel() const;
57
+ NSString *ticketHeaderLabel() const;
58
+ NSString *emailHeaderLabel() const;
59
+ NSString *emailButtonLabel() const;
60
+
61
+ PaymentOverlayParams(NSDictionary *const v) : _v(v) {}
62
+ private:
63
+ NSDictionary *_v;
64
+ };
65
+ }
66
+ }
67
+
68
+ @interface RCTCxxConvert (NativePayNlSdk_PaymentOverlayParams)
69
+ + (RCTManagedPointer *)JS_NativePayNlSdk_PaymentOverlayParams:(id)json;
70
+ @end
71
+ namespace JS {
72
+ namespace NativePayNlSdk {
73
+ struct NativeInitModel {
74
+ NSString *integrationId() const;
75
+ NSString *licenseName() const;
76
+ std::optional<JS::NativePayNlSdk::PaymentOverlayParams> overlayParams() const;
77
+ std::optional<bool> enableSound() const;
78
+ std::optional<bool> useExternalDisplay() const;
79
+ std::optional<bool> enableLogging() const;
80
+
81
+ NativeInitModel(NSDictionary *const v) : _v(v) {}
82
+ private:
83
+ NSDictionary *_v;
84
+ };
85
+ }
86
+ }
87
+
88
+ @interface RCTCxxConvert (NativePayNlSdk_NativeInitModel)
89
+ + (RCTManagedPointer *)JS_NativePayNlSdk_NativeInitModel:(id)json;
90
+ @end
91
+ namespace JS {
92
+ namespace NativePayNlSdk {
93
+ struct Amount {
94
+ double value() const;
95
+ NSString *currency() const;
96
+
97
+ Amount(NSDictionary *const v) : _v(v) {}
98
+ private:
99
+ NSDictionary *_v;
100
+ };
101
+ }
102
+ }
103
+
104
+ @interface RCTCxxConvert (NativePayNlSdk_Amount)
105
+ + (RCTManagedPointer *)JS_NativePayNlSdk_Amount:(id)json;
106
+ @end
107
+ namespace JS {
108
+ namespace NativePayNlSdk {
109
+ struct PaymentMethod {
110
+ NSString *id_() const;
111
+ NSString *subId() const;
112
+
113
+ PaymentMethod(NSDictionary *const v) : _v(v) {}
114
+ private:
115
+ NSDictionary *_v;
116
+ };
117
+ }
118
+ }
119
+
120
+ @interface RCTCxxConvert (NativePayNlSdk_PaymentMethod)
121
+ + (RCTManagedPointer *)JS_NativePayNlSdk_PaymentMethod:(id)json;
122
+ @end
123
+ namespace JS {
124
+ namespace NativePayNlSdk {
125
+ struct Company {
126
+ NSString *countryCode() const;
127
+ NSString *coc() const;
128
+ NSString *vat() const;
129
+ NSString *name() const;
130
+
131
+ Company(NSDictionary *const v) : _v(v) {}
132
+ private:
133
+ NSDictionary *_v;
134
+ };
135
+ }
136
+ }
137
+
138
+ @interface RCTCxxConvert (NativePayNlSdk_Company)
139
+ + (RCTManagedPointer *)JS_NativePayNlSdk_Company:(id)json;
140
+ @end
141
+ namespace JS {
142
+ namespace NativePayNlSdk {
143
+ struct Customer {
144
+ NSString *firstName() const;
145
+ NSString *lastName() const;
146
+ NSString *phone() const;
147
+ NSString *birthDate() const;
148
+ NSString *gender() const;
149
+ NSString *email() const;
150
+ NSString *ipAddress() const;
151
+ std::optional<double> trust() const;
152
+ NSString *reference() const;
153
+ std::optional<JS::NativePayNlSdk::Company> company() const;
154
+
155
+ Customer(NSDictionary *const v) : _v(v) {}
156
+ private:
157
+ NSDictionary *_v;
158
+ };
159
+ }
160
+ }
161
+
162
+ @interface RCTCxxConvert (NativePayNlSdk_Customer)
163
+ + (RCTManagedPointer *)JS_NativePayNlSdk_Customer:(id)json;
164
+ @end
165
+ namespace JS {
166
+ namespace NativePayNlSdk {
167
+ struct DeliveryData {
168
+ NSString *firstName() const;
169
+ NSString *lastName() const;
170
+ NSString *streetName() const;
171
+ NSString *streetNumber() const;
172
+ NSString *streetNumberExtension() const;
173
+ NSString *zipCode() const;
174
+ NSString *city() const;
175
+ NSString *countryCode() const;
176
+
177
+ DeliveryData(NSDictionary *const v) : _v(v) {}
178
+ private:
179
+ NSDictionary *_v;
180
+ };
181
+ }
182
+ }
183
+
184
+ @interface RCTCxxConvert (NativePayNlSdk_DeliveryData)
185
+ + (RCTManagedPointer *)JS_NativePayNlSdk_DeliveryData:(id)json;
186
+ @end
187
+ namespace JS {
188
+ namespace NativePayNlSdk {
189
+ struct Address {
190
+ NSString *firstName() const;
191
+ NSString *lastName() const;
192
+ NSString *streetName() const;
193
+ NSString *streetNumber() const;
194
+ NSString *streetNumberExtension() const;
195
+ NSString *zipCode() const;
196
+ NSString *city() const;
197
+ NSString *countryCode() const;
198
+
199
+ Address(NSDictionary *const v) : _v(v) {}
200
+ private:
201
+ NSDictionary *_v;
202
+ };
203
+ }
204
+ }
205
+
206
+ @interface RCTCxxConvert (NativePayNlSdk_Address)
207
+ + (RCTManagedPointer *)JS_NativePayNlSdk_Address:(id)json;
208
+ @end
209
+ namespace JS {
210
+ namespace NativePayNlSdk {
211
+ struct ProductAmount {
212
+ std::optional<double> value() const;
213
+ NSString *currency() const;
214
+
215
+ ProductAmount(NSDictionary *const v) : _v(v) {}
216
+ private:
217
+ NSDictionary *_v;
218
+ };
219
+ }
220
+ }
221
+
222
+ @interface RCTCxxConvert (NativePayNlSdk_ProductAmount)
223
+ + (RCTManagedPointer *)JS_NativePayNlSdk_ProductAmount:(id)json;
224
+ @end
225
+ namespace JS {
226
+ namespace NativePayNlSdk {
227
+ struct Product {
228
+ NSString *id_() const;
229
+ NSString *description() const;
230
+ NSString *type() const;
231
+ std::optional<JS::NativePayNlSdk::ProductAmount> price() const;
232
+ std::optional<double> quantity() const;
233
+ NSString *vatCode() const;
234
+
235
+ Product(NSDictionary *const v) : _v(v) {}
236
+ private:
237
+ NSDictionary *_v;
238
+ };
239
+ }
240
+ }
241
+
242
+ @interface RCTCxxConvert (NativePayNlSdk_Product)
243
+ + (RCTManagedPointer *)JS_NativePayNlSdk_Product:(id)json;
244
+ @end
245
+ namespace JS {
246
+ namespace NativePayNlSdk {
247
+ struct Order {
248
+ NSString *countryCode() const;
249
+ NSString *deliveryDate() const;
250
+ NSString *invoiceDate() const;
251
+ std::optional<JS::NativePayNlSdk::DeliveryData> deliveryAddress() const;
252
+ std::optional<JS::NativePayNlSdk::Address> invoiceAddress() const;
253
+ std::optional<facebook::react::LazyVector<JS::NativePayNlSdk::Product>> products() const;
254
+
255
+ Order(NSDictionary *const v) : _v(v) {}
256
+ private:
257
+ NSDictionary *_v;
258
+ };
259
+ }
260
+ }
261
+
262
+ @interface RCTCxxConvert (NativePayNlSdk_Order)
263
+ + (RCTManagedPointer *)JS_NativePayNlSdk_Order:(id)json;
264
+ @end
265
+ namespace JS {
266
+ namespace NativePayNlSdk {
267
+ struct Notification {
268
+ NSString *type() const;
269
+ NSString *recipient() const;
270
+
271
+ Notification(NSDictionary *const v) : _v(v) {}
272
+ private:
273
+ NSDictionary *_v;
274
+ };
275
+ }
276
+ }
277
+
278
+ @interface RCTCxxConvert (NativePayNlSdk_Notification)
279
+ + (RCTManagedPointer *)JS_NativePayNlSdk_Notification:(id)json;
280
+ @end
281
+ namespace JS {
282
+ namespace NativePayNlSdk {
283
+ struct Stats {
284
+ NSString *info() const;
285
+ NSString *tool() const;
286
+ NSString *extra1() const;
287
+ NSString *extra2() const;
288
+ NSString *extra3() const;
289
+
290
+ Stats(NSDictionary *const v) : _v(v) {}
291
+ private:
292
+ NSDictionary *_v;
293
+ };
294
+ }
295
+ }
296
+
297
+ @interface RCTCxxConvert (NativePayNlSdk_Stats)
298
+ + (RCTManagedPointer *)JS_NativePayNlSdk_Stats:(id)json;
299
+ @end
300
+ namespace JS {
301
+ namespace NativePayNlSdk {
302
+ struct TransferData {
303
+ NSString *name() const;
304
+ NSString *value() const;
305
+
306
+ TransferData(NSDictionary *const v) : _v(v) {}
307
+ private:
308
+ NSDictionary *_v;
309
+ };
310
+ }
311
+ }
312
+
313
+ @interface RCTCxxConvert (NativePayNlSdk_TransferData)
314
+ + (RCTManagedPointer *)JS_NativePayNlSdk_TransferData:(id)json;
315
+ @end
316
+ namespace JS {
317
+ namespace NativePayNlSdk {
318
+ struct Transaction {
319
+ NSString *serviceId() const;
320
+ NSString *description() const;
321
+ NSString *reference() const;
322
+ NSString *exchangeUrl() const;
323
+ JS::NativePayNlSdk::Amount amount() const;
324
+ std::optional<JS::NativePayNlSdk::PaymentMethod> paymentMethod() const;
325
+ std::optional<JS::NativePayNlSdk::Customer> customer() const;
326
+ std::optional<JS::NativePayNlSdk::Order> order() const;
327
+ std::optional<JS::NativePayNlSdk::Notification> notification() const;
328
+ std::optional<JS::NativePayNlSdk::Stats> stats() const;
329
+ std::optional<facebook::react::LazyVector<JS::NativePayNlSdk::TransferData>> transferData() const;
330
+ NSString *tguReference() const;
331
+ std::optional<bool> ecrInitiated() const;
332
+
333
+ Transaction(NSDictionary *const v) : _v(v) {}
334
+ private:
335
+ NSDictionary *_v;
336
+ };
337
+ }
338
+ }
339
+
340
+ @interface RCTCxxConvert (NativePayNlSdk_Transaction)
341
+ + (RCTManagedPointer *)JS_NativePayNlSdk_Transaction:(id)json;
342
+ @end
343
+ namespace JS {
344
+ namespace NativePayNlSdk {
345
+ struct Service {
346
+ NSString *serviceId() const;
347
+ NSString *secret() const;
348
+
349
+ Service(NSDictionary *const v) : _v(v) {}
350
+ private:
351
+ NSDictionary *_v;
352
+ };
353
+ }
354
+ }
355
+
356
+ @interface RCTCxxConvert (NativePayNlSdk_Service)
357
+ + (RCTManagedPointer *)JS_NativePayNlSdk_Service:(id)json;
358
+ @end
359
+ namespace JS {
360
+ namespace NativePayNlSdk {
361
+ struct SpecStartTransactionParams {
362
+ JS::NativePayNlSdk::Transaction transaction() const;
363
+ std::optional<JS::NativePayNlSdk::Service> forService() const;
364
+
365
+ SpecStartTransactionParams(NSDictionary *const v) : _v(v) {}
366
+ private:
367
+ NSDictionary *_v;
368
+ };
369
+ }
370
+ }
371
+
372
+ @interface RCTCxxConvert (NativePayNlSdk_SpecStartTransactionParams)
373
+ + (RCTManagedPointer *)JS_NativePayNlSdk_SpecStartTransactionParams:(id)json;
374
+ @end
375
+ @protocol NativePayNlSdkSpec <RCTBridgeModule, RCTTurboModule>
376
+
377
+ - (void)initSdk:(JS::NativePayNlSdk::NativeInitModel &)params
378
+ resolve:(RCTPromiseResolveBlock)resolve
379
+ reject:(RCTPromiseRejectBlock)reject;
380
+ - (void)getActivationCode:(RCTPromiseResolveBlock)resolve
381
+ reject:(RCTPromiseRejectBlock)reject;
382
+ - (void)loginViaCode:(NSString *)code
383
+ resolve:(RCTPromiseResolveBlock)resolve
384
+ reject:(RCTPromiseRejectBlock)reject;
385
+ - (void)loginViaCredentials:(NSString *)aCode
386
+ serviceCode:(NSString *)serviceCode
387
+ serviceSecret:(NSString *)serviceSecret
388
+ resolve:(RCTPromiseResolveBlock)resolve
389
+ reject:(RCTPromiseRejectBlock)reject;
390
+ - (void)startTransaction:(JS::NativePayNlSdk::SpecStartTransactionParams &)params
391
+ resolve:(RCTPromiseResolveBlock)resolve
392
+ reject:(RCTPromiseRejectBlock)reject;
393
+ - (void)sendTicketViaEmail:(NSString *)email
394
+ transactionId:(NSString *)transactionId
395
+ ticket:(NSString *)ticket
396
+ resolve:(RCTPromiseResolveBlock)resolve
397
+ reject:(RCTPromiseRejectBlock)reject;
398
+ - (NSDictionary * _Nullable)getTerminalInfo;
399
+ - (NSArray<NSDictionary *> * _Nullable)getAllowedCurrencies;
400
+ - (void)logout;
401
+ - (void)sendLogs:(RCTPromiseResolveBlock)resolve
402
+ reject:(RCTPromiseRejectBlock)reject;
403
+
404
+ @end
405
+
406
+ @interface NativePayNlSdkSpecBase : NSObject {
407
+ @protected
408
+ facebook::react::EventEmitterCallback _eventEmitterCallback;
409
+ }
410
+ - (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper;
411
+
412
+ - (void)emitOnPaymentEvent:(NSDictionary *)value;
413
+ @end
414
+
415
+ namespace facebook::react {
416
+ /**
417
+ * ObjC++ class for module 'NativePayNlSdk'
418
+ */
419
+ class JSI_EXPORT NativePayNlSdkSpecJSI : public ObjCTurboModule {
420
+ public:
421
+ NativePayNlSdkSpecJSI(const ObjCTurboModule::InitParams &params);
422
+ };
423
+ } // namespace facebook::react
424
+ inline std::optional<bool> JS::NativePayNlSdk::PaymentOverlayParams::enabled() const
425
+ {
426
+ id const p = _v[@"enabled"];
427
+ return RCTBridgingToOptionalBool(p);
428
+ }
429
+ inline std::optional<double> JS::NativePayNlSdk::PaymentOverlayParams::closeDelayInMs() const
430
+ {
431
+ id const p = _v[@"closeDelayInMs"];
432
+ return RCTBridgingToOptionalDouble(p);
433
+ }
434
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::logoImage() const
435
+ {
436
+ id const p = _v[@"logoImage"];
437
+ return RCTBridgingToOptionalString(p);
438
+ }
439
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::waitingCardAnimation() const
440
+ {
441
+ id const p = _v[@"waitingCardAnimation"];
442
+ return RCTBridgingToOptionalString(p);
443
+ }
444
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::buttonShape() const
445
+ {
446
+ id const p = _v[@"buttonShape"];
447
+ return RCTBridgingToOptionalString(p);
448
+ }
449
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::amountTextFontFamily() const
450
+ {
451
+ id const p = _v[@"amountTextFontFamily"];
452
+ return RCTBridgingToOptionalString(p);
453
+ }
454
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::payerMessageTextFontFamily() const
455
+ {
456
+ id const p = _v[@"payerMessageTextFontFamily"];
457
+ return RCTBridgingToOptionalString(p);
458
+ }
459
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::backgroundColor() const
460
+ {
461
+ id const p = _v[@"backgroundColor"];
462
+ return RCTBridgingToOptionalString(p);
463
+ }
464
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::amountTextColor() const
465
+ {
466
+ id const p = _v[@"amountTextColor"];
467
+ return RCTBridgingToOptionalString(p);
468
+ }
469
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::payerMessageTextColor() const
470
+ {
471
+ id const p = _v[@"payerMessageTextColor"];
472
+ return RCTBridgingToOptionalString(p);
473
+ }
474
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::progressBarColor() const
475
+ {
476
+ id const p = _v[@"progressBarColor"];
477
+ return RCTBridgingToOptionalString(p);
478
+ }
479
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::successColor() const
480
+ {
481
+ id const p = _v[@"successColor"];
482
+ return RCTBridgingToOptionalString(p);
483
+ }
484
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::errorColor() const
485
+ {
486
+ id const p = _v[@"errorColor"];
487
+ return RCTBridgingToOptionalString(p);
488
+ }
489
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::buttonTextColor() const
490
+ {
491
+ id const p = _v[@"buttonTextColor"];
492
+ return RCTBridgingToOptionalString(p);
493
+ }
494
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::cancelButtonLabel() const
495
+ {
496
+ id const p = _v[@"cancelButtonLabel"];
497
+ return RCTBridgingToOptionalString(p);
498
+ }
499
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::closeButtonLabel() const
500
+ {
501
+ id const p = _v[@"closeButtonLabel"];
502
+ return RCTBridgingToOptionalString(p);
503
+ }
504
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::ticketButtonLabel() const
505
+ {
506
+ id const p = _v[@"ticketButtonLabel"];
507
+ return RCTBridgingToOptionalString(p);
508
+ }
509
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::waitingCardLabel() const
510
+ {
511
+ id const p = _v[@"waitingCardLabel"];
512
+ return RCTBridgingToOptionalString(p);
513
+ }
514
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::processingCardLabel() const
515
+ {
516
+ id const p = _v[@"processingCardLabel"];
517
+ return RCTBridgingToOptionalString(p);
518
+ }
519
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::ticketHeaderLabel() const
520
+ {
521
+ id const p = _v[@"ticketHeaderLabel"];
522
+ return RCTBridgingToOptionalString(p);
523
+ }
524
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::emailHeaderLabel() const
525
+ {
526
+ id const p = _v[@"emailHeaderLabel"];
527
+ return RCTBridgingToOptionalString(p);
528
+ }
529
+ inline NSString *JS::NativePayNlSdk::PaymentOverlayParams::emailButtonLabel() const
530
+ {
531
+ id const p = _v[@"emailButtonLabel"];
532
+ return RCTBridgingToOptionalString(p);
533
+ }
534
+ inline NSString *JS::NativePayNlSdk::NativeInitModel::integrationId() const
535
+ {
536
+ id const p = _v[@"integrationId"];
537
+ return RCTBridgingToString(p);
538
+ }
539
+ inline NSString *JS::NativePayNlSdk::NativeInitModel::licenseName() const
540
+ {
541
+ id const p = _v[@"licenseName"];
542
+ return RCTBridgingToOptionalString(p);
543
+ }
544
+ inline std::optional<JS::NativePayNlSdk::PaymentOverlayParams> JS::NativePayNlSdk::NativeInitModel::overlayParams() const
545
+ {
546
+ id const p = _v[@"overlayParams"];
547
+ return (p == nil ? std::nullopt : std::make_optional(JS::NativePayNlSdk::PaymentOverlayParams(p)));
548
+ }
549
+ inline std::optional<bool> JS::NativePayNlSdk::NativeInitModel::enableSound() const
550
+ {
551
+ id const p = _v[@"enableSound"];
552
+ return RCTBridgingToOptionalBool(p);
553
+ }
554
+ inline std::optional<bool> JS::NativePayNlSdk::NativeInitModel::useExternalDisplay() const
555
+ {
556
+ id const p = _v[@"useExternalDisplay"];
557
+ return RCTBridgingToOptionalBool(p);
558
+ }
559
+ inline std::optional<bool> JS::NativePayNlSdk::NativeInitModel::enableLogging() const
560
+ {
561
+ id const p = _v[@"enableLogging"];
562
+ return RCTBridgingToOptionalBool(p);
563
+ }
564
+ inline double JS::NativePayNlSdk::Amount::value() const
565
+ {
566
+ id const p = _v[@"value"];
567
+ return RCTBridgingToDouble(p);
568
+ }
569
+ inline NSString *JS::NativePayNlSdk::Amount::currency() const
570
+ {
571
+ id const p = _v[@"currency"];
572
+ return RCTBridgingToString(p);
573
+ }
574
+ inline NSString *JS::NativePayNlSdk::PaymentMethod::id_() const
575
+ {
576
+ id const p = _v[@"id"];
577
+ return RCTBridgingToOptionalString(p);
578
+ }
579
+ inline NSString *JS::NativePayNlSdk::PaymentMethod::subId() const
580
+ {
581
+ id const p = _v[@"subId"];
582
+ return RCTBridgingToOptionalString(p);
583
+ }
584
+ inline NSString *JS::NativePayNlSdk::Company::countryCode() const
585
+ {
586
+ id const p = _v[@"countryCode"];
587
+ return RCTBridgingToOptionalString(p);
588
+ }
589
+ inline NSString *JS::NativePayNlSdk::Company::coc() const
590
+ {
591
+ id const p = _v[@"coc"];
592
+ return RCTBridgingToOptionalString(p);
593
+ }
594
+ inline NSString *JS::NativePayNlSdk::Company::vat() const
595
+ {
596
+ id const p = _v[@"vat"];
597
+ return RCTBridgingToOptionalString(p);
598
+ }
599
+ inline NSString *JS::NativePayNlSdk::Company::name() const
600
+ {
601
+ id const p = _v[@"name"];
602
+ return RCTBridgingToOptionalString(p);
603
+ }
604
+ inline NSString *JS::NativePayNlSdk::Customer::firstName() const
605
+ {
606
+ id const p = _v[@"firstName"];
607
+ return RCTBridgingToOptionalString(p);
608
+ }
609
+ inline NSString *JS::NativePayNlSdk::Customer::lastName() const
610
+ {
611
+ id const p = _v[@"lastName"];
612
+ return RCTBridgingToOptionalString(p);
613
+ }
614
+ inline NSString *JS::NativePayNlSdk::Customer::phone() const
615
+ {
616
+ id const p = _v[@"phone"];
617
+ return RCTBridgingToOptionalString(p);
618
+ }
619
+ inline NSString *JS::NativePayNlSdk::Customer::birthDate() const
620
+ {
621
+ id const p = _v[@"birthDate"];
622
+ return RCTBridgingToOptionalString(p);
623
+ }
624
+ inline NSString *JS::NativePayNlSdk::Customer::gender() const
625
+ {
626
+ id const p = _v[@"gender"];
627
+ return RCTBridgingToOptionalString(p);
628
+ }
629
+ inline NSString *JS::NativePayNlSdk::Customer::email() const
630
+ {
631
+ id const p = _v[@"email"];
632
+ return RCTBridgingToOptionalString(p);
633
+ }
634
+ inline NSString *JS::NativePayNlSdk::Customer::ipAddress() const
635
+ {
636
+ id const p = _v[@"ipAddress"];
637
+ return RCTBridgingToOptionalString(p);
638
+ }
639
+ inline std::optional<double> JS::NativePayNlSdk::Customer::trust() const
640
+ {
641
+ id const p = _v[@"trust"];
642
+ return RCTBridgingToOptionalDouble(p);
643
+ }
644
+ inline NSString *JS::NativePayNlSdk::Customer::reference() const
645
+ {
646
+ id const p = _v[@"reference"];
647
+ return RCTBridgingToOptionalString(p);
648
+ }
649
+ inline std::optional<JS::NativePayNlSdk::Company> JS::NativePayNlSdk::Customer::company() const
650
+ {
651
+ id const p = _v[@"company"];
652
+ return (p == nil ? std::nullopt : std::make_optional(JS::NativePayNlSdk::Company(p)));
653
+ }
654
+ inline NSString *JS::NativePayNlSdk::DeliveryData::firstName() const
655
+ {
656
+ id const p = _v[@"firstName"];
657
+ return RCTBridgingToOptionalString(p);
658
+ }
659
+ inline NSString *JS::NativePayNlSdk::DeliveryData::lastName() const
660
+ {
661
+ id const p = _v[@"lastName"];
662
+ return RCTBridgingToOptionalString(p);
663
+ }
664
+ inline NSString *JS::NativePayNlSdk::DeliveryData::streetName() const
665
+ {
666
+ id const p = _v[@"streetName"];
667
+ return RCTBridgingToOptionalString(p);
668
+ }
669
+ inline NSString *JS::NativePayNlSdk::DeliveryData::streetNumber() const
670
+ {
671
+ id const p = _v[@"streetNumber"];
672
+ return RCTBridgingToOptionalString(p);
673
+ }
674
+ inline NSString *JS::NativePayNlSdk::DeliveryData::streetNumberExtension() const
675
+ {
676
+ id const p = _v[@"streetNumberExtension"];
677
+ return RCTBridgingToOptionalString(p);
678
+ }
679
+ inline NSString *JS::NativePayNlSdk::DeliveryData::zipCode() const
680
+ {
681
+ id const p = _v[@"zipCode"];
682
+ return RCTBridgingToOptionalString(p);
683
+ }
684
+ inline NSString *JS::NativePayNlSdk::DeliveryData::city() const
685
+ {
686
+ id const p = _v[@"city"];
687
+ return RCTBridgingToOptionalString(p);
688
+ }
689
+ inline NSString *JS::NativePayNlSdk::DeliveryData::countryCode() const
690
+ {
691
+ id const p = _v[@"countryCode"];
692
+ return RCTBridgingToOptionalString(p);
693
+ }
694
+ inline NSString *JS::NativePayNlSdk::Address::firstName() const
695
+ {
696
+ id const p = _v[@"firstName"];
697
+ return RCTBridgingToOptionalString(p);
698
+ }
699
+ inline NSString *JS::NativePayNlSdk::Address::lastName() const
700
+ {
701
+ id const p = _v[@"lastName"];
702
+ return RCTBridgingToOptionalString(p);
703
+ }
704
+ inline NSString *JS::NativePayNlSdk::Address::streetName() const
705
+ {
706
+ id const p = _v[@"streetName"];
707
+ return RCTBridgingToOptionalString(p);
708
+ }
709
+ inline NSString *JS::NativePayNlSdk::Address::streetNumber() const
710
+ {
711
+ id const p = _v[@"streetNumber"];
712
+ return RCTBridgingToOptionalString(p);
713
+ }
714
+ inline NSString *JS::NativePayNlSdk::Address::streetNumberExtension() const
715
+ {
716
+ id const p = _v[@"streetNumberExtension"];
717
+ return RCTBridgingToOptionalString(p);
718
+ }
719
+ inline NSString *JS::NativePayNlSdk::Address::zipCode() const
720
+ {
721
+ id const p = _v[@"zipCode"];
722
+ return RCTBridgingToOptionalString(p);
723
+ }
724
+ inline NSString *JS::NativePayNlSdk::Address::city() const
725
+ {
726
+ id const p = _v[@"city"];
727
+ return RCTBridgingToOptionalString(p);
728
+ }
729
+ inline NSString *JS::NativePayNlSdk::Address::countryCode() const
730
+ {
731
+ id const p = _v[@"countryCode"];
732
+ return RCTBridgingToOptionalString(p);
733
+ }
734
+ inline std::optional<double> JS::NativePayNlSdk::ProductAmount::value() const
735
+ {
736
+ id const p = _v[@"value"];
737
+ return RCTBridgingToOptionalDouble(p);
738
+ }
739
+ inline NSString *JS::NativePayNlSdk::ProductAmount::currency() const
740
+ {
741
+ id const p = _v[@"currency"];
742
+ return RCTBridgingToOptionalString(p);
743
+ }
744
+ inline NSString *JS::NativePayNlSdk::Product::id_() const
745
+ {
746
+ id const p = _v[@"id"];
747
+ return RCTBridgingToOptionalString(p);
748
+ }
749
+ inline NSString *JS::NativePayNlSdk::Product::description() const
750
+ {
751
+ id const p = _v[@"description"];
752
+ return RCTBridgingToOptionalString(p);
753
+ }
754
+ inline NSString *JS::NativePayNlSdk::Product::type() const
755
+ {
756
+ id const p = _v[@"type"];
757
+ return RCTBridgingToOptionalString(p);
758
+ }
759
+ inline std::optional<JS::NativePayNlSdk::ProductAmount> JS::NativePayNlSdk::Product::price() const
760
+ {
761
+ id const p = _v[@"price"];
762
+ return (p == nil ? std::nullopt : std::make_optional(JS::NativePayNlSdk::ProductAmount(p)));
763
+ }
764
+ inline std::optional<double> JS::NativePayNlSdk::Product::quantity() const
765
+ {
766
+ id const p = _v[@"quantity"];
767
+ return RCTBridgingToOptionalDouble(p);
768
+ }
769
+ inline NSString *JS::NativePayNlSdk::Product::vatCode() const
770
+ {
771
+ id const p = _v[@"vatCode"];
772
+ return RCTBridgingToOptionalString(p);
773
+ }
774
+ inline NSString *JS::NativePayNlSdk::Order::countryCode() const
775
+ {
776
+ id const p = _v[@"countryCode"];
777
+ return RCTBridgingToOptionalString(p);
778
+ }
779
+ inline NSString *JS::NativePayNlSdk::Order::deliveryDate() const
780
+ {
781
+ id const p = _v[@"deliveryDate"];
782
+ return RCTBridgingToOptionalString(p);
783
+ }
784
+ inline NSString *JS::NativePayNlSdk::Order::invoiceDate() const
785
+ {
786
+ id const p = _v[@"invoiceDate"];
787
+ return RCTBridgingToOptionalString(p);
788
+ }
789
+ inline std::optional<JS::NativePayNlSdk::DeliveryData> JS::NativePayNlSdk::Order::deliveryAddress() const
790
+ {
791
+ id const p = _v[@"deliveryAddress"];
792
+ return (p == nil ? std::nullopt : std::make_optional(JS::NativePayNlSdk::DeliveryData(p)));
793
+ }
794
+ inline std::optional<JS::NativePayNlSdk::Address> JS::NativePayNlSdk::Order::invoiceAddress() const
795
+ {
796
+ id const p = _v[@"invoiceAddress"];
797
+ return (p == nil ? std::nullopt : std::make_optional(JS::NativePayNlSdk::Address(p)));
798
+ }
799
+ inline std::optional<facebook::react::LazyVector<JS::NativePayNlSdk::Product>> JS::NativePayNlSdk::Order::products() const
800
+ {
801
+ id const p = _v[@"products"];
802
+ return RCTBridgingToOptionalVec(p, ^JS::NativePayNlSdk::Product(id itemValue_0) { return JS::NativePayNlSdk::Product(itemValue_0); });
803
+ }
804
+ inline NSString *JS::NativePayNlSdk::Notification::type() const
805
+ {
806
+ id const p = _v[@"type"];
807
+ return RCTBridgingToOptionalString(p);
808
+ }
809
+ inline NSString *JS::NativePayNlSdk::Notification::recipient() const
810
+ {
811
+ id const p = _v[@"recipient"];
812
+ return RCTBridgingToOptionalString(p);
813
+ }
814
+ inline NSString *JS::NativePayNlSdk::Stats::info() const
815
+ {
816
+ id const p = _v[@"info"];
817
+ return RCTBridgingToOptionalString(p);
818
+ }
819
+ inline NSString *JS::NativePayNlSdk::Stats::tool() const
820
+ {
821
+ id const p = _v[@"tool"];
822
+ return RCTBridgingToOptionalString(p);
823
+ }
824
+ inline NSString *JS::NativePayNlSdk::Stats::extra1() const
825
+ {
826
+ id const p = _v[@"extra1"];
827
+ return RCTBridgingToOptionalString(p);
828
+ }
829
+ inline NSString *JS::NativePayNlSdk::Stats::extra2() const
830
+ {
831
+ id const p = _v[@"extra2"];
832
+ return RCTBridgingToOptionalString(p);
833
+ }
834
+ inline NSString *JS::NativePayNlSdk::Stats::extra3() const
835
+ {
836
+ id const p = _v[@"extra3"];
837
+ return RCTBridgingToOptionalString(p);
838
+ }
839
+ inline NSString *JS::NativePayNlSdk::TransferData::name() const
840
+ {
841
+ id const p = _v[@"name"];
842
+ return RCTBridgingToString(p);
843
+ }
844
+ inline NSString *JS::NativePayNlSdk::TransferData::value() const
845
+ {
846
+ id const p = _v[@"value"];
847
+ return RCTBridgingToString(p);
848
+ }
849
+ inline NSString *JS::NativePayNlSdk::Transaction::serviceId() const
850
+ {
851
+ id const p = _v[@"serviceId"];
852
+ return RCTBridgingToOptionalString(p);
853
+ }
854
+ inline NSString *JS::NativePayNlSdk::Transaction::description() const
855
+ {
856
+ id const p = _v[@"description"];
857
+ return RCTBridgingToOptionalString(p);
858
+ }
859
+ inline NSString *JS::NativePayNlSdk::Transaction::reference() const
860
+ {
861
+ id const p = _v[@"reference"];
862
+ return RCTBridgingToOptionalString(p);
863
+ }
864
+ inline NSString *JS::NativePayNlSdk::Transaction::exchangeUrl() const
865
+ {
866
+ id const p = _v[@"exchangeUrl"];
867
+ return RCTBridgingToOptionalString(p);
868
+ }
869
+ inline JS::NativePayNlSdk::Amount JS::NativePayNlSdk::Transaction::amount() const
870
+ {
871
+ id const p = _v[@"amount"];
872
+ return JS::NativePayNlSdk::Amount(p);
873
+ }
874
+ inline std::optional<JS::NativePayNlSdk::PaymentMethod> JS::NativePayNlSdk::Transaction::paymentMethod() const
875
+ {
876
+ id const p = _v[@"paymentMethod"];
877
+ return (p == nil ? std::nullopt : std::make_optional(JS::NativePayNlSdk::PaymentMethod(p)));
878
+ }
879
+ inline std::optional<JS::NativePayNlSdk::Customer> JS::NativePayNlSdk::Transaction::customer() const
880
+ {
881
+ id const p = _v[@"customer"];
882
+ return (p == nil ? std::nullopt : std::make_optional(JS::NativePayNlSdk::Customer(p)));
883
+ }
884
+ inline std::optional<JS::NativePayNlSdk::Order> JS::NativePayNlSdk::Transaction::order() const
885
+ {
886
+ id const p = _v[@"order"];
887
+ return (p == nil ? std::nullopt : std::make_optional(JS::NativePayNlSdk::Order(p)));
888
+ }
889
+ inline std::optional<JS::NativePayNlSdk::Notification> JS::NativePayNlSdk::Transaction::notification() const
890
+ {
891
+ id const p = _v[@"notification"];
892
+ return (p == nil ? std::nullopt : std::make_optional(JS::NativePayNlSdk::Notification(p)));
893
+ }
894
+ inline std::optional<JS::NativePayNlSdk::Stats> JS::NativePayNlSdk::Transaction::stats() const
895
+ {
896
+ id const p = _v[@"stats"];
897
+ return (p == nil ? std::nullopt : std::make_optional(JS::NativePayNlSdk::Stats(p)));
898
+ }
899
+ inline std::optional<facebook::react::LazyVector<JS::NativePayNlSdk::TransferData>> JS::NativePayNlSdk::Transaction::transferData() const
900
+ {
901
+ id const p = _v[@"transferData"];
902
+ return RCTBridgingToOptionalVec(p, ^JS::NativePayNlSdk::TransferData(id itemValue_0) { return JS::NativePayNlSdk::TransferData(itemValue_0); });
903
+ }
904
+ inline NSString *JS::NativePayNlSdk::Transaction::tguReference() const
905
+ {
906
+ id const p = _v[@"tguReference"];
907
+ return RCTBridgingToOptionalString(p);
908
+ }
909
+ inline std::optional<bool> JS::NativePayNlSdk::Transaction::ecrInitiated() const
910
+ {
911
+ id const p = _v[@"ecrInitiated"];
912
+ return RCTBridgingToOptionalBool(p);
913
+ }
914
+ inline NSString *JS::NativePayNlSdk::Service::serviceId() const
915
+ {
916
+ id const p = _v[@"serviceId"];
917
+ return RCTBridgingToString(p);
918
+ }
919
+ inline NSString *JS::NativePayNlSdk::Service::secret() const
920
+ {
921
+ id const p = _v[@"secret"];
922
+ return RCTBridgingToString(p);
923
+ }
924
+ inline JS::NativePayNlSdk::Transaction JS::NativePayNlSdk::SpecStartTransactionParams::transaction() const
925
+ {
926
+ id const p = _v[@"transaction"];
927
+ return JS::NativePayNlSdk::Transaction(p);
928
+ }
929
+ inline std::optional<JS::NativePayNlSdk::Service> JS::NativePayNlSdk::SpecStartTransactionParams::forService() const
930
+ {
931
+ id const p = _v[@"forService"];
932
+ return (p == nil ? std::nullopt : std::make_optional(JS::NativePayNlSdk::Service(p)));
933
+ }
934
+ NS_ASSUME_NONNULL_END
935
+ #endif // RNPaynlSdkSpec_H