Skip to content

Commit

Permalink
iOS: Release 3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Serhii Libin committed Nov 1, 2023
1 parent 0989138 commit acca3b1
Show file tree
Hide file tree
Showing 146 changed files with 398 additions and 201 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.3.0"
spec.version = "3.4.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
10 changes: 5 additions & 5 deletions Datatrans.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>Datatrans.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>Datatrans.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Binary file not shown.
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
@@ -0,0 +1,15 @@
//
// DT2FARequestResponse.h
// Datatrans
//
// Created by Serhii Libin on 16.10.23.
//

#import <Datatrans/DTResponse.h>

@interface DT2FARequestResponse : NSObject<DTResponse>

@property (nonatomic, copy) NSString* transactionId;
@property (nonatomic, assign) BOOL requires2FAConfirmation;

@end
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

#import <Foundation/Foundation.h>

@class DTByjunoPaymentInfo;
@class DTCembraPayPaymentInfo;
@class DTDCCModel;
@class DTPaymentMethodInfo;
@class DTPaymentRequest;
@class DTSavedPaymentMethod;

@interface DTAliasPaymentAuthorizationRequest : NSObject

@property (nonatomic, nullable, copy) DTByjunoPaymentInfo* byjunoPaymentInfo;
@property (nonatomic, nullable, copy) DTCembraPayPaymentInfo* cembraPayPaymentInfo;
@property (nonatomic, nullable, copy) NSString* cvv;
@property (nonatomic, nullable, copy) NSString* easypayPaymentInfo;
@property (nonatomic, nullable, copy) NSDictionary* merchantProperties;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//
// DTByjunoPaymentInfo.h
// DTCembraPayPaymentInfo.h
// datatrans-iphone
//
// Created by bacherma on 14/08/17.
// Copyright 2017 ieffects ag. All rights reserved.
//
//
// Class for configuring Byjuno payments. In the following example a possible Byjuno payment is configured:
// Class for configuring CembraPay payments. In the following example a possible CembraPay payment is configured:
//
// DTAddress* address = [[DTAddress alloc] initWithFirstName:@"Mark"
// lastName:@"Uber"
Expand All @@ -25,14 +25,14 @@
// customer.mailAddress = @"h.mustermann@intrum.com";
// paymentController.paymentOptions.customer = customer;
//
// DTByjunoPaymentInfo* info = [[DTByjunoPaymentInfo alloc] init];
// DTCembraPayPaymentInfo* info = [[DTCembraPayPaymentInfo alloc] init];
// info.deviceFingerprintId = @"deviceFingerprintId-test";
// paymentController.paymentOptions.byjunoPaymentInfo = info;
// paymentController.paymentOptions.cembraPayPaymentInfo = info;
//

#import <Foundation/Foundation.h>

@interface DTByjunoPaymentInfo : NSObject<NSCopying>
@interface DTCembraPayPaymentInfo : NSObject<NSCopying>

@property (nullable, nonatomic, copy) NSString* subtype; // "INVOICE", "INSTALLMENT", "BYJUNO_INVOICE" or "MONTHLY_INVOICE"
@property (nullable, nonatomic, copy) NSNumber* customerEmailConfirmed; // BOOL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
@class DTStatusRequestResponse;
@class DTTWINTStatusRequestResponse;
@class DTUrls;
@class DT2FARequestResponse;

