11#if 0
22#elif defined(__arm64__) && __arm64__
3- // Generated by Apple Swift version 5.9 .2 (swiftlang-5.9 .2.2.56 clang-1500.1.0.2 .5)
3+ // Generated by Apple Swift version 6.1 .2 effective-5.10 (swiftlang-6.1 .2.1.2 clang-1700.0.13 .5)
44#ifndef DATATRANS_SWIFT_H
55#define DATATRANS_SWIFT_H
66#pragma clang diagnostic push
4242#include <string.h>
4343#endif
4444#if defined(__cplusplus)
45+ #pragma clang diagnostic push
46+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
4547#if defined(__arm64e__) && __has_include(<ptrauth.h>)
4648# include <ptrauth.h>
4749#else
5557# endif
5658#pragma clang diagnostic pop
5759#endif
60+ #pragma clang diagnostic pop
5861#endif
5962
6063#if !defined(SWIFT_TYPEDEFS)
6164# define SWIFT_TYPEDEFS 1
6265# if __has_include(<uchar.h>)
6366# include <uchar.h>
6467# elif !defined(__cplusplus)
68+ typedef unsigned char char8_t;
6569typedef uint_least16_t char16_t;
6670typedef uint_least32_t char32_t;
6771# endif
@@ -293,6 +297,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
293297#pragma clang diagnostic ignored "-Wunknown-pragmas"
294298#pragma clang diagnostic ignored "-Wnullability"
295299#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
300+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
296301
297302#if __has_attribute(external_source_symbol)
298303# pragma push_macro("any")
@@ -302,8 +307,8 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
302307#endif
303308
304309#if defined(__OBJC__)
305- @class NSURL;
306310
311+ @class NSURL;
307312/// Use this class if your app crashes when switching to/from external payment apps,
308313/// such as TWINT, Swish, Vipps, and MobilePay. Our automatic app callback logic
309314/// may interfere with other logic in your app and needs to be disabled.
@@ -328,7 +333,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) DTAppCallbac
328333@protocol DTApplePayDelegate;
329334@class NSString;
330335@class PKPaymentRequest;
331-
332336/// Configuration object for Apple Pay transactions.
333337SWIFT_CLASS_NAMED("ApplePayConfig")
334338@interface DTApplePayConfig : NSObject <NSCopying>
@@ -380,7 +384,6 @@ SWIFT_CLASS_NAMED("ApplePayConfig")
380384@end
381385
382386@class NSCoder;
383-
384387/// This class includes the Datatrans error name
385388SWIFT_CLASS_NAMED("BackendError")
386389@interface DTBackendError : NSError
@@ -392,9 +395,7 @@ SWIFT_CLASS_NAMED("BackendError")
392395- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
393396@end
394397
395-
396398@class NSNumber;
397-
398399/// Configuration object for Boncard transactions.
399400SWIFT_CLASS_NAMED("BoncardConfig")
400401@interface DTBoncardConfig : NSObject <NSCopying>
@@ -428,7 +429,6 @@ typedef SWIFT_ENUM_NAMED(NSInteger, DTBoncardType, "BoncardType", open) {
428429};
429430
430431enum DTPaymentMethodType : NSInteger;
431-
432432/// This is the base class for payment methods. It contains a type to identify the
433433/// payment method, e.g. Visa or Mastercard.
434434SWIFT_CLASS_NAMED("PaymentMethod")
@@ -451,7 +451,6 @@ SWIFT_CLASS_NAMED("PaymentMethod")
451451@end
452452
453453@class DTCardExpiryDate;
454-
455454/// Use this class to process raw card data for payments. You should use
456455/// this class if your app takes over the user interface for the card input fields.
457456SWIFT_CLASS_NAMED("Card")
@@ -481,7 +480,6 @@ SWIFT_CLASS_NAMED("Card")
481480- (nonnull instancetype)initWithType:(enum DTPaymentMethodType)type SWIFT_UNAVAILABLE;
482481@end
483482
484-
485483/// Class to be used to represent the card expiry date (month and year).
486484SWIFT_CLASS_NAMED("CardExpiryDate")
487485@interface DTCardExpiryDate : NSObject <NSCopying>
@@ -518,9 +516,6 @@ typedef SWIFT_ENUM_NAMED(NSInteger, DTCardLabelType, "CardLabelType", open) {
518516 DTCardLabelTypeDebitCard = 2,
519517};
520518
521-
522-
523-
524519/// Callback invoked by the SDK when the custom initial loader must be dismissed.
525520/// important:
526521/// The SDK does not invoke the callback when nothing has to be shown throughout the process. Make sure you dismiss the loading animation at the end of the transaction if the SDK hasn’t done so already.
@@ -530,8 +525,6 @@ SWIFT_PROTOCOL_NAMED("InitialLoaderDelegate")
530525- (void)dismissLoader;
531526@end
532527
533-
534-
535528/// This class represents a previously tokenized card used in the CVV-only tokenization/verification flow.
536529SWIFT_CLASS_NAMED("PCIPCVVOnlyCard")
537530@interface DTPCIPCVVOnlyCard : NSObject
@@ -551,7 +544,6 @@ SWIFT_CLASS_NAMED("PCIPCVVOnlyCard")
551544+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
552545@end
553546
554-
555547/// This class represents a (credit or debit) card which was used for PCI Proxy tokenization.
556548SWIFT_CLASS_NAMED("PCIPCardInfo")
557549@interface DTPCIPCardInfo : NSObject
@@ -575,7 +567,6 @@ SWIFT_CLASS_NAMED("PCIPCardInfo")
575567+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
576568@end
577569
578-
579570/// This class is used to add cardholder info.
580571SWIFT_CLASS_NAMED("PCIPCardholder")
581572@interface DTPCIPCardholder : NSObject
@@ -590,7 +581,6 @@ SWIFT_CLASS_NAMED("PCIPCardholder")
590581@class DTPCIPTokenizationOptions;
591582@class DTThemeConfiguration;
592583@class UIViewController;
593-
594584/// Use this class to start a PCI Proxy tokenization.
595585/// After the tokenization has been completed - regardless if
596586/// successful or not - <code>delegate</code> will be called with some basic
@@ -648,7 +638,6 @@ SWIFT_CLASS_NAMED("PCIPTokenization")
648638
649639@class DTPCIPTokenizationSuccess;
650640@class DTPCIPTokenizationError;
651-
652641/// Implement PCIPTokenizationDelegate to be notified when a tokenization
653642/// ends. PCIPTokenizationDelegate will notify you about the success,
654643/// error or cancel state of the processed tokenization.
@@ -685,7 +674,6 @@ SWIFT_PROTOCOL_NAMED("PCIPTokenizationDelegate")
685674- (void)tokenizationDidCancel:(DTPCIPTokenization * _Nonnull)tokenization;
686675@end
687676
688-
689677/// This class includes the error message of a failed tokenization.
690678SWIFT_CLASS_NAMED("PCIPTokenizationError")
691679@interface DTPCIPTokenizationError : NSError
@@ -703,7 +691,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSInteger validation
703691- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
704692@end
705693
706-
707694/// This class can be used to specify miscellaneous options related to the tokenization.
708695SWIFT_CLASS_NAMED("PCIPTokenizationOptions")
709696@interface DTPCIPTokenizationOptions : NSObject
@@ -736,7 +723,6 @@ SWIFT_CLASS_NAMED("PCIPTokenizationOptions")
736723- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
737724@end
738725
739-
740726/// This class aggregates the results of a successful PCI Proxy tokenization.
741727SWIFT_CLASS_NAMED("PCIPTokenizationSuccess")
742728@interface DTPCIPTokenizationSuccess : NSObject
@@ -751,8 +737,6 @@ SWIFT_CLASS_NAMED("PCIPTokenizationSuccess")
751737+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
752738@end
753739
754-
755-
756740/// The payment method used during the transaction.
757741typedef SWIFT_ENUM_NAMED(NSInteger, DTPaymentMethodType, "PaymentMethodType", open) {
758742/// Visa payment method
@@ -827,7 +811,6 @@ typedef SWIFT_ENUM_NAMED(NSInteger, DTPaymentMethodType, "PaymentMethodType", op
827811 DTPaymentMethodTypePostFinancePay = 34,
828812};
829813
830-
831814/// Use this class to map the payment method identifiers from Datatrans to the <code>PaymentMethodType</code>.
832815SWIFT_CLASS_NAMED("PaymentMethodTypeMapper")
833816@interface DTPaymentMethodTypeMapper : NSObject
@@ -853,7 +836,6 @@ SWIFT_CLASS_NAMED("PaymentMethodTypeMapper")
853836@end
854837
855838@class NSData;
856-
857839/// This is the base class to save a payment method and use it to process recurring payments
858840/// or fast checkouts.
859841/// This class is sufficient for some payment methods (e.g. Twint). More complex payment
@@ -928,7 +910,6 @@ SWIFT_CLASS_NAMED("SavedPaymentMethod")
928910@end
929911
930912@class DTSavedCard;
931-
932913/// This class contains saved Apple Pay payment method details.
933914/// Like any other <code>SavedPaymentMethod</code> subclass, it can be used to initiate
934915/// follow-up payments with the same method. Note: Using this class will still present
@@ -960,7 +941,6 @@ SWIFT_CLASS_NAMED("SavedApplePay")
960941- (nonnull instancetype)initWithType:(enum DTPaymentMethodType)type alias:(NSString * _Nonnull)alias SWIFT_UNAVAILABLE;
961942@end
962943
963-
964944/// This class contains saved Boncard payment method details.
965945/// Just like any other <code>SavedPaymentMethod</code> subclass, this class can be used
966946/// to finalize a payment without user interaction or to display a selection of saved
@@ -992,7 +972,6 @@ SWIFT_CLASS_NAMED("SavedBoncard")
992972- (nonnull instancetype)initWithType:(enum DTPaymentMethodType)type alias:(NSString * _Nonnull)alias SWIFT_UNAVAILABLE;
993973@end
994974
995-
996975/// This class contains saved credit or debit card payment method details.
997976/// Just like any other <code>SavedPaymentMethod</code> subclass, this class can be used
998977/// to finalize a payment without user interaction or to display a selection of saved
@@ -1035,7 +1014,6 @@ SWIFT_CLASS_NAMED("SavedCard")
10351014- (nonnull instancetype)initWithType:(enum DTPaymentMethodType)type alias:(NSString * _Nonnull)alias SWIFT_UNAVAILABLE;
10361015@end
10371016
1038-
10391017/// This class contains saved PayPal payment method details.
10401018/// Just like any other <code>SavedPaymentMethod</code> subclass, this class can be used
10411019/// to finalize a payment without user interaction or to display a selection of saved
@@ -1059,8 +1037,6 @@ SWIFT_CLASS_NAMED("SavedPayPal")
10591037- (nonnull instancetype)initWithType:(enum DTPaymentMethodType)type alias:(NSString * _Nonnull)alias SWIFT_UNAVAILABLE;
10601038@end
10611039
1062-
1063-
10641040/// This class contains saved PostFinance Card payment method details.
10651041/// Just like any other <code>SavedPaymentMethod</code> subclass, this class can be used
10661042/// to finalize a payment without user interaction or to display a selection of saved
@@ -1088,7 +1064,6 @@ SWIFT_CLASS_NAMED("SavedPostFinanceCard")
10881064- (nonnull instancetype)initWithType:(enum DTPaymentMethodType)type alias:(NSString * _Nonnull)alias cardExpiryDate:(DTCardExpiryDate * _Nullable)cardExpiryDate maskedCardNumber:(NSString * _Nullable)maskedCardNumber cardholder:(NSString * _Nullable)cardholder SWIFT_UNAVAILABLE;
10891065@end
10901066
1091-
10921067/// This class contains saved PostFinance Pay payment method details.
10931068/// Like any other <code>SavedPaymentMethod</code> subclass, this class can be used
10941069/// to pay with a previously registered payment method or to present a list of saved
@@ -1107,7 +1082,7 @@ SWIFT_CLASS_NAMED("SavedPostFinancePay")
11071082/// \param maskedAccountNumber Masked PostFinance account number (IBAN). This will be used for displaying purposes.
11081083///
11091084- (nonnull instancetype)initWithAlias:(NSString * _Nonnull)alias maskedAccountNumber:(NSString * _Nullable)maskedAccountNumber OBJC_DESIGNATED_INITIALIZER;
1110- /// :nodoc
1085+ /// :nodoc:
11111086- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
11121087/// :nodoc:
11131088@property (nonatomic, readonly, copy) NSString * _Nonnull description;
@@ -1116,7 +1091,6 @@ SWIFT_CLASS_NAMED("SavedPostFinancePay")
11161091- (nonnull instancetype)initWithType:(enum DTPaymentMethodType)type alias:(NSString * _Nonnull)alias SWIFT_UNAVAILABLE;
11171092@end
11181093
1119-
11201094/// This class contains saved Reka card payment method details.
11211095/// Just like any other <code>SavedPaymentMethod</code> subclass, this class can be used
11221096/// to finalize a payment without user interaction or to display a selection of saved
@@ -1143,7 +1117,6 @@ SWIFT_CLASS_NAMED("SavedReka")
11431117- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
11441118@end
11451119
1146-
11471120/// This class contains saved SEPA (ELV) payment method details.
11481121/// Just like any other <code>SavedPaymentMethod</code> subclass, this class can be used
11491122/// to finalize a payment without user interaction or to display a selection of saved
@@ -1176,7 +1149,6 @@ SWIFT_CLASS_NAMED("SavedSEPA")
11761149@end
11771150
11781151@class UIColor;
1179-
11801152/// This class gives you options to customize the theme of the library.
11811153/// The library offers by default a theme for light and dark mode. If your app supports
11821154/// both themes too, make sure to use <code>UIColor.init(dynamicProvider:)</code>
@@ -1209,7 +1181,6 @@ SWIFT_CLASS_NAMED("ThemeConfiguration")
12091181
12101182@protocol DTTransactionDelegate;
12111183@class DTTransactionOptions;
1212-
12131184/// Use this class to start a transaction with a <code>mobileToken</code> that has previously been initialized
12141185/// with a server-to-server init call.
12151186/// This class is the main class to start any operation with the SDK.
@@ -1274,7 +1245,6 @@ SWIFT_CLASS_NAMED("Transaction")
12741245
12751246@class DTTransactionSuccess;
12761247@class DTTransactionError;
1277-
12781248/// Implement TransactionDelegate to be notified when a transaction
12791249/// ends. TransactionDelegate will notify you about the success, error
12801250/// or cancel state of the processed transaction.
@@ -1315,7 +1285,6 @@ SWIFT_PROTOCOL_NAMED("TransactionDelegate")
13151285- (void)transactionDidCancel:(DTTransaction * _Nonnull)transaction;
13161286@end
13171287
1318-
13191288/// This class includes the error message and other details of a transaction.
13201289SWIFT_CLASS_NAMED("TransactionError")
13211290@interface DTTransactionError : NSError
@@ -1350,7 +1319,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSInteger authorizat
13501319@end
13511320
13521321enum DTDCCShowMode : NSInteger;
1353-
13541322/// This class can be used to specify miscellaneous options related to the transaction.
13551323SWIFT_CLASS_NAMED("TransactionOptions")
13561324@interface DTTransactionOptions : NSObject
@@ -1423,7 +1391,6 @@ typedef SWIFT_ENUM_NAMED(NSInteger, DTDCCShowMode, "DCCShowMode", open) {
14231391 DTDCCShowModeNever = 2,
14241392};
14251393
1426-
14271394/// This class includes the success message and other details of a transaction.
14281395/// You will also obtain a transactionId that you can use for operations
14291396/// after the transaction (e.g. settlement, cancel or refund requests).
@@ -1442,14 +1409,6 @@ SWIFT_CLASS_NAMED("TransactionSuccess")
14421409+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
14431410@end
14441411
1445-
1446-
1447-
1448-
1449-
1450-
1451-
1452-
14531412#endif
14541413#if __has_attribute(external_source_symbol)
14551414# pragma clang attribute pop
0 commit comments