Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shopify_iossdk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
shopify_iossdk
Commits
5d61de03
Commit
5d61de03
authored
May 13, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix incorrect routes for gift_card endpoints.
parent
93c81413
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
BUYRouter.m
Mobile Buy SDK/Mobile Buy SDK/Data/BUYRouter.m
+9
-4
No files found.
Mobile Buy SDK/Mobile Buy SDK/Data/BUYRouter.m
View file @
5d61de03
...
...
@@ -132,9 +132,14 @@
#pragma mark - API -
-
(
BUYRoute
*
)
routeForShopDomain
{
return
[
BUYRoute
routeWithFormat
:
@"https://%@"
,
self
.
shopDomain
];
}
-
(
BUYRoute
*
)
routeForAPI
{
return
[
BUYRoute
routeWithFormat
:
@"https://%@/api/"
,
self
.
shopDomain
];
return
[
[
self
routeForShopDomain
]
appendPath
:
@"/api"
];
}
-
(
BUYRoute
*
)
routeForApps
...
...
@@ -146,7 +151,7 @@
-
(
BUYRoute
*
)
routeForShop
{
return
[[
self
routeFor
API
]
appendPath
:
@"/meta"
];
return
[[
self
routeFor
ShopDomain
]
appendPath
:
@"/meta"
];
}
-
(
BUYRoute
*
)
routeForProductListings
...
...
@@ -193,12 +198,12 @@
-
(
BUYRoute
*
)
routeForCheckoutsUsingGiftCardWithToken
:
(
NSString
*
)
token
{
return
[[[
self
routeForCheckouts
]
appendPath
:
@"/gift_cards"
]
appendPath
:
token
];
return
[[[
self
routeForCheckouts
]
appendPath
:
token
]
appendPath
:
@"/gift_cards"
];
}
-
(
BUYRoute
*
)
routeForCheckoutsUsingGiftCard
:
(
NSNumber
*
)
giftCardID
token
:
(
NSString
*
)
token
{
return
[[
[
self
routeForCheckoutsUsingGiftCard
]
appendIdentifier
:
giftCardID
]
appendPath
:
token
];
return
[[
self
routeForCheckoutsUsingGiftCardWithToken
:
token
]
appendIdentifier
:
giftCardID
];
}
#pragma mark - Customers -
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment