From 425042bc8a7bb85a2db9be77fbe427c94849b0be Mon Sep 17 00:00:00 2001 From: Constantin Lungu Date: Tue, 31 Oct 2017 11:53:43 +0200 Subject: [PATCH] Remove from_made_on and to_made_on from transaction due to deprecation --- Classes/API/SEAPIRequestManager.h | 8 ++------ Classes/API/SEAPIRequestManager.m | 8 -------- Classes/Utils/Constants.h | 2 -- Salt Edge API Demo.xcodeproj/project.pbxproj | 2 ++ 4 files changed, 4 insertions(+), 16 deletions(-) diff --git a/Classes/API/SEAPIRequestManager.h b/Classes/API/SEAPIRequestManager.h index c21fa26..f590433 100644 --- a/Classes/API/SEAPIRequestManager.h +++ b/Classes/API/SEAPIRequestManager.h @@ -239,9 +239,7 @@ typedef NS_ENUM(NSUInteger, SEAPIRequestManagerSSLPinningMode) { @code // parameters example, all optional { - "from_id": 1839, - "from_made_on": [NSDate dateWithTimeIntervalSinceReferenceDate:0], - "to_made_on": [NSDate date] + "from_id": 1839 } @endcode @@ -284,9 +282,7 @@ typedef NS_ENUM(NSUInteger, SEAPIRequestManagerSSLPinningMode) { @code // parameters example, all optional { - "from_id": 2370, - "from_made_on": [NSDate date], - "to_made_on": [NSDate dateWithTimeIntervalSinceNow:oneDayInterval] + "from_id": 2370 } @endcode diff --git a/Classes/API/SEAPIRequestManager.m b/Classes/API/SEAPIRequestManager.m index d86a415..0b04ef2 100644 --- a/Classes/API/SEAPIRequestManager.m +++ b/Classes/API/SEAPIRequestManager.m @@ -673,14 +673,6 @@ - (void)requestTransactionsListWithPath:(NSString*)transactionsPath NSMutableDictionary* finalParameters = parameters ? parameters.mutableCopy : [NSMutableDictionary dictionary]; finalParameters[kAccountIdKey] = accountId; - if (finalParameters[kFromMadeOnKey]) { - finalParameters[kFromMadeOnKey] = [DateUtils YMDStringFromDate:finalParameters[kFromMadeOnKey]]; - } - - if (finalParameters[kToMadeOnKey]) { - finalParameters[kToMadeOnKey] = [DateUtils YMDStringFromDate:finalParameters[kToMadeOnKey]]; - } - [self requestPaginatedResourceWithPath:transactionsPath container:@[].mutableCopy headers:[self sessionHeadersWithLoginSecret:loginSecret] diff --git a/Classes/Utils/Constants.h b/Classes/Utils/Constants.h index 86ec353..0f6d84a 100644 --- a/Classes/Utils/Constants.h +++ b/Classes/Utils/Constants.h @@ -66,8 +66,6 @@ static NSString* const kReturnToKey = @"return_to"; static NSString* const kRedirectURLKey = @"redirect_url"; static NSString* const kCustomerSecretKey = @"secret"; static NSString* const kAccountIdKey = @"account_id"; -static NSString* const kFromMadeOnKey = @"from_made_on"; -static NSString* const kToMadeOnKey = @"to_made_on"; static NSString* const kMobileKey = @"mobile"; static NSString* const kIdentifierKey = @"identifier"; static NSString* const kLoginStageFinish = @"finish"; diff --git a/Salt Edge API Demo.xcodeproj/project.pbxproj b/Salt Edge API Demo.xcodeproj/project.pbxproj index 15d8245..d11e4c1 100644 --- a/Salt Edge API Demo.xcodeproj/project.pbxproj +++ b/Salt Edge API Demo.xcodeproj/project.pbxproj @@ -861,6 +861,7 @@ "$(inherited)", ); INFOPLIST_FILE = "Salt Edge API DemoTests/Salt Edge API DemoTests-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; PRODUCT_BUNDLE_IDENTIFIER = "com.saltedge.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUNDLE_LOADER)"; @@ -880,6 +881,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "Salt Edge API Demo/Salt Edge API Demo-Prefix.pch"; INFOPLIST_FILE = "Salt Edge API DemoTests/Salt Edge API DemoTests-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; PRODUCT_BUNDLE_IDENTIFIER = "com.saltedge.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUNDLE_LOADER)";