diff --git a/JudoKit_iOSTests/Models/JPRegisterCardRequest/JPRegisterCardRequestTest.swift b/JudoKit_iOSTests/Models/JPRegisterCardRequest/JPRegisterCardRequestTest.swift index 71a22f38f..27cf0eb06 100644 --- a/JudoKit_iOSTests/Models/JPRegisterCardRequest/JPRegisterCardRequestTest.swift +++ b/JudoKit_iOSTests/Models/JPRegisterCardRequest/JPRegisterCardRequestTest.swift @@ -54,7 +54,7 @@ class JPRegisterCardRequestTest: XCTestCase { XCTAssertEqual(cardRequest.yourConsumerReference, configuration.reference.consumerReference) XCTAssertEqual(cardRequest.yourPaymentReference, configuration.reference.paymentReference) XCTAssertEqual(cardRequest.yourPaymentMetaData, configuration.reference.metaData) - XCTAssertTrue(cardRequest.isInitialRecurringPayment) + XCTAssertTrue(cardRequest.initialRecurringPayment) } /* @@ -62,7 +62,7 @@ class JPRegisterCardRequestTest: XCTestCase { * * WHEN: A valid parameters are being passed to the initializer * - * AND: The "isInitialRecurringPayment" should be set. + * AND: The "initialRecurringPayment" should be set. */ func test_onCardDetailsInitialization_SetValidProperties() { @@ -81,7 +81,7 @@ class JPRegisterCardRequestTest: XCTestCase { XCTAssertEqual(cardRequest.yourConsumerReference, configuration.reference.consumerReference) XCTAssertEqual(cardRequest.yourPaymentReference, configuration.reference.paymentReference) XCTAssertEqual(cardRequest.yourPaymentMetaData, configuration.reference.metaData) - XCTAssertTrue(cardRequest.isInitialRecurringPayment) + XCTAssertTrue(cardRequest.initialRecurringPayment) } } diff --git a/JudoKit_iOSTests/Models/Requests/JPCheckCardRequestTests.swift b/JudoKit_iOSTests/Models/Requests/JPCheckCardRequestTests.swift index d7bfb6c6f..1cc7ad0a8 100644 --- a/JudoKit_iOSTests/Models/Requests/JPCheckCardRequestTests.swift +++ b/JudoKit_iOSTests/Models/Requests/JPCheckCardRequestTests.swift @@ -42,7 +42,7 @@ class JPCheckCardRequestTests: XCTestCase { * * WHEN: A valid [JPConfiguration] instance is passed as a parameter * - * THEN: The "isInitialRecurringPayment" should be set. + * THEN: The "initialRecurringPayment" should be set. */ func test_onInitialization_SetValidProperties() { let checkCardRequest = JPCheckCardRequest(configuration: configuration) @@ -55,7 +55,7 @@ class JPCheckCardRequestTests: XCTestCase { XCTAssertEqual(checkCardRequest.yourConsumerReference, configuration.reference.consumerReference) XCTAssertEqual(checkCardRequest.yourPaymentReference, configuration.reference.paymentReference) XCTAssertEqual(checkCardRequest.yourPaymentMetaData, configuration.reference.metaData) - XCTAssertTrue(checkCardRequest.isInitialRecurringPayment) + XCTAssertTrue(checkCardRequest.initialRecurringPayment) } /* @@ -63,7 +63,7 @@ class JPCheckCardRequestTests: XCTestCase { * * WHEN: A valid parameters are being passed to the initializer * - * THEN: The "isInitialRecurringPayment" should be set. + * THEN: The "initialRecurringPayment" should be set. */ func test_onCardDetailsInitialization_SetValidProperties() { @@ -83,6 +83,6 @@ class JPCheckCardRequestTests: XCTestCase { XCTAssertEqual(checkCardRequest.yourConsumerReference, configuration.reference.consumerReference) XCTAssertEqual(checkCardRequest.yourPaymentReference, configuration.reference.paymentReference) XCTAssertEqual(checkCardRequest.yourPaymentMetaData, configuration.reference.metaData) - XCTAssertTrue(checkCardRequest.isInitialRecurringPayment) + XCTAssertTrue(checkCardRequest.initialRecurringPayment) } } diff --git a/Source/Extensions/JPCardTransactionDetails/JPCardTransactionDetails+Additions.m b/Source/Extensions/JPCardTransactionDetails/JPCardTransactionDetails+Additions.m index 8c4866f18..66e0637b9 100644 --- a/Source/Extensions/JPCardTransactionDetails/JPCardTransactionDetails+Additions.m +++ b/Source/Extensions/JPCardTransactionDetails/JPCardTransactionDetails+Additions.m @@ -153,7 +153,7 @@ - (void)populateWithCardTokenDetailsRequest:(JPTokenRequest *)request request.cardLastFour = self.cardLastFour; request.cardToken = self.cardToken; request.cardType = @(self.cardType); - request.isInitialRecurringPayment = configuration.isInitialRecurringPayment; + request.initialRecurringPayment = configuration.isInitialRecurringPayment; request.cv2 = self.securityCode; request.cardHolderName = self.cardholderName; request.phoneCountryCode = self.phoneCountryCode; diff --git a/Source/Models/Request/JPCheckCardRequest.h b/Source/Models/Request/JPCheckCardRequest.h index 7962f2aca..5ca0ed963 100644 --- a/Source/Models/Request/JPCheckCardRequest.h +++ b/Source/Models/Request/JPCheckCardRequest.h @@ -30,6 +30,6 @@ /** * A flag to sign up for a subscription-based service */ -@property (nonatomic, assign) BOOL isInitialRecurringPayment; +@property (nonatomic, assign) BOOL initialRecurringPayment; @end diff --git a/Source/Models/Request/JPCheckCardRequest.m b/Source/Models/Request/JPCheckCardRequest.m index bd68e15f9..b5f29e59b 100644 --- a/Source/Models/Request/JPCheckCardRequest.m +++ b/Source/Models/Request/JPCheckCardRequest.m @@ -33,7 +33,7 @@ - (NSString *)amount { - (nonnull instancetype)initWithConfiguration:(nonnull JPConfiguration *)configuration { if (self = [super initWithConfiguration:configuration]) { - _isInitialRecurringPayment = configuration.isInitialRecurringPayment; + _initialRecurringPayment = configuration.isInitialRecurringPayment; } return self; } @@ -41,7 +41,7 @@ - (nonnull instancetype)initWithConfiguration:(nonnull JPConfiguration *)configu - (instancetype)initWithConfiguration:(JPConfiguration *)configuration andCardDetails:(JPCard *)card { if (self = [super initWithConfiguration:configuration andCardDetails:card]) { - _isInitialRecurringPayment = configuration.isInitialRecurringPayment; + _initialRecurringPayment = configuration.isInitialRecurringPayment; } return self; } diff --git a/Source/Models/Request/JPPaymentRequest.h b/Source/Models/Request/JPPaymentRequest.h index 753167284..0d4d7e32a 100644 --- a/Source/Models/Request/JPPaymentRequest.h +++ b/Source/Models/Request/JPPaymentRequest.h @@ -29,6 +29,6 @@ /** * A flag to sign up for a subscription-based service */ -@property (nonatomic, assign) BOOL isInitialRecurringPayment; +@property (nonatomic, assign) BOOL initialRecurringPayment; @end diff --git a/Source/Models/Request/JPPaymentRequest.m b/Source/Models/Request/JPPaymentRequest.m index 46602f694..0d5627eed 100644 --- a/Source/Models/Request/JPPaymentRequest.m +++ b/Source/Models/Request/JPPaymentRequest.m @@ -29,7 +29,7 @@ @implementation JPPaymentRequest - (nonnull instancetype)initWithConfiguration:(nonnull JPConfiguration *)configuration { if (self = [super initWithConfiguration:configuration]) { - _isInitialRecurringPayment = configuration.isInitialRecurringPayment; + _initialRecurringPayment = configuration.isInitialRecurringPayment; } return self; } @@ -37,7 +37,7 @@ - (nonnull instancetype)initWithConfiguration:(nonnull JPConfiguration *)configu - (instancetype)initWithConfiguration:(JPConfiguration *)configuration andCardDetails:(JPCard *)card { if (self = [super initWithConfiguration:configuration andCardDetails:card]) { - _isInitialRecurringPayment = configuration.isInitialRecurringPayment; + _initialRecurringPayment = configuration.isInitialRecurringPayment; } return self; } diff --git a/Source/Models/Request/JPRegisterCardRequest.h b/Source/Models/Request/JPRegisterCardRequest.h index 61e943417..1ef22a9fa 100644 --- a/Source/Models/Request/JPRegisterCardRequest.h +++ b/Source/Models/Request/JPRegisterCardRequest.h @@ -30,6 +30,6 @@ /** * A flag to sign up for a subscription-based service */ -@property (nonatomic, assign) BOOL isInitialRecurringPayment; +@property (nonatomic, assign) BOOL initialRecurringPayment; @end diff --git a/Source/Models/Request/JPRegisterCardRequest.m b/Source/Models/Request/JPRegisterCardRequest.m index f0128880d..a068cd885 100644 --- a/Source/Models/Request/JPRegisterCardRequest.m +++ b/Source/Models/Request/JPRegisterCardRequest.m @@ -46,7 +46,7 @@ - (NSString *)currency { - (nonnull instancetype)initWithConfiguration:(nonnull JPConfiguration *)configuration { if (self = [super initWithConfiguration:configuration]) { - _isInitialRecurringPayment = configuration.isInitialRecurringPayment; + _initialRecurringPayment = configuration.isInitialRecurringPayment; } return self; } @@ -54,7 +54,7 @@ - (nonnull instancetype)initWithConfiguration:(nonnull JPConfiguration *)configu - (instancetype)initWithConfiguration:(JPConfiguration *)configuration andCardDetails:(JPCard *)card { if (self = [super initWithConfiguration:configuration andCardDetails:card]) { - _isInitialRecurringPayment = configuration.isInitialRecurringPayment; + _initialRecurringPayment = configuration.isInitialRecurringPayment; } return self; } diff --git a/Source/Models/Request/JPTokenRequest.h b/Source/Models/Request/JPTokenRequest.h index 17bba52b1..908266dfe 100644 --- a/Source/Models/Request/JPTokenRequest.h +++ b/Source/Models/Request/JPTokenRequest.h @@ -50,7 +50,7 @@ /** * A flag to sign up for a subscription-based service */ -@property (nonatomic, assign) BOOL isInitialRecurringPayment; +@property (nonatomic, assign) BOOL initialRecurringPayment; /** * Designated initializer based on the provided configuration and card token diff --git a/Source/Models/Request/JPTokenRequest.m b/Source/Models/Request/JPTokenRequest.m index 157242f92..fcd56fa8c 100644 --- a/Source/Models/Request/JPTokenRequest.m +++ b/Source/Models/Request/JPTokenRequest.m @@ -31,7 +31,7 @@ - (nonnull instancetype)initWithConfiguration:(nonnull JPConfiguration *)configu andCardToken:(nonnull NSString *)cardToken { if (self = [super initWithConfiguration:configuration]) { _cardToken = cardToken; - _isInitialRecurringPayment = configuration.isInitialRecurringPayment; + _initialRecurringPayment = configuration.isInitialRecurringPayment; } return self; }