-
Notifications
You must be signed in to change notification settings - Fork 0
/
ApiDefinition.cs
1424 lines (1127 loc) · 54.8 KB
/
ApiDefinition.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#define STARTUP_CRASH_BRAINTREE_APPLE_PAY
#define STARTUP_CRASH_BRAINTREE_CARD
#define STARTUP_CRASH_BRAINTREE_PAYPAL
#define STARTUP_CRASH_BRAINTREE_VENMO
using System;
using System.Security.Cryptography;
using Foundation;
using ObjCRuntime;
using PassKit;
using AuthenticationServices;
using UIKit;
using WebKit;
namespace Braintree
{
#region ADDITIONS
//========================================================================
//
// ADDITIONS
//
//========================================================================
partial interface IBTAppSwitchHandler { };
partial interface IBTAppSwitchDelegate { };
partial interface IBTAppSwitchDelegate { };
partial interface IBTViewControllerPresentingDelegate { };
partial interface IBTPayPalApprovalDelegate { };
partial interface IBTAppContextSwitchClient { };
delegate void GetTokenizationCompletionblock(BTPaymentMethodNonce nonce, NSError error);
delegate void RegisterTokenizationCompleteBlock(BTAPIClient client, NSDictionary data, [BlockCallback] GetTokenizationCompletionblock subblock);
delegate void FetchOrReturnRemoteConfigurationCompletionBlock(BTConfiguration configuration, NSError error);
//delegate void FetchPaymentMethodNoncesCompletionBlock(NSArray<BTPaymentMethodNonce> items, NSError error);
delegate void BTJsonCompletionBlock(BTJSON json, NSHttpUrlResponse response, NSError error);
#endregion
#region BRAINTREE CORE
//========================================================================
//
// BRAINTREE CORE
//
//========================================================================
// @interface BTAPIClient : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCore11BTAPIClient")]
[DisableDefaultCtor]
interface BTAPIClient
{
// -(instancetype _Nullable)initWithAuthorization:(NSString * _Nonnull)authorization __attribute__((objc_designated_initializer));
[Export ("initWithAuthorization:")]
[DesignatedInitializer]
NativeHandle Constructor (string authorization);
// -(void)fetchOrReturnRemoteConfiguration:(void (^ _Nonnull)(BTConfiguration * _Nullable, NSError * _Nullable))completion;
[Export ("fetchOrReturnRemoteConfiguration:")]
void FetchOrReturnRemoteConfiguration (Action<BTConfiguration, NSError> completion);
// -(void)fetchPaymentMethodNonces:(void (^ _Nonnull)(NSArray<BTPaymentMethodNonce *> * _Nullable, NSError * _Nullable))completion;
[Export ("fetchPaymentMethodNonces:")]
void FetchPaymentMethodNonces (Action<NSArray<BTPaymentMethodNonce>, NSError> completion);
// -(void)fetchPaymentMethodNonces:(BOOL)defaultFirst completion:(void (^ _Nonnull)(NSArray<BTPaymentMethodNonce *> * _Nullable, NSError * _Nullable))completion;
[Export ("fetchPaymentMethodNonces:completion:")]
void FetchPaymentMethodNonces (bool defaultFirst, Action<NSArray<BTPaymentMethodNonce>, NSError> completion);
// -(void)POST:(NSString * _Nonnull)path parameters:(NSDictionary<NSString *,id> * _Nullable)parameters httpType:(enum BTAPIClientHTTPService)httpType completion:(void (^ _Nonnull)(BTJSON * _Nullable, NSHTTPURLResponse * _Nullable, NSError * _Nullable))completion;
[Export ("POST:parameters:httpType:completion:")]
void POST (string path, [NullAllowed] NSDictionary<NSString, NSObject> parameters, BTAPIClientHTTPService httpType, [NullAllowed][BlockCallback] BTJsonCompletionBlock completionBlock);
}
// @protocol BTAppContextSwitchClient
/*
Check whether adding [Model] to this declaration is appropriate.
[Model] is used to generate a C# class that implements this protocol,
and might be useful for protocols that consumers are supposed to implement,
since consumers can subclass the generated class instead of implementing
the generated interface. If consumers are not supposed to implement this
protocol, then [Model] is redundant and will generate code that will never
be used.
*/
[BaseType (typeof(NSObject))]
[Protocol (Name = "_TtP13BraintreeCore24BTAppContextSwitchClient_")]
interface BTAppContextSwitchClient
{
// @required +(BOOL)canHandleReturnURL:(NSURL * _Nonnull)url __attribute__((warn_unused_result("")));
[Static, Abstract]
[Export ("canHandleReturnURL:")]
bool CanHandleReturnURL (NSUrl url);
// @required +(void)handleReturnURL:(NSURL * _Nonnull)url;
[Static, Abstract]
[Export ("handleReturnURL:")]
void HandleReturnURL (NSUrl url);
}
// @interface BTAppContextSwitcher : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCore20BTAppContextSwitcher")]
interface BTAppContextSwitcher
{
// @property (readonly, nonatomic, strong, class) BTAppContextSwitcher * _Nonnull sharedInstance;
[Static]
[Export ("sharedInstance", ArgumentSemantic.Strong)]
BTAppContextSwitcher SharedInstance { get; }
// @property (copy, nonatomic) NSString * _Nonnull returnURLScheme;
[Export ("returnURLScheme")]
string ReturnURLScheme { get; set; }
// -(BOOL)handleOpenURLContext:(UIOpenURLContext * _Nonnull)context;
[Export ("handleOpenURLContext:")]
bool HandleOpenURLContext (UIOpenUrlContext context);
// -(BOOL)handleOpenURL:(NSURL * _Nonnull)url;
[Export ("handleOpenURL:")]
bool HandleOpenURL (NSUrl url);
// -(void)registerAppContextSwitchClient:(Class<BTAppContextSwitchClient> _Nonnull)client;
[Export ("registerAppContextSwitchClient:")]
void RegisterAppContextSwitchClient (BTAppContextSwitchClient client);
}
// @interface BTBinData : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCore9BTBinData")]
[DisableDefaultCtor]
interface BTBinData
{
// @property (readonly, copy, nonatomic) NSString * _Nonnull prepaid;
[Export ("prepaid")]
string Prepaid { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull healthcare;
[Export ("healthcare")]
string Healthcare { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull debit;
[Export ("debit")]
string Debit { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull durbinRegulated;
[Export ("durbinRegulated")]
string DurbinRegulated { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull commercial;
[Export ("commercial")]
string Commercial { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull payroll;
[Export ("payroll")]
string Payroll { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull issuingBank;
[Export ("issuingBank")]
string IssuingBank { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull countryOfIssuance;
[Export ("countryOfIssuance")]
string CountryOfIssuance { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull productID;
[Export ("productID")]
string ProductID { get; }
// -(instancetype _Nonnull)initWithJSON:(BTJSON * _Nullable)json __attribute__((objc_designated_initializer));
[Export ("initWithJSON:")]
[DesignatedInitializer]
NativeHandle Constructor ([NullAllowed] BTJSON json);
}
// @interface BTClientToken : NSObject <NSCoding, NSCopying>
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCore13BTClientToken")]
[DisableDefaultCtor]
interface BTClientToken : INSCoding, INSCopying
{
// @property (readonly, nonatomic, strong) BTJSON * _Nonnull json;
[Export ("json", ArgumentSemantic.Strong)]
BTJSON Json { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull bearer;
[Export ("bearer")]
string Bearer { get; }
// @property (readonly, copy, nonatomic) NSURL * _Nonnull configURL;
[Export ("configURL", ArgumentSemantic.Copy)]
NSUrl ConfigURL { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull originalValue;
[Export ("originalValue")]
string OriginalValue { get; }
// -(instancetype _Nullable)initWithClientToken:(NSString * _Nonnull)clientToken error:(NSError * _Nullable * _Nullable)error __attribute__((objc_designated_initializer));
[Export ("initWithClientToken:error:")]
[DesignatedInitializer]
NativeHandle Constructor (string clientToken, [NullAllowed] out NSError error);
// // -(void)encodeWithCoder:(NSCoder * _Nonnull)coder;
// [Export ("encodeWithCoder:")]
// void EncodeWithCoder (NSCoder coder);
// -(instancetype _Nullable)initWithCoder:(NSCoder * _Nonnull)coder;
// [Export ("initWithCoder:")]
// NativeHandle Constructor (NSCoder coder);
// -(id _Nonnull)copyWithZone:(struct _NSZone * _Nullable)zone __attribute__((warn_unused_result("")));
// [Export ("copyWithZone:")]
// unsafe NSObject CopyWithZone ([NullAllowed] NSZone zone);
// -(BOOL)isEqual:(id _Nullable)object __attribute__((warn_unused_result("")));
[Export ("isEqual:")]
bool IsEqual ([NullAllowed] NSObject @object);
}
// @interface BTConfiguration : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCore15BTConfiguration")]
[DisableDefaultCtor]
interface BTConfiguration
{
// @property (readonly, nonatomic, strong) BTJSON * _Nullable json;
[NullAllowed, Export ("json", ArgumentSemantic.Strong)]
BTJSON Json { get; }
// @property (readonly, copy, nonatomic) NSString * _Nullable environment;
[NullAllowed, Export ("environment")]
string Environment { get; }
// @property (nonatomic) BOOL isFromCache;
[Export ("isFromCache")]
bool IsFromCache { get; set; }
// -(instancetype _Nonnull)initWithJSON:(BTJSON * _Nullable)json __attribute__((objc_designated_initializer));
[Export ("initWithJSON:")]
[DesignatedInitializer]
NativeHandle Constructor ([NullAllowed] BTJSON json);
}
// @interface BTCoreConstants : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCore15BTCoreConstants")]
interface BTCoreConstants
{
// @property (copy, nonatomic, class) NSString * _Nonnull braintreeSDKVersion;
[Static]
[Export ("braintreeSDKVersion")]
string BraintreeSDKVersion { get; set; }
// @property (readonly, copy, nonatomic, class) NSString * _Nonnull callbackURLScheme;
[Static]
[Export ("callbackURLScheme")]
string CallbackURLScheme { get; }
// @property (readonly, copy, nonatomic, class) NSString * _Nonnull venmoURLScheme;
[Static]
[Export ("venmoURLScheme")]
string VenmoURLScheme { get; }
// @property (readonly, copy, nonatomic, class) NSString * _Nonnull payPalURLScheme;
[Static]
[Export ("payPalURLScheme")]
string PayPalURLScheme { get; }
// @property (readonly, copy, nonatomic, class) NSString * _Nonnull httpErrorDomain;
[Static]
[Export ("httpErrorDomain")]
string HttpErrorDomain { get; }
// @property (readonly, copy, nonatomic, class) NSString * _Nonnull urlResponseKey;
[Static]
[Export ("urlResponseKey")]
string UrlResponseKey { get; }
// @property (readonly, copy, nonatomic, class) NSString * _Nonnull jsonResponseBodyKey;
[Static]
[Export ("jsonResponseBodyKey")]
string JsonResponseBodyKey { get; }
}
// @interface BTJSON : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCore6BTJSON")]
interface BTJSON
{
// -(instancetype _Nonnull)initWithValue:(id _Nullable)value;
[Export ("initWithValue:")]
NativeHandle Constructor ([NullAllowed] NSObject value);
// -(instancetype _Nonnull)initWithData:(NSData * _Nonnull)data;
[Export ("initWithData:")]
NativeHandle Constructor (NSData data);
// @property (readonly, nonatomic) BOOL isString;
[Export ("isString")]
bool IsString { get; }
// @property (readonly, nonatomic) BOOL isBool;
[Export ("isBool")]
bool IsBool { get; }
// @property (readonly, nonatomic) BOOL isNumber;
[Export ("isNumber")]
bool IsNumber { get; }
// @property (readonly, nonatomic) BOOL isArray;
[Export ("isArray")]
bool IsArray { get; }
// @property (readonly, nonatomic) BOOL isObject;
[Export ("isObject")]
bool IsObject { get; }
// @property (readonly, nonatomic) BOOL isError;
[Export ("isError")]
bool IsError { get; }
// @property (readonly, nonatomic) BOOL isTrue;
[Export ("isTrue")]
bool IsTrue { get; }
// @property (readonly, nonatomic) BOOL isFalse;
[Export ("isFalse")]
bool IsFalse { get; }
// @property (readonly, nonatomic) BOOL isNull;
[Export ("isNull")]
bool IsNull { get; }
// -(BTJSON * _Nonnull)objectAtIndexedSubscript:(NSInteger)index __attribute__((warn_unused_result("")));
[Export ("objectAtIndexedSubscript:")]
BTJSON ObjectAtIndexedSubscript (nint index);
// -(BTJSON * _Nonnull)objectForKeyedSubscript:(NSString * _Nonnull)key __attribute__((warn_unused_result("")));
[Export ("objectForKeyedSubscript:")]
BTJSON ObjectForKeyedSubscript (string key);
// -(NSError * _Nullable)asError __attribute__((warn_unused_result("")));
[NullAllowed, Export ("asError")]
//[Verify (MethodToProperty)]
NSError AsError { get; }
// -(NSString * _Nullable)asString __attribute__((warn_unused_result("")));
[NullAllowed, Export ("asString")]
//[Verify (MethodToProperty)]
string AsString { get; }
// -(NSArray<BTJSON *> * _Nullable)asArray __attribute__((warn_unused_result("")));
[NullAllowed, Export ("asArray")]
//[Verify (MethodToProperty)]
BTJSON[] AsArray { get; }
// -(NSNumber * _Nullable)asNumber __attribute__((warn_unused_result("")));
[NullAllowed, Export ("asNumber")]
//[Verify (MethodToProperty)]
NSNumber AsNumber { get; }
// -(NSURL * _Nullable)asURL __attribute__((warn_unused_result("")));
[NullAllowed, Export ("asURL")]
//[Verify (MethodToProperty)]
NSUrl AsURL { get; }
// -(NSArray<NSString *> * _Nullable)asStringArray __attribute__((warn_unused_result("")));
[NullAllowed, Export ("asStringArray")]
//[Verify (MethodToProperty)]
string[] AsStringArray { get; }
// -(NSDictionary * _Nullable)asDictionary __attribute__((warn_unused_result("")));
[NullAllowed, Export ("asDictionary")]
//[Verify (MethodToProperty)]
NSDictionary AsDictionary { get; }
// -(NSInteger)asIntegerOrZero __attribute__((warn_unused_result("")));
[Export ("asIntegerOrZero")]
//[Verify (MethodToProperty)]
nint AsIntegerOrZero { get; }
// -(NSInteger)asEnum:(NSDictionary<NSString *,id> * _Nonnull)mapping orDefault:(NSInteger)orDefault __attribute__((warn_unused_result("")));
[Export ("asEnum:orDefault:")]
nint AsEnum (NSDictionary<NSString, NSObject> mapping, nint orDefault);
// -(BTPostalAddress * _Nullable)asAddress __attribute__((warn_unused_result("")));
[NullAllowed, Export ("asAddress")]
//[Verify (MethodToProperty)]
BTPostalAddress AsAddress { get; }
}
// @interface BTLogLevelDescription : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCore21BTLogLevelDescription")]
interface BTLogLevelDescription
{
}
// @interface BTPaymentMethodNonce : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCore20BTPaymentMethodNonce")]
[DisableDefaultCtor]
interface BTPaymentMethodNonce
: INativeObject
{
// @property (copy, nonatomic) NSString * _Nonnull nonce;
[Export ("nonce")]
string Nonce { get; set; }
// @property (copy, nonatomic) NSString * _Nonnull type;
[Export ("type")]
string Type { get; set; }
// @property (nonatomic) BOOL isDefault;
[Export ("isDefault")]
bool IsDefault { get; set; }
// -(instancetype _Nonnull)initWithNonce:(NSString * _Nonnull)nonce __attribute__((objc_designated_initializer));
[Export ("initWithNonce:")]
[DesignatedInitializer]
NativeHandle Constructor (string nonce);
// -(instancetype _Nonnull)initWithNonce:(NSString * _Nonnull)nonce type:(NSString * _Nonnull)type __attribute__((objc_designated_initializer));
[Export ("initWithNonce:type:")]
[DesignatedInitializer]
NativeHandle Constructor (string nonce, string type);
// -(instancetype _Nonnull)initWithNonce:(NSString * _Nonnull)nonce type:(NSString * _Nonnull)type isDefault:(BOOL)isDefault __attribute__((objc_designated_initializer));
[Export ("initWithNonce:type:isDefault:")]
[DesignatedInitializer]
NativeHandle Constructor (string nonce, string type, bool isDefault);
}
// @interface BTPaymentMethodNonceParser : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCore26BTPaymentMethodNonceParser")]
interface BTPaymentMethodNonceParser
{
// @property (readonly, nonatomic, strong, class) BTPaymentMethodNonceParser * _Nonnull sharedParser;
[Static]
[Export ("sharedParser", ArgumentSemantic.Strong)]
BTPaymentMethodNonceParser SharedParser { get; }
// @property (readonly, copy, nonatomic) NSArray<NSString *> * _Nonnull allTypes;
[Export ("allTypes", ArgumentSemantic.Copy)]
string[] AllTypes { get; }
// -(BOOL)isTypeAvailable:(NSString * _Nonnull)type __attribute__((warn_unused_result("")));
[Export ("isTypeAvailable:")]
bool IsTypeAvailable (string type);
// -(void)registerType:(NSString * _Nullable)type withParsingBlock:(BTPaymentMethodNonce * _Nullable (^ _Nonnull)(BTJSON * _Nullable))withParsingBlock;
[Export ("registerType:withParsingBlock:")]
void RegisterType ([NullAllowed] string type, Func<BTJSON, BTPaymentMethodNonce> withParsingBlock);
// -(BTPaymentMethodNonce * _Nullable)parseJSON:(BTJSON * _Nullable)json withParsingBlockForType:(NSString * _Nullable)type __attribute__((warn_unused_result("")));
[Export ("parseJSON:withParsingBlockForType:")]
[return: NullAllowed]
BTPaymentMethodNonce ParseJSON ([NullAllowed] BTJSON json, [NullAllowed] string type);
}
// @interface BTPostalAddress : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCore15BTPostalAddress")]
interface BTPostalAddress
{
// @property (copy, nonatomic) NSString * _Nullable recipientName;
[NullAllowed, Export ("recipientName")]
string RecipientName { get; set; }
// @property (copy, nonatomic) NSString * _Nullable streetAddress;
[NullAllowed, Export ("streetAddress")]
string StreetAddress { get; set; }
// @property (copy, nonatomic) NSString * _Nullable extendedAddress;
[NullAllowed, Export ("extendedAddress")]
string ExtendedAddress { get; set; }
// @property (copy, nonatomic) NSString * _Nullable locality;
[NullAllowed, Export ("locality")]
string Locality { get; set; }
// @property (copy, nonatomic) NSString * _Nullable countryCodeAlpha2;
[NullAllowed, Export ("countryCodeAlpha2")]
string CountryCodeAlpha2 { get; set; }
// @property (copy, nonatomic) NSString * _Nullable postalCode;
[NullAllowed, Export ("postalCode")]
string PostalCode { get; set; }
// @property (copy, nonatomic) NSString * _Nullable region;
[NullAllowed, Export ("region")]
string Region { get; set; }
}
// @interface BTURLUtils : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCore10BTURLUtils")]
interface BTURLUtils
{
}
// @interface BTWebAuthenticationSession : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCore26BTWebAuthenticationSession")]
interface BTWebAuthenticationSession
{
}
// @interface BTWebAuthenticationSessionClient : NSObject <ASWebAuthenticationPresentationContextProviding>
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCore32BTWebAuthenticationSessionClient")]
interface BTWebAuthenticationSessionClient : IASWebAuthenticationPresentationContextProviding
{
// // -(ASPresentationAnchor _Nonnull)presentationAnchorForWebAuthenticationSession:(ASWebAuthenticationSession * _Nonnull)session __attribute__((warn_unused_result("")));
// [Export ("presentationAnchorForWebAuthenticationSession:")]
// UIWindow PresentationAnchorForWebAuthenticationSession (ASWebAuthenticationSession session);
}
#endregion
#region BRAINTREE AMERICAN EXPRESS
//========================================================================
//
// BRAINTREE AMERICAN EXPRESS
//
//========================================================================
// @interface BTAmericanExpressClient : NSObject
[BaseType (typeof(NSObject), Name = "_TtC24BraintreeAmericanExpress23BTAmericanExpressClient")]
[DisableDefaultCtor]
interface BTAmericanExpressClient
{
// -(instancetype _Nonnull)initWithAPIClient:(BTAPIClient * _Nonnull)apiClient __attribute__((objc_designated_initializer));
[Export ("initWithAPIClient:")]
[DesignatedInitializer]
NativeHandle Constructor (BTAPIClient apiClient);
// -(void)getRewardsBalanceForNonce:(NSString * _Nonnull)nonce currencyIsoCode:(NSString * _Nonnull)currencyISOCode completion:(void (^ _Nonnull)(BTAmericanExpressRewardsBalance * _Nullable, NSError * _Nullable))completion;
[Export ("getRewardsBalanceForNonce:currencyIsoCode:completion:")]
void GetRewardsBalanceForNonce (string nonce, string currencyISOCode, Action<BTAmericanExpressRewardsBalance, NSError> completion);
}
// @interface BTAmericanExpressRewardsBalance : NSObject
[BaseType (typeof(NSObject), Name = "_TtC24BraintreeAmericanExpress31BTAmericanExpressRewardsBalance")]
[DisableDefaultCtor]
interface BTAmericanExpressRewardsBalance
{
// @property (copy, nonatomic) NSString * _Nullable errorCode;
[NullAllowed, Export ("errorCode")]
string ErrorCode { get; set; }
// @property (copy, nonatomic) NSString * _Nullable errorMessage;
[NullAllowed, Export ("errorMessage")]
string ErrorMessage { get; set; }
// @property (copy, nonatomic) NSString * _Nullable conversionRate;
[NullAllowed, Export ("conversionRate")]
string ConversionRate { get; set; }
// @property (copy, nonatomic) NSString * _Nullable currencyAmount;
[NullAllowed, Export ("currencyAmount")]
string CurrencyAmount { get; set; }
// @property (copy, nonatomic) NSString * _Nullable currencyIsoCode;
[NullAllowed, Export ("currencyIsoCode")]
string CurrencyIsoCode { get; set; }
// @property (copy, nonatomic) NSString * _Nullable requestID;
[NullAllowed, Export ("requestID")]
string RequestID { get; set; }
// @property (copy, nonatomic) NSString * _Nullable rewardsAmount;
[NullAllowed, Export ("rewardsAmount")]
string RewardsAmount { get; set; }
// @property (copy, nonatomic) NSString * _Nullable rewardsUnit;
[NullAllowed, Export ("rewardsUnit")]
string RewardsUnit { get; set; }
}
#endregion
#region BRAINTREE APPLE PAY
//========================================================================
//
// BRAINTREE APPLE PAY
//
//========================================================================
// @interface BTApplePayCardNonce : BTPaymentMethodNonce
#if STARTUP_CRASH_BRAINTREE_APPLE_PAY
[BaseType (typeof(BTPaymentMethodNonce), Name = "_TtC17BraintreeApplePay19BTApplePayCardNonce")]
#endif
interface BTApplePayCardNonce
{
// @property (readonly, nonatomic, strong) BTBinData * _Nonnull binData;
[Export ("binData", ArgumentSemantic.Strong)]
BTBinData BinData { get; }
}
// @interface BTApplePayClient : NSObject
[BaseType (typeof(NSObject), Name = "_TtC17BraintreeApplePay16BTApplePayClient")]
[DisableDefaultCtor]
interface BTApplePayClient
{
// -(instancetype _Nonnull)initWithAPIClient:(BTAPIClient * _Nonnull)apiClient __attribute__((objc_designated_initializer));
[Export ("initWithAPIClient:")]
[DesignatedInitializer]
NativeHandle Constructor (BTAPIClient apiClient);
// -(void)makePaymentRequest:(void (^ _Nonnull)(PKPaymentRequest * _Nullable, NSError * _Nullable))completion;
[Export ("makePaymentRequest:")]
void MakePaymentRequest (Action<PKPaymentRequest, NSError> completion);
#if STARTUP_CRASH_BRAINTREE_APPLE_PAY
// -(void)tokenizeApplePayPayment:(PKPayment * _Nonnull)payment completion:(void (^ _Nonnull)(BTApplePayCardNonce * _Nullable, NSError * _Nullable))completion;
[Export ("tokenizeApplePayPayment:completion:")]
void TokenizeApplePayPayment (PKPayment payment, Action<BTApplePayCardNonce, NSError> completion);
#endif
}
#endregion
#region BRAINTREE CARD
//========================================================================
//
// BRAINTREE CARD
//
//========================================================================
// @interface BTAuthenticationInsight : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCard23BTAuthenticationInsight")]
[DisableDefaultCtor]
interface BTAuthenticationInsight
{
// @property (copy, nonatomic) NSString * _Nullable regulationEnvironment;
[NullAllowed, Export ("regulationEnvironment")]
string RegulationEnvironment { get; set; }
}
// @interface BTCard : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCard6BTCard")]
interface BTCard
{
// @property (copy, nonatomic) NSString * _Nullable number;
[NullAllowed, Export ("number")]
string Number { get; set; }
// @property (copy, nonatomic) NSString * _Nullable expirationMonth;
[NullAllowed, Export ("expirationMonth")]
string ExpirationMonth { get; set; }
// @property (copy, nonatomic) NSString * _Nullable expirationYear;
[NullAllowed, Export ("expirationYear")]
string ExpirationYear { get; set; }
// @property (copy, nonatomic) NSString * _Nullable cvv;
[NullAllowed, Export ("cvv")]
string Cvv { get; set; }
// @property (copy, nonatomic) NSString * _Nullable postalCode;
[NullAllowed, Export ("postalCode")]
string PostalCode { get; set; }
// @property (copy, nonatomic) NSString * _Nullable cardholderName;
[NullAllowed, Export ("cardholderName")]
string CardholderName { get; set; }
// @property (copy, nonatomic) NSString * _Nullable firstName;
[NullAllowed, Export ("firstName")]
string FirstName { get; set; }
// @property (copy, nonatomic) NSString * _Nullable lastName;
[NullAllowed, Export ("lastName")]
string LastName { get; set; }
// @property (copy, nonatomic) NSString * _Nullable company;
[NullAllowed, Export ("company")]
string Company { get; set; }
// @property (copy, nonatomic) NSString * _Nullable streetAddress;
[NullAllowed, Export ("streetAddress")]
string StreetAddress { get; set; }
// @property (copy, nonatomic) NSString * _Nullable extendedAddress;
[NullAllowed, Export ("extendedAddress")]
string ExtendedAddress { get; set; }
// @property (copy, nonatomic) NSString * _Nullable locality;
[NullAllowed, Export ("locality")]
string Locality { get; set; }
// @property (copy, nonatomic) NSString * _Nullable region;
[NullAllowed, Export ("region")]
string Region { get; set; }
// @property (copy, nonatomic) NSString * _Nullable countryName;
[NullAllowed, Export ("countryName")]
string CountryName { get; set; }
// @property (copy, nonatomic) NSString * _Nullable countryCodeAlpha2;
[NullAllowed, Export ("countryCodeAlpha2")]
string CountryCodeAlpha2 { get; set; }
// @property (copy, nonatomic) NSString * _Nullable countryCodeAlpha3;
[NullAllowed, Export ("countryCodeAlpha3")]
string CountryCodeAlpha3 { get; set; }
// @property (copy, nonatomic) NSString * _Nullable countryCodeNumeric;
[NullAllowed, Export ("countryCodeNumeric")]
string CountryCodeNumeric { get; set; }
// @property (nonatomic) BOOL shouldValidate;
[Export ("shouldValidate")]
bool ShouldValidate { get; set; }
// @property (nonatomic) BOOL authenticationInsightRequested;
[Export ("authenticationInsightRequested")]
bool AuthenticationInsightRequested { get; set; }
// @property (copy, nonatomic) NSString * _Nullable merchantAccountID;
[NullAllowed, Export ("merchantAccountID")]
string MerchantAccountID { get; set; }
}
// @interface BTCardClient : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCard12BTCardClient")]
[DisableDefaultCtor]
interface BTCardClient
{
// -(instancetype _Nonnull)initWithAPIClient:(BTAPIClient * _Nonnull)apiClient __attribute__((objc_designated_initializer));
[Export ("initWithAPIClient:")]
[DesignatedInitializer]
NativeHandle Constructor (BTAPIClient apiClient);
#if STARTUP_CRASH_BRAINTREE_CARD
// -(void)tokenizeCard:(BTCard * _Nonnull)card completion:(void (^ _Nonnull)(BTCardNonce * _Nullable, NSError * _Nullable))completion;
[Export ("tokenizeCard:completion:")]
void TokenizeCard (BTCard card, Action<BTCardNonce, NSError> completion);
#endif
}
// @interface BTCardNonce : BTPaymentMethodNonce
#if STARTUP_CRASH_BRAINTREE_CARD
[BaseType (typeof(BTPaymentMethodNonce), Name = "_TtC13BraintreeCard11BTCardNonce")]
#endif
interface BTCardNonce
{
// @property (nonatomic) enum BTCardNetwork cardNetwork;
[Export ("cardNetwork", ArgumentSemantic.Assign)]
BTCardNetwork CardNetwork { get; set; }
// @property (copy, nonatomic) NSString * _Nullable expirationMonth;
[NullAllowed, Export ("expirationMonth")]
string ExpirationMonth { get; set; }
// @property (copy, nonatomic) NSString * _Nullable expirationYear;
[NullAllowed, Export ("expirationYear")]
string ExpirationYear { get; set; }
// @property (copy, nonatomic) NSString * _Nullable cardholderName;
[NullAllowed, Export ("cardholderName")]
string CardholderName { get; set; }
// @property (copy, nonatomic) NSString * _Nullable lastTwo;
[NullAllowed, Export ("lastTwo")]
string LastTwo { get; set; }
// @property (copy, nonatomic) NSString * _Nullable lastFour;
[NullAllowed, Export ("lastFour")]
string LastFour { get; set; }
// @property (copy, nonatomic) NSString * _Nullable bin;
[NullAllowed, Export ("bin")]
string Bin { get; set; }
// @property (nonatomic, strong) BTBinData * _Nonnull binData;
[Export ("binData", ArgumentSemantic.Strong)]
BTBinData BinData { get; set; }
// @property (nonatomic, strong) BTThreeDSecureInfo * _Nonnull threeDSecureInfo;
[Export ("threeDSecureInfo", ArgumentSemantic.Strong)]
BTThreeDSecureInfo ThreeDSecureInfo { get; set; }
// @property (nonatomic, strong) BTAuthenticationInsight * _Nullable authenticationInsight;
[NullAllowed, Export ("authenticationInsight", ArgumentSemantic.Strong)]
BTAuthenticationInsight AuthenticationInsight { get; set; }
// -(instancetype _Nonnull)initWithJSON:(BTJSON * _Nullable)cardJSON;
[Export ("initWithJSON:")]
NativeHandle Constructor ([NullAllowed] BTJSON cardJSON);
}
// @interface BTCardRequest : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCard13BTCardRequest")]
[DisableDefaultCtor]
interface BTCardRequest
{
// @property (nonatomic, strong) BTCard * _Nonnull card;
[Export ("card", ArgumentSemantic.Strong)]
BTCard Card { get; set; }
// -(instancetype _Nonnull)initWithCard:(BTCard * _Nonnull)card __attribute__((objc_designated_initializer));
[Export ("initWithCard:")]
[DesignatedInitializer]
NativeHandle Constructor (BTCard card);
}
// @interface BTThreeDSecureInfo : NSObject
[BaseType (typeof(NSObject), Name = "_TtC13BraintreeCard18BTThreeDSecureInfo")]
[DisableDefaultCtor]
interface BTThreeDSecureInfo
{
// @property (copy, nonatomic) NSString * _Nullable acsTransactionID;
[NullAllowed, Export ("acsTransactionID")]
string AcsTransactionID { get; set; }
// @property (copy, nonatomic) NSString * _Nullable authenticationTransactionStatus;
[NullAllowed, Export ("authenticationTransactionStatus")]
string AuthenticationTransactionStatus { get; set; }
// @property (copy, nonatomic) NSString * _Nullable authenticationTransactionStatusReason;
[NullAllowed, Export ("authenticationTransactionStatusReason")]
string AuthenticationTransactionStatusReason { get; set; }
// @property (copy, nonatomic) NSString * _Nullable cavv;
[NullAllowed, Export ("cavv")]
string Cavv { get; set; }
// @property (copy, nonatomic) NSString * _Nullable dsTransactionID;
[NullAllowed, Export ("dsTransactionID")]
string DsTransactionID { get; set; }
// @property (copy, nonatomic) NSString * _Nullable eciFlag;
[NullAllowed, Export ("eciFlag")]
string EciFlag { get; set; }
// @property (copy, nonatomic) NSString * _Nullable enrolled;
[NullAllowed, Export ("enrolled")]
string Enrolled { get; set; }
// @property (nonatomic) BOOL liabilityShifted;
[Export ("liabilityShifted")]
bool LiabilityShifted { get; set; }
// @property (nonatomic) BOOL liabilityShiftPossible;
[Export ("liabilityShiftPossible")]
bool LiabilityShiftPossible { get; set; }
// @property (copy, nonatomic) NSString * _Nullable lookupTransactionStatus;
[NullAllowed, Export ("lookupTransactionStatus")]
string LookupTransactionStatus { get; set; }
// @property (copy, nonatomic) NSString * _Nullable lookupTransactionStatusReason;
[NullAllowed, Export ("lookupTransactionStatusReason")]
string LookupTransactionStatusReason { get; set; }
// @property (copy, nonatomic) NSString * _Nullable paresStatus;
[NullAllowed, Export ("paresStatus")]
string ParesStatus { get; set; }
// @property (copy, nonatomic) NSString * _Nullable status;
[NullAllowed, Export ("status")]
string Status { get; set; }
// @property (copy, nonatomic) NSString * _Nullable threeDSecureAuthenticationID;
[NullAllowed, Export ("threeDSecureAuthenticationID")]
string ThreeDSecureAuthenticationID { get; set; }
// @property (copy, nonatomic) NSString * _Nullable threeDSecureServerTransactionID;
[NullAllowed, Export ("threeDSecureServerTransactionID")]
string ThreeDSecureServerTransactionID { get; set; }
// @property (copy, nonatomic) NSString * _Nullable threeDSecureVersion;
[NullAllowed, Export ("threeDSecureVersion")]
string ThreeDSecureVersion { get; set; }
// @property (nonatomic) BOOL wasVerified;
[Export ("wasVerified")]
bool WasVerified { get; set; }
// @property (copy, nonatomic) NSString * _Nullable xid;
[NullAllowed, Export ("xid")]
string Xid { get; set; }
}
#endregion
#region BRAINTREE DATA COLLECTOR
//========================================================================
//
// BRAINTREE DATA COLLECTOR
//
//========================================================================
// @interface BTDataCollector : NSObject
[BaseType (typeof(NSObject), Name = "_TtC22BraintreeDataCollector15BTDataCollector")]
[DisableDefaultCtor]
interface BTDataCollector
{
// -(instancetype _Nonnull)initWithAPIClient:(BTAPIClient * _Nonnull)apiClient __attribute__((objc_designated_initializer));
[Export ("initWithAPIClient:")]
[DesignatedInitializer]
NativeHandle Constructor (BTAPIClient apiClient);
// -(NSString * _Nonnull)clientMetadataID:(NSString * _Nullable)pairingID __attribute__((warn_unused_result("")));
[Export ("clientMetadataID:")]
string ClientMetadataID ([NullAllowed] string pairingID);
// -(void)collectDeviceData:(void (^ _Nonnull)(NSString * _Nullable, NSError * _Nullable))completion;
[Export ("collectDeviceData:")]
void CollectDeviceData (Action<NSString, NSError> completion);
}
#endregion
#region BRAINTREE PAYPAL
//========================================================================
//
// BRAINTREE PAYPAL
//
//========================================================================
// @interface BTPayPalAccountNonce : BTPaymentMethodNonce
#if STARTUP_CRASH_BRAINTREE_PAYPAL
[BaseType (typeof(BTPaymentMethodNonce), Name = "_TtC15BraintreePayPal20BTPayPalAccountNonce")]
#endif
interface BTPayPalAccountNonce
{
// @property (readonly, copy, nonatomic) NSString * _Nullable email;
[NullAllowed, Export ("email")]
string Email { get; }
// @property (readonly, copy, nonatomic) NSString * _Nullable firstName;
[NullAllowed, Export ("firstName")]
string FirstName { get; }
// @property (readonly, copy, nonatomic) NSString * _Nullable lastName;
[NullAllowed, Export ("lastName")]
string LastName { get; }
// @property (readonly, copy, nonatomic) NSString * _Nullable phone;
[NullAllowed, Export ("phone")]
string Phone { get; }
// @property (readonly, nonatomic, strong) BTPostalAddress * _Nullable billingAddress;
[NullAllowed, Export ("billingAddress", ArgumentSemantic.Strong)]
BTPostalAddress BillingAddress { get; }
// @property (readonly, nonatomic, strong) BTPostalAddress * _Nullable shippingAddress;
[NullAllowed, Export ("shippingAddress", ArgumentSemantic.Strong)]
BTPostalAddress ShippingAddress { get; }
// @property (readonly, copy, nonatomic) NSString * _Nullable clientMetadataID;
[NullAllowed, Export ("clientMetadataID")]
string ClientMetadataID { get; }
// @property (readonly, copy, nonatomic) NSString * _Nullable payerID;
[NullAllowed, Export ("payerID")]
string PayerID { get; }
// @property (readonly, nonatomic, strong) BTPayPalCreditFinancing * _Nullable creditFinancing;
[NullAllowed, Export ("creditFinancing", ArgumentSemantic.Strong)]
BTPayPalCreditFinancing CreditFinancing { get; }
}
// @interface BTPayPalRequest : NSObject
[BaseType (typeof(NSObject), Name = "_TtC15BraintreePayPal15BTPayPalRequest")]
[DisableDefaultCtor]
interface BTPayPalRequest
{
// @property (nonatomic) BOOL isShippingAddressRequired;
[Export ("isShippingAddressRequired")]
bool IsShippingAddressRequired { get; set; }
// @property (nonatomic) BOOL isShippingAddressEditable;
[Export ("isShippingAddressEditable")]
bool IsShippingAddressEditable { get; set; }
// @property (nonatomic) enum BTPayPalLocaleCode localeCode;
[Export ("localeCode", ArgumentSemantic.Assign)]
BTPayPalLocaleCode LocaleCode { get; set; }
// @property (nonatomic, strong) BTPostalAddress * _Nullable shippingAddressOverride;
[NullAllowed, Export ("shippingAddressOverride", ArgumentSemantic.Strong)]
BTPostalAddress ShippingAddressOverride { get; set; }
// @property (nonatomic) enum BTPayPalRequestLandingPageType landingPageType;
[Export ("landingPageType", ArgumentSemantic.Assign)]
BTPayPalRequestLandingPageType LandingPageType { get; set; }
// @property (copy, nonatomic) NSString * _Nullable displayName;
[NullAllowed, Export ("displayName")]
string DisplayName { get; set; }
// @property (copy, nonatomic) NSString * _Nullable merchantAccountID;