typedef enum {
DT_ENROLLMENT_STATUS_NOT_ENROLLED,
Expand Down Expand Up @@ -56,6 +57,7 @@ typedef enum {
- (void)authorizeAliasPaymentRequest:(DTAliasPaymentAuthorizationRequest *)authorizationRequest completion:(void (^)(DTAuthorizationRequestResponse *, NSError *))completion;
- (void)authorizePaymentRequest:(DTPaymentAuthorizationRequest *)authorizationRequest completion:(void (^)(DTAuthorizationRequestResponse *, NSError *))completion; // split web payment
- (void)startTokenRequest:(DTPaymentRequest *)paymentRequest paymentMethod:(NSString *)paymentMethod options:(DTPaymentOptions *)options completion:(void (^)(DTStartTokenRequestResponse *, NSError *))completion;
- (void)start2FARequest:(DTPaymentRequest *)paymentRequest paymentMethod:(NSString *)paymentMethod alias:(NSString *)alias options:(DTPaymentOptions *)options completion:(void (^)(DT2FARequestResponse *, NSError *))completion;
- (void)startTokenRequestForAlias:(DTAliasRequest *)aliasRequest paymentMethod:(NSString *)paymentMethod options:(DTPaymentOptions *)options completion:(void (^)(DTStartTokenRequestResponse *, NSError *))completion;
- (void)startTWINTAliasRequest:(DTAliasRequest *)aliasRequest options:(DTPaymentOptions *)options completion:(void (^)(DTStartTWINTRequestResponse *, NSError *))completion;
- (void)TWINTStatusRequestForMerchantId:(NSString *)merchantId transactionId:(NSString *)transactionId options:(DTPaymentOptions *)options completion:(void (^)(DTTWINTStatusRequestResponse *, NSError *))completion;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ extern NSString* const DTPaymentMethodSwissBilling;
extern NSString* const DTPaymentMethodTwint;
extern NSString* const DTPaymentMethodApplePay;
extern NSString* const DTPaymentMethodReka;
extern NSString* const DTPaymentMethodByjuno;
extern NSString* const DTPaymentMethodCembraPay;
extern NSString* const DTPaymentMethodSwissPass;
extern NSString* const DTPaymentMethodPowerpay;
extern NSString* const DTPaymentMethodPaycard;
Expand All @@ -37,6 +37,7 @@ extern NSString* const DTPaymentMethodSwish;
extern NSString* const DTPaymentMethodVipps;
extern NSString* const DTPaymentMethodMaestro;
extern NSString* const DTPaymentMethodChinaUnionPay;
extern NSString* const DTPaymentMethodHalfFarePlus;

// reka alternative identifiers
extern NSString* const DTPaymentMethodRekaRail;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

@class DTApplePayConfig;
@class DTBoncardConfig;
@class DTByjunoPaymentInfo;
@class DTCembraPayPaymentInfo;
@class DTKlarnaPaymentInfo;
@class DTSwissBillingPaymentInfo;
@class DTSwissPassPaymentInfo;
Expand All @@ -37,7 +37,7 @@
@property (nullable, nonatomic, copy) DTApplePayConfig* applePayConfig;
@property (nullable, nonatomic, copy) DTBoncardConfig* boncardConfig;
@property (nonatomic, assign) BOOL authenticationOnly;
@property (nullable, nonatomic, copy) DTByjunoPaymentInfo* byjunoPaymentInfo;
@property (nullable, nonatomic, copy) DTCembraPayPaymentInfo* cembraPayPaymentInfo;
@property (nullable, nonatomic, copy) DTCustomer* customer;
@property (nullable, nonatomic, copy) DTSwissPassPaymentInfo* swissPassPaymentInfo;
@property (nullable, nonatomic, copy) NSString* paysafecardMerchantClientId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ typedef SWIFT_ENUM_NAMED(NSInteger, DTBoncardType, "BoncardType", open) {
DTBoncardTypeBoncard = 1,
/// Displays as “Lunch-Check” with the Lunch-Check logo
DTBoncardTypeLunchCheck = 2,
/// Displays as “Voucher” with the SBB Voucher logo
DTBoncardTypeSbbVoucher = 3,
};

enum DTPaymentMethodType : NSInteger;
Expand Down Expand Up @@ -662,8 +664,8 @@ typedef SWIFT_ENUM_NAMED(NSInteger, DTPaymentMethodType, "PaymentMethodType", op
DTPaymentMethodTypeApplePay = 15,
/// Reka payment method
DTPaymentMethodTypeReka = 16,
/// Byjuno payment method
DTPaymentMethodTypeByjuno = 17,
/// CembraPay payment method
DTPaymentMethodTypeCembraPay = 17,
/// SwissPass payment method
DTPaymentMethodTypeSwissPass = 18,
/// Powerpay payment method
Expand All @@ -690,6 +692,8 @@ typedef SWIFT_ENUM_NAMED(NSInteger, DTPaymentMethodType, "PaymentMethodType", op
DTPaymentMethodTypeMaestro = 29,
/// China Union Pay payment method
DTPaymentMethodTypeChinaUnionPay = 30,
/// SBB Half Fare Travelcard PLUS payment method
DTPaymentMethodTypeHalfFarePlus = 31,
};


Expand Down Expand Up @@ -728,7 +732,7 @@ SWIFT_CLASS_NAMED("PaymentMethodTypeMapper")
/// <ul>
/// <li>
/// Easy payment methods: Swisscom Pay, SEPA (ELV), Twint,
/// Apple Pay, Byjuno, SwissPass, Powerpay Invoice
/// Apple Pay, CembraPay, SwissPass, Powerpay Invoice
/// </li>
/// <li>
/// Complex payment methods (requiring a <code>SavedPaymentMethod</code> subclass): Card payments,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ FOUNDATION_EXPORT const unsigned char DatatransVersionString[];
#import <Datatrans/DTAliasRequest+Internal.h>
#import <Datatrans/DTApplePayProcess.h>
#import <Datatrans/DTAuthorizationRequestResponse.h>
#import <Datatrans/DTByjunoPaymentInfo.h>
#import <Datatrans/DTCembraPayPaymentInfo.h>
#import <Datatrans/DTCardAliasRequestResponse.h>
#import <Datatrans/DTDCCServiceResponse.h>
#import <Datatrans/DTErrorHandler.h>
Expand Down Expand Up @@ -57,3 +57,4 @@ FOUNDATION_EXPORT const unsigned char DatatransVersionString[];
#import <Datatrans/DTWebRequestFactory.h>
#import <Datatrans/DTWebProcess.h>
#import <Datatrans/DTBasicAPMAppDelegateProxy.h>
#import <Datatrans/DT2FARequestResponse.h>
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ import _Concurrency
case giftCard
case boncard
case lunchCheck
case sbbVoucher
public init?(rawValue: Swift.Int)
public typealias AllCases = [Datatrans.BoncardType]
public typealias RawValue = Swift.Int
Expand Down Expand Up @@ -187,7 +188,7 @@ import _Concurrency
case Twint
case ApplePay
case Reka
case Byjuno
case CembraPay
case SwissPass
case Powerpay
case Paycard
Expand All @@ -201,6 +202,7 @@ import _Concurrency
case Vipps
case Maestro
case ChinaUnionPay
case HalfFarePlus
public var identifier: Swift.String {
get
}
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.
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.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// DT2FARequestResponse.h
// Datatrans
//
// Created by Serhii Libin on 16.10.23.
//

#import <Datatrans/DTResponse.h>

@interface DT2FARequestResponse : NSObject<DTResponse>

@property (nonatomic, copy) NSString* transactionId;
@property (nonatomic, assign) BOOL requires2FAConfirmation;

@end
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

#import <Foundation/Foundation.h>

@class DTByjunoPaymentInfo;
@class DTCembraPayPaymentInfo;
@class DTDCCModel;
@class DTPaymentMethodInfo;
@class DTPaymentRequest;
@class DTSavedPaymentMethod;

@interface DTAliasPaymentAuthorizationRequest : NSObject

@property (nonatomic, nullable, copy) DTByjunoPaymentInfo* byjunoPaymentInfo;
@property (nonatomic, nullable, copy) DTCembraPayPaymentInfo* cembraPayPaymentInfo;
@property (nonatomic, nullable, copy) NSString* cvv;
@property (nonatomic, nullable, copy) NSString* easypayPaymentInfo;
@property (nonatomic, nullable, copy) NSDictionary* merchantProperties;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//
// DTByjunoPaymentInfo.h
// DTCembraPayPaymentInfo.h
// datatrans-iphone
//
// Created by bacherma on 14/08/17.
// Copyright 2017 ieffects ag. All rights reserved.
//
//
// Class for configuring Byjuno payments. In the following example a possible Byjuno payment is configured:
// Class for configuring CembraPay payments. In the following example a possible CembraPay payment is configured:
//
// DTAddress* address = [[DTAddress alloc] initWithFirstName:@"Mark"
// lastName:@"Uber"
Expand All @@ -25,14 +25,14 @@
// customer.mailAddress = @"h.mustermann@intrum.com";
// paymentController.paymentOptions.customer = customer;
//
// DTByjunoPaymentInfo* info = [[DTByjunoPaymentInfo alloc] init];
// DTCembraPayPaymentInfo* info = [[DTCembraPayPaymentInfo alloc] init];
// info.deviceFingerprintId = @"deviceFingerprintId-test";
// paymentController.paymentOptions.byjunoPaymentInfo = info;
// paymentController.paymentOptions.cembraPayPaymentInfo = info;
//

#import <Foundation/Foundation.h>

@interface DTByjunoPaymentInfo : NSObject<NSCopying>
@interface DTCembraPayPaymentInfo : NSObject<NSCopying>

@property (nullable, nonatomic, copy) NSString* subtype; // "INVOICE", "INSTALLMENT", "BYJUNO_INVOICE" or "MONTHLY_INVOICE"
@property (nullable, nonatomic, copy) NSNumber* customerEmailConfirmed; // BOOL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
@class DTStatusRequestResponse;
@class DTTWINTStatusRequestResponse;
@class DTUrls;
@class DT2FARequestResponse;

typedef enum {
DT_ENROLLMENT_STATUS_NOT_ENROLLED,
Expand Down Expand Up @@ -56,6 +57,7 @@ typedef enum {
- (void)authorizeAliasPaymentRequest:(DTAliasPaymentAuthorizationRequest *)authorizationRequest completion:(void (^)(DTAuthorizationRequestResponse *, NSError *))completion;
- (void)authorizePaymentRequest:(DTPaymentAuthorizationRequest *)authorizationRequest completion:(void (^)(DTAuthorizationRequestResponse *, NSError *))completion; // split web payment
- (void)startTokenRequest:(DTPaymentRequest *)paymentRequest paymentMethod:(NSString *)paymentMethod options:(DTPaymentOptions *)options completion:(void (^)(DTStartTokenRequestResponse *, NSError *))completion;
- (void)start2FARequest:(DTPaymentRequest *)paymentRequest paymentMethod:(NSString *)paymentMethod alias:(NSString *)alias options:(DTPaymentOptions *)options completion:(void (^)(DT2FARequestResponse *, NSError *))completion;
- (void)startTokenRequestForAlias:(DTAliasRequest *)aliasRequest paymentMethod:(NSString *)paymentMethod options:(DTPaymentOptions *)options completion:(void (^)(DTStartTokenRequestResponse *, NSError *))completion;
- (void)startTWINTAliasRequest:(DTAliasRequest *)aliasRequest options:(DTPaymentOptions *)options completion:(void (^)(DTStartTWINTRequestResponse *, NSError *))completion;
- (void)TWINTStatusRequestForMerchantId:(NSString *)merchantId transactionId:(NSString *)transactionId options:(DTPaymentOptions *)options completion:(void (^)(DTTWINTStatusRequestResponse *, NSError *))completion;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ extern NSString* const DTPaymentMethodSwissBilling;
extern NSString* const DTPaymentMethodTwint;
extern NSString* const DTPaymentMethodApplePay;
extern NSString* const DTPaymentMethodReka;
extern NSString* const DTPaymentMethodByjuno;
extern NSString* const DTPaymentMethodCembraPay;
extern NSString* const DTPaymentMethodSwissPass;
extern NSString* const DTPaymentMethodPowerpay;
extern NSString* const DTPaymentMethodPaycard;
Expand All @@ -37,6 +37,7 @@ extern NSString* const DTPaymentMethodSwish;
extern NSString* const DTPaymentMethodVipps;
extern NSString* const DTPaymentMethodMaestro;
extern NSString* const DTPaymentMethodChinaUnionPay;
extern NSString* const DTPaymentMethodHalfFarePlus;

// reka alternative identifiers
extern NSString* const DTPaymentMethodRekaRail;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

@class DTApplePayConfig;
@class DTBoncardConfig;
@class DTByjunoPaymentInfo;
@class DTCembraPayPaymentInfo;
@class DTKlarnaPaymentInfo;
@class DTSwissBillingPaymentInfo;
@class DTSwissPassPaymentInfo;
Expand All @@ -37,7 +37,7 @@
@property (nullable, nonatomic, copy) DTApplePayConfig* applePayConfig;
@property (nullable, nonatomic, copy) DTBoncardConfig* boncardConfig;
@property (nonatomic, assign) BOOL authenticationOnly;
@property (nullable, nonatomic, copy) DTByjunoPaymentInfo* byjunoPaymentInfo;
@property (nullable, nonatomic, copy) DTCembraPayPaymentInfo* cembraPayPaymentInfo;
@property (nullable, nonatomic, copy) DTCustomer* customer;
@property (nullable, nonatomic, copy) DTSwissPassPaymentInfo* swissPassPaymentInfo;
@property (nullable, nonatomic, copy) NSString* paysafecardMerchantClientId;
Expand Down
Loading

0 comments on commit acca3b1

Please sign in to comment.