Commit 199620c2 by Dima Bart

Remove sourceIdentifier from BUYCheckout.

parent d50b18b3
...@@ -90,7 +90,6 @@ ...@@ -90,7 +90,6 @@
NSDictionary *dict = @{@"checkout": NSDictionary *dict = @{@"checkout":
@{@"line_items": @[], @{@"line_items": @[],
@"source_name": @"mobile_app", @"source_name": @"mobile_app",
@"source_identifier": self.client.appId,
@"marketing_attribution":@{@"medium": @"iOS", @"source": self.client.applicationName}}}; @"marketing_attribution":@{@"medium": @"iOS", @"source": self.client.applicationName}}};
NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil]; NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
......
...@@ -300,7 +300,6 @@ static NSString *const kBUYClientPathCollectionPublications = @"collection_listi ...@@ -300,7 +300,6 @@ static NSString *const kBUYClientPathCollectionPublications = @"collection_listi
{ {
checkout.marketingAttribution = @{@"medium": @"iOS", @"source": self.applicationName}; checkout.marketingAttribution = @{@"medium": @"iOS", @"source": self.applicationName};
checkout.sourceName = @"mobile_app"; checkout.sourceName = @"mobile_app";
checkout.sourceIdentifier = self.appId;
if (self.urlScheme || checkout.webReturnToURL) { if (self.urlScheme || checkout.webReturnToURL) {
checkout.webReturnToURL = checkout.webReturnToURL ?: self.urlScheme; checkout.webReturnToURL = checkout.webReturnToURL ?: self.urlScheme;
checkout.webReturnToLabel = checkout.webReturnToLabel ?: [@"Return to " stringByAppendingString:self.applicationName]; checkout.webReturnToLabel = checkout.webReturnToLabel ?: [@"Return to " stringByAppendingString:self.applicationName];
......
...@@ -220,11 +220,6 @@ ...@@ -220,11 +220,6 @@
@property (nonatomic, copy, readonly) NSString *sourceName; @property (nonatomic, copy, readonly) NSString *sourceName;
/** /**
* The unique identifier for the source: the appId
*/
@property (nonatomic, copy, readonly) NSString *sourceIdentifier;
/**
* Credit card stored on the checkout * Credit card stored on the checkout
*/ */
@property (nonatomic, strong, readonly) BUYMaskedCreditCard *creditCard; @property (nonatomic, strong, readonly) BUYMaskedCreditCard *creditCard;
......
...@@ -154,7 +154,6 @@ ...@@ -154,7 +154,6 @@
self.termsOfServiceURL = [NSURL buy_urlWithString:dictionary[@"terms_of_service_url"]]; self.termsOfServiceURL = [NSURL buy_urlWithString:dictionary[@"terms_of_service_url"]];
self.sourceName = dictionary[@"source_name"]; self.sourceName = dictionary[@"source_name"];
self.sourceIdentifier = dictionary[@"source_identifier"];
} }
- (NSString *)shippingRateId - (NSString *)shippingRateId
......
...@@ -53,5 +53,4 @@ ...@@ -53,5 +53,4 @@
@property (nonatomic, strong) NSURL *refundPolicyURL; @property (nonatomic, strong) NSURL *refundPolicyURL;
@property (nonatomic, strong) NSURL *termsOfServiceURL; @property (nonatomic, strong) NSURL *termsOfServiceURL;
@property (nonatomic, copy) NSString *sourceName; @property (nonatomic, copy) NSString *sourceName;
@property (nonatomic, copy) NSString *sourceIdentifier;
@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