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
30aec93d
Commit
30aec93d
authored
May 26, 2016
by
Gabriel O'Flaherty-Chan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expose customer keys
parent
cd8412eb
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
15 deletions
+21
-15
BUYAccountCredentialsTests.m
...Buy SDK/Mobile Buy SDK Tests/BUYAccountCredentialsTests.m
+5
-5
BUYClientTest.m
Mobile Buy SDK/Mobile Buy SDK Tests/BUYClientTest.m
+5
-5
BUYAccountCredentials.h
Mobile Buy SDK/Mobile Buy SDK/Models/BUYAccountCredentials.h
+6
-0
BUYAccountCredentials.m
Mobile Buy SDK/Mobile Buy SDK/Models/BUYAccountCredentials.m
+5
-5
No files found.
Mobile Buy SDK/Mobile Buy SDK Tests/BUYAccountCredentialsTests.m
View file @
30aec93d
...
@@ -87,11 +87,11 @@
...
@@ -87,11 +87,11 @@
XCTAssertNotNil
(
json
);
XCTAssertNotNil
(
json
);
XCTAssertEqual
(
json
.
count
,
1
);
XCTAssertEqual
(
json
.
count
,
1
);
XCTAssertNotNil
(
customer
);
XCTAssertNotNil
(
customer
);
XCTAssertEqual
(
customer
[
@"email"
],
@"john@doe.com"
);
XCTAssertEqual
(
customer
[
BUYAccountEmailKey
],
@"john@doe.com"
);
XCTAssertEqual
(
customer
[
@"first_name"
],
@"John"
);
XCTAssertEqual
(
customer
[
BUYAccountFirstNameKey
],
@"John"
);
XCTAssertEqual
(
customer
[
@"last_name"
],
@"Doe"
);
XCTAssertEqual
(
customer
[
BUYAccountLastNameKey
],
@"Doe"
);
XCTAssertEqual
(
customer
[
@"password"
],
@"pass"
);
XCTAssertEqual
(
customer
[
BUYAccountPasswordKey
],
@"pass"
);
XCTAssertEqual
(
customer
[
@"password_confirmation"
],
@"pass"
);
XCTAssertEqual
(
customer
[
BUYAccountPasswordConfirmationKey
],
@"pass"
);
}
}
#pragma mark - Utilities -
#pragma mark - Utilities -
...
...
Mobile Buy SDK/Mobile Buy SDK Tests/BUYClientTest.m
View file @
30aec93d
...
@@ -309,11 +309,11 @@ NSString * const BUYFakeCustomerToken = @"dsfasdgafdg";
...
@@ -309,11 +309,11 @@ NSString * const BUYFakeCustomerToken = @"dsfasdgafdg";
XCTAssertNil
(
error
);
XCTAssertNil
(
error
);
NSDictionary
*
dict
=
@{
@"customer"
:
@{
NSDictionary
*
dict
=
@{
@"customer"
:
@{
@"first_name"
:
@"michael"
,
BUYAccountFirstNameKey
:
@"michael"
,
@"last_name"
:
@"scott"
,
BUYAccountLastNameKey
:
@"scott"
,
@"email"
:
@"fake@example.com"
,
BUYAccountEmailKey
:
@"fake@example.com"
,
@"password"
:
@"password"
,
BUYAccountPasswordKey
:
@"password"
,
@"password_confirmation"
:
@"password"
BUYAccountPasswordConfirmationKey
:
@"password"
}};
}};
XCTAssertEqualObjects
(
payload
,
dict
);
XCTAssertEqualObjects
(
payload
,
dict
);
}
}
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/BUYAccountCredentials.h
View file @
30aec93d
...
@@ -27,6 +27,12 @@
...
@@ -27,6 +27,12 @@
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
OBJC_EXTERN
NSString
*
const
BUYAccountFirstNameKey
;
OBJC_EXTERN
NSString
*
const
BUYAccountLastNameKey
;
OBJC_EXTERN
NSString
*
const
BUYAccountEmailKey
;
OBJC_EXTERN
NSString
*
const
BUYAccountPasswordKey
;
OBJC_EXTERN
NSString
*
const
BUYAccountPasswordConfirmationKey
;
@class
BUYAccountCredentialItem
;
@class
BUYAccountCredentialItem
;
/**
/**
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/BUYAccountCredentials.m
View file @
30aec93d
...
@@ -27,11 +27,11 @@
...
@@ -27,11 +27,11 @@
#import "BUYAccountCredentials.h"
#import "BUYAccountCredentials.h"
#import "BUYAssert.h"
#import "BUYAssert.h"
static
NSString
*
const
BUYAccountFirstNameKey
=
@"first_name"
;
NSString
*
const
BUYAccountFirstNameKey
=
@"first_name"
;
static
NSString
*
const
BUYAccountLastNameKey
=
@"last_name"
;
NSString
*
const
BUYAccountLastNameKey
=
@"last_name"
;
static
NSString
*
const
BUYAccountEmailKey
=
@"email"
;
NSString
*
const
BUYAccountEmailKey
=
@"email"
;
static
NSString
*
const
BUYAccountPasswordKey
=
@"password"
;
NSString
*
const
BUYAccountPasswordKey
=
@"password"
;
static
NSString
*
const
BUYAccountPasswordConfirmationKey
=
@"password_confirmation"
;
NSString
*
const
BUYAccountPasswordConfirmationKey
=
@"password_confirmation"
;
#pragma mark - BUYAccountCredentials -
#pragma mark - BUYAccountCredentials -
@interface
BUYAccountCredentials
()
@interface
BUYAccountCredentials
()
...
...
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