Commit bbc8b50e by Dima Bart

Rename to JSONDictionary.

parent eed56e94
...@@ -439,7 +439,7 @@ NSString *const BUYClientCustomerAccessToken = @"X-Shopify-Customer-Access-Token ...@@ -439,7 +439,7 @@ NSString *const BUYClientCustomerAccessToken = @"X-Shopify-Customer-Access-Token
NSData *data = nil; NSData *data = nil;
if (paymentToken) { if (paymentToken) {
data = [NSJSONSerialization dataWithJSONObject:[paymentToken jsonRepresentation] options:0 error:nil]; data = [NSJSONSerialization dataWithJSONObject:[paymentToken JSONDictionary] options:0 error:nil];
} }
BOOL isFree = (checkout.paymentDue && checkout.paymentDue.floatValue == 0); BOOL isFree = (checkout.paymentDue && checkout.paymentDue.floatValue == 0);
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
#pragma mark - BUYPaymentSessionProvider - #pragma mark - BUYPaymentSessionProvider -
- (NSDictionary *)jsonRepresentation - (NSDictionary *)JSONDictionary
{ {
return @{ return @{
@"payment_token" : @{ @"payment_token" : @{
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#pragma mark - BUYPaymentSessionProvider - #pragma mark - BUYPaymentSessionProvider -
- (NSDictionary *)jsonRepresentation - (NSDictionary *)JSONDictionary
{ {
return @{ return @{
@"payment_session_id" : self.paymentSessionID, @"payment_session_id" : self.paymentSessionID,
......
...@@ -26,6 +26,6 @@ ...@@ -26,6 +26,6 @@
@protocol BUYPaymentToken <NSObject> @protocol BUYPaymentToken <NSObject>
- (NSDictionary *)jsonRepresentation; - (NSDictionary *)JSONDictionary;
@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