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
2025e5fe
Commit
2025e5fe
authored
Jun 07, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add nullability annotations to util classes.
parent
2d7c1eed
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
BUYApplePayAdditions.h
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYApplePayAdditions.h
+6
-3
BUYError+BUYAdditions.h
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYError+BUYAdditions.h
+9
-1
BUYModelManager+ApplePay.h
...e Buy SDK/Mobile Buy SDK/Utils/BUYModelManager+ApplePay.h
+4
-1
No files found.
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYApplePayAdditions.h
View file @
2025e5fe
...
...
@@ -30,6 +30,7 @@
#import <Buy/BUYCheckout.h>
#import <Buy/BUYShippingRate.h>
#import <Buy/BUYAddress.h>
NS_ASSUME_NONNULL_BEGIN
@interface
BUYCheckout
(
ApplePay
)
...
...
@@ -37,7 +38,7 @@
* Returns an array of summary items for all Apple Pay requests. Will use 'PAY TOTAL' as the summary label. Apple recommends
* including the business name in the summary label, so it is recommended to use `buy_summaryItemsWithShopName` instead.
*/
-
(
nonnull
NSArray
<
PKPaymentSummaryItem
*>
*
)
buy_summaryItems
;
-
(
NSArray
<
PKPaymentSummaryItem
*>
*
)
buy_summaryItems
;
/**
* Returns an array of summary items for all Apple Pay requests using the shop name in the "PAY" section
...
...
@@ -46,7 +47,7 @@
*
* @return An array of PKPaymentSummaryItems
*/
-
(
nonnull
NSArray
<
PKPaymentSummaryItem
*>
*
)
buy_summaryItemsWithShopName
:(
nullable
NSString
*
)
shopName
;
-
(
NSArray
<
PKPaymentSummaryItem
*>
*
)
buy_summaryItemsWithShopName
:(
nullable
NSString
*
)
shopName
;
@end
...
...
@@ -59,7 +60,7 @@
*
* @return An array of PKShippingMethods
*/
+
(
nonnull
NSArray
<
PKShippingMethod
*>
*
)
buy_convertShippingRatesToShippingMethods
:(
nonnull
NSArray
<
BUYShippingRate
*>
*
)
rates
;
+
(
NSArray
<
PKShippingMethod
*>
*
)
buy_convertShippingRatesToShippingMethods
:(
NSArray
<
BUYShippingRate
*>
*
)
rates
;
@end
...
...
@@ -72,3 +73,5 @@
-
(
void
)
updateWithContact
:(
nullable
PKContact
*
)
contact
NS_AVAILABLE_IOS
(
9
_0
);
@end
NS_ASSUME_NONNULL_END
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYError+BUYAdditions.h
View file @
2025e5fe
...
...
@@ -25,12 +25,20 @@
//
#import <Buy/BUYError.h>
NS_ASSUME_NONNULL_BEGIN
@interface
BUYError
(
Checkout
)
+
(
NSArray
<
BUYError
*>
*
)
errorsFromCheckoutJSON
:(
NSDictionary
*
)
json
;
@property
(
readonly
)
NSString
*
quantityRemainingMessage
;
+
(
nullable
NSArray
<
BUYError
*>
*
)
errorsFromCheckoutJSON
:(
NSDictionary
*
)
json
;
@end
@interface
BUYError
(
Customer
)
+
(
NSArray
<
BUYError
*>
*
)
errorsFromSignUpJSON
:(
NSDictionary
*
)
json
;
@end
NS_ASSUME_NONNULL_END
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYModelManager+ApplePay.h
View file @
2025e5fe
...
...
@@ -24,8 +24,9 @@
// THE SOFTWARE.
//
#import <Buy/BUYModelManager.h>
@import
PassKit
;
#import "BUYModelManager.h"
NS_ASSUME_NONNULL_BEGIN
@class
BUYAddress
;
...
...
@@ -50,3 +51,5 @@
-
(
BUYAddress
*
)
buyAddressWithContact
:(
PKContact
*
)
contact
NS_AVAILABLE_IOS
(
9
_0
);
@end
NS_ASSUME_NONNULL_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