Skip to content

Commit

Permalink
iOS: Release 3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
serhii-libin committed Mar 21, 2024
1 parent e7f2ef1 commit e73d01c
Show file tree
Hide file tree
Showing 146 changed files with 63,867 additions and 160 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 = "3.5.0"
spec.version = "3.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/Assets.car
Binary file not shown.
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 @@ -20,6 +20,7 @@
- (void)handleCriticalWebError:(nonnull DTTransactionError *)error isPayment:(BOOL)isPayment;
- (void)showAliasRegistrationError:(nonnull NSError *)error returnAuthorizationError:(BOOL)returnAuthorizationError;
- (void)showAuthenticationError:(nonnull NSError *)error;
- (void)showAuthentication3dsError:(nonnull NSError *)error;
- (void)showAuthorizationError:(nonnull NSError *)error;
- (void)showCriticalErrorWithTitle:(nonnull NSString *)title message:(nonnull NSString *)message error:(nonnull NSError *)error;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ typedef enum {
+ (BOOL)isSSLError:(NSError *)error;
+ (BOOL)isMobileTokenNotFoundError:(NSError *)error;

- (instancetype)initWithMobileToken:(NSString *)mobileToken urls:(DTUrls *)urls certificatePinning:(BOOL)certificatePinning;
- (instancetype)initWithMobileToken:(NSString *)mobileToken urls:(DTUrls *)urls certificatePinning:(BOOL)certificatePinning testing:(BOOL)testing;

- (void)requestInitialTransaction:(NSString *)mobileToken idempotencyKey:(NSString *)idempotencyKey completion:(void (^)(NSData *, NSError *))completion;
- (void)requestCardAliasForMerchantId:(NSString *)merchantId card:(DTCard *)card options:(DTPaymentOptions *)options completion:(void (^)(DTCardAliasRequestResponse *, NSError *))completion;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@
@property (nullable, nonatomic, strong) NSString* appCallbackUrl;
@property (nonatomic, assign) BOOL isPayment;
@property (nonatomic, assign) NSInteger savedCardDCCShowMode;
@property (nonatomic, assign) NSInteger twintMaxIssuerNumber;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- (nonnull NSString *)getTokenizationUrl;
- (nonnull NSString *)getTWINTRegistrationUrl;
- (nonnull NSString *)getTWINTStatusUrl;
- (nonnull NSString *)getBinRangesUrl;

- (nonnull NSArray<NSString *> *)getHosts;
- (void)switchUrl;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Generated by Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
#ifndef DATATRANS_SWIFT_H
#define DATATRANS_SWIFT_H
#pragma clang diagnostic push
Expand All @@ -21,11 +23,20 @@
# include <swift/objc-prologue.h>
#endif

#pragma clang diagnostic ignored "-Wduplicate-method-match"
#pragma clang diagnostic ignored "-Wauto-import"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
#include <cstdbool>
#else
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#endif

#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
Expand Down Expand Up @@ -181,16 +192,40 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#else
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
#endif
#if defined(__OBJC__)
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
# define SWIFT_EXTERN extern "C"
# else
# define SWIFT_EXTERN extern
# endif
#endif
#if !defined(SWIFT_CALL)
# define SWIFT_CALL __attribute__((swiftcall))
#endif
#if defined(__cplusplus)
#if !defined(SWIFT_NOEXCEPT)
# define SWIFT_NOEXCEPT noexcept
#endif
#else
#if !defined(SWIFT_NOEXCEPT)
# define SWIFT_NOEXCEPT
#endif
#endif
#if defined(__cplusplus)
#if !defined(SWIFT_CXX_INT_DEFINED)
#define SWIFT_CXX_INT_DEFINED
namespace swift {
using Int = ptrdiff_t;
using UInt = size_t;
}
#endif
#endif
#if defined(__OBJC__)
#if __has_feature(modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
Expand All @@ -202,13 +237,15 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));

#import <Datatrans/Datatrans.h>

#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"

#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
Expand All @@ -217,6 +254,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
# pragma pop_macro("any")
#endif

#if defined(__OBJC__)
@protocol DTApplePayDelegate;
@class NSString;
@class PKPaymentRequest;
Expand Down Expand Up @@ -354,7 +392,7 @@ SWIFT_CLASS_NAMED("Card")
@property (nonatomic, strong) DTCardExpiryDate * _Nonnull expiryDate;
/// Card security code - nil if the card does not have a card security code.
@property (nonatomic, copy) NSString * _Nullable cvv;
/// Cardholder’s name
/// Cardholder’s name (as written on the card)
@property (nonatomic, copy) NSString * _Nullable cardholder;
/// Use this to initialize a card object with the card data.
/// \param type Card type, e.g. Visa or Mastercard
Expand All @@ -365,7 +403,7 @@ SWIFT_CLASS_NAMED("Card")
///
/// \param cvv Card security code - nil if the card does not have a card security code.
///
/// \param cardholder Cardholder’s name
/// \param cardholder Cardholder’s name (as written on the card)
///
- (nonnull instancetype)initWithType:(enum DTPaymentMethodType)type number:(NSString * _Nonnull)number expiryDate:(DTCardExpiryDate * _Nonnull)expiryDate cvv:(NSString * _Nullable)cvv cardholder:(NSString * _Nullable)cardholder OBJC_DESIGNATED_INITIALIZER;
/// :nodoc:
Expand Down Expand Up @@ -467,6 +505,14 @@ SWIFT_CLASS_NAMED("PCIPCardInfo")
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


SWIFT_CLASS_NAMED("PCIPCardholder")
@interface DTPCIPCardholder : NSObject
@property (nonatomic, copy) NSString * _Nullable emailAddress;
@property (nonatomic, copy) NSString * _Nullable phoneNumber;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@protocol DTPCIPTokenizationDelegate;
@class DTPCIPTokenizationOptions;
@class DTThemeConfiguration;
Expand Down Expand Up @@ -604,6 +650,12 @@ 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 setting to pass cardholder information for network tokens.
/// important:
/// For AMEX network tokens, either the phone number or email
/// address is mandatory. The phone number must be given in international format
/// with a leading plus sign (+) followed by country code.
@property (nonatomic, strong) DTPCIPCardholder * _Nonnull cardholder;
/// 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.
Expand Down Expand Up @@ -1189,6 +1241,12 @@ SWIFT_CLASS_NAMED("TransactionOptions")
/// Use this setting to switch from production to sandbox. If not specified,
/// the SDK will call the Datatrans production environment.
@property (nonatomic) BOOL testing;
/// In case you use Twint and can’t list all Twint app schemes from “twint-issuer1” to “twint-issuer39”
/// under <code>LSApplicationQueriesSchemes</code>, use this setting to specify the highest one you do list.
/// The default value is 39. Listing “twint-extended” is always required to use Twint.
/// important:
/// Reducing <code>twintMaxIssuerNumber</code> has an adverse effect on the user experience.
@property (nonatomic) NSInteger twintMaxIssuerNumber;
/// Whether secure connections to datatrans servers require a certificate
/// chain signed with a specific CA private key. The device’s trust settings
/// are explicitly ignored, i.e. custom installed/white-listed certificates
Expand Down Expand Up @@ -1252,8 +1310,15 @@ SWIFT_CLASS_NAMED("TransactionSuccess")



#endif
#if defined(__cplusplus)
#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#pragma clang diagnostic pop
#endif

#else
#error unsupported Swift architecture
#endif
Binary file modified Datatrans.xcframework/ios-arm64/Datatrans.framework/Info.plist
Binary file not shown.
Loading

0 comments on commit e73d01c

Please sign in to comment.