Inherited by EMLocalCartDataSource.
Public Member Functions | |
(void) | - loginWithUsername:password: |
(EMUser *) | - loginWithUsername:password:error: |
(BOOL) | - registerUser:confirmEmail:password:confirmPassword:error: |
(void) | - logout |
(BOOL) | - updateUser:error: |
(BOOL) | - sendPassword:error: |
(BOOL) | - resetPassword:password:oldPassword:error: |
(BOOL) | - createAnonymousSessionWithEmail:error: |
(BOOL) | - addOrUpdateAddress:toUser:addressType:error: |
(BOOL) | - removeAddress:fromUser:error: |
(BOOL) | - selectShippingAddress:error: |
(BOOL) | - selectBillingAddress:error: |
(BOOL) | - setShippingAddress:error: |
(BOOL) | - setBillingAddress:error: |
(BOOL) | - addOrUpdateCard:toUser:error: |
(BOOL) | - removeCard:fromUser:error: |
(BOOL) | - selectCard:error: |
(BOOL) | - setCard:error: |
(NSArray *) | - getShippingOptions:error: |
(BOOL) | - selectShippingOption:error: |
(NSArray *) | - getNotifications:error:location: |
(void) | - calculateAmounts |
(NSMutableArray *) | - calculateAmounts:error: |
(NSString *) | - submitOrder:error: |
(BOOL) | - addPromotionCode:error: |
(BOOL) | - removePromotionCode:error: |
(BOOL) | - processGiftWrap:error: |
(BOOL) | - appendGiftWrapOptions:error: |
(BOOL) | - createOrder: |
(BOOL) | - addItem:error: |
(BOOL) | - deleteItems:error: |
(BOOL) | - updateItems:error: |
(void) | - clearCart |
Properties | |
NSMutableArray * | delegates |
- (BOOL) addItem: | (EMProduct *) | item | |
error: | (NSError **) | error | |
updating/editing the cart
- (BOOL) addPromotionCode: | (NSString *) | code | |
error: | (NSError **) | error | |
Returns YES if the promotion code was successfully added
- (void) calculateAmounts |
[Asynchronous] Calls calculateAmounts:error: asynchronously in another thread, and sets the returned EMTransactionSummary on the given EMTransaction.
- (BOOL) deleteItems: | (NSArray *) | items | |
error: | (NSError **) | error | |
Array of NSString cartProductID values
- (NSArray *) getNotifications: | (EMTransaction *) | transaction | |
error: | (NSError **) | error | |
location: | (NSString *) | location | |
Returns an array of EMNotification objects. If there is an error, nil will be returned, and the dereferenced error object passed in will point to a non-nil NSError object.
- (NSArray *) getShippingOptions: | (EMTransaction *) | transaction | |
error: | (NSError **) | error | |
Returns an array of EMItemGroup objects. If there is an error, an empty array will be returned, and the dereferenced error object passed in will point to a non-nil NSError object.
- (void) loginWithUsername: | (NSString *) | username | |
password: | (NSString *) | password | |
[Asynchronous] Calls loginWithUsername:password:error: asynchronously in another thread, and sets the returned EMUser on the given EMTransaction.
- (BOOL) sendPassword: | (NSString *) | ||
error: | (NSError **) | error | |
Can use this to resend the plain-text password to the email address provided
Reimplemented in EMLocalCartDataSource.
- (BOOL) updateItems: | (NSDictionary *) | items | |
error: | (NSError **) | error | |
Dictionary of the form {cartProductID:quantity, cartProductID2:quantity2}
- (BOOL) updateUser: | (EMUser *) | user | |
error: | (NSError **) | error | |
Update the server-side user with the data in the given EMUser object.
- (NSMutableArray*) delegates [read, assign] |
A non-retaining array of id<EMCartDataSourceDelegate> objects.