Skip to content

Commit

Permalink
iOS: Release 2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
skirsche-ieffects committed Feb 20, 2023
1 parent 1fb9ce8 commit 7822b30
Show file tree
Hide file tree
Showing 107 changed files with 1,878 additions and 105 deletions.
2 changes: 1 addition & 1 deletion Datatrans.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "Datatrans"
spec.version = "2.5.0"
spec.version = "2.6.0"
spec.summary = "Datatrans iOS SDK - Accept payments on your iOS apps"
spec.description = <<-DESC
Accept payments on your iOS apps: Our mobile SDKs support your entire payment and
Expand Down
Binary file modified Datatrans.xcframework/ios-arm64/Datatrans.framework/Datatrans
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ typedef enum {
DTPaymentMethodNeedsCardExpiration = 1 << 1,
DTPaymentMethodNeedsCardVerification = 1 << 2,
DTPaymentMethodNeedsCardholder = 1 << 3,
DTPaymentMethodWebPayment = 1 << 5,
DTPaymentMethodWebPaymentExternal = 1 << 7,
DTPaymentMethodWebPayment = 1 << 5,
DTPaymentMethodWebPaymentExternal = 1 << 7,
DTPaymentMethodRequiresCustomScheme = 1 << 9,
} DTPaymentMethodFlags;

@interface DTPaymentMethodInfo : NSObject
Expand All @@ -31,6 +32,7 @@ typedef enum {
@property (nonatomic, readonly) BOOL needsCardVerification;
@property (nonatomic, readonly) BOOL needsCardholder;
@property (nonatomic, readonly) BOOL hasSavedPaymentMethodSupport;
@property (nonatomic, readonly) BOOL requiresCustomScheme;

@property (nonatomic, readonly) NSString* _Nullable viewPortAdjustment;

Expand All @@ -45,7 +47,7 @@ typedef enum {
@property (nonatomic, readonly) NSArray<NSNumber *>* _Nullable creditCardNumberSpaces;

- (void)updateWithOptions:(nonnull DTPaymentOptions *)options;
- (nullable NSString *)validateOptions:(nonnull DTPaymentOptions *)options isAliasPayment:(BOOL)isAliasPayment;
- (nullable NSString *)validateOptions:(nonnull DTPaymentOptions *)options isAliasPayment:(BOOL)isAliasPayment hasKlarnaSDK:(BOOL)hasKlarnaSDK;

+ (nonnull NSSet<DTPaymentMethodInfo *> *)methodsInMethods:(nonnull NSArray<DTPaymentMethodInfo *> *)methods forNumberStartingWith:(nonnull NSString *)number;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,16 @@ typedef SWIFT_ENUM_NAMED(NSInteger, DTCardLabelType, "CardLabelType", open) {



/// Callback invoked by the SDK when the custom initial loader must be dismissed.
/// important:
/// 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.
SWIFT_PROTOCOL_NAMED("InitialLoaderDelegate")
@protocol DTInitialLoaderDelegate
/// Invoked when SDK content needs to be presented. The app must dismiss/hide its custom loading animation immediately. For the remainder of the process the SDK’s loading animation is used.
- (void)dismissLoader;
@end



/// This class represents a previously tokenized card used in the CVV-only tokenization/verification flow.
SWIFT_CLASS_NAMED("PCIPCVVOnlyCard")
Expand Down Expand Up @@ -590,7 +600,7 @@ SWIFT_CLASS_NAMED("PCIPTokenizationOptions")
@interface DTPCIPTokenizationOptions : NSObject
/// Use this setting to change the UI language. If this is not
/// specified, the default language determined by the system will be used.
/// The supported values are <code>de</code>, <code>en</code>, <code>fr</code>, <code>it</code> and <code>nil</code>.
/// The supported values are <code>en</code>, <code>da</code>, <code>de</code>, <code>es</code>, <code>fi</code>, <code>fr</code>, <code>it</code>, <code>no</code>, <code>pt</code>, <code>sv</code> and <code>nil</code>.
@property (nonatomic, copy) NSString * _Nullable language;
/// Use this setting to display or hide critical errors.
@property (nonatomic) BOOL suppressCriticalErrorDialog;
Expand All @@ -604,6 +614,10 @@ SWIFT_CLASS_NAMED("PCIPTokenizationOptions")
/// Please be advised that enabling this option will break your app in many
/// corporate networks with anti-malware/-theft/-espionage SSL proxying.
@property (nonatomic) BOOL useCertificatePinning;
/// Use this option when no card data is entered in our SDK and you want to show your own loading animation during the SDK’s initial network requests.
/// important:
/// Your loader must be visible before starting the SDK. Be aware that the SDK blocks user input. Your loading screen can not have a cancel button or give the impression that users can still interact with the UI.
@property (nonatomic, weak) id <DTInitialLoaderDelegate> _Nullable customInitialLoaderDelegate;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

Expand Down Expand Up @@ -1175,6 +1189,10 @@ SWIFT_CLASS_NAMED("TransactionOptions")
/// Please be advised that enabling this option will break your app in many
/// corporate networks with anti-malware/-theft/-espionage SSL proxying.
@property (nonatomic) BOOL useCertificatePinning;
/// Sometimes, apps display a loading animation before starting the SDK. You can set the <code>customInitialLoaderDelegate</code> option if you want to keep showing this animation instead of the SDK’s loader during initial SDK network requests.
/// important:
/// Your loader must be visible before starting the SDK. Be aware that the SDK blocks user input. Your loading screen can not have a cancel button or give the impression that users can still interact with the UI.
@property (nonatomic, weak) id <DTInitialLoaderDelegate> _Nullable customInitialLoaderDelegate;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ import _Concurrency
@objc required public init?(coder: Foundation.NSCoder)
@objc deinit
}
@objc(DTInitialLoaderDelegate) public protocol InitialLoaderDelegate {
@objc func dismissLoader()
}
@objc(DTBoncardType) public enum BoncardType : Swift.Int, Swift.CaseIterable {
case giftCard
case boncard
Expand Down Expand Up @@ -105,6 +108,7 @@ import _Concurrency
@objc public var suppressCriticalErrorDialog: Swift.Bool
@objc public var testing: Swift.Bool
@objc public var useCertificatePinning: Swift.Bool
@objc weak public var customInitialLoaderDelegate: Datatrans.InitialLoaderDelegate?
@objc override dynamic public init()
@objc deinit
}
Expand Down Expand Up @@ -155,6 +159,7 @@ import _Concurrency
@objc public var suppressCriticalErrorDialog: Swift.Bool
@objc public var testing: Swift.Bool
@objc public var useCertificatePinning: Swift.Bool
@objc weak public var customInitialLoaderDelegate: Datatrans.InitialLoaderDelegate?
@objc override dynamic public init()
@objc deinit
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ typedef enum {
DTPaymentMethodNeedsCardExpiration = 1 << 1,
DTPaymentMethodNeedsCardVerification = 1 << 2,
DTPaymentMethodNeedsCardholder = 1 << 3,
DTPaymentMethodWebPayment = 1 << 5,
DTPaymentMethodWebPaymentExternal = 1 << 7,
DTPaymentMethodWebPayment = 1 << 5,
DTPaymentMethodWebPaymentExternal = 1 << 7,
DTPaymentMethodRequiresCustomScheme = 1 << 9,
} DTPaymentMethodFlags;

@interface DTPaymentMethodInfo : NSObject
Expand All @@ -31,6 +32,7 @@ typedef enum {
@property (nonatomic, readonly) BOOL needsCardVerification;
@property (nonatomic, readonly) BOOL needsCardholder;
@property (nonatomic, readonly) BOOL hasSavedPaymentMethodSupport;
@property (nonatomic, readonly) BOOL requiresCustomScheme;

@property (nonatomic, readonly) NSString* _Nullable viewPortAdjustment;

Expand All @@ -45,7 +47,7 @@ typedef enum {
@property (nonatomic, readonly) NSArray<NSNumber *>* _Nullable creditCardNumberSpaces;

- (void)updateWithOptions:(nonnull DTPaymentOptions *)options;
- (nullable NSString *)validateOptions:(nonnull DTPaymentOptions *)options isAliasPayment:(BOOL)isAliasPayment;
- (nullable NSString *)validateOptions:(nonnull DTPaymentOptions *)options isAliasPayment:(BOOL)isAliasPayment hasKlarnaSDK:(BOOL)hasKlarnaSDK;

+ (nonnull NSSet<DTPaymentMethodInfo *> *)methodsInMethods:(nonnull NSArray<DTPaymentMethodInfo *> *)methods forNumberStartingWith:(nonnull NSString *)number;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,16 @@ typedef SWIFT_ENUM_NAMED(NSInteger, DTCardLabelType, "CardLabelType", open) {



/// Callback invoked by the SDK when the custom initial loader must be dismissed.
/// important:
/// 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.
SWIFT_PROTOCOL_NAMED("InitialLoaderDelegate")
@protocol DTInitialLoaderDelegate
/// Invoked when SDK content needs to be presented. The app must dismiss/hide its custom loading animation immediately. For the remainder of the process the SDK’s loading animation is used.
- (void)dismissLoader;
@end



/// This class represents a previously tokenized card used in the CVV-only tokenization/verification flow.
SWIFT_CLASS_NAMED("PCIPCVVOnlyCard")
Expand Down Expand Up @@ -592,7 +602,7 @@ SWIFT_CLASS_NAMED("PCIPTokenizationOptions")
@interface DTPCIPTokenizationOptions : NSObject
/// Use this setting to change the UI language. If this is not
/// specified, the default language determined by the system will be used.
/// The supported values are <code>de</code>, <code>en</code>, <code>fr</code>, <code>it</code> and <code>nil</code>.
/// The supported values are <code>en</code>, <code>da</code>, <code>de</code>, <code>es</code>, <code>fi</code>, <code>fr</code>, <code>it</code>, <code>no</code>, <code>pt</code>, <code>sv</code> and <code>nil</code>.
@property (nonatomic, copy) NSString * _Nullable language;
/// Use this setting to display or hide critical errors.
@property (nonatomic) BOOL suppressCriticalErrorDialog;
Expand All @@ -606,6 +616,10 @@ SWIFT_CLASS_NAMED("PCIPTokenizationOptions")
/// Please be advised that enabling this option will break your app in many
/// corporate networks with anti-malware/-theft/-espionage SSL proxying.
@property (nonatomic) BOOL useCertificatePinning;
/// Use this option when no card data is entered in our SDK and you want to show your own loading animation during the SDK’s initial network requests.
/// important:
/// Your loader must be visible before starting the SDK. Be aware that the SDK blocks user input. Your loading screen can not have a cancel button or give the impression that users can still interact with the UI.
@property (nonatomic, weak) id <DTInitialLoaderDelegate> _Nullable customInitialLoaderDelegate;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

Expand Down Expand Up @@ -1177,6 +1191,10 @@ SWIFT_CLASS_NAMED("TransactionOptions")
/// Please be advised that enabling this option will break your app in many
/// corporate networks with anti-malware/-theft/-espionage SSL proxying.
@property (nonatomic) BOOL useCertificatePinning;
/// Sometimes, apps display a loading animation before starting the SDK. You can set the <code>customInitialLoaderDelegate</code> option if you want to keep showing this animation instead of the SDK’s loader during initial SDK network requests.
/// important:
/// Your loader must be visible before starting the SDK. Be aware that the SDK blocks user input. Your loading screen can not have a cancel button or give the impression that users can still interact with the UI.
@property (nonatomic, weak) id <DTInitialLoaderDelegate> _Nullable customInitialLoaderDelegate;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

Expand Down Expand Up @@ -1639,6 +1657,16 @@ typedef SWIFT_ENUM_NAMED(NSInteger, DTCardLabelType, "CardLabelType", open) {



/// Callback invoked by the SDK when the custom initial loader must be dismissed.
/// important:
/// 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.
SWIFT_PROTOCOL_NAMED("InitialLoaderDelegate")
@protocol DTInitialLoaderDelegate
/// Invoked when SDK content needs to be presented. The app must dismiss/hide its custom loading animation immediately. For the remainder of the process the SDK’s loading animation is used.
- (void)dismissLoader;
@end



/// This class represents a previously tokenized card used in the CVV-only tokenization/verification flow.
SWIFT_CLASS_NAMED("PCIPCVVOnlyCard")
Expand Down Expand Up @@ -1804,7 +1832,7 @@ SWIFT_CLASS_NAMED("PCIPTokenizationOptions")
@interface DTPCIPTokenizationOptions : NSObject
/// Use this setting to change the UI language. If this is not
/// specified, the default language determined by the system will be used.
/// The supported values are <code>de</code>, <code>en</code>, <code>fr</code>, <code>it</code> and <code>nil</code>.
/// The supported values are <code>en</code>, <code>da</code>, <code>de</code>, <code>es</code>, <code>fi</code>, <code>fr</code>, <code>it</code>, <code>no</code>, <code>pt</code>, <code>sv</code> and <code>nil</code>.
@property (nonatomic, copy) NSString * _Nullable language;
/// Use this setting to display or hide critical errors.
@property (nonatomic) BOOL suppressCriticalErrorDialog;
Expand All @@ -1818,6 +1846,10 @@ SWIFT_CLASS_NAMED("PCIPTokenizationOptions")
/// Please be advised that enabling this option will break your app in many
/// corporate networks with anti-malware/-theft/-espionage SSL proxying.
@property (nonatomic) BOOL useCertificatePinning;
/// Use this option when no card data is entered in our SDK and you want to show your own loading animation during the SDK’s initial network requests.
/// important:
/// Your loader must be visible before starting the SDK. Be aware that the SDK blocks user input. Your loading screen can not have a cancel button or give the impression that users can still interact with the UI.
@property (nonatomic, weak) id <DTInitialLoaderDelegate> _Nullable customInitialLoaderDelegate;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

Expand Down Expand Up @@ -2389,6 +2421,10 @@ SWIFT_CLASS_NAMED("TransactionOptions")
/// Please be advised that enabling this option will break your app in many
/// corporate networks with anti-malware/-theft/-espionage SSL proxying.
@property (nonatomic) BOOL useCertificatePinning;
/// Sometimes, apps display a loading animation before starting the SDK. You can set the <code>customInitialLoaderDelegate</code> option if you want to keep showing this animation instead of the SDK’s loader during initial SDK network requests.
/// important:
/// Your loader must be visible before starting the SDK. Be aware that the SDK blocks user input. Your loading screen can not have a cancel button or give the impression that users can still interact with the UI.
@property (nonatomic, weak) id <DTInitialLoaderDelegate> _Nullable customInitialLoaderDelegate;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ import _Concurrency
@objc required public init?(coder: Foundation.NSCoder)
@objc deinit
}
@objc(DTInitialLoaderDelegate) public protocol InitialLoaderDelegate {
@objc func dismissLoader()
}
@objc(DTBoncardType) public enum BoncardType : Swift.Int, Swift.CaseIterable {
case giftCard
case boncard
Expand Down Expand Up @@ -105,6 +108,7 @@ import _Concurrency
@objc public var suppressCriticalErrorDialog: Swift.Bool
@objc public var testing: Swift.Bool
@objc public var useCertificatePinning: Swift.Bool
@objc weak public var customInitialLoaderDelegate: Datatrans.InitialLoaderDelegate?
@objc override dynamic public init()
@objc deinit
}
Expand Down Expand Up @@ -155,6 +159,7 @@ import _Concurrency
@objc public var suppressCriticalErrorDialog: Swift.Bool
@objc public var testing: Swift.Bool
@objc public var useCertificatePinning: Swift.Bool
@objc weak public var customInitialLoaderDelegate: Datatrans.InitialLoaderDelegate?
@objc override dynamic public init()
@objc deinit
}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ import _Concurrency
@objc required public init?(coder: Foundation.NSCoder)
@objc deinit
}
@objc(DTInitialLoaderDelegate) public protocol InitialLoaderDelegate {
@objc func dismissLoader()
}
@objc(DTBoncardType) public enum BoncardType : Swift.Int, Swift.CaseIterable {
case giftCard
case boncard
Expand Down Expand Up @@ -105,6 +108,7 @@ import _Concurrency
@objc public var suppressCriticalErrorDialog: Swift.Bool
@objc public var testing: Swift.Bool
@objc public var useCertificatePinning: Swift.Bool
@objc weak public var customInitialLoaderDelegate: Datatrans.InitialLoaderDelegate?
@objc override dynamic public init()
@objc deinit
}
Expand Down Expand Up @@ -155,6 +159,7 @@ import _Concurrency
@objc public var suppressCriticalErrorDialog: Swift.Bool
@objc public var testing: Swift.Bool
@objc public var useCertificatePinning: Swift.Bool
@objc weak public var customInitialLoaderDelegate: Datatrans.InitialLoaderDelegate?
@objc override dynamic public init()
@objc deinit
}
Expand Down
Loading

0 comments on commit 7822b30

Please sign in to comment.