Skip to content

Commit

Permalink
0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
adyen-git-manager committed Nov 13, 2018
1 parent 46cd4e1 commit 84d9f13
Show file tree
Hide file tree
Showing 50 changed files with 2,612 additions and 254 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
Binary file modified Adyen3DS2.framework/Adyen3DS2
Binary file not shown.
Binary file modified Adyen3DS2.framework/Assets.car
Binary file not shown.
2 changes: 1 addition & 1 deletion Adyen3DS2.framework/Headers/ADYAppearance.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
@note This class corresponds to the `Customization` class in the specification.
*/
@interface ADYAppearance : NSObject
@interface ADYAppearance : NSObject <NSCopying>

/**
The font in which text is displayed.
Expand Down
74 changes: 58 additions & 16 deletions Adyen3DS2.framework/Headers/ADYAppearanceConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,65 @@
#import <Adyen3DS2/ADYNavigationBarAppearance.h>
#import <Adyen3DS2/ADYLabelAppearance.h>
#import <Adyen3DS2/ADYTextFieldAppearance.h>
#import <Adyen3DS2/ADYSelectAppearance.h>
#import <Adyen3DS2/ADYButtonAppearance.h>
#import <Adyen3DS2/ADYInfoAppearance.h>

NS_ASSUME_NONNULL_BEGIN

/**
An enum describing the different button types.
*/
typedef NS_ENUM(NSUInteger, ADYAppearanceButtonType) {

/// Indicates the submit button.
ADYAppearanceButtonTypeSubmit,

/// Indicates the continue button.
ADYAppearanceButtonTypeContinue,

/// Indicates the next button.
ADYAppearanceButtonTypeNext,

/// Indicates the cancel button.
ADYAppearanceButtonTypeCancel,

/// Indicates the resend button.
ADYAppearanceButtonTypeResend

};

/**
Provides appearance customization properties for interface elements used throughout the challenge flow.
@note This class corresponds to the `UiCustomization` class in the specification.
*/
@interface ADYAppearanceConfiguration : NSObject
@interface ADYAppearanceConfiguration : NSObject <NSCopying>

/**
The preferred status bar style for the challenge flow.
*/
@property (nonatomic, assign, readwrite) UIStatusBarStyle statusBarStyle;

/**
The background color of the entire challenge flow.
*/
@property (nonatomic, strong, readwrite) UIColor *backgroundColor;

/**
A convenience property that sets the text color on every appearance object.
*/
@property (nonatomic, strong, readwrite) UIColor *textColor;

/**
A convenience property that sets the border color on every appearance object.
*/
@property (nonatomic, strong, readwrite) UIColor *borderColor;

/**
A convenience property that sets the tint color on every appearance object.
*/
@property (nonatomic, strong, readwrite) UIColor *tintColor;

/**
The appearance of the navigation bar.
Expand All @@ -36,29 +85,22 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, strong, readonly) ADYTextFieldAppearance *textFieldAppearance;

/**
The appearance of the verify button.
The appearance of select controls.
*/
@property (nonatomic, strong, readonly) ADYButtonAppearance *verifyButtonAppearance;
@property (nonatomic, strong, readonly) ADYSelectAppearance *selectAppearance;

/**
The appearance of the continue button.
The appearance of info items.
*/
@property (nonatomic, strong, readonly) ADYButtonAppearance *continueButtonAppearance;
@property (nonatomic, strong, readonly) ADYInfoAppearance *infoAppearance;

/**
The appearance of the next button.
*/
@property (nonatomic, strong, readonly) ADYButtonAppearance *nextButtonAppearance;
Returns the appearance for the button of the given type.
/**
The appearance of the cancel button.
*/
@property (nonatomic, strong, readonly) ADYButtonAppearance *cancelButtonAppearance;

/**
The appearance of the resend button.
@param buttonType The button type to return the appearance for.
@return The appearance for the button of the given type.
*/
@property (nonatomic, strong, readonly) ADYButtonAppearance *resendButtonAppearance;
- (ADYButtonAppearance *)buttonAppearanceForButtonType:(ADYAppearanceButtonType)buttonType;

@end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
/**
A unique string identifying the application.
*/
@property (nonatomic, copy, readonly) NSString *applicationIdentifier;
@property (nonatomic, copy, readonly) NSString *SDKApplicationIdentifier;

/**
A unique string identifying the transaction within the scope of the SDK.
Expand All @@ -39,12 +39,12 @@ NS_ASSUME_NONNULL_BEGIN
/**
The public key component of the ephemeral keypair generated for the transaction, represented as a JWK.
*/
@property (nonatomic, copy, readonly) NSString *ephemeralPublicKey;
@property (nonatomic, copy, readonly) NSString *SDKEphemeralPublicKey;

/**
The version of the protocol to use during the transaction.
The protocol version to use during the transaction.
*/
@property (nonatomic, copy, readonly) NSString *protocolVersion;
@property (nonatomic, copy, readonly) NSString *messageVersion;

+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;
Expand Down
36 changes: 36 additions & 0 deletions Adyen3DS2.framework/Headers/ADYButtonAppearance.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,54 @@

NS_ASSUME_NONNULL_BEGIN

/**
The type of transform to apply to the button's text.
*/
typedef NS_ENUM(NSUInteger, ADYButtonAppearanceTextTransform) {

/// Indicates the text should not be transformed.
ADYButtonAppearanceTextTransformNone,

/// Indicates the text should be uppercased.
ADYButtonAppearanceTextTransformUppercase,

/// Indicates the text should be lowercased.
ADYButtonAppearanceTextTransformLowercase

};

/**
Contains properties to customize the appearance of a button.
@note This class corresponds to the `ButtonCustomization` class in the specification.
*/
@interface ADYButtonAppearance : ADYAppearance

/**
The type of transform to apply to the button's text.
*/
@property (nonatomic, assign, readwrite) ADYButtonAppearanceTextTransform textTransform;

/**
The background color of the button.
*/
@property (nonatomic, strong, readwrite) UIColor *backgroundColor;

/**
The color of the button's title in case it's disabled.
*/
@property (nonatomic, strong, readwrite) UIColor *disabledTextColor;

/**
The background color of the button in case it's disabled.
*/
@property (nonatomic, strong, readwrite) UIColor *disabledBackgroundColor;

/**
The background color of hte button in case it's highlighted, or nil when the default color should be darkened.
*/
@property (nonatomic, strong, readwrite, nullable) UIColor *highlightedBackgroundColor;

/**
The radius of the button's corners.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//
// ADYChallengeStatusDelegate.h
// ADYChallengeDelegate.h
// Adyen3DS2
//
// Copyright © 2018 Adyen. All rights reserved.
//

#import <Adyen3DS2/ADYChallengeCompletion.h>
#import <Adyen3DS2/ADYChallengeResult.h>

NS_ASSUME_NONNULL_BEGIN

Expand All @@ -14,14 +14,14 @@ NS_ASSUME_NONNULL_BEGIN
@note This protocol corresponds to the `ChallengeStatusReceiver` interface in the specification.
*/
@protocol ADYChallengeStatusDelegate <NSObject>
@protocol ADYChallengeDelegate <NSObject>

/**
Invoked when a challenge is completed successfully.
@param completion The completion event of the challenge.
@param result The result of the challenge.
*/
- (void)challengeDidFinishWithCompletion:(ADYChallengeCompletion *)completion;
- (void)challengeDidFinishWithResult:(ADYChallengeResult *)result;

/**
Invokes when a challenge has failed.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// ADYChallengeCompletion.h
// ADYChallengeResult.h
// Adyen3DS2
//
// Copyright © 2018 Adyen. All rights reserved.
Expand All @@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
@note This class corresponds to the `CompletionEvent` class in the specification.
*/
@interface ADYChallengeCompletion : NSObject
@interface ADYChallengeResult : NSObject

/**
A unique string identifying the transaction within the scope of the SDK.
Expand Down
39 changes: 39 additions & 0 deletions Adyen3DS2.framework/Headers/ADYInfoAppearance.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//
// ADYInfoAppearance.h
// Adyen3DS2
//
// Copyright © 2018 Adyen. All rights reserved.
//

#import <Adyen3DS2/ADYAppearance.h>

NS_ASSUME_NONNULL_BEGIN

/**
Contains properties to customize the appearance of info items.
*/
@interface ADYInfoAppearance : ADYAppearance

/**
The font in which heading text is displayed.
*/
@property (nonatomic, strong, readwrite) UIFont *headingFont;

/**
The color in which heading text is displayed.
*/
@property (nonatomic, strong, readwrite) UIColor *headingTextColor;

/**
The tint color of the item's selection indicator (the chevron).
*/
@property (nonatomic, strong, readwrite) UIColor *selectionIndicatorTintColor;

/**
The color of the info item's border.
*/
@property (nonatomic, strong, readwrite) UIColor *borderColor;

@end

NS_ASSUME_NONNULL_END
15 changes: 15 additions & 0 deletions Adyen3DS2.framework/Headers/ADYLabelAppearance.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (nonatomic, strong, readwrite) UIColor *headingTextColor;

/**
The font in which subheading text is displayed.
*/
@property (nonatomic, strong, readwrite) UIFont *subheadingFont;

/**
The color in which subheading text is displayed.
*/
@property (nonatomic, strong, readwrite) UIColor *subheadingTextColor;

/**
The color in which error text is displayed.
*/
@property (nonatomic, strong, readwrite) UIColor *errorTextColor;

@end

NS_ASSUME_NONNULL_END
12 changes: 11 additions & 1 deletion Adyen3DS2.framework/Headers/ADYNavigationBarAppearance.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,20 @@ NS_ASSUME_NONNULL_BEGIN
*/
@interface ADYNavigationBarAppearance : ADYAppearance

/**
The title of the navigation bar.
*/
@property (nonatomic, copy, readwrite, nullable) NSString *title;

/**
The title of the cancel button in the navigation bar, or `nil` to leave it at the default system localized cancel button title.
*/
@property (nonatomic, copy, readwrite, nullable) NSString *cancelButtonTitle;

/**
The background color of the navigation bar.
*/
@property (nonatomic, strong, readwrite) UIColor *backgroundColor;
@property (nonatomic, strong, readwrite, nullable) UIColor *backgroundColor;

@end

Expand Down
34 changes: 34 additions & 0 deletions Adyen3DS2.framework/Headers/ADYSelectAppearance.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
//
// ADYSelectAppearance.h
// Adyen3DS2
//
// Copyright © 2018 Adyen. All rights reserved.
//

#import <Adyen3DS2/ADYAppearance.h>

NS_ASSUME_NONNULL_BEGIN

/**
Contains properties to customize the appearance of select controls.
*/
@interface ADYSelectAppearance : ADYAppearance

/**
The color of the select control's borders.
*/
@property (nonatomic, strong, readwrite) UIColor *borderColor;

/**
The color of a select control item's background when it's highlighted.
*/
@property (nonatomic, strong, readwrite) UIColor *highlightedBackgroundColor;

/**
The tint color of the select control item's selection indicator.
*/
@property (nonatomic, strong, readwrite) UIColor *selectionIndicatorTintColor;

@end

NS_ASSUME_NONNULL_END
6 changes: 3 additions & 3 deletions Adyen3DS2.framework/Headers/ADYService.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ NS_ASSUME_NONNULL_BEGIN
/**
The current version of the SDK.
*/
@property (class, nonatomic, copy, readonly) NSString *sdkVersion;
@property (class, nonatomic, copy, readonly) NSString *version;

/**
Boolean value indicating whether the service is initialized.
Expand All @@ -49,11 +49,11 @@ NS_ASSUME_NONNULL_BEGIN
Creates a new transaction.
@param directoryServerIdentifier The identifier of the directory server for which to create the transaction. When `nil`, the directory server information is assumed to have been passed in the parameters during initialization of the service.
@param protocolVersion The version of the protocol to be used during the transaction, or `nil` to use the latest supported version.
@param messageVersion The version of the protocol to be used during the transaction, or `nil` to use the latest supported version.
@param error A pointer to an error object that is set to an @p NSError instance when an error occurs.
@return An initialized transaction, or @p nil if a transaction could not be initialized.
*/
- (nullable ADYTransaction *)createTransactionWithDirectoryServerIdentifier:(nullable NSString *)directoryServerIdentifier protocolVersion:(nullable NSString *)protocolVersion error:(NSError *__nullable *__nullable)error;
- (nullable ADYTransaction *)createTransactionWithDirectoryServerIdentifier:(nullable NSString *)directoryServerIdentifier messageVersion:(nullable NSString *)messageVersion error:(NSError *__nullable *__nullable)error;

+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;
Expand Down
Loading

0 comments on commit 84d9f13

Please sign in to comment.