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
194a406e
Commit
194a406e
authored
May 16, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move URL composition into BUYClient category. Remove BUYRouter.
parent
3f817423
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
83 deletions
+6
-83
project.pbxproj
Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj
+4
-12
BUYClient+Customers.m
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Customers.m
+0
-1
BUYClient.m
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient.m
+2
-2
BUYRouter.h
Mobile Buy SDK/Mobile Buy SDK/Data/BUYRouter.h
+0
-68
No files found.
Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj
View file @
194a406e
...
@@ -373,10 +373,6 @@
...
@@ -373,10 +373,6 @@
9A47CF201CE50EBB00A6D5BA
/* BUYApplePayTestToken.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CF1F1CE50EBB00A6D5BA
/* BUYApplePayTestToken.m */
;
};
9A47CF201CE50EBB00A6D5BA
/* BUYApplePayTestToken.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CF1F1CE50EBB00A6D5BA
/* BUYApplePayTestToken.m */
;
};
9A47CF221CE5112A00A6D5BA
/* BUYAssert.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CF211CE5112A00A6D5BA
/* BUYAssert.h */
;
};
9A47CF221CE5112A00A6D5BA
/* BUYAssert.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CF211CE5112A00A6D5BA
/* BUYAssert.h */
;
};
9A47CF231CE5112A00A6D5BA
/* BUYAssert.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CF211CE5112A00A6D5BA
/* BUYAssert.h */
;
};
9A47CF231CE5112A00A6D5BA
/* BUYAssert.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CF211CE5112A00A6D5BA
/* BUYAssert.h */
;
};
9A53317E1CE5F92A0025964B
/* BUYRouter.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A53317C1CE5F9260025964B
/* BUYRouter.m */
;
};
9A53317F1CE5F92B0025964B
/* BUYRouter.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A53317C1CE5F9260025964B
/* BUYRouter.m */
;
};
9A5331801CE5F9310025964B
/* BUYRouter.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A53317B1CE5F9260025964B
/* BUYRouter.h */
;
};
9A5331811CE5F9310025964B
/* BUYRouter.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A53317B1CE5F9260025964B
/* BUYRouter.h */
;
};
9A6B03791CDA5D4F0054C26E
/* BUYAccountCredentialsTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A6B03781CDA5D4F0054C26E
/* BUYAccountCredentialsTests.m */
;
};
9A6B03791CDA5D4F0054C26E
/* BUYAccountCredentialsTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A6B03781CDA5D4F0054C26E
/* BUYAccountCredentialsTests.m */
;
};
9ABBCCA11CF5C9D10075B0C5
/* BUYFakeSafariController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9ABBCCA01CF5C9D10075B0C5
/* BUYFakeSafariController.m */
;
};
9ABBCCA11CF5C9D10075B0C5
/* BUYFakeSafariController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9ABBCCA01CF5C9D10075B0C5
/* BUYFakeSafariController.m */
;
};
B2653EC31CEF55CC0012D57D
/* BUYModelManager+ApplePay.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
B2653EC11CEF55CC0012D57D
/* BUYModelManager+ApplePay.h */
;
};
B2653EC31CEF55CC0012D57D
/* BUYModelManager+ApplePay.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
B2653EC11CEF55CC0012D57D
/* BUYModelManager+ApplePay.h */
;
};
...
@@ -647,6 +643,10 @@
...
@@ -647,6 +643,10 @@
9A0B0C761CEB5BBD0037D68F
/* BUYAuthenticatedResponse.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYAuthenticatedResponse.h
;
sourceTree
=
"<group>"
;
};
9A0B0C761CEB5BBD0037D68F
/* BUYAuthenticatedResponse.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYAuthenticatedResponse.h
;
sourceTree
=
"<group>"
;
};
9A0B0C771CEB5BBD0037D68F
/* BUYAuthenticatedResponse.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYAuthenticatedResponse.m
;
sourceTree
=
"<group>"
;
};
9A0B0C771CEB5BBD0037D68F
/* BUYAuthenticatedResponse.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYAuthenticatedResponse.m
;
sourceTree
=
"<group>"
;
};
9A0B0C821CEB981C0037D68F
/* BUYClient+RoutingTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"BUYClient+RoutingTests.m"
;
sourceTree
=
"<group>"
;
};
9A0B0C821CEB981C0037D68F
/* BUYClient+RoutingTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"BUYClient+RoutingTests.m"
;
sourceTree
=
"<group>"
;
};
90FC31A61B50371600AFAB51
/* BUYProductViewHeaderBackgroundImageView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
lineEnding
=
0
;
name
=
BUYProductViewHeaderBackgroundImageView.h
;
path
=
"Product View/BUYProductViewHeaderBackgroundImageView.h"
;
sourceTree
=
"<group>"
;
xcLanguageSpecificationIdentifier
=
xcode.lang.objcpp
;
};
90FC31A71B50371600AFAB51
/* BUYProductViewHeaderBackgroundImageView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
BUYProductViewHeaderBackgroundImageView.m
;
path
=
"Product View/BUYProductViewHeaderBackgroundImageView.m"
;
sourceTree
=
"<group>"
;
};
9A0B0C641CEA703E0037D68F
/* BUYClient+Routing.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"BUYClient+Routing.h"
;
sourceTree
=
"<group>"
;
};
9A0B0C651CEA703E0037D68F
/* BUYClient+Routing.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"BUYClient+Routing.m"
;
sourceTree
=
"<group>"
;
};
9A102D1A1CDD1F960026CC43
/* BUYErrorTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYErrorTests.m
;
sourceTree
=
"<group>"
;
};
9A102D1A1CDD1F960026CC43
/* BUYErrorTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYErrorTests.m
;
sourceTree
=
"<group>"
;
};
9A102D1D1CDD25980026CC43
/* BUYOptionValueTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYOptionValueTests.m
;
sourceTree
=
"<group>"
;
};
9A102D1D1CDD25980026CC43
/* BUYOptionValueTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYOptionValueTests.m
;
sourceTree
=
"<group>"
;
};
9A47CEF81CE39EC200A6D5BA
/* BUYPaymentToken.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYPaymentToken.h
;
sourceTree
=
"<group>"
;
};
9A47CEF81CE39EC200A6D5BA
/* BUYPaymentToken.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYPaymentToken.h
;
sourceTree
=
"<group>"
;
};
...
@@ -659,8 +659,6 @@
...
@@ -659,8 +659,6 @@
9A47CF1E1CE50EBB00A6D5BA
/* BUYApplePayTestToken.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYApplePayTestToken.h
;
sourceTree
=
"<group>"
;
};
9A47CF1E1CE50EBB00A6D5BA
/* BUYApplePayTestToken.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYApplePayTestToken.h
;
sourceTree
=
"<group>"
;
};
9A47CF1F1CE50EBB00A6D5BA
/* BUYApplePayTestToken.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYApplePayTestToken.m
;
sourceTree
=
"<group>"
;
};
9A47CF1F1CE50EBB00A6D5BA
/* BUYApplePayTestToken.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYApplePayTestToken.m
;
sourceTree
=
"<group>"
;
};
9A47CF211CE5112A00A6D5BA
/* BUYAssert.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
BUYAssert.h
;
path
=
../Additions/BUYAssert.h
;
sourceTree
=
"<group>"
;
};
9A47CF211CE5112A00A6D5BA
/* BUYAssert.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
BUYAssert.h
;
path
=
../Additions/BUYAssert.h
;
sourceTree
=
"<group>"
;
};
9A53317B1CE5F9260025964B
/* BUYRouter.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYRouter.h
;
sourceTree
=
"<group>"
;
};
9A53317C1CE5F9260025964B
/* BUYRouter.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYRouter.m
;
sourceTree
=
"<group>"
;
};
9A6B03781CDA5D4F0054C26E
/* BUYAccountCredentialsTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYAccountCredentialsTests.m
;
sourceTree
=
"<group>"
;
};
9A6B03781CDA5D4F0054C26E
/* BUYAccountCredentialsTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYAccountCredentialsTests.m
;
sourceTree
=
"<group>"
;
};
9ABBCC9F1CF5C9D10075B0C5
/* BUYFakeSafariController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYFakeSafariController.h
;
sourceTree
=
"<group>"
;
};
9ABBCC9F1CF5C9D10075B0C5
/* BUYFakeSafariController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYFakeSafariController.h
;
sourceTree
=
"<group>"
;
};
9ABBCCA01CF5C9D10075B0C5
/* BUYFakeSafariController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYFakeSafariController.m
;
sourceTree
=
"<group>"
;
};
9ABBCCA01CF5C9D10075B0C5
/* BUYFakeSafariController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYFakeSafariController.m
;
sourceTree
=
"<group>"
;
};
...
@@ -1148,8 +1146,6 @@
...
@@ -1148,8 +1146,6 @@
children
=
(
children
=
(
8498DCB01CDD1B4A00BD12A8
/* BUYClient+Internal.h */
,
8498DCB01CDD1B4A00BD12A8
/* BUYClient+Internal.h */
,
8498DCB01CDD1B4A00BD12A8
/* BUYClient_Internal.h */
,
8498DCB01CDD1B4A00BD12A8
/* BUYClient_Internal.h */
,
9A53317B1CE5F9260025964B
/* BUYRouter.h */
,
9A53317C1CE5F9260025964B
/* BUYRouter.m */
,
F7FDA17019C93F6F00AF4E93
/* BUYClient.h */
,
F7FDA17019C93F6F00AF4E93
/* BUYClient.h */
,
F7FDA17119C93F6F00AF4E93
/* BUYClient.m */
,
F7FDA17119C93F6F00AF4E93
/* BUYClient.m */
,
9A0B0C641CEA703E0037D68F
/* BUYClient+Routing.h */
,
9A0B0C641CEA703E0037D68F
/* BUYClient+Routing.h */
,
...
@@ -1252,7 +1248,6 @@
...
@@ -1252,7 +1248,6 @@
9019315E1BC5B9BC00D1134E
/* BUYError.h in Headers */
,
9019315E1BC5B9BC00D1134E
/* BUYError.h in Headers */
,
84980F371CB75C2900CFAB58
/* NSPropertyDescription+BUYAdditions.h in Headers */
,
84980F371CB75C2900CFAB58
/* NSPropertyDescription+BUYAdditions.h in Headers */
,
9019315F1BC5B9BC00D1134E
/* BUYProductHeaderCell.h in Headers */
,
9019315F1BC5B9BC00D1134E
/* BUYProductHeaderCell.h in Headers */
,
9A5331801CE5F9310025964B
/* BUYRouter.h in Headers */
,
901931601BC5B9BC00D1134E
/* BUYProductViewErrorView.h in Headers */
,
901931601BC5B9BC00D1134E
/* BUYProductViewErrorView.h in Headers */
,
901931611BC5B9BC00D1134E
/* BUYClient.h in Headers */
,
901931611BC5B9BC00D1134E
/* BUYClient.h in Headers */
,
9A0B0C791CEB5BBD0037D68F
/* BUYAuthenticatedResponse.h in Headers */
,
9A0B0C791CEB5BBD0037D68F
/* BUYAuthenticatedResponse.h in Headers */
,
...
@@ -1354,7 +1349,6 @@
...
@@ -1354,7 +1349,6 @@
BE47340F1B66C4EF00AA721A
/* BUYError.h in Headers */
,
BE47340F1B66C4EF00AA721A
/* BUYError.h in Headers */
,
84980F361CB75C2900CFAB58
/* NSPropertyDescription+BUYAdditions.h in Headers */
,
84980F361CB75C2900CFAB58
/* NSPropertyDescription+BUYAdditions.h in Headers */
,
BEB74A6D1B5564200005A300
/* BUYProductHeaderCell.h in Headers */
,
BEB74A6D1B5564200005A300
/* BUYProductHeaderCell.h in Headers */
,
9A5331811CE5F9310025964B
/* BUYRouter.h in Headers */
,
903BCC7C1B7D1C2D00C21FEB
/* BUYProductViewErrorView.h in Headers */
,
903BCC7C1B7D1C2D00C21FEB
/* BUYProductViewErrorView.h in Headers */
,
BE9A64471B503C8B0033E558
/* BUYClient.h in Headers */
,
BE9A64471B503C8B0033E558
/* BUYClient.h in Headers */
,
9A0B0C781CEB5BBD0037D68F
/* BUYAuthenticatedResponse.h in Headers */
,
9A0B0C781CEB5BBD0037D68F
/* BUYAuthenticatedResponse.h in Headers */
,
...
@@ -1587,7 +1581,6 @@
...
@@ -1587,7 +1581,6 @@
9A0B0C7B1CEB5BBD0037D68F
/* BUYAuthenticatedResponse.m in Sources */
,
9A0B0C7B1CEB5BBD0037D68F
/* BUYAuthenticatedResponse.m in Sources */
,
901930F21BC5B9BC00D1134E
/* BUYOrder.m in Sources */
,
901930F21BC5B9BC00D1134E
/* BUYOrder.m in Sources */
,
849810991CB7E07900CFAB58
/* BUYFlatCollectionTransformer.m in Sources */
,
849810991CB7E07900CFAB58
/* BUYFlatCollectionTransformer.m in Sources */
,
9A53317F1CE5F92B0025964B
/* BUYRouter.m in Sources */
,
84DD12A41CC63FE600A2442D
/* _BUYLineItem.m in Sources */
,
84DD12A41CC63FE600A2442D
/* _BUYLineItem.m in Sources */
,
84DD12CC1CC63FEE00A2442D
/* _BUYTaxLine.m in Sources */
,
84DD12CC1CC63FEE00A2442D
/* _BUYTaxLine.m in Sources */
,
84DD12CA1CC63FEE00A2442D
/* _BUYShippingRate.m in Sources */
,
84DD12CA1CC63FEE00A2442D
/* _BUYShippingRate.m in Sources */
,
...
@@ -1725,7 +1718,6 @@
...
@@ -1725,7 +1718,6 @@
9A0B0C7A1CEB5BBD0037D68F
/* BUYAuthenticatedResponse.m in Sources */
,
9A0B0C7A1CEB5BBD0037D68F
/* BUYAuthenticatedResponse.m in Sources */
,
90E83BC51B9F550E00C95A1B
/* BUYOrder.m in Sources */
,
90E83BC51B9F550E00C95A1B
/* BUYOrder.m in Sources */
,
849810981CB7E07900CFAB58
/* BUYFlatCollectionTransformer.m in Sources */
,
849810981CB7E07900CFAB58
/* BUYFlatCollectionTransformer.m in Sources */
,
9A53317E1CE5F92A0025964B
/* BUYRouter.m in Sources */
,
84DD128C1CC63FE600A2442D
/* _BUYLineItem.m in Sources */
,
84DD128C1CC63FE600A2442D
/* _BUYLineItem.m in Sources */
,
84DD12BE1CC63FEE00A2442D
/* _BUYTaxLine.m in Sources */
,
84DD12BE1CC63FEE00A2442D
/* _BUYTaxLine.m in Sources */
,
84DD12BC1CC63FEE00A2442D
/* _BUYShippingRate.m in Sources */
,
84DD12BC1CC63FEE00A2442D
/* _BUYShippingRate.m in Sources */
,
...
...
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Customers.m
View file @
194a406e
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#import "BUYAuthenticatedResponse.h"
#import "BUYAuthenticatedResponse.h"
#import "BUYOrder.h"
#import "BUYOrder.h"
#import "BUYShopifyErrorCodes.h"
#import "BUYShopifyErrorCodes.h"
#import "BUYRouter.h"
@implementation
BUYClient
(
Customers
)
@implementation
BUYClient
(
Customers
)
...
...
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient.m
View file @
194a406e
...
@@ -25,6 +25,8 @@
...
@@ -25,6 +25,8 @@
//
//
#import "BUYClient+Internal.h"
#import "BUYClient+Internal.h"
#import "BUYClient+Routing.h"
#import "BUYAssert.h"
#import "BUYAssert.h"
#import "BUYModelManager.h"
#import "BUYModelManager.h"
...
@@ -38,7 +40,6 @@ static NSString * const BUYClientJSONMimeType = @"application/json";
...
@@ -38,7 +40,6 @@ static NSString * const BUYClientJSONMimeType = @"application/json";
@property
(
nonatomic
,
strong
)
NSURLSession
*
session
;
@property
(
nonatomic
,
strong
)
NSURLSession
*
session
;
@property
(
nonatomic
,
strong
)
NSString
*
merchantId
;
@property
(
nonatomic
,
strong
)
NSString
*
merchantId
;
@property
(
nonatomic
,
strong
)
BUYRouter
*
router
;
@end
@end
...
@@ -59,7 +60,6 @@ static NSString * const BUYClientJSONMimeType = @"application/json";
...
@@ -59,7 +60,6 @@ static NSString * const BUYClientJSONMimeType = @"application/json";
self
=
[
super
init
];
self
=
[
super
init
];
if
(
self
)
{
if
(
self
)
{
self
.
router
=
[[
BUYRouter
alloc
]
initWithShopDomain
:
shopDomain
appID
:
appId
];
self
.
modelManager
=
[
BUYModelManager
modelManager
];
self
.
modelManager
=
[
BUYModelManager
modelManager
];
self
.
shopDomain
=
shopDomain
;
self
.
shopDomain
=
shopDomain
;
self
.
apiKey
=
apiKey
;
self
.
apiKey
=
apiKey
;
...
...
Mobile Buy SDK/Mobile Buy SDK/Data/BUYRouter.h
deleted
100644 → 0
View file @
3f817423
//
// BUYRouter.h
// Mobile Buy SDK
//
// Created by Shopify.
// Copyright (c) 2015 Shopify Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
#import <Foundation/Foundation.h>
@interface
BUYRoute
:
NSObject
@property
(
strong
,
nonatomic
,
readonly
)
NSURL
*
URL
;
@property
(
strong
,
nonatomic
,
readonly
)
NSDictionary
*
queryItems
;
-
(
void
)
setQueryItems
:(
NSDictionary
*
)
queryItems
;
@end
@interface
BUYRouter
:
NSObject
-
(
instancetype
)
initWithShopDomain
:(
NSString
*
)
shopDomain
appID
:(
NSString
*
)
appID
;
-
(
BUYRoute
*
)
routeForAPI
;
-
(
BUYRoute
*
)
routeForApps
;
-
(
BUYRoute
*
)
routeForShop
;
-
(
BUYRoute
*
)
routeForProductListings
;
-
(
BUYRoute
*
)
routeForCollectionListings
;
-
(
BUYRoute
*
)
routeForCheckouts
;
-
(
BUYRoute
*
)
routeForCheckoutsWithToken
:(
NSString
*
)
token
;
-
(
BUYRoute
*
)
routeForCheckoutsProcessingWithToken
:(
NSString
*
)
token
;
-
(
BUYRoute
*
)
routeForCheckoutsCompletionWithToken
:(
NSString
*
)
token
;
-
(
BUYRoute
*
)
routeForCheckoutsShippingRatesWithToken
:(
NSString
*
)
token
;
-
(
BUYRoute
*
)
routeForCheckoutsUsingGiftCard
;
-
(
BUYRoute
*
)
routeForCheckoutsUsingGiftCardWithToken
:(
NSString
*
)
token
;
-
(
BUYRoute
*
)
routeForCheckoutsUsingGiftCard
:(
NSNumber
*
)
giftCardID
token
:(
NSString
*
)
token
;
-
(
BUYRoute
*
)
routeForCustomers
;
-
(
BUYRoute
*
)
routeForCustomersOrders
;
-
(
BUYRoute
*
)
routeForCustomersWithID
:(
NSString
*
)
identifier
;
-
(
BUYRoute
*
)
routeForCustomersActivationWithID
:(
NSString
*
)
identifier
;
-
(
BUYRoute
*
)
routeForCustomersToken
;
-
(
BUYRoute
*
)
routeForCustomersTokenRenewalWithID
:(
NSString
*
)
customerID
;
-
(
BUYRoute
*
)
routeForCustomersPasswordRecovery
;
-
(
BUYRoute
*
)
routeForCustomersPasswordResetWithID
:(
NSString
*
)
identifier
;
@end
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