Commit bbc8b50e by Dima Bart

Rename to JSONDictionary.

parent eed56e94
......@@ -439,7 +439,7 @@ NSString *const BUYClientCustomerAccessToken = @"X-Shopify-Customer-Access-Token
NSData *data = nil;
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);
......
......@@ -49,7 +49,7 @@
#pragma mark - BUYPaymentSessionProvider -
- (NSDictionary *)jsonRepresentation
- (NSDictionary *)JSONDictionary
{
return @{
@"payment_token" : @{
......
......@@ -43,7 +43,7 @@
#pragma mark - BUYPaymentSessionProvider -
- (NSDictionary *)jsonRepresentation
- (NSDictionary *)JSONDictionary
{
return @{
@"payment_session_id" : self.paymentSessionID,
......
......@@ -26,6 +26,6 @@
@protocol BUYPaymentToken <NSObject>
- (NSDictionary *)jsonRepresentation;
- (NSDictionary *)JSONDictionary;
@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