Commit 96b70c42 by Dima Bart

Remove apple pay deprecated property in BUYClient.

parent dc2579cb
...@@ -151,18 +151,6 @@ NSString * const BUYFakeCustomerToken = @"dsfasdgafdg"; ...@@ -151,18 +151,6 @@ NSString * const BUYFakeCustomerToken = @"dsfasdgafdg";
); );
} }
- (void)testMerchantId
{
NSString *merchantId = @"com.merchant.id";
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
[self.client enableApplePayWithMerchantId:merchantId];
XCTAssertEqualObjects(merchantId, self.client.merchantId);
#pragma GCC diagnostic pop
}
- (void)testStatusCodeConversions - (void)testStatusCodeConversions
{ {
BUYStatus status = [self.client statusForStatusCode:412 error:nil]; BUYStatus status = [self.client statusForStatusCode:412 error:nil];
......
...@@ -126,11 +126,6 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -126,11 +126,6 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, strong, readonly, nonnull) NSString *appId; @property (nonatomic, strong, readonly, nonnull) NSString *appId;
/** /**
* The Merchant ID is used for Apple Pay and set using `enableApplePayWithMerchantId:`
*/
@property (nonatomic, strong, readonly, nullable) NSString *merchantId NS_DEPRECATED_IOS(8_0, 9_0, "Set the `merchantId` on a BUYViewController subclass instead");
/**
* Application name to attribute orders to. Defaults to app bundle name (CFBundleName) * Application name to attribute orders to. Defaults to app bundle name (CFBundleName)
*/ */
@property (nonatomic, strong, nonnull) NSString *applicationName; @property (nonatomic, strong, nonnull) NSString *applicationName;
...@@ -147,15 +142,6 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -147,15 +142,6 @@ NS_ASSUME_NONNULL_BEGIN
*/ */
@property (strong, nonatomic, nullable) NSString *customerToken; @property (strong, nonatomic, nullable) NSString *customerToken;
#pragma mark - Deprecated methods
/**
* Enable Apple Pay by calling this method with the Merchant ID provided via Apple Pay setup in the Mobile SDK Channel on Shopify Admin
*
* @param merchantId The Merchant ID generated on Shopify Admin
*/
- (void)enableApplePayWithMerchantId:(NSString *)merchantId NS_DEPRECATED_IOS(8_0, 9_0, "Set the merchantId on a `BUYViewController` subclass instead");
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
...@@ -236,11 +236,4 @@ static NSString * const BUYClientJSONMimeType = @"application/json"; ...@@ -236,11 +236,4 @@ static NSString * const BUYClientJSONMimeType = @"application/json";
} }
} }
#pragma mark - Deprecations
- (void)enableApplePayWithMerchantId:(NSString *)merchantId
{
_merchantId = merchantId;
}
@end @end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment