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
14a6cc45
Commit
14a6cc45
authored
Apr 28, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add BUYCustomer object.
parent
8cfe7c1a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
99 additions
and
0 deletions
+99
-0
project.pbxproj
Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj
+18
-0
Buy.h
Mobile Buy SDK/Mobile Buy SDK/Buy.h
+1
-0
BUYCustomer.h
Mobile Buy SDK/Mobile Buy SDK/Models/BUYCustomer.h
+45
-0
BUYCustomer.m
Mobile Buy SDK/Mobile Buy SDK/Models/BUYCustomer.m
+34
-0
Buy.h
Mobile Buy SDK/Mobile Buy SDK/Static Framework/Buy.h
+1
-0
No files found.
Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj
View file @
14a6cc45
...
@@ -244,6 +244,10 @@
...
@@ -244,6 +244,10 @@
90F593091B0D5F4C0026B382
/* BUYClientTest.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
90F592FD1B0D5F4C0026B382
/* BUYClientTest.m */
;
};
90F593091B0D5F4C0026B382
/* BUYClientTest.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
90F592FD1B0D5F4C0026B382
/* BUYClientTest.m */
;
};
90F5930A1B0D5F4C0026B382
/* BUYLineItemTest.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
90F592FE1B0D5F4C0026B382
/* BUYLineItemTest.m */
;
};
90F5930A1B0D5F4C0026B382
/* BUYLineItemTest.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
90F592FE1B0D5F4C0026B382
/* BUYLineItemTest.m */
;
};
90F5930B1B0D5F4C0026B382
/* BUYObjectTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
90F592FF1B0D5F4C0026B382
/* BUYObjectTests.m */
;
};
90F5930B1B0D5F4C0026B382
/* BUYObjectTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
90F592FF1B0D5F4C0026B382
/* BUYObjectTests.m */
;
};
9A3B2DC91CD27D5B00BFF49C
/* BUYCustomer.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A3B2DC71CD27D5B00BFF49C
/* BUYCustomer.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9A3B2DCA1CD27D5B00BFF49C
/* BUYCustomer.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A3B2DC71CD27D5B00BFF49C
/* BUYCustomer.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9A3B2DCB1CD27D5B00BFF49C
/* BUYCustomer.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A3B2DC81CD27D5B00BFF49C
/* BUYCustomer.m */
;
};
9A3B2DCC1CD27D5B00BFF49C
/* BUYCustomer.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A3B2DC81CD27D5B00BFF49C
/* BUYCustomer.m */
;
};
BE1007951B6038150031CEE7
/* BUYProductVariant+Options.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE1007931B6038150031CEE7
/* BUYProductVariant+Options.h */
;
};
BE1007951B6038150031CEE7
/* BUYProductVariant+Options.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE1007931B6038150031CEE7
/* BUYProductVariant+Options.h */
;
};
BE1007961B6038150031CEE7
/* BUYProductVariant+Options.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE1007941B6038150031CEE7
/* BUYProductVariant+Options.m */
;
};
BE1007961B6038150031CEE7
/* BUYProductVariant+Options.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE1007941B6038150031CEE7
/* BUYProductVariant+Options.m */
;
};
BE10079B1B6165EC0031CEE7
/* BUYOptionValueCell.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE1007991B6165EC0031CEE7
/* BUYOptionValueCell.h */
;
};
BE10079B1B6165EC0031CEE7
/* BUYOptionValueCell.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE1007991B6165EC0031CEE7
/* BUYOptionValueCell.h */
;
};
...
@@ -498,6 +502,8 @@
...
@@ -498,6 +502,8 @@
90F593001B0D5F4C0026B382
/* BUYTestConstants.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYTestConstants.h
;
sourceTree
=
"<group>"
;
};
90F593001B0D5F4C0026B382
/* BUYTestConstants.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYTestConstants.h
;
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
;
};
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>"
;
};
90FC31A71B50371600AFAB51
/* BUYProductViewHeaderBackgroundImageView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
BUYProductViewHeaderBackgroundImageView.m
;
path
=
"Product View/BUYProductViewHeaderBackgroundImageView.m"
;
sourceTree
=
"<group>"
;
};
9A3B2DC71CD27D5B00BFF49C
/* BUYCustomer.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYCustomer.h
;
sourceTree
=
"<group>"
;
};
9A3B2DC81CD27D5B00BFF49C
/* BUYCustomer.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYCustomer.m
;
sourceTree
=
"<group>"
;
};
BE1007931B6038150031CEE7
/* BUYProductVariant+Options.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"BUYProductVariant+Options.h"
;
sourceTree
=
"<group>"
;
};
BE1007931B6038150031CEE7
/* BUYProductVariant+Options.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"BUYProductVariant+Options.h"
;
sourceTree
=
"<group>"
;
};
BE1007941B6038150031CEE7
/* BUYProductVariant+Options.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"BUYProductVariant+Options.m"
;
sourceTree
=
"<group>"
;
};
BE1007941B6038150031CEE7
/* BUYProductVariant+Options.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"BUYProductVariant+Options.m"
;
sourceTree
=
"<group>"
;
};
BE1007991B6165EC0031CEE7
/* BUYOptionValueCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYOptionValueCell.h
;
sourceTree
=
"<group>"
;
};
BE1007991B6165EC0031CEE7
/* BUYOptionValueCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYOptionValueCell.h
;
sourceTree
=
"<group>"
;
};
...
@@ -873,6 +879,10 @@
...
@@ -873,6 +879,10 @@
841ADE2A1CB6F31C000004B0
/* Transient */
,
841ADE2A1CB6F31C000004B0
/* Transient */
,
F77374AA19C796BD0039681C
/* BUYCreditCard.h */
,
F77374AA19C796BD0039681C
/* BUYCreditCard.h */
,
F77374AB19C796BD0039681C
/* BUYCreditCard.m */
,
F77374AB19C796BD0039681C
/* BUYCreditCard.m */
,
9A3B2DC71CD27D5B00BFF49C
/* BUYCustomer.h */
,
9A3B2DC81CD27D5B00BFF49C
/* BUYCustomer.m */
,
90AFAA681B0139DE00F21C23
/* BUYDiscount.h */
,
90AFAA691B0139DE00F21C23
/* BUYDiscount.m */
,
BE47340D1B66C4EF00AA721A
/* BUYError.h */
,
BE47340D1B66C4EF00AA721A
/* BUYError.h */
,
BE47340E1B66C4EF00AA721A
/* BUYError.m */
,
BE47340E1B66C4EF00AA721A
/* BUYError.m */
,
2AF52A931A7010B20087DB2C
/* BUYObject.h */
,
2AF52A931A7010B20087DB2C
/* BUYObject.h */
,
...
@@ -1016,6 +1026,8 @@
...
@@ -1016,6 +1026,8 @@
901931611BC5B9BC00D1134E
/* BUYClient.h in Headers */
,
901931611BC5B9BC00D1134E
/* BUYClient.h in Headers */
,
901931631BC5B9BC00D1134E
/* BUYGradientView.h in Headers */
,
901931631BC5B9BC00D1134E
/* BUYGradientView.h in Headers */
,
901931641BC5B9BC00D1134E
/* BUYCartLineItem.h in Headers */
,
901931641BC5B9BC00D1134E
/* BUYCartLineItem.h in Headers */
,
901931651BC5B9BC00D1134E
/* NSDecimalNumber+BUYAdditions.h in Headers */
,
9A3B2DCA1CD27D5B00BFF49C
/* BUYCustomer.h in Headers */
,
901931661BC5B9BC00D1134E
/* BUYCheckout.h in Headers */
,
901931661BC5B9BC00D1134E
/* BUYCheckout.h in Headers */
,
901931671BC5B9BC00D1134E
/* BUYCart.h in Headers */
,
901931671BC5B9BC00D1134E
/* BUYCart.h in Headers */
,
901931681BC5B9BC00D1134E
/* BUYProductViewController.h in Headers */
,
901931681BC5B9BC00D1134E
/* BUYProductViewController.h in Headers */
,
...
@@ -1095,6 +1107,8 @@
...
@@ -1095,6 +1107,8 @@
BE9A64471B503C8B0033E558
/* BUYClient.h in Headers */
,
BE9A64471B503C8B0033E558
/* BUYClient.h in Headers */
,
BEB74A651B5563FF0005A300
/* BUYGradientView.h in Headers */
,
BEB74A651B5563FF0005A300
/* BUYGradientView.h in Headers */
,
9003969B1B601DF400226B73
/* BUYCartLineItem.h in Headers */
,
9003969B1B601DF400226B73
/* BUYCartLineItem.h in Headers */
,
BE9A64701B503D230033E558
/* NSDecimalNumber+BUYAdditions.h in Headers */
,
9A3B2DC91CD27D5B00BFF49C
/* BUYCustomer.h in Headers */
,
BE9A644B1B503C9B0033E558
/* BUYCheckout.h in Headers */
,
BE9A644B1B503C9B0033E558
/* BUYCheckout.h in Headers */
,
BE9A64491B503C940033E558
/* BUYCart.h in Headers */
,
BE9A64491B503C940033E558
/* BUYCart.h in Headers */
,
BEB74A2D1B554E870005A300
/* BUYProductViewController.h in Headers */
,
BEB74A2D1B554E870005A300
/* BUYProductViewController.h in Headers */
,
...
@@ -1296,6 +1310,8 @@
...
@@ -1296,6 +1310,8 @@
901930FD1BC5B9BC00D1134E
/* BUYTaxLine.m in Sources */
,
901930FD1BC5B9BC00D1134E
/* BUYTaxLine.m in Sources */
,
901930FE1BC5B9BC00D1134E
/* BUYCollection+Additions.m in Sources */
,
901930FE1BC5B9BC00D1134E
/* BUYCollection+Additions.m in Sources */
,
901930FF1BC5B9BC00D1134E
/* BUYVariantOptionBreadCrumbsView.m in Sources */
,
901930FF1BC5B9BC00D1134E
/* BUYVariantOptionBreadCrumbsView.m in Sources */
,
9A3B2DCC1CD27D5B00BFF49C
/* BUYCustomer.m in Sources */
,
901931001BC5B9BC00D1134E
/* NSURL+BUYAdditions.m in Sources */
,
901931011BC5B9BC00D1134E
/* BUYTheme+Additions.m in Sources */
,
901931011BC5B9BC00D1134E
/* BUYTheme+Additions.m in Sources */
,
901931021BC5B9BC00D1134E
/* BUYStoreViewController.m in Sources */
,
901931021BC5B9BC00D1134E
/* BUYStoreViewController.m in Sources */
,
901931031BC5B9BC00D1134E
/* BUYOptionValue.m in Sources */
,
901931031BC5B9BC00D1134E
/* BUYOptionValue.m in Sources */
,
...
@@ -1401,6 +1417,8 @@
...
@@ -1401,6 +1417,8 @@
BE9A64521B503CB80033E558
/* BUYTaxLine.m in Sources */
,
BE9A64521B503CB80033E558
/* BUYTaxLine.m in Sources */
,
900396F71B69563400226B73
/* BUYCollection+Additions.m in Sources */
,
900396F71B69563400226B73
/* BUYCollection+Additions.m in Sources */
,
90DE92711B9897B6002EF4DA
/* BUYVariantOptionBreadCrumbsView.m in Sources */
,
90DE92711B9897B6002EF4DA
/* BUYVariantOptionBreadCrumbsView.m in Sources */
,
9A3B2DCB1CD27D5B00BFF49C
/* BUYCustomer.m in Sources */
,
BE5DC3A11B71B13700B2BC1E
/* NSURL+BUYAdditions.m in Sources */
,
906EAE441B836DE000976165
/* BUYTheme+Additions.m in Sources */
,
906EAE441B836DE000976165
/* BUYTheme+Additions.m in Sources */
,
BE9A647F1B503D960033E558
/* BUYStoreViewController.m in Sources */
,
BE9A647F1B503D960033E558
/* BUYStoreViewController.m in Sources */
,
BE9A64691B503D0C0033E558
/* BUYOptionValue.m in Sources */
,
BE9A64691B503D0C0033E558
/* BUYOptionValue.m in Sources */
,
...
...
Mobile Buy SDK/Mobile Buy SDK/Buy.h
View file @
14a6cc45
...
@@ -39,6 +39,7 @@ FOUNDATION_EXPORT const unsigned char BuyVersionString[];
...
@@ -39,6 +39,7 @@ FOUNDATION_EXPORT const unsigned char BuyVersionString[];
#import <Buy/BUYCheckoutAttribute.h>
#import <Buy/BUYCheckoutAttribute.h>
#import <Buy/BUYCollection.h>
#import <Buy/BUYCollection.h>
#import <Buy/BUYCreditCard.h>
#import <Buy/BUYCreditCard.h>
#import <Buy/BUYCustomer.h>
#import <Buy/BUYDiscount.h>
#import <Buy/BUYDiscount.h>
#import <Buy/BUYGiftCard.h>
#import <Buy/BUYGiftCard.h>
#import <Buy/BUYImage.h>
#import <Buy/BUYImage.h>
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/BUYCustomer.h
0 → 100644
View file @
14a6cc45
//
// BUYCustomer.h
// Mobile Buy SDK
//
// Created by Dima Bart on 2016-04-28.
// Copyright © 2016 Shopify Inc. All rights reserved.
//
#import "BUYObject.h"
@interface
BUYCustomer
:
BUYObject
@property
(
nonatomic
,
assign
)
BOOL
taxExempt
;
@property
(
nonatomic
,
assign
)
BOOL
verifiedEmail
;
@property
(
nonatomic
,
assign
)
BOOL
acceptsMarketing
;
@property
(
nonatomic
,
assign
)
BOOL
customerState
;
@property
(
nonatomic
,
strong
)
NSString
*
email
;
@property
(
nonatomic
,
strong
)
NSString
*
firstName
;
@property
(
nonatomic
,
strong
)
NSString
*
lastName
;
@property
(
nonatomic
,
strong
)
NSNumber
*
lastOrderID
;
@property
(
nonatomic
,
strong
)
NSString
*
lastOrderName
;
@property
(
nonatomic
,
strong
)
NSString
*
multipassIdentifier
;
@property
(
nonatomic
,
strong
)
NSString
*
note
;
@property
(
nonatomic
,
strong
)
NSString
*
tags
;
@property
(
nonatomic
,
strong
)
NSNumber
*
ordersCount
;
@property
(
nonatomic
,
strong
)
NSDecimalNumber
*
totalSpent
;
@property
(
nonatomic
,
strong
)
NSDate
*
createdAt
;
@property
(
nonatomic
,
strong
)
NSDate
*
updatedAt
;
@end
Mobile Buy SDK/Mobile Buy SDK/Models/BUYCustomer.m
0 → 100644
View file @
14a6cc45
//
// BUYCustomer.m
// Mobile Buy SDK
//
// Created by Dima Bart on 2016-04-28.
// Copyright © 2016 Shopify Inc. All rights reserved.
//
#import "BUYCustomer.h"
@implementation
BUYCustomer
-
(
void
)
updateWithDictionary
:(
NSDictionary
*
)
dictionary
{
[
super
updateWithDictionary
:
dictionary
];
_taxExempt
=
dictionary
[
@"tax_exempt"
];
_verifiedEmail
=
dictionary
[
@"verified_email"
];
_acceptsMarketing
=
dictionary
[
@"accepts_marketing"
];
_customerState
=
dictionary
[
@"customer_state"
];
_email
=
dictionary
[
@"email"
];
_firstName
=
dictionary
[
@"first_name"
];
_lastName
=
dictionary
[
@"last_name"
];
_lastOrderID
=
dictionary
[
@"last_order_id"
];
_lastOrderName
=
dictionary
[
@"last_order_name"
];
_multipassIdentifier
=
dictionary
[
@"multipass_identifier"
];
_note
=
dictionary
[
@"note"
];
_tags
=
dictionary
[
@"tags"
];
_ordersCount
=
dictionary
[
@"orders_count"
];
_totalSpent
=
dictionary
[
@"total_spent"
];
_createdAt
=
dictionary
[
@"created_at"
];
_updatedAt
=
dictionary
[
@"updated_at"
];
}
@end
Mobile Buy SDK/Mobile Buy SDK/Static Framework/Buy.h
View file @
14a6cc45
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#import "BUYCheckoutAttribute.h"
#import "BUYCheckoutAttribute.h"
#import "BUYCollection.h"
#import "BUYCollection.h"
#import "BUYCreditCard.h"
#import "BUYCreditCard.h"
#import "BUYCustomer.h"
#import "BUYDiscount.h"
#import "BUYDiscount.h"
#import "BUYGiftCard.h"
#import "BUYGiftCard.h"
#import "BUYImage.h"
#import "BUYImage.h"
...
...
